Mpp.Paris Api for My travelmate
Create an Order
URL | https://mpp.paris/api/v2/travelmate/order_callbacks |
Parameter | token |
Token value | MDg0NWRhNmZiZDNiMjAyOGMxOTcwOTA1MmRjMW |
Request
Field | Type | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
client_id | integer |
required | |||||||||||||||
receptionist_id | integer |
optional | |||||||||||||||
customer_firstname | string |
required | |||||||||||||||
customer_lastname | string |
optional | |||||||||||||||
customer_email | string |
optional | |||||||||||||||
customer_phone | string |
optional | |||||||||||||||
customer_address | string |
optional | |||||||||||||||
order_notes | string |
optional | |||||||||||||||
total_amount | integer |
required | |||||||||||||||
order_discount | integer |
optional | |||||||||||||||
payment_id | string |
required | |||||||||||||||
product_booking_date | date |
required. Example: YYYY-MM-DD |
|||||||||||||||
products | array |
required. | |||||||||||||||
|
Example
https://mpp.paris/api/v2/travelmate/order_callbacks?token=MDg0NWRhNmZiZDNiMjAyOGMxOTcwOTA1MmRjMW
{ "client_id": 218, "receptionist_id": "", "customer_firstname": "Customer", "customer_lastname": "Name", "customer_email": "email@address.com", "customer_phone": "", "customer_address": "", "order_notes": "", "total_amount": "178", "order_discount": "0", "payment_id": "", "product_booking_date": "2020-08-09", "products": [ { "product_mpp_id": 5, "product_price": "26.00", "product_quantity": 2, "product_day": "2020-08-09", "product_code": "" }, { "product_mpp_id": 21, "product_price": "126.00", "product_quantity": 1, "product_day": "2020-08-09", "product_code": "" } ] }
Response
order_id | integer |
Example: 123456 |
status | string |
Options: completed, pending, cancelled |
Example
{ "order_id": 123456, "status": "completed" }