GetOrderDetails API
Use GetOrderDetails API to get the details of an existing order placed via the Rewards API
Base URL :
Staging :
https://stagingaccount.xoxoday.com/chef
Production :
https://accounts.xoxoday.com/chef
curl -X POST {OAUTH_URL}/v1/oauth/api
-H 'Authorization: Bearer eyJ0b2tlbkNvbnRlbnQiOnsiaXNzdWVkRm9yIjoiRnJlc2h3b3JrcyIsInNjb3BlIjoiIiwiaXNzdWVkQXQiOjE1NTk4MDQ1Nzg1ODIsImV4cGlyZXNBdCI6IjIwMTktMDYtMjFUMDc6MDI6NTguNTgyWiIsInRva2VuX3R5cGUiOiJVU0VSIn0sImFfdCI6ImV5SmxibU1pT2lKQk1USTRRMEpETFVoVE1qVTJJaXdpWVd4bklqb2lSVU5FU0MxRlV5SXNJbXRwWkNJNkltVnVZeUlzSW1Wd2F5STZleUpyZEhraU9pSkZReUlzSW1OeWRpSTZJbEF0TWpVMklpd2llQ0k2SWpoMmJVTkVRMUZQZW1wQlNHWndabXQ0TVhjNVluZHphM1JhZWtRek0ySXRZamx0VVhSclEyRnhNV3NpTENKNUlqb2lZMGR0V2kxdWIySjBWbUptTVdGdVNraDBUMmxoWW5VMFZHUlVhRzVVYmpCYWRuWnJabGMwYzBWb2N5SjlmUS4uU1h3TlNUSWhFUXNlN0htaXpPUmFIQS5NRzBVUy1lek1IOEFsbWFLc2ZTY3Nwa2FlYzBIcW9FcUV1YXRoNHRSTTRpeVg2dFByX1ZjTnlsdnk5YjlGLTZHR01DbjY1TjYwYnpIUUJtRVZvZGRYVWlvQS1kTkpuaE9KdThHczRfeW9pM042VGFOdWhjRENCUGtwWk1CeTlDRjJBaEh4UGotQkd0SzdEamhNbjBBQXpTM1VhTE11eUdrTmNwSGxQSUxNcFlVM'
--header 'Content-Type: application/json'
-d '{
"query": "plumProAPI.mutation.getOrderDetails",
"tag": "plumProAPI",
"variables": {
"data":{
"poNumber": "",
"orderId": 1316578,
“sendMailToReceiver”: 0
}
}
}
200 : Success
200 : Success
returns the details of the order
{
"data": {
"getOrderDetails": {
status: 1,
data:{
"orderId": 1,
"vouchers":[{
"amount": "10",
"country": "India",
"currency": "INR",
"orderId": 128618,
"pin": "key_c26323726135beaa4e",
"productId": 28543,
"tag": "somethingToTagThisOrder",
"type": "codePin",
"validity": "2020-10-02",
"voucherCode": "4162581029814703",
"currencyValue": 0.1,
}],
"amountCharged": 90,
"currencyCode": "USD",
"discountPercent": 10,
"orderDiscount": 10,
"orderTotal": 100,
"orderStatus": "complete",
"deliveryStatus": "pending"
}
}
}
}
401 : Failure
401 : Failure
Invalid Authorization header
{
code: 401,
errorId: "PIPE10013",
errorInfo: "Plum Pro APIs: Invalid authorization header",
error:"Eg: invalid authorization header!"
}
400 : Failure
400 : Failure
Validation error in order details
{
code: 400,
errorId: "PLE10002",
errorInfo: "Validation error in get order details",
error:"Eg: Bad request"
}
404 : Failure
404 : Failure
Failed to get order details
{
code: 404,
errorId: "PLE10016",
errorInfo: "Failed to get Order details",
error: "Eg: Not Found, Order Details Not Found"
}
502 : Failure
502 : Failure
Failed to process resend vouchers
{
code: 502,
errorId: "PLE10034",
errorInfo: "Failed to process resendVoucher",
error: "Invalid Order status id."
}
500: Failure
500: Failure
Internal server error
{
code: 500,
error: "Eg: Internal server error"
}
Parameters
Body Parameters
Body Parameters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vouchers.xyz= vouchers property objects
Last updated