Delete Token

Update Token

This API endpoint is used to update the token associated with a given location and transaction.

URL: {{base_url}}/locations/{{location_id}}/transactions/token/goE0h7lSvNfo1111
Method: PATCH

Request Headers:

HeaderTypeRequiredDescription
AuthorizationStringYesBearer {access_token}
Content-TypeStringYesapplication/json

Request Body:

  • user_id (String, required): User ID

  • msisdn (String, required): Mobile number

  • card_data (Object, required): Card data including last4, exp_month, exp_year, and card_holder

  • billing_address (Object, optional): Billing address including street, street_2, zip, city, state, country_iso, and email

Response:

The response for this request is a dictionary with the following structure and format:

{
    "token": "String"
}

This API endpoint is used to delete a card token.

URL: /locations//token/
Method: DEL

Request Headers:

HeaderTypeRequiredDescription
AuthorizationStringYesBearer {access_token}
Content-TypeStringYesapplication/json
Language
URL
Click Try It! to start a request and see the response here!