Skip to main content

Get token linked to an operation requested on MOTO interface

You can use this webservice to find the token related to a MOTO operation.

  • URL syntax: /api/v2/merchant/moto-instance/{moto_instance_id}/token
  • Method: GET

URL parameter

NameTypeMandatoryDescription
moto_instance_idstringYThe moto instance id as returned when you created it.

Example request

/api/v2/merchant/moto-instance/660547a4e6f17ec8178b45b3/token

Response parameters

The response in this case is a Token object.

Example response

{
"class": "token",
"id": "83619",
"status": "ACTIVE",
"action_url": null,
"booking_id": "660547a453e71",
"check_in_date": "2024-04-20",
"check_out_date": "2024-04-27",
"booking_details": {
"class": "booking_details",
"type": "HOTEL",
"booking_id": "660547a453e71",
"check_in_date": "2024-04-20",
"check_out_date": "2024-04-27",
"total_booking_amount": "100000",
"booking_currency": "EUR"
},
"creation_date": "1711622117",
"expiration_date": "1714214052",
"accept_until": "1714300440",
"description": "Booking 660547a453e71 from 2024-04-20 to 2024-04-27.",
"extra": "Array",
"customer": {
"class": "customer",
"email": "john.doe+660547a452cc5@gmail.com",
"language": "en",
"firstname": "Julien",
"lastname": "EYRAUD",
"billing_address": null
},
"payment_method": {
"class": "payment_method",
"type": "CREDITCARD",
"validation_status": "NOT_VALIDATED",
"validation_date": null,
"invalid_reason": null,
"display": "4444-33xx-xxxx-1111",
"details": {
"class": "payment_method_details",
"fingerprint": "d5b08ba4-ac2e-4005-b952-0fdebd3d65ff",
"holder": "Julien EYRAUD",
"scheme": null,
"exp_month": "01",
"exp_year": "2025"
}
},
"moto_instance_id": "660547a4e6f17ec8178b45b3",
"mandate": {
"class": "mandate",
"status": "NOT_REQUESTED",
"currency": "EUR",
"end_reason": null,
"start_date": 1711622118,
"end_date": null
},
"payment": null
}