curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/api/placeOrder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "plumProAPI.mutation.placeOrder",
"tag": "plumProAPI",
"variables": {
"data": {
"productId": 15365,
"quantity": 1,
"denomination": 50,
"email": "your.email@example.com",
"contact": "+1-4705000000",
"tag": "Rewarding",
"poNumber": "PO12662",
"notifyReceiverEmail": 1,
"notifyAdminEmail": 0,
"userMeta": {
"loyaltyMemberId": "324523423"
}
}
}
}
'{
"data": {
"placeOrder": {
"status": 1,
"data": {
"orderId": 98765432,
"orderTotal": 50,
"currencyCode": "USD",
"amountCharged": 50,
"orderStatus": "complete",
"deliveryStatus": "delivered",
"quantity": 1,
"voucherDetails": [
{
"orderId": 98765432,
"productId": 15365,
"productName": "Emirates Skywards Miles",
"currencyCode": "USD",
"productStatus": "delivered",
"denomination": 50
}
]
}
}
}
}Place an airmiles order. A unique poNumber must be sent per order. userMeta.loyaltyMemberId is required for miles transfer to the correct loyalty program account.
Real URL: POST https://accounts.xoxoday.com/chef/v1/oauth/api
curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/api/placeOrder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "plumProAPI.mutation.placeOrder",
"tag": "plumProAPI",
"variables": {
"data": {
"productId": 15365,
"quantity": 1,
"denomination": 50,
"email": "your.email@example.com",
"contact": "+1-4705000000",
"tag": "Rewarding",
"poNumber": "PO12662",
"notifyReceiverEmail": 1,
"notifyAdminEmail": 0,
"userMeta": {
"loyaltyMemberId": "324523423"
}
}
}
}
'{
"data": {
"placeOrder": {
"status": 1,
"data": {
"orderId": 98765432,
"orderTotal": 50,
"currencyCode": "USD",
"amountCharged": 50,
"orderStatus": "complete",
"deliveryStatus": "delivered",
"quantity": 1,
"voucherDetails": [
{
"orderId": 98765432,
"productId": 15365,
"productName": "Emirates Skywards Miles",
"currencyCode": "USD",
"productStatus": "delivered",
"denomination": 50
}
]
}
}
}
}Documentation Index
Fetch the complete documentation index at: https://help-plum.xoxoday.com/llms.txt
Use this file to discover all available pages before exploring further.
A unique reference ID needs to be sent for every unique order in the “poNumber” parameter We strongly recommend storing the request and response of every “PlaceOrderAPI” call
Learn how to manage webhooks to receive order status updates for delayed product types.
Authorization: Bearer <access_token>
Airmiles order placed successfully.
Show child attributes