createAccountCharge
Add charges to an account.
Arguments
Input fields for creating an account charge.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-1605: Invalid input.
- KT-CT-1610: Exactly one of 'amountAsMinorUnits' or 'amountAsISO20022' must be provided.
- KT-CT-1611: The currency provided does not match the currency of this Kraken instance.
- KT-CT-1612: The amount provided cannot be represented in whole minor units of the currency.
- KT-CT-5211: The charge reason with the requested code is deprecated.
- KT-CT-5212: The charge reason with the requested code does not exist.
- KT-CT-5213: Invalid data.
- KT-CT-7899: An internal error occurred.
Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation CreateAccountCharge($input: CreateAccountChargeInput!) {
createAccountCharge(input: $input) {
accountCharge {
...AccountChargeTypeFragment
}
}
}
Variables
{
"input": CreateAccountChargeInput
}
Response
{
"data": {
"createAccountCharge": {
"accountCharge": AccountChargeType
}
}
}