Orders
This API simplifies order management with features that enable effortless creation of quick orders, swift shipment requests, and automatic generation of shipping labels.
Last updated
This API simplifies order management with features that enable effortless creation of quick orders, swift shipment requests, and automatic generation of shipping labels.
Last updated
POST
{domain}/api/v1/shipping/order
This API is used to enable quick order and shipment creation and automatic shipping label generation.
Headers
Name | Value |
---|---|
Body
Name | Required | Remarks | Type |
---|---|---|---|
Response
{
"courierName": "Delhivery",
"trackingId": "758912398798",
"label_url": "https://storage.googleapis.com/1.pdf",
"shipmentId": "test1",
"routingCode": "",
"labelStream": "",
"shippingMode": "Express",
"gstin": "36AAACC1206D2ZG",
"transporterID": ""
}
{
"error": {
"errors": [
{
"domain": "global",
"reason": "badRequest",
"message": "Label couldn't be generated due to pincode not serviceable"
}
],
"code": 400,
"message": "Label couldn't be generated due to pincode not serviceable"
}
}
curl --location 'https://wms.eshopbox.com/api/v1/shipping/order' \
--header 'Authorization: Bearer <>' \
--header 'Content-Type: application/json' \
--data-raw '{
"channelId": "CH001",
"customerOrderId": "test1",
"shipmentId": "ORtest1",
"orderDate": "2024-01-01 09:00:00",
"isCOD": true,
"invoiceTotal": 4049.09,
"shippingMode": "Eshopbox Standard",
"invoice": {
"number": "C00011323A000002",
"date": "2024-01-04 09:00:00"
},
"ewaybillNumber": "123422267332",
"balanceDue": 0,
"shippingAddress": {
"customerName": "John Doe",
"addressLine1": "Kapas Kraft Apparels Limited",
"addressLine2": "Banglore",
"city": "bengluru",
"state": "Karnataka",
"pincode": "560005",
"country": "India",
"contactPhone": "9998889998",
"email": "johndoe@gmail.com",
"gstin": "344633257673"
},
"billingIsShipping": true,
"billingAddress": {
"customerName": "John Doe",
"addressLine1": "Kapas Kraft Apparels Limited",
"addressLine2": "Banglore",
"city": "bengluru",
"state": "Karnataka",
"pincode": "560005",
"country": "India",
"contactPhone": "9998889998",
"email": "johndoe@gmail.com"
},
"items": [
{
"itemID": "DB9U03FMGWZ",
"productTitle": "Pace Barnes",
"quantity": 1,
"itemTotal": 4049.09,
"hsn": "ESBGST2",
"mrp": 1500.12,
"discount": 124.50,
"taxPercentage": 12.00,
"itemLength": 12.00,
"itemBreadth": 14.23,
"itemHeight": 56.22,
"itemWeight": 200.64,
"ean": "4550329693705",
"productImageUrl": "https://cdn.filestackcontent.com/NTocrjGYSZqKif1e9W7k"
}
],
"shipmentDimension": {
"length": 13.12,
"breadth": 15.32,
"height": 56.39,
"weight": 201.23
},
"pickupLocation": {
"locationCode": "MCFL00395",
"locationName": "TEST Warehouse",
"companyName": "TEST",
"contactPerson": "SAM",
"contactNumber": "898898989",
"addressLine1": "Khasra no 5/16/2,17, Near Subash Chowk, Sohana Road Village Behrampur",
"addressLine2": "Khasra no 5/16/2,17, Near Subash Chowk",
"city": "Gurgaon",
"state": "HARYANA",
"country" : "India",
"pincode": "121005",
"gstin": "06AAFCM7888Q1ZE"
},
"package": {
"type": "box",
"code": "PC20240613141533",
"description": "Test1",
"length": 45.00,
"breadth": 54.13,
"height": 45.22,
"weight": 45.80
}
}'