Get customer token
Use this API request to retrieve the content of a Ledyer customer token. The request will return the status of the token as well as the customer details.
- Example Request
- Example Response
curl -X GET \
-H 'authorization: Bearer v4.public.eyJpc3MiOiJs...' \
https://api.sandbox.ledyer.com/v1/customer-tokens/:token \
Path parameters
token
The token that was obtained when the customer token was created.
{
"merchantId": "ac_1xRXHKwBNxnbzMeJfy2olPJEKP7",
"storeId": "421423100",
"tokenId": "ct_2gHjkw8YbWYkYuHdmtU3G8EmIZ6",
"state": "active",
"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": ""
}