Update Token Status

{{url}}/ecom/jws/token/state/update_v1

Status Transition Rules

  • ACTIVE β†’ SUSPENDED – An active token can be suspended (e.g., for temporary blocking).

  • SUSPENDED β†’ ACTIVE – A suspended token can be reactivated (e.g., after unblocking).

  • ACTIVE β†’ DELETED – An active token can be deleted permanently.

  • SUSPENDED β†’ DELETED – A suspended token can be deleted if the user does not restore activity.

  • DELETED β†’ any other status – Not possible.

Input parameters of the JWS payload part:

Parameter
Description
Data Format
Required
Example

token

Token ID

string

Yes

SRrSBe5DOb7lrZ_FS46fihty

state

New token status

string

Yes

SUSPENDED

Output parameters of the JWS payload part:

Parameter
Description
Data Format
Example

tokenUpdated

Indicates whether the token status was updated

boolean

true / false

customerId

Customer ID

string(255)

12345

token

Token ID

string

SRrSBe5DOb7lrZ_FS46fihty

Examples

chevron-rightJWS Payload - the request body before signing uphashtag
{
    "token": "-s9UCfCNN0YMk4ZOyZX8pWAt",
    "state": "SUSPENDED"
}
chevron-rightJWS Payload - the response body before signing uphashtag

Last updated