Skip to main content
POST
/
api
/
payment-methods
set up payment method
curl --request POST \
  --url https://api.example.com/api/payment-methods \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customerIdentifier": "string",
  "paymentGatewayType": "string",
  "redirectUrl": "string",
  "cancelUrl": "string"
}
'
{
  "error": {
    "message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

trace-id
string
default:{{$string.uuid}}

Body

application/json

The body is of type object.

Response

400 - application/json
error
object
required