Skip to main content
POST
Create a payment method

Authorizations

Authorization
string
header
required

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

Headers

X-Trace-Id
string

A unique identifier to track this operation. It must be between 12 and 255 characters in length.

Required string length: 12 - 255
X-Idempotency-Key
string

A unique identifier to prevent duplicate requests. It must be between 12 and 255 characters in length.

Required string length: 12 - 255

Body

application/json
type
string
required

The type of the payment method.

Example:

"card"

card
object
required
customer_id
string

ID of the customer.

Example:

"cus_3XarBILKQS"

meta
object

Response

OK

status
enum<string>
Available options:
success,
failed
message
string
data
object