Skip to main content

Activate Payment Method

Flip a method to Active, making it usable for checkout and recurring billing.

URL

POST /api/c2a/customer/payment/methods/activate

Request Parameters

NameTypeDescription
pstringQuery parameter, required. Payment method URN.

Response Parameters

PaymentMethodActivateResponse returns the updated AzottePaymentMethod with state = Active.

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

Sample Response

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

Sample Codes

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