Skip to main content

Customer — Toggle Status

Activates or deactivates a customer's token. Toggling to inactive stops all future recurring charges and prevents new tokenized charges.

When to Use

Use this endpoint when:

  • Customer requests to pause or cancel their subscription
  • Suspending a customer due to chargeback or compliance reasons
  • Re-activating a previously paused customer
note

Only available after the customer has successfully bound their card.

How to Use

Endpoint
POST/v3/recurring-payment/{customer_id}/toggle

Step 1: Identify the Customer

Use the customer_id returned by Create Tokenized Customer or Create Recurring Customer.

Step 2: Send the Toggle Request

POST /v3/recurring-payment/{customer_id}/toggle. The endpoint inverts the current isActive state.

Step 3: Verify the New State

The response item.isActive reflects the new status.


Request Parameters

customer_idSTRINGrequired

Customer ID returned from Create Recurring Customer or Create Tokenized Customer

Response Parameters

itemOBJECT

Response item

idSTRING

Customer ID

merchantIdSTRING

Merchant ID

storeIdSTRING

Store ID

labelSTRING

Customer card: front six and last four digits

emailSTRING

Customer email

countryCodeSTRING

Customer country code

phoneNumberSTRING

Customer phone number

productNameSTRING

Product name

productDescriptionSTRING

Product description

isActiveBOOLEAN

Whether the token is active after toggle

createdAtSTRING

Created date time

updatedAtSTRING

Last updated date time

clientKeySTRING

Internal usage only

redirectUrlSTRING

Redirect URL

notifyUrlSTRING

Notify URL

paymentUrlSTRING

Card binding URL

recurringPaymentOBJECT

recurringPayment details

amountINTEGER

Recurring payment amount

currencySTRING

Recurring payment currency

recurringIntervalSTRING

Recurring interval

recurringTargetSTRING

Recurring target rules

recurringRepetitionINTEGER

Number of repetitions

codeSTRING

"SUCCESS" if the request succeeded, otherwise an error code.

errorOBJECT

Error details

codeSTRING

Error code if the request failed.

messageSTRING

Error message if the request failed.

debugSTRING

Debug message (sandbox only).