Skip to main content
POST
Process a test payment

Authorizations

x-client-secret
string
header
required

Your secret API key. Keep this secure and never expose it in client-side code.

Headers

idempotency-key
string<uuid>
required

Unique key to ensure the request is idempotent. If a request with the same key is sent multiple times, only the first will be processed, and subsequent requests will return the same response.

Example:

"payment_123456_unique_key"

Body

application/json
amount
number
required

The amount to charge

Example:

100.5

currency
string
required

The currency code

Example:

"USD"

description
string
required

Description of the payment

Example:

"Test payment for API"

customerId
string

Customer reference ID

Example:

"cus_12345"

Response

Payment processed successfully

id
string
required

Payment ID

Example:

"pay_12345abcdef"

amount
number
required

The amount charged

Example:

100.5

currency
string
required

The currency code

Example:

"USD"

status
string
required

Payment status

Example:

"succeeded"

timestamp
string
required

Timestamp of the payment

Example:

"2023-07-01T12:00:00.000Z"