legacyPaymentCreate

Create a legacy payment. The legacyPaymentCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: billing:write

For a complete list of input attributes see the PaymentAttributes type

mutation legacyPaymentCreate ($attributes: PaymentAttributes!, $invoiceIds: [ID!]!) {
  legacyPaymentCreate (attributes: $attributes, invoiceIds: $invoiceIds) {
      errors
      payment {
        accountId
        amount
        amountUnapplied
        baseCurrencyCash
        baseCurrencyId
        completedAt
        conversionRate
        createdAt
        currencyId
        description
        errorCode
        errorMessage
        fees
        fromChildAccountId
        id
        isLegacy
        memo
        paymentProcessor
        pluginId
        receivedAt
        remoteTransactionId
        startedAt
        updatedAt
      }
  }
}

ArgumentsLink to Arguments section

{
  "attributes": {
    "memo": "",
    "receivedAt": "2022-06-01T00:00:00Z",
    "amount": "1.00",
    "currencyId": "456123",
    "accountId": "456123",
    "fees": "1.00"
  },
  "invoiceIds": [
    "456123"
  ]
}
Name Type Description
attributes PaymentAttributes  
invoiceIds List (ID)  

ResponseLink to Response section

Name Type Description
errors List (String)  
payment Payment