Authorizations
Path Parameters
Order ID
import HenrySDK from '@henrylabs/sdk';
const client = new HenrySDK({
apiKey: 'My API Key',
});
const response = await client.orders.retrieveStatus('123e4567-e89b-12d3-a456-426614174000');
console.log(response.message);{
"success": true,
"status": "<string>",
"message": "<string>",
"data": {
"id": "<string>",
"userId": "<string>",
"status": "<string>",
"statusMessage": "<string>",
"subtotal": "<string>",
"tax": "<string>",
"shipping": "<string>",
"grandTotal": "<string>",
"currency": "<string>",
"products": [
{
"productName": "<string>",
"quantity": 123,
"productMetadata": {}
}
],
"shippingDetails": {
"email": "<string>",
"fullName": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"stateOrProvince": "<string>",
"postalCode": "<string>",
"countryCode": "<string>",
"phoneNumber": "<string>"
}
}
}Retrieve the status and details of an order given order ID
import HenrySDK from '@henrylabs/sdk';
const client = new HenrySDK({
apiKey: 'My API Key',
});
const response = await client.orders.retrieveStatus('123e4567-e89b-12d3-a456-426614174000');
console.log(response.message);{
"success": true,
"status": "<string>",
"message": "<string>",
"data": {
"id": "<string>",
"userId": "<string>",
"status": "<string>",
"statusMessage": "<string>",
"subtotal": "<string>",
"tax": "<string>",
"shipping": "<string>",
"grandTotal": "<string>",
"currency": "<string>",
"products": [
{
"productName": "<string>",
"quantity": 123,
"productMetadata": {}
}
],
"shippingDetails": {
"email": "<string>",
"fullName": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"stateOrProvince": "<string>",
"postalCode": "<string>",
"countryCode": "<string>",
"phoneNumber": "<string>"
}
}
}Order ID