Get token information
This method allows you to get information regarding a particular token.
- URL syntax: /api/v2/merchant/token/{token_id}
- Method: GET
URL parameter
| Name | Type | Mandatory | Description |
|---|---|---|---|
| token_id | int | Y | The reference id of the token to be retrieved. |
Example request
/api/v2/merchant/token/83392
Response parameters
The response in this case is a Token object.
Example response
{
"class": "token",
"id": "83392",
"status": "ACTIVE",
"action_url": null,
"booking_id": "65eafea620d94",
"check_in_date": "2024-03-31",
"check_out_date": "2024-04-07",
"booking_details": {
"class": "booking_details",
"type": "HOTEL",
"booking_id": "65eafea620d94",
"check_in_date": "2024-03-31",
"check_out_date": "2024-04-07",
"total_booking_amount": "100000",
"booking_currency": "EUR"
},
"creation_date": "1709899430",
"expiration_date": "1712491430",
"description": "Booking 65eafea620d94 from 2024-03-31 to 2024-04-07.",
"extra": "Array",
"customer": {
"class": "customer",
"email": "john.doe+65eafea61fd6f@gmail.com",
"language": "en",
"firstname": "John",
"lastname": "Doe",
"billing_address": {
"class": "billing_address",
"address1": "55 rue du Faubourg Saint-Honoré",
"address2": null,
"address3": null,
"city": "Paris",
"country": "FR",
"postal_code": "75008"
}
},
"payment_method": {
"class": "payment_method",
"type": "CREDITCARD",
"validation_status": "NOT_VALIDATED",
"validation_date": null,
"invalid_reason": null,
"display": "4131-70xx-xxxx-0003",
"details": {
"class": "payment_method_details",
"fingerprint": "47371d35-44ef-4260-9b46-4c9f85cfabd1",
"holder": "Card Holder Name",
"scheme": null,
"exp_month": "01",
"exp_year": "2025"
}
},
"moto_instance_id": null,
"mandate": {
"class": "mandate",
"status": "NOT_REQUESTED",
"currency": "EUR",
"end_reason": null,
"start_date": 1709899430,
"end_date": null
},
"payment": null
}