paymentMethodCreate
Create a payment method. The paymentMethodCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: billing:write
mutation paymentMethodCreate ($accountId: ID!, $pluginGuid: ID!, $token: String!) {
paymentMethodCreate (accountId: $accountId, pluginGuid: $pluginGuid, token: $token) {
errors
paymentMethod {
accountId
createdAt
disabled
expirationDate
failureCode
failureReason
id
isDefault
lastSuccess
pluginId
updatedAt
}
}
}
ArgumentsLink to Arguments section
{
"accountId": "456123",
"pluginGuid": "456123",
"token": ""
}
| Name | Type | Description |
|---|---|---|
| accountId | ID | |
| pluginGuid | ID | |
| token | String |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| paymentMethod | PaymentMethod |