Skip to content

Start a setup intent to acquire payment details on-site

POST
/cms/customer/payment/setup
curl --request POST \
--url https://api.example.com/cms/customer/payment/setup \
--header 'API-Key: <API-Key>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Token: <Token>' \
--data '{ "payment_method": "example", "parameters": {} }'
Media typeapplication/json
object
payment_method
required

Payment method to setup

string
parameters

Additional setup parameters. Touch’n Go: {“authCode”: “…”, “authState”: “…”} exactly as received on the binding return URL; links the wallet for auto debit.

object

Example generated

{
"payment_method": "example",
"parameters": {}
}

Payment method setup successful

Media typeapplication/json
object
response

Setup response

object

Example generated

{
"response": {}
}

Bad Request

Unauthorized

Forbidden