Skip to main content

Get a MOTO interface URL request

This method allows you to create instances of the MOTO web interface. From this interface, the operator will be able to create card tokens or send request links with an option to process initial payments (if processing capabilities are activated).

Note: In Hospitality business, this interface is named Phone Booking interface.

If a link is provided to the payment method holder, when the process is complete, the user will be sent back to the specified url payment_page_return_url which will contain a result parameter appended to it in order to verify that the request parameter/s has not been tampered with. See the Post process redirection documentation.

  • URL syntax: /api/v2/merchant/moto-instance
  • Method: POST

Request parameters

NameTypeDetailsMandatoryDescription
sourceintNThe ID reference for which this request is. This data is provided by SysPay.
languagestringen |fr |itNSets the phone booking interface language. If not specified it will try to get the browser’s language, by default it will be automatically set to en if the detection fails or the browser language is not supported.
accept_untilunix timestampNThis unix timestamp determines the date and time the customer is allowed to complete the operation requested.
descriptionstringMax length 300NThe service/product description message which will be displayed on the SysPay Hosted page.
phone_booking_return_urlstringNThe URL to redirect the operator to when the operation on the Phone Booking web interface is complete.
payment_page_return_urlstringNThe URL to redirect the customer/buyer to when the operation is complete. (If the ‘send request’ method was used).
extrastringMax length 300NAn extra parameter that is passed back to you when sending a redirect or event message.
customerarrayCustomerNThe customer’s details.
lockedbooleanNSet to false allows the user to modify the customer/transaction data. Default to false.
locked_inputsarrayNPartial form lock. Contains which inputs will be locked once the form is loaded. See section below.
allowed_tabsarrayNContains which action tabs will be locked once the form is loaded. See section below.
paymentarrayPaymentNThe initial payment’s details.

Parameters relative to Hospitality business

NameTypeDetailsMandatoryDescription
booking_detailsarrayBooking detailsYThe booking details.
expiration_dateunix timestampNThis unix timestamp determines the token expiration date. After this date, the payment method details will not be anymore visible on SysPay interfaces. If no expiration_date is provided, the booking_details.check_out_date plus an interval amount will be used as the expiration date of the token. If set as null, the payment method details will not be visible at all.

locked_inputs parameter

NameTypeMandatoryDescription
descriptionbooleanNLock the description input.
operationbooleanNLock the transaction operation content. Locking an operation when there is a payment object will only allow the user to process a payment or a preauth while not passing a payment object will only allow the user to process a card verification.
payment_amountbooleanNLock the amount input. Setting the amount as locked with no payment object will only allow the user to process a card verification.
referencebooleanNLock the reference input.
booking_datesbooleanNLock the check-in and check-out date inputs.
accept_untilbooleanNLock the option expiration input.
payment_currencybooleanNLock the currency input.
payment_typebooleanNLock the transaction type input (direct payment or pre-authorization).
customer_genderbooleanNLock the Mr/Mrs input.
customer_lastnamebooleanNLock the lastname input.
customer_emailbooleanNLock the email input.
customer_languagebooleanNLock the language dropdown.

allowed_tabs parameter

NameTypeMandatoryDescription
direct_processingbooleanNLock or allow the payment method details form.
email_requestbooleanNLock or allow the email request tab.
secure_linkbooleanNLock or allow the secure link tab.

Example request

{
"accept_until": 1712222640,
"customer": {
"email": "julien.eyraud+65e59330911c0@syspay.com",
"firstname": "Julien",
"lastname": "Eyraud",
"language": "fr",
"ip": "53.124.30.54"
},
"locked": false,
"description": "Booking 65e59330940fd from 2024-03-27 to 2024-04-03.",
"expiration_date": "1712136240",
"booking_details": {
"type": "HOTEL",
"check_in_date": "2024-03-27",
"check_out_date": "2024-04-03",
"booking_id": "65e59330940fd",
"total_booking_amount": 100000,
"booking_currency": "EUR"
}
}

Response parameters

The response in this case is a Moto Instance object.

Example response

{
"class": "moto_instance",
"id": "8",
"action_url": "http://www.syspay.com/redirect/moto-instance/28",
}