Skip to main content
POST
Change Card Status

Authorizations

X-Api-Key
string
header
required

Your API key (yativo_pk_...) from Developers → API Keys. Send together with X-Api-Secret.

X-Api-Secret
string
header
required

Your API secret (yativo_sk_...), shown once when the key is created.

Body

application/json
customer_id
string
required
Example:

"cus_123"

action
enum<string>
required
Available options:
activate,
suspend,
terminate
Example:

"suspend"

card_id
string

Required when the customer has more than one card.

Response

Request successful

status
string
Example:

"success"

status_code
integer
Example:

200

message
string
Example:

"Request successful"

data
object