delete
https://sandbox-api.softpoint.io/interface/locations//tokens/ezzDpUyMud2W1111
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:
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | Bearer {access_token} |
| Content-Type | String | Yes | application/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:
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | Bearer {access_token} |
| Content-Type | String | Yes | application/json |
