paymentApplyToAccount

Apply a payment to an account. The paymentApplyToAccount mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: billing:write

mutation paymentApplyToAccount ($paymentId: ID!, $accountId: ID) {
  paymentApplyToAccount (paymentId: $paymentId, accountId: $accountId) {
      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

{
  "paymentId": "456123",
  "accountId": "456123"
}
Name Type Description
paymentId ID  
accountId ID  

ResponseLink to Response section

Name Type Description
errors List (String)  
payment Payment