Revoke customer token
Use this API call to revoke a customer token.
- Example Request
- Example Response
curl -X DELETE \
-H 'authorization: Bearer v4.public.eyJpc3MiOiJs...' \
https://api.sandbox.ledyer.com/v1/customer-tokens/:token
{
"merchantId": "ac_1xRXHKwBNxnbzMeJfy2olPJEKP7",
"storeId": "421423100",
"tokenId": "ct_2gHjkw8YbWYkYuHdmtU3G8EmIZ6",
"state": "revoked",
"companyId": "559311-3714",
"email": "jan@example.com",
"firstName": "Jan",
"lastName": "Persson",
"phone": "+46761010101",
"paymentMethod": {
"provider": "ledyer",
"type": "advanceInvoice"
},
"billingAddress": {
"attentionName": "Åke anställd",
"careOf": "",
"city": "Solna",
"companyName": "Rocket 4",
"country": "SE",
"postalCode": "999 33",
"streetAddress": "Gatan 99"
},
"reference1": "",
"reference2": ""
}