Skip to main content

Inactivate Payment Method

Flip a method to Inactive. Token is retained at the PSP but Azotte will not use it.

URL

POST /api/c2a/customer/payment/methods/inactivate

Request Parameters

NameTypeDescription
pstringQuery parameter, required. Payment method URN.

Response Parameters

PaymentMethodInactivateResponse returns the updated AzottePaymentMethod with state = Inactive.

NameTypeDescription
resultobject (AzottePaymentMethod)Updated method snapshot.
statusobject (AzotteStatus)Operation status envelope.

Sample Response

{
"result": {
"paymentMethodUrn": "pm.00.482.3",
"state": "Inactive"
},
"status": { "messageCode": "SUCCESS" }
}

Behaviour

  • Use instead of delete when you want a soft-disable: subscriptions can later re-activate the card without re-tokenization.
  • Recurring billing skips inactive methods. If the only attached method is inactive, the next renewal fails.

Sample Codes

curl --location --request POST \
'https://acme.sandbox.azotte.com/api/v1/c2a/customer/payment/methods/inactivate?p=pm.00.482.3' \
--header 'x-tn: e2a1c7b2-4f3a-4b8e-9c2d-1a2b3c4d5e6f' \
--header 'x-api-key: sk_dev_acme_sample_123456789'