createPayment is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.


Create a payment for an intent, e.g. USER, COMPANY, INVOICE

This page contains

    Authorization Rules

    This request requires authorization with at least one of the following scopes:







    input CreatePaymentInput! PREVIEW

    CreatePaymentInput fields

    amount Decimal!

    Payment amount

    currency Currency!

    Payment currency, using the ISO-4217 currency code

    intents [PaymentIntentInput!]! PREVIEW

    Intents for which payment is being made, Intent can be USER/COMPANY/INVOICE

    userId ID!

    Target user's id for which payment is being made

    accountId ID!

    Target account's id for which payment is being made

    flowType FlowType! PREVIEW

    Information about from where payment is being initiated

    paymentMethod PaymentMethodInput PREVIEW

    Payment method information for payment, if not provided default payment method will be used

    merchantOfRecordId String!

    Merchant of record id, value can be reseller uuid, tenant code based on merchantOfRecordType

    merchantOfRecordType String!

    Merchant of record type, e.g. TENANT, RESELLER etc

    properties [PropertyInput] PREVIEW

    Payment additional properties

    Return Fields

    payment Payment PREVIEW
    userErrors [CreatePaymentError!] PREVIEW

    Interactive example

    This is an example mutation query. Use the embedded interactive tool below to edit the query.

    Hint: use Ctrl + Space for autocompleting fields.