createPaymentMethod
Creates a new payment method in Kraken as well as a new customer in GMO.
Arguments
Returns
CreatePaymentMethodCreates a new customer in GMO, a PaymentInstruction, and PaymentSchedule for an existing user.
This is called when creating a new CREDIT CARD payment method. Direct debit uses the IncomingGMOCreationExistingAccountCallback webhook.
This endpoint is designed to be used on an account with no existing payment method.
Possible Errors
Allowed Viewers
Query Complexity
6Examples
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 CreatePaymentMethod($input: CreatePaymentMethodInput) {
createPaymentMethod(input: $input) {
reference
}
}
Variables
{
"input": CreatePaymentMethodInput
}
Response
{
"data": {
"createPaymentMethod": {
"reference": "PM-himself-suddenly-name-yes"
}
}
}