Skip to main content

Regenerate Token

Regenerate a customer's payment token.

Endpoint Information

Name: Customer Token Regenerate
Method: POST
URL: {{BASE_URL}}/api/v1/customer-refresh-token

Description

Refresh or regenerate a customer's payment token. This can extends the expiration validity of the token.

Authentication

Type: Basic Auth

  • Username: App Key
  • Password: Secret Key

Request Body

Content-Type: application/json

{
"email": "[email protected]",
"merchantAccountId": "{{your_account_no}}"
}

Parameters

ParameterTypeRequiredDescription
emailstringYesCustomer's email
merchantAccountIdstringYesYour merchant account ID

Response

Success Response

{
"success": true,
"message": "Success",
"data": {
"customer_reference_id": "70e9efaf-2e72-4130-b38b-9552e2e94902",
"token": "f0a8c83a1d4457b840b4376b9657b48e",
"expire_at": "2025-11-05"
}
}

Response Fields

FieldTypeDescription
tokenstringThe new/refreshed token
expire_atstringThe new expiration date