curl -i -X GET \ 'https://api.h4b.dev/api/v2/Orders/{id}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "order": {
- "id": 0,
- "name": "string",
- "note": "string",
- "created": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "status": "string",
- "statusId": 0,
- "orderType": "string",
- "makeInvoice": true,
- "sendInvoice": true,
- "subTotal": 0,
- "taxAmount": 0,
- "deliveryCost": 0,
- "total": 0,
- "linkUrl": "string",
- "linkExpirationDate": "2019-08-24T14:15:22Z",
- "orderDetails": [
- {
- "itemId": 0,
- "name": "string",
- "price": 0,
- "promoId": 0,
- "promoPrice": 0,
- "quantity": 0,
- "subTotal": 0,
- "modifiersTotal": 0,
- "sku": "string",
- "productImageUrl": "string",
- "modifiers": [
- {
- "modifierId": 0,
- "name": "string",
- "selectedOptionsTotal": 0,
- "selectedOptions": [
- {
- "selectedOptionId": null,
- "name": null,
- "amount": null
}
]
}
], - "note": "string"
}
], - "cancellationReason": "string",
- "orderMetadata": [
- {
- "namespace": "string",
- "key": "string",
- "value": "string",
- "valueType": 0
}
], - "voucherUrl": "string",
- "locationName": "string",
- "locationAddress": "string",
- "customFields": [
- {
- "name": "string",
- "label": "string",
- "value": "string"
}
], - "checkoutNote": "string",
- "shipmentOptionId": 0,
- "paymentMethodId": 0,
- "cashToCollect": 0,
- "salesChannel": 1,
- "isLocationOpen": true,
- "hasLocation": true,
- "locationCanScheduleOrders": true,
- "storeId": 0,
- "orderTypeId": 0,
- "locationId": 0
}, - "orderEventHistory": [
- {
- "description": "string",
- "level": 0,
- "type": 0,
- "metadata": {
- "property1": null,
- "property2": null
}, - "createdBy": "string",
- "created": "2019-08-24T14:15:22Z"
}
], - "payment": {
- "paymentOption": "string",
- "cardholderName": "string",
- "number": "string",
- "paymentMethodLastDigits": "string",
- "paymentMethodFirstDigits": "string",
- "type": "string",
- "paymentStatus": "string",
- "paidAmount": 0,
- "authorizationCode": "string",
- "voucherUrl": "string",
- "installments": 0,
- "payDate": "2019-08-24T14:15:22Z",
- "charges": [
- {
- "chargeId": 0,
- "authorizationCode": "string",
- "status": "string",
- "amount": 0,
- "chargeType": 1,
- "paymentMethod": {
- "cardholderName": "string",
- "lastDigits": "string",
- "firstDigits": "string",
- "type": "string",
- "cardName": "string"
}, - "voucherUrl": "string",
- "installments": 0
}
]
}, - "shipment": {
- "shipmentOption": "string",
- "name": "string",
- "address": "string",
- "addressLine2": "string",
- "location": {
- "latitude": 0,
- "longitude": 0
}, - "phone": "string",
- "note": "string",
- "shipmentStatus": "string",
- "hugoShipmentInfo": {
- "id": "string",
- "orderId": "string",
- "status": "string",
- "rideId": "string",
- "rideCode": "string",
- "hugoOrderId": "string",
- "hugoOrderCode": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z",
- "description": "string",
- "arrivalTime": "string",
- "distanceKm": 0,
- "durationMin": 0,
- "driverName": "string",
- "driverPhone": "string",
- "driverLicensePlate": "string",
- "payment": {
- "type": "string",
- "currency": "string",
- "hugoShipmentCost": 0
}, - "isSaturated": true,
- "isSaturatedMessage": "string",
- "etaAssignment": "string",
- "etaDelivery": "string"
}, - "shipmentOptionId": 0,
- "shipmentStatusId": 0
}, - "orderBuyer": {
- "name": "string",
- "phone": "string",
- "email": "string"
}, - "invoice": {
- "name": "string",
- "address": "string",
- "taxCode": "string"
}, - "storeConfig": {
- "name": "string",
- "countryCode": "string",
- "currencyCode": "string",
- "currencySymbol": "string",
- "locale": "string",
- "timezone": "string",
- "storeUrl": "string",
- "isSlave": true,
- "localSalesOnly": true,
- "isActive": true,
- "hasInstallments": true,
- "imageUrl": "string",
- "layoutType": 0
}, - "paymentLinkInfo": {
- "id": 0,
- "name": "string",
- "linkUrl": "string"
}
}