curl --location --request POST 'https://api.dev.ordermesh.io/v1/order/' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchantId": "1",
"vendorId": "2",
"facilityId": "3",
"facilityName": "Facility test",
"vendorName": "Vendor test",
"customerId": "4",
"customerShippingAddressId": 5,
"merchantPaymentId": "6",
"shippingCountryCode": "US",
"shippingCountryCodeISO": 236,
"shipmentStatus": 1,
"shippingMethod": null,
"isPollingStopped": false,
"orderExternalId": "1",
"safeId": "2",
"currencyCodeISO": 148,
"currencyCode": "USD",
"languageCodeISO": 40,
"languageCode": "US",
"transactionalCostModel": "transactional",
"orderCreatedDate": "2022-04-02T12:00:00",
"merchantOrderTotal": 123,
"merchantPackageTotal": 22,
"merchantTaxTotal": 55,
"merchantShippingTotal": 33,
"packageTotal": 321,
"taxTotal": 55,
"shippingTotal": 12,
"total": 32,
"costTotal": 43,
"costTaxTotal": 77,
"costShippingTotal": 42,
"costShippingTaxTotal": 93,
"orderItemIds": [
"a1f0a9cc-f66c-447f-b770-9b4884e9f02d"
],
"orderItems": [
{
"id": "a1f0a9cc-f66c-447f-b770-9b4884e9f02d",
"sku": "Sku-test",
"vendorSku": "VendorSku-test",
"variantId": "1",
"vendorProductId": "1",
"quantity": 1,
"merchantPrice": {
"currency": "USD",
"amount": 10,
"tax": 5
},
"price": {
"currency": "USD",
"amount": 10,
"tax": 5
}
}
]
}'