Create an order
POST /v2/orders
Creates an order.
In the response, ref
contains the order reference.
RequestResponse
curl -X POST <baseURL>/v2/orders' \
-u '<username>:<password>' \
-H 'Accept: application/json' \
--data-raw '
{
"pointOfSale": "spinair.com/france",
"channel": "WEB",
"currencyCode": "EUR",
"price": 12,
"orderedAt": "2024-12-19T12:07:18.149Z",
"referenceId": "B94TXY-1",
"paymentType": "Card",
"cardType": "Visa",
"status": "PURCHASED"
}'
RequestResponse
{
"href": "<baseURL>/v2/orders/15d0417e-75a8-4340-9052-51b9ca36aab0",
"ref": "15d0417e-75a8-4340-9052-51b9ca36aab0",
"createdAt": "2024-12-19T12:19:01.268Z",
"modifiedAt": "2024-12-19T12:19:01.268Z",
"orderedAt": "2024-12-19T12:07:18.149Z",
"currencyCode": "EUR",
"price": 12,
"referenceId": "B94TXY-1",
"paymentType": "Card",
"cardType": "Visa",
"pointOfSale": "spinair.com/france",
"channel": "WEB",
"status": "PURCHASED",
"contacts": {
"items": [...]
},
"consumers": {
"items": [...]
},
"orderItems": {
"items": [...]
}
}