Skip to main content
POST
Simulate a card payment

Authorizations

X-API-KEY
string
header
required

Create keys in the dashboard under Settings → API keys. Production keys start with smk_live_.

Body

application/json
cardId
string
required

The card's id, from card/list or card/create.

Example:

"2026100117908000004821"

amount
required

USD.

Example:

"19.99"

merchantName
string

Defaults to SANDBOX MERCHANT.

outcome
enum<string>
default:COMPLETED

Final state of the payment.

Available options:
COMPLETED,
PENDING,
FAILED
Example:

"COMPLETED"

Response

Success.

code
integer
required

0 on success.

Example:

0

message
string
required

ok on success.

Example:

"ok"

data
object
required