Skip to content

Booking API

Single, unified API that can handle all booking types efficiently while ensuring multi-tenancy support. Each tenant (e.g., SMILe, NBA, CARGO, Innofulfill, Quick courier) will be treated as a customer with access to services based on their configurations.

Base URL

[https://sandbox-apis.prayog.io/gateway/booking-service]

Booking API Documentation

Overview

The Booking API is designed to enable seamless booking of types (order bookings(ECOMM, HYPERLOCAL, CARGO, COURIER, etc.), vehicle bookings(CAR, BIKE, etc.), slot bookings).

Base URL

https://sandbox-apis.prayog.io/gateway/booking-service

Available Endpoints

  1. Submit booking information for booking
  2. Listing with optional filtering
  3. Retrieves the complete information of a booking
  4. Update an existing booking’s information
  5. Bulk order Manifest
  6. Bulk order cancel
  7. Webhook
  8. Retrives all shipments tracking against orderId
  9. Bulk Orders Create (File Upload)
  10. Update Bulk Order Manifest Status
  11. Get Bulk Order Details

1. Submit booking information for booking

To create booking.

OrderId format: YYMMDDHHMMSS + 6 random alphanumeric characters. Total Length: 18 characters Example: 241201143052A7B9C2

Components Breakdown: Timestamp Component (12 characters): Format: 060102150405 (YYMMDDHHMMSS) 24 = Year (2024) 12 = Month (December) 01 = Day 14 = Hour (2 PM) 30 = Minutes 52 = Seconds

Random Component (6 characters): Uses charset: ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 Generated using math/rand with nanosecond seed Example: A7B9C2

Method: POST
Endpoint: /orders

Request Headers:

{
api-key: "your_api_key_here",
// OR
Authorization: "Bearer your_token_here",
Content-Type: application/json
}

Request Body Parameters

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
orderIdUUIDYes (System Generated)Unique keyaf273d76-4104-4bf5-afbf-555b6ea6b598
bookingTypeVARCHARYesBooking typeShipment/Vehicle
referenceIdVARCHARNoUnique reference IDREF12345
parcelCategoryVARCHARNoCategory of parcelCOURIER
orderDateTIMESTAMPNoOrder creation date2024-03-30 12:00:00
expectedDeliveryDateTIMESTAMPNoEstimated delivery date2024-04-05 12:00:00
orderTypeVARCHARNoType of orderFORWARD
eWaybillsARRAYNoEwaybills of order[“EWB123456789”, “EWB987654321”]
autoManifestBOOLEANNoAuto manifest flagTRUE
returnableBOOLEANNoReturn eligibilityFALSE
deliveryModeVARCHARNoMode of deliverySURFACE
deliveryPromiseVARCHARNoDelivery promise detailsSTANDARD
orderStatusVARCHARNoStatus of Order (DEFAULT DRAFT)READY_FOR_DISPATCH
reasonVARCHARNoReason for cancellationWrong order
carrierNameVARCHARNoDelivery partner nameSMILE
carrierIDVARCHARNoDelivery partner Id10
subCarrierNameVARCHARNoSub-delivery partner nameDTDC
subCarrierIDVARCHARNoSub-delivery partner id101
vendorCodeVARCHARNoIn case you want us to generate AWB numbers for shipments then this is mandatoryBOOK
utmProductVARCHARNoProduct nameFarma
documentTypeVARCHARNoDocument type. Yo can add document type either on an order level or on shipment levelDocs
metadataJSONBNoMetadata of order{“source”: “WEB_APP”,“created_by”: “user123”}
documentsDocuments[]NoDocuments of order[{“type”: “E-Waybill”, “number”: “DETRFYUG465768”, “url”: “https://drftuygiguh.pdf”}]
taxesTaxes[]NoTaxes of order[{“taxId”: 1, “name”: “GST”, “description”: “18% GST”, “type”: “Percentage”, “value”: 18.00, “chargedAmount”: 180.00}]
discountsDiscounts[]NoDiscounts of order[{“discountId”: 1, “name”: “Festive Offer”, “description”: “Flat 10% off”, “type”: “Percentage”, “value”: 10.00, “chargedAmount”: 50.00}]
addressesAddresses[]NoAddresses[{“addressId”: 1, “type”: “PICKUP”, “zip”: “560001”, “name”: “John Doe”, “phone”: “9876543210”, “email”: “john@example.com”, “street”: “123, Main Street”, “landmark”: “Near Park”, “city”: “Bangalore”, “state”: “Karnataka”, “country”: “India”, “latitude”: 12.9716, “longitude”: 77.5946, “addressName”: “WAREHOUSE”}]
shipmentsShipments[]NoShipments of order[{“shipmentId”: 1, “name”: “Shipment 1”, “description”: “Shipment 1 description”, “type”: “SURFACE”, “value”: 10.00, “chargedAmount”: 50.00}]
vehiclesVehicles[]NoVehicles of order[{“vehicleId”: 1, “name”: “Vehicle 1”, “description”: “Vehicle 1 description”, “type”: “CAR”, “value”: 10.00, “chargedAmount”: 50.00}]
slotsSlots[]NoSlots of order[{“slotId”: 1, “name”: “Slot 1”, “description”: “Slot 1 description”, “type”: “SURFACE”, “value”: 10.00, “chargedAmount”: 50.00}]
paymentsPaymentsNoPayments of order[{“paymentId”: 1, “name”: “Payment 1”, “description”: “Payment 1 description”, “type”: “SURFACE”, “value”: 10.00, “chargedAmount”: 50.00}]

Taxes

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
nameVARCHARNoTax nameGST
descriptionTEXTNoTax details18% GST
typeVARCHARNoType of taxPercentage
valueNUMERICNoTax rate18.00
chargedAmountNUMERICNoTax amount charged180.00

Discounts

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
nameVARCHARNoDiscount nameFestive Offer
typeVARCHARNoDiscount typePercentage
valueNUMERICNoDiscount value10.00
descriptionTEXTNoDiscount detailsFlat 10% off
chargedAmountNUMERICNoDiscounted amount50.00

Addresses

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
typeVARCHARNoAddress typePickup
zipVARCHARNoZip code560001
nameVARCHARNoReceiver nameJohn Doe
phoneVARCHARNoContact number9876543210
emailVARCHARNoEmail addressjohn@example.com
streetVARCHARNoStreet address123, Main Street
landmarkVARCHARNoLandmarkNear Park
cityVARCHARNoCity nameBangalore
stateVARCHARNoState nameKarnataka
countryVARCHARNoCountryIndia
countryCodeVARCHARNoCountry Code91
hubIdNUMERICNoId of hub111
latitudeNUMERICNoLatitude12.9716
longitudeNUMERICNoLongitude77.5946
addressNameVARCHARNoAddress nameWAREHOUSE

Shipments

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
awbNumberVARCHARNoTracking NumberBOOK1
isParentBOOLEANNoParent Shipmenttrue
isChildBOOLEANNoChild Shipmenttrue
shipmentStatusVARCHARNoStatus of shipmentRTO
documentTypeVARCHARNoDocument type. You can add document type either on shipment level or on an order levelDocs
dimensionsJSONBNoShipment dimensions{“length”:10,“width”:5,“height”:4}
physicalWeightNUMERICNoWeight in kg5.2
volumetricWeightNUMERICNoVolumetric weight6.0
noteTEXTNoSpecial instructionsHandle with care
specialServiceARRAYNoSpecial service[“RAW_SHIPMENT”, “EXPRESS”]
packagingIdPackagingNoPackaging{“packagingId”: 1, “type”: “BOX”, “materials”: [“PLASTIC_WRAP”, “THERMAL_INSULATION”], “fragileHandling”: true, “temperatureRange”: { “min”: 2, “max”: 8, “unit”: “C”}}
itemsItems[]NoItems[{“itemId”: 1, “name”: “Laptop”, “quantity”: 2, “weight”: 1.5, “unitPrice”: 50000.00, “sku”: “SKU12345”, “hsnCode”: “84713010”, “dimensions”: {“length”:10,“width”:5,“height”:2}, “description”: “Item description”}]

Packaging

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
typevarcharNopackaging typeBOX
materialsARRAYNomaterials[“PLASTIC_WRAP”, “THERMAL_INSULATION”]
fragileHandlingBOOLEANNoFragile Handlingtrue
temperatureRangeJSONBNoTemperature Range{ “min”: 2, “max”: 8, “unit”: “C”}

Documents

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
typevarcharNoDocument typeINVOICE
urlVARCHARNoDocument URLhttps://example.com/invoice.pdf
numberVARCHARNoDocument numberDETRFYUG465768

Items

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
nameVARCHARNoItem nameLaptop
quantityINTNoNumber of items2
weightNUMERICNoItem weight in kg1.5
unitPriceNUMERICNoPrice per unit50000.00
skuVARCHARNoStock keeping unitSKU12345
hsnCodeVARCHARNoHSN Code84713010
dimensionsJSONBNoItem dimensions{“length”:10,“width”:5,“height”:2}
descriptionTEXTNoDescriptionItem description

Vehicle

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
vehicleIdVARCHARNoVehicle idFTYU24356
rentalBOOLEANNoRentalfalse
purposeVARCHARNoPurposeTo deliver parcels
vehicleTypeVARCHARNoVehicle TypeTRUCK

Slots

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
slotTypeVARCHARNoSlot TypePICKUP
purposeVARCHARNoPurposeWAREHOUSE_LOADING
startTimeTIMESTAMPNoStart Time2024-05-18T10:00:00Z
endTimeTIMESTAMPNoEnd Time2024-05-18T10:00:00Z

Payments

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
finalAmountNUMERICNoFinal payment amount500.00
typeVARCHARNoPayment typePrepaid
statusVARCHARNoPayment statusPAID
currencyVARCHARNoCurrency typeINR
paymentMethodVARCHARNoMode of paymentCredit Card
transactionIdVARCHARNoTransaction IDTXN789456
breakdownIdBreakdownNoBreakdown{“breakdown_id”: 1, “subtotal”: 500.00, “taxes”: [{“taxId”: 1, “name”: “GST”, “description”: “18% GST”, “type”: “Percentage”, “value”: 18.00, “chargedAmount”: 180.00}], “discounts”: [{“discountId”: 1, “name”: “Festive Offer”, “description”: “Flat 10% off”, “type”: “Percentage”, “value”: 10.00, “chargedAmount”: 50.00}], “otherCharges”: [{“otherChargeId”: 1, “name”: “Handling Fee”, “description”: “Handling fee”, “type”: “Percentage”, “value”: 10.00, “chargedAmount”: 50.00}]}
splitPaymentsSplitPayments[]NoSplit payments[{“split_payment_id”: 1, “amount”: 500.00, “status”: “Completed”, “method”: “Credit Card”, “transactionId”: “TXN789456”}]

Breakdown

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
subtotalNUMERICNoAmount500
taxesTaxes[]NoTaxes[{“taxId”: 1, “name”: “GST”, “description”: “18% GST”, “type”: “Percentage”, “value”: 18.00, “chargedAmount”: 180.00}]
discountsDiscounts[]NoDiscounts[{“discountId”: 1, “name”: “Festive Offer”, “description”: “Flat 10% off”, “type”: “Percentage”, “value”: 10.00, “chargedAmount”: 50.00}]
otherChargesOtherCharges[]NoOther Charges[{“otherChargeId”: 1, “name”: “Handling Fee”, “description”: “Handling fee”, “type”: “Percentage”, “value”: 10.00, “chargedAmount”: 50.00}]

OtherCharges

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
nameVARCHARNoTax nameGST
descriptionTEXTNoTax details18% GST
typeVARCHARNoType of taxPercentage
valueNUMERICNoTax rate18.00
chargedAmountNUMERICNoTax amount charged180.00

SplitPayments

Field NameTypeMandatoryDescriptionExample
idSERIALYes (Auto Generated)Primary key1
amountNUMERICNoAmount500
statusVARCHARNoStatusPAID
methodVARCHARNoMethodUPI
transactionIdVARCHARNotransaction IDTXN7890

📝 Note: One order can have multiple shipments. Shipment can have multiple items. If Return, Billing addresses are not preset then we will treat Pickup address as Return address and Delivery address as Billing address.

Sample request CURL:

curl --location 'https://sandbox-apis.prayog.io/gateway/booking-service/orders' \
--header 'Content-Type: application/json' \
--header 'api-key: your_api_key_here' \
--data '{
"referenceId": "REF-12345",
"bookingType": "FORWARD",
"parcelCategory": "COURIER",
"orderDate": "2025-10-29T10:30:00Z",
"expectedDeliveryDate": "2025-11-01T18:00:00Z",
"orderType": "B2C",
"autoManifest": true,
"returnable": true,
"deliveryMode": "EXPRESS",
"deliveryPromise": "STANDARD",
"orderStatus": "CONFIRMED",
"carrierName": "Blue Dart",
"carrierId": "CARRIER_001",
"subCarrierName": "Blue Dart Express",
"subCarrierId": "SUB_CARRIER_001",
"vendorCode": "VENDOR_ABC",
"utmProduct": "web_booking",
"documentType": "INVOICE",
"reason": "Standard delivery",
"eWaybills": [
{
"number": "EWB123456789",
"validUntil": "2025-11-05"
}
],
"metadata": {
"source": "web_portal",
"customerNotes": "Please handle with care",
"specialInstructions": "Call before delivery"
},
"addresses": [
{
"type": "PICKUP",
"name": "John Doe",
"phone": "+919876543210",
"email": "john.doe@example.com",
"street": "123 MG Road",
"landmark": "Near City Mall",
"city": "Mumbai",
"state": "Maharashtra",
"country": "India",
"countryCode": "IN",
"zip": "413118",
"latitude": 19.0760,
"longitude": 72.8777,
"addressName": "Warehouse A",
"hubId": 101
},
{
"type": "DELIVERY",
"name": "Jane Smith",
"phone": "+919876543211",
"email": "jane.smith@example.com",
"street": "456 Brigade Road",
"landmark": "Opposite Coffee Day",
"city": "Bangalore",
"state": "Karnataka",
"country": "India",
"countryCode": "IN",
"zip": "411001",
"latitude": 12.9716,
"longitude": 77.5946,
"addressName": "Home",
"hubId": 102
}
],
"shipments": [
{
"isParent": true,
"isChild": false,
"awbNumber": "AWB123456789",
"thirdPartyAwbNumber": "3RD_AWB_987654",
"shipmentStatus": "PENDING",
"documentType": "INVOICE",
"physicalWeight": 2.5,
"volumetricWeight": 3.0,
"note": "Fragile items inside",
"dimensions": {
"length": 30,
"width": 20,
"height": 15,
"unit": "cm"
},
"specialService": {
"insurance": true,
"codEnabled": false,
"priorityHandling": true
},
"packaging": {
"type": "BOX",
"fragileHandling": true,
"materials": [
"cardboard",
"bubble_wrap"
],
"temperatureRange": {
"min": 15,
"max": 25,
"unit": "celsius"
}
},
"items": [
{
"name": "Laptop",
"quantity": 1,
"weight": 2.0,
"unitPrice": 50000.00,
"sku": "LAP-001",
"hsnCode": "8471",
"description": "Dell XPS 13 Laptop",
"dimensions": {
"length": 28,
"width": 18,
"height": 2,
"unit": "cm"
},
"taxes": [
{
"type": "GST",
"name": "CGST",
"value": 4500.00,
"percentage": 9.0
},
{
"type": "GST",
"name": "SGST",
"value": 4500.00,
"percentage": 9.0
}
],
"discounts": [
{
"type": "PROMOTIONAL",
"name": "Festival Discount",
"value": 5000.00,
"percentage": 10.0
}
]
},
{
"name": "Mouse",
"quantity": 1,
"weight": 0.5,
"unitPrice": 500.00,
"sku": "MOUSE-001",
"hsnCode": "8471",
"description": "Wireless Mouse",
"dimensions": {
"length": 10,
"width": 6,
"height": 4,
"unit": "cm"
},
"taxes": [
{
"type": "GST",
"name": "CGST",
"value": 45.00,
"percentage": 9.0
},
{
"type": "GST",
"name": "SGST",
"value": 45.00,
"percentage": 9.0
}
]
}
]
}
],
"payment": {
"finalAmount": 50590.00,
"type": "PREPAID",
"status": "PENDING",
"currency": "INR",
"paymentMethod": "CREDIT_CARD",
"transactionId": "TXN_123456789",
"breakdown": {
"subTotal": 50500.00,
"taxes": [
{
"type": "GST",
"name": "CGST",
"value": 4545.00,
"percentage": 9.0
},
{
"type": "GST",
"name": "SGST",
"value": 4545.00,
"percentage": 9.0
}
],
"discounts": [
{
"type": "PROMOTIONAL",
"name": "Festival Sale",
"value": 5000.00,
"percentage": 10.0
}
],
"otherCharges": [
{
"type": "SHIPPING",
"name": "Shipping Charges",
"value": 100.00
},
{
"type": "PACKAGING",
"name": "Packaging Charges",
"value": 50.00
}
]
},
"splitPayments": [
{
"amount": 30000.00,
"method": "CREDIT_CARD",
"status": "SUCCESS",
"transactionId": "SPLIT_TXN_001"
},
{
"amount": 20590.00,
"method": "WALLET",
"status": "SUCCESS",
"transactionId": "SPLIT_TXN_002"
}
]
},
"documents": [
{
"type": "INVOICE",
"number": "INV-2025-001",
"url": "https://example.com/documents/invoice-001.pdf"
},
{
"type": "PACKING_LIST",
"number": "PL-2025-001",
"url": "https://example.com/documents/packing-list-001.pdf"
}
],
"taxes": [
{
"type": "GST",
"name": "Total GST",
"value": 9090.00,
"percentage": 18.0
}
],
"discounts": [
{
"type": "PROMOTIONAL",
"name": "New Customer Discount",
"value": 5000.00,
"percentage": 10.0
}
]
}'

Sample Success Response

{
"status": "success",
"statusCode": 201,
"message": "order created successfully",
"data": {
"id": 27604,
"bookingType": "FORWARD",
"orderId": "251029111208F2JM7N",
"referenceId": "REF-12345",
"parcelCategory": "COURIER",
"orderDate": "2025-10-29T10:30:00Z",
"expectedDeliveryDate": "2025-11-01T18:00:00Z",
"orderType": "B2C",
"eWaybills": [
{
"number": "EWB123456789",
"validUntil": "2025-11-05"
}
],
"autoManifest": true,
"returnable": true,
"deliveryMode": "EXPRESS",
"deliveryPromise": "STANDARD",
"orderStatus": "CONFIRMED",
"carrierName": "Blue Dart",
"carrierId": "CARRIER_001",
"subCarrierName": "Blue Dart Express",
"subCarrierId": "SUB_CARRIER_001",
"vendorCode": "UVWU",
"reason": "Standard delivery",
"utmProduct": "web_booking",
"documentType": "INVOICE",
"metadata": {
"createdBy": "41334d3a-0011-7063-64c9-2df0d350dad8",
"customerNotes": "Please handle with care",
"source": "web_portal",
"specialInstructions": "Call before delivery"
},
"createdAt": "2025-10-29T11:12:08.02033869Z",
"updatedAt": "2025-10-29T11:12:08.02033869Z",
"addresses": [
{
"id": 109896,
"type": "PICKUP",
"zip": "413118",
"name": "John Doe",
"phone": "+919876543210",
"email": "john.doe@example.com",
"street": "123 MG Road",
"landmark": "Near City Mall",
"city": "Mumbai",
"state": "Maharashtra",
"country": "India",
"countryCode": "IN",
"hubId": 101,
"latitude": 19.076,
"longitude": 72.8777,
"addressName": "Warehouse A"
},
{
"id": 109897,
"type": "DELIVERY",
"zip": "411001",
"name": "Jane Smith",
"phone": "+919876543211",
"email": "jane.smith@example.com",
"street": "456 Brigade Road",
"landmark": "Opposite Coffee Day",
"city": "Bangalore",
"state": "Karnataka",
"country": "India",
"countryCode": "IN",
"hubId": 102,
"latitude": 12.9716,
"longitude": 77.5946,
"addressName": "Home"
}
],
"documents": [
{
"id": 2329,
"type": "INVOICE",
"number": "INV-2025-001",
"url": "https://example.com/documents/invoice-001.pdf"
},
{
"id": 2330,
"type": "PACKING_LIST",
"number": "PL-2025-001",
"url": "https://example.com/documents/packing-list-001.pdf"
}
],
"shipments": [
{
"id": 127844,
"isParent": true,
"awbNumber": "AWB123456789",
"thirdPartyAwbNumber": "3RD_AWB_987654",
"shipmentStatus": "PENDING",
"documentType": "INVOICE",
"dimensions": {
"height": 15,
"length": 30,
"unit": "cm",
"width": 20
},
"physicalWeight": 2.5,
"volumetricWeight": 3,
"note": "Fragile items inside",
"specialService": {
"codEnabled": false,
"insurance": true,
"priorityHandling": true
},
"packaging": {
"id": 24,
"type": "BOX",
"materials": [
"cardboard",
"bubble_wrap"
],
"fragileHandling": true,
"temperatureRange": {
"max": 25,
"min": 15,
"unit": "celsius"
}
},
"items": [
{
"id": 168739,
"name": "Laptop",
"quantity": 1,
"weight": 2,
"unitPrice": 50000,
"sku": "LAP-001",
"hsnCode": "8471",
"dimensions": {
"height": 2,
"length": 28,
"unit": "cm",
"width": 18
},
"description": "Dell XPS 13 Laptop",
"taxes": [
{
"id": 7125,
"name": "CGST",
"type": "GST",
"value": 4500
},
{
"id": 7126,
"name": "SGST",
"type": "GST",
"value": 4500
}
],
"discounts": [
{
"id": 1056,
"name": "Festival Discount",
"type": "PROMOTIONAL",
"value": 5000
}
]
},
{
"id": 168740,
"name": "Mouse",
"quantity": 1,
"weight": 0.5,
"unitPrice": 500,
"sku": "MOUSE-001",
"hsnCode": "8471",
"dimensions": {
"height": 4,
"length": 10,
"unit": "cm",
"width": 6
},
"description": "Wireless Mouse",
"taxes": [
{
"id": 7127,
"name": "CGST",
"type": "GST",
"value": 45
},
{
"id": 7128,
"name": "SGST",
"type": "GST",
"value": 45
}
],
"discounts": null
}
]
}
],
"vehicles": null,
"slots": null,
"payment": {
"id": 27365,
"finalAmount": 50590,
"type": "PREPAID",
"status": "PENDING",
"currency": "INR",
"paymentMethod": "CREDIT_CARD",
"transactionId": "TXN_123456789",
"breakdown": {
"id": 3342,
"subTotal": 50500,
"taxes": [
{
"id": 7123,
"name": "CGST",
"type": "GST",
"value": 4545
},
{
"id": 7124,
"name": "SGST",
"type": "GST",
"value": 4545
}
],
"discounts": [
{
"id": 1055,
"name": "Festival Sale",
"type": "PROMOTIONAL",
"value": 5000
}
],
"otherCharges": [
{
"id": 10733,
"name": "Shipping Charges",
"type": "SHIPPING",
"value": 100
},
{
"id": 10734,
"name": "Packaging Charges",
"type": "PACKAGING",
"value": 50
}
]
},
"splitPayments": [
{
"id": 43,
"amount": 30000,
"status": "SUCCESS",
"method": "CREDIT_CARD",
"transactionId": "SPLIT_TXN_001"
},
{
"id": 44,
"amount": 20590,
"status": "SUCCESS",
"method": "WALLET",
"transactionId": "SPLIT_TXN_002"
}
]
},
"taxes": [
{
"id": 7129,
"name": "Total GST",
"type": "GST",
"value": 9090
}
],
"discounts": [
{
"id": 1057,
"name": "New Customer Discount",
"type": "PROMOTIONAL",
"value": 5000
}
],
"orderSource": {
"id": 0
}
}
}

Sample Error Response

{
"status": "error",
"statusCode": 401,
"message": "prospay rates transaction failed: Please login to access this resource."
}
{
"status": "error",
"statusCode": 500,
"message": "serviceability check failed: serviceability check failed: API returned success=false"
}

2. Listing with optional filtering

To get the bookings of current tenant.

Method: GET
Endpoint: /orders

Request Headers:

{
api-key: "your_api_key_here",
// OR
Authorization: "Bearer your_token_here",
Content-Type: application/json
}

Request Query Parameters

Field NameTypeMandatoryDescriptionExample
pageNUMERICNoPagination1
limitNUMERICNoPagination10
orderTypeVARCHARNoType of orderREVERSE
deliveryModeVARCHARNoMode of deliveryAIR
destinationZipNUMERICNoDelivery pincode413102
paymentTypeVARCHARNoType of paymentCOD
destinationCityVARCHARNoDelivery cityPune
orderIdVARCHARNoId of orderTEST1
startDateDATENoStart Date2025-05-20
endDateDATENoEnd date2025-05-28
sortKeyVARCHARNoKey on which you need to apply sortdeliveryMode
sortOrderVARCHARNoOrder of sortDESC
awbNumberVARCHARNoTracking numberBOOK0000000262
orderStatusVARCHARNoStatus of ordersREADY_FOR_DISPATCH, DRAFT
deliveryPromiseVARCHARNoDelivery promiseSTANDARD, FAST_TRACK, VALUE_PLUS
parcelCategoryVARCHARNoCategory of parcelINTERNATIONAL
createdByVARCHARNoCreated byuser123
filterByCurrentUserBOOLEANNoIf you want to fetch all orders of current user then send this key truetrue
paymentStatusVARCHARNoStatus of paymentpaid

Sample request CURL:

curl --location 'https://sandbox-apis.prayog.io/gateway/booking-service/orders?page=1&limit=20&orderStatus=CONFIRMED' \
--header 'api-key: your_api_key_here'

Sample Success Response

{
"status": "success",
"statusCode": 200,
"message": "orders fetched successfully",
"data": [
{
"id": 27605,
"bookingType": "FORWARD",
"orderId": "2510291113270M3R8H",
"referenceId": "REF-12345",
"parcelCategory": "COURIER",
"orderDate": "2025-10-29T10:30:00Z",
"expectedDeliveryDate": "2025-11-01T18:00:00Z",
"orderType": "B2C",
"eWaybills": [
{
"number": "EWB123456789",
"validUntil": "2025-11-05"
}
],
"autoManifest": true,
"returnable": true,
"deliveryMode": "EXPRESS",
"deliveryPromise": "STANDARD",
"orderStatus": "CONFIRMED",
"carrierName": "Blue Dart",
"carrierId": "CARRIER_001",
"subCarrierName": "Blue Dart Express",
"subCarrierId": "SUB_CARRIER_001",
"reason": "Standard delivery",
"utmProduct": "web_booking",
"documentType": "INVOICE",
"metadata": {
"source": "web_portal",
"createdBy": "41334d3a-0011-7063-64c9-2df0d350dad8",
"customerNotes": "Please handle with care",
"specialInstructions": "Call before delivery"
},
"createdAt": "2025-10-29T11:13:27.607294Z",
"updatedAt": "2025-10-29T11:13:27.607294Z",
"addresses": [
{
"id": 109898,
"type": "PICKUP",
"zip": "413118",
"name": "John Doe",
"phone": "+919876543210",
"email": "john.doe@example.com",
"street": "123 MG Road",
"landmark": "Near City Mall",
"city": "Mumbai",
"state": "Maharashtra",
"country": "India",
"countryCode": "IN",
"hubId": 101,
"latitude": 19.076,
"longitude": 72.8777,
"addressName": "Warehouse A"
},
{
"id": 109899,
"type": "DELIVERY",
"zip": "411001",
"name": "Jane Smith",
"phone": "+919876543211",
"email": "jane.smith@example.com",
"street": "456 Brigade Road",
"landmark": "Opposite Coffee Day",
"city": "Bangalore",
"state": "Karnataka",
"country": "India",
"countryCode": "IN",
"hubId": 102,
"latitude": 12.9716,
"longitude": 77.5946,
"addressName": "Home"
}
],
"documents": [
{
"id": 2331,
"type": "INVOICE",
"number": "INV-2025-001",
"url": "https://example.com/documents/invoice-001.pdf"
},
{
"id": 2332,
"type": "PACKING_LIST",
"number": "PL-2025-001",
"url": "https://example.com/documents/packing-list-001.pdf"
}
],
"shipments": [
{
"id": 127845,
"isParent": true,
"awbNumber": "AWB123456789",
"thirdPartyAwbNumber": "3RD_AWB_987654",
"shipmentStatus": "PENDING",
"documentType": "INVOICE",
"dimensions": {
"unit": "cm",
"width": 20,
"height": 15,
"length": 30
},
"physicalWeight": 2.5,
"volumetricWeight": 3,
"note": "Fragile items inside",
"specialService": {
"insurance": true,
"codEnabled": false,
"priorityHandling": true
},
"packaging": {
"id": 25,
"type": "BOX",
"materials": [
"cardboard",
"bubble_wrap"
],
"fragileHandling": true,
"temperatureRange": {
"max": 25,
"min": 15,
"unit": "celsius"
}
},
"items": [
{
"id": 168741,
"name": "Laptop",
"quantity": 1,
"weight": 2,
"unitPrice": 50000,
"sku": "LAP-001",
"hsnCode": "8471",
"dimensions": {
"unit": "cm",
"width": 18,
"height": 2,
"length": 28
},
"description": "Dell XPS 13 Laptop",
"taxes": [
{
"id": 7132,
"name": "CGST",
"type": "GST",
"value": 4500
},
{
"id": 7133,
"name": "SGST",
"type": "GST",
"value": 4500
}
],
"discounts": [
{
"id": 1059,
"name": "Festival Discount",
"type": "PROMOTIONAL",
"value": 5000
}
]
},
{
"id": 168742,
"name": "Mouse",
"quantity": 1,
"weight": 0.5,
"unitPrice": 500,
"sku": "MOUSE-001",
"hsnCode": "8471",
"dimensions": {
"unit": "cm",
"width": 6,
"height": 4,
"length": 10
},
"description": "Wireless Mouse",
"taxes": [
{
"id": 7134,
"name": "CGST",
"type": "GST",
"value": 45
},
{
"id": 7135,
"name": "SGST",
"type": "GST",
"value": 45
}
],
"discounts": []
}
]
}
],
"vehicles": [],
"slots": [],
"payment": {
"id": 27366,
"finalAmount": 50590,
"type": "PREPAID",
"status": "PENDING",
"currency": "INR",
"paymentMethod": "CREDIT_CARD",
"transactionId": "TXN_123456789",
"breakdown": {
"id": 3343,
"subTotal": 50500,
"taxes": [
{
"id": 7130,
"name": "CGST",
"type": "GST",
"value": 4545
},
{
"id": 7131,
"name": "SGST",
"type": "GST",
"value": 4545
}
],
"discounts": [
{
"id": 1058,
"name": "Festival Sale",
"type": "PROMOTIONAL",
"value": 5000
}
],
"otherCharges": [
{
"id": 10735,
"name": "Shipping Charges",
"type": "SHIPPING",
"value": 100
},
{
"id": 10736,
"name": "Packaging Charges",
"type": "PACKAGING",
"value": 50
}
]
},
"splitPayments": [
{
"id": 45,
"amount": 30000,
"status": "SUCCESS",
"method": "CREDIT_CARD",
"transactionId": "SPLIT_TXN_001"
},
{
"id": 46,
"amount": 20590,
"status": "SUCCESS",
"method": "WALLET",
"transactionId": "SPLIT_TXN_002"
}
]
},
"taxes": [
{
"id": 7136,
"name": "Total GST",
"type": "GST",
"value": 9090
}
],
"discounts": [
{
"id": 1060,
"name": "New Customer Discount",
"type": "PROMOTIONAL",
"value": 5000
}
],
"orderSource": {
"id": 0
}
},
{
"id": 27604,
"bookingType": "FORWARD",
"orderId": "251029111208F2JM7N",
"referenceId": "REF-12345",
"parcelCategory": "COURIER",
"orderDate": "2025-10-29T10:30:00Z",
"expectedDeliveryDate": "2025-11-01T18:00:00Z",
"orderType": "B2C",
"eWaybills": [
{
"number": "EWB123456789",
"validUntil": "2025-11-05"
}
],
"autoManifest": true,
"returnable": true,
"deliveryMode": "EXPRESS",
"deliveryPromise": "STANDARD",
"orderStatus": "CONFIRMED",
"carrierName": "Blue Dart",
"carrierId": "CARRIER_001",
"subCarrierName": "Blue Dart Express",
"subCarrierId": "SUB_CARRIER_001",
"reason": "Standard delivery",
"utmProduct": "web_booking",
"documentType": "INVOICE",
"metadata": {
"source": "web_portal",
"createdBy": "41334d3a-0011-7063-64c9-2df0d350dad8",
"customerNotes": "Please handle with care",
"specialInstructions": "Call before delivery"
},
"createdAt": "2025-10-29T11:12:08.020338Z",
"updatedAt": "2025-10-29T11:12:08.020338Z",
"addresses": [
{
"id": 109896,
"type": "PICKUP",
"zip": "413118",
"name": "John Doe",
"phone": "+919876543210",
"email": "john.doe@example.com",
"street": "123 MG Road",
"landmark": "Near City Mall",
"city": "Mumbai",
"state": "Maharashtra",
"country": "India",
"countryCode": "IN",
"hubId": 101,
"latitude": 19.076,
"longitude": 72.8777,
"addressName": "Warehouse A"
},
{
"id": 109897,
"type": "DELIVERY",
"zip": "411001",
"name": "Jane Smith",
"phone": "+919876543211",
"email": "jane.smith@example.com",
"street": "456 Brigade Road",
"landmark": "Opposite Coffee Day",
"city": "Bangalore",
"state": "Karnataka",
"country": "India",
"countryCode": "IN",
"hubId": 102,
"latitude": 12.9716,
"longitude": 77.5946,
"addressName": "Home"
}
],
"documents": [
{
"id": 2329,
"type": "INVOICE",
"number": "INV-2025-001",
"url": "https://example.com/documents/invoice-001.pdf"
},
{
"id": 2330,
"type": "PACKING_LIST",
"number": "PL-2025-001",
"url": "https://example.com/documents/packing-list-001.pdf"
}
],
"shipments": [
{
"id": 127844,
"isParent": true,
"awbNumber": "AWB123456789",
"thirdPartyAwbNumber": "3RD_AWB_987654",
"shipmentStatus": "PENDING",
"documentType": "INVOICE",
"dimensions": {
"unit": "cm",
"width": 20,
"height": 15,
"length": 30
},
"physicalWeight": 2.5,
"volumetricWeight": 3,
"note": "Fragile items inside",
"specialService": {
"insurance": true,
"codEnabled": false,
"priorityHandling": true
},
"packaging": {
"id": 24,
"type": "BOX",
"materials": [
"cardboard",
"bubble_wrap"
],
"fragileHandling": true,
"temperatureRange": {
"max": 25,
"min": 15,
"unit": "celsius"
}
},
"items": [
{
"id": 168739,
"name": "Laptop",
"quantity": 1,
"weight": 2,
"unitPrice": 50000,
"sku": "LAP-001",
"hsnCode": "8471",
"dimensions": {
"unit": "cm",
"width": 18,
"height": 2,
"length": 28
},
"description": "Dell XPS 13 Laptop",
"taxes": [
{
"id": 7125,
"name": "CGST",
"type": "GST",
"value": 4500
},
{
"id": 7126,
"name": "SGST",
"type": "GST",
"value": 4500
}
],
"discounts": [
{
"id": 1056,
"name": "Festival Discount",
"type": "PROMOTIONAL",
"value": 5000
}
]
},
{
"id": 168740,
"name": "Mouse",
"quantity": 1,
"weight": 0.5,
"unitPrice": 500,
"sku": "MOUSE-001",
"hsnCode": "8471",
"dimensions": {
"unit": "cm",
"width": 6,
"height": 4,
"length": 10
},
"description": "Wireless Mouse",
"taxes": [
{
"id": 7127,
"name": "CGST",
"type": "GST",
"value": 45
},
{
"id": 7128,
"name": "SGST",
"type": "GST",
"value": 45
}
],
"discounts": []
}
]
}
],
"vehicles": [],
"slots": [],
"payment": {
"id": 27365,
"finalAmount": 50590,
"type": "PREPAID",
"status": "PENDING",
"currency": "INR",
"paymentMethod": "CREDIT_CARD",
"transactionId": "TXN_123456789",
"breakdown": {
"id": 3342,
"subTotal": 50500,
"taxes": [
{
"id": 7123,
"name": "CGST",
"type": "GST",
"value": 4545
},
{
"id": 7124,
"name": "SGST",
"type": "GST",
"value": 4545
}
],
"discounts": [
{
"id": 1055,
"name": "Festival Sale",
"type": "PROMOTIONAL",
"value": 5000
}
],
"otherCharges": [
{
"id": 10733,
"name": "Shipping Charges",
"type": "SHIPPING",
"value": 100
},
{
"id": 10734,
"name": "Packaging Charges",
"type": "PACKAGING",
"value": 50
}
]
},
"splitPayments": [
{
"id": 43,
"amount": 30000,
"status": "SUCCESS",
"method": "CREDIT_CARD",
"transactionId": "SPLIT_TXN_001"
},
{
"id": 44,
"amount": 20590,
"status": "SUCCESS",
"method": "WALLET",
"transactionId": "SPLIT_TXN_002"
}
]
},
"taxes": [
{
"id": 7129,
"name": "Total GST",
"type": "GST",
"value": 9090
}
],
"discounts": [
{
"id": 1057,
"name": "New Customer Discount",
"type": "PROMOTIONAL",
"value": 5000
}
],
"orderSource": {
"id": 0
}
}
],
"count": 8,
"page": 1,
"limit": 10,
"totalPages": 1,
"currentPage": 1
}

Sample Error Response

{
"error": "Internal Server Error",
"status": 500
}

3. Retrieves the complete information of a booking

Retrieves detailed information about a specific booking.

Method: GET
Endpoint: /orders/{orderId}

Request Headers:

{
api-key: "your_api_key_here",
// OR
Authorization: "Bearer your_token_here",
Content-Type: application/json
}

Request Query Parameters

Field NameTypeMandatoryDescriptionExample
orderIdVARCHARYESOrder Id32465CFGVH

Sample request CURL:

curl --location 'https://sandbox-apis.prayog.io/gateway/booking-service/orders/2509011137385GU6VT' \
--header 'api-key: your_api_key_here' \

Sample Success Response

{
"data": {
"id": 39,
"orderId": "9a073ac7-5bb9-4bee-9430-8422835e03f5",
"parcelCategory": "COURIER",
"orderDate": "2024-05-17T08:30:30Z",
"expectedDeliveryDate": "2024-05-20T08:30:30Z",
"orderType": "REVERSE",
"eWaybills": [
"EWB123456789",
"EWB987654321"
],
"autoManifest": true,
"returnable": true,
"deliveryMode": "AIR",
"deliveryPromise": "valuePlus",
"referenceId": "CFYGUYIHO",
"orderStatus": "DRAFT",
"reason": "Wrong order"
"metadata": {
"source": "WEB_APP",
"createdBy": "user123"
},
"createdAt": "2025-05-21T18:05:00.959659+05:30",
"updatedAt": "2025-05-21T18:05:00.959659+05:30",
"addresses": [
{
"id": 153,
"orderId": 39,
"type": "PICKUP",
"zip": "411028",
"name": "Rohan",
"phone": "6313131313",
"email": "rohan@yopmail.com",
"street": "32, pocket D, sector 8",
"landmark": "Makarba",
"city": "Ahmedabad",
"state": "Gujarat",
"country": "India",
"latitude": 27.745435,
"longitude": 77.7543543,
"addressName": "WAREHOUSE",
"createdAt": "2025-05-21T18:05:01.004923+05:30",
"updatedAt": "2025-05-21T18:05:01.004923+05:30"
},
{
"id": 154,
"orderId": 39,
"type": "DELIVERY",
"zip": "411028",
"name": "Rohan",
"phone": "6313131313",
"email": "rohan@yopmail.com",
"street": "32, pocket D, sector 8",
"landmark": "Makarba",
"city": "Baramati",
"state": "Gujarat",
"country": "India",
"latitude": 27.745435,
"longitude": 77.7543543,
"createdAt": "2025-05-21T18:05:01.025864+05:30",
"updatedAt": "2025-05-21T18:05:01.025864+05:30"
},
{
"id": 155,
"orderId": 39,
"type": "BILLING",
"zip": "382418",
"name": "Rohan",
"phone": "6313131313",
"email": "rohan@yopmail.com",
"street": "32, pocket D, sector 8",
"landmark": "Makarba",
"city": "Ahmedabad",
"state": "Gujarat",
"country": "India",
"latitude": 27.745435,
"longitude": 77.7543543,
"createdAt": "2025-05-21T18:05:01.044634+05:30",
"updatedAt": "2025-05-21T18:05:01.044634+05:30"
},
{
"id": 156,
"orderId": 39,
"type": "RETURN",
"zip": "382418",
"name": "Rohan",
"phone": "6313131313",
"email": "rohan@yopmail.com",
"street": "32, pocket D, sector 8",
"landmark": "Makarba",
"city": "Ahmedabad",
"state": "Gujarat",
"country": "India",
"latitude": 27.745435,
"longitude": 77.7543543,
"createdAt": "2025-05-21T18:05:01.066159+05:30",
"updatedAt": "2025-05-21T18:05:01.066159+05:30"
}
],
"documents": [
{
"id": 44,
"orderId": 39,
"type": "E-Waybill",
"number": "DETRFYUG465768",
"url": "https://drftuygiguh.pdf",
"createdAt": "2025-05-21T18:05:01.088346+05:30",
"updatedAt": "2025-05-21T18:05:01.088346+05:30"
}
],
"shipments": [
{
"id": 60,
"orderId": 39,
"awbNumber": "BOOK0000000104",
"dimensions": {
"length": 30,
"width": 20,
"height": 10
},
"physicalWeight": 300,
"volumetricWeight": 400,
"isParent": true,
"isChild": false
"note": "Handle with care",
"specialService": [
"RAW_SHIPMENT",
"EXPRESS"
],
"packaging": {
"id": 40,
"shipmentId": 60,
"type": "BOX",
"materials": [
"PLASTIC_WRAP",
"THERMAL_INSULATION"
],
"fragileHandling": true,
"temperatureRange": {
"min": 2,
"max": 8,
"unit": "C"
},
"createdAt": "2025-05-21T18:05:01.125301+05:30",
"updatedAt": "2025-05-21T18:05:01.125301+05:30"
},
"items": [
{
"id": 105,
"shipmentId": 60,
"name": "Paper Bag",
"quantity": 5,
"weight": 60,
"unitPrice": 255,
"sku": "PA1475",
"hsnCode": "91308",
"dimensions": {
"length": 30,
"width": 20,
"height": 10
},
"description": "Item description",
"taxes": null,
"discounts": null,
"createdAt": "2025-05-21T18:05:01.145789+05:30",
"updatedAt": "2025-05-21T18:05:01.145789+05:30"
},
{
"id": 106,
"shipmentId": 60,
"name": "Paper Bag",
"quantity": 5,
"weight": 60,
"unitPrice": 255,
"sku": "PA1475",
"hsnCode": "91308",
"dimensions": {
"length": 30,
"width": 20,
"height": 10
},
"description": "Item description",
"taxes": null,
"discounts": null,
"createdAt": "2025-05-21T18:05:01.167686+05:30",
"updatedAt": "2025-05-21T18:05:01.167686+05:30"
}
],
"createdAt": "2025-05-21T18:05:01.10796+05:30",
"updatedAt": "2025-05-21T18:05:01.10796+05:30"
}
],
"vehicles": [
{
"id": 19,
"orderId": 39,
"vehicleId": "FTYU24356",
"purpose": "To deliver parcels",
"vehicleType": "TRUCK",
"createdAt": "2025-05-21T18:05:01.188219+05:30",
"updatedAt": "2025-05-21T18:05:01.188219+05:30"
}
],
"slots": [
{
"id": 19,
"orderId": 39,
"slotType": "PICKUP",
"purpose": "WAREHOUSE_LOADING",
"startTime": "2024-05-18T10:00:00Z",
"endTime": "2024-05-18T12:00:00Z",
"createdAt": "2025-05-21T18:05:01.206215+05:30",
"updatedAt": "2025-05-21T18:05:01.206215+05:30"
}
],
"payment": {
"id": 39,
"orderId": 39,
"finalAmount": 1500,
"type": "COD",
"status": "PAID",
"currency": "INR",
"paymentMethod": "CREDIT_CARD",
"transactionId": "TXN123456",
"breakdown": {
"id": 39,
"paymentId": 39,
"subTotal": 1500,
"taxes": [
{
"id": 115,
"orderId": 0,
"itemId": 0,
"breakdownId": 39,
"name": "Gst",
"description": "Gst charges",
"type": "PERCENTAGE",
"value": 18,
"chargedAmount": 20,
"createdAt": "2025-05-21T18:05:01.269018+05:30",
"updatedAt": "2025-05-21T18:05:01.269018+05:30"
}
],
"discounts": [
{
"id": 95,
"orderId": 0,
"itemId": 0,
"breakdownId": 39,
"name": "Coupon",
"type": "FIXED_AMOUNT",
"value": 20,
"description": "Festival Discount Coupon",
"createdAt": "2025-05-21T18:05:01.287634+05:30",
"updatedAt": "2025-05-21T18:05:01.287634+05:30"
}
],
"otherCharges": [
{
"id": 110,
"breakdownId": 39,
"name": "Shipping Charges",
"type": "FIXED_AMOUNT",
"value": 55,
"description": "Order delivery charges",
"chargedAmount": 20,
"createdAt": "2025-05-21T18:05:01.305898+05:30",
"updatedAt": "2025-05-21T18:05:01.305898+05:30"
}
],
"createdAt": "2025-05-21T18:05:01.249032+05:30",
"updatedAt": "2025-05-21T18:05:01.249032+05:30"
},
"splitPayments": [
{
"id": 19,
"paymentId": 39,
"amount": 500,
"status": "PAID",
"method": "UPI",
"transactionId": "TXN7890",
"createdAt": "2025-05-21T18:05:01.325974+05:30",
"updatedAt": "2025-05-21T18:05:01.325974+05:30"
}
],
"createdAt": "2025-05-21T18:05:01.223803+05:30",
"updatedAt": "2025-05-21T18:05:01.223803+05:30"
},
"taxes": [
{
"id": 116,
"orderId": 39,
"itemId": 0,
"breakdownId": 0,
"name": "Gst",
"description": "Gst charges",
"type": "PERCENTAGE",
"value": 18,
"chargedAmount": 20,
"createdAt": "2025-05-21T18:05:01.345161+05:30",
"updatedAt": "2025-05-21T18:05:01.345161+05:30"
}
],
"discounts": [
{
"id": 96,
"orderId": 39,
"itemId": 0,
"breakdownId": 0,
"name": "Coupon",
"type": "FIXED_AMOUNT / Percentage / Rupees",
"value": 20,
"description": "Festival Discount Coupon",
"chargedAmount": 20,
"createdAt": "2025-05-21T18:05:01.36349+05:30",
"updatedAt": "2025-05-21T18:05:01.36349+05:30"
}
]
},
"message": "Order fetched successfully",
"status": 200
}

Sample Error Response

{
"status": "error",
"error": "Order not found.",
"statusCode": 404
}
{
"error": "Internal Server Error",
"status": 500
}

4. Update an existing booking information

Updates an existing booking with new information.

Method: PATCH
Endpoint: /orders/{orderId}

Request Headers:

{
api-key: "your_api_key_here",
// OR
Authorization: "Bearer your_token_here",
Content-Type: application/json
}

Sample request CURL:

curl --location --request PATCH 'https://sandbox-apis.prayog.io/gateway/booking-service/orders/2510291113270M3R8H' \
--header 'api-key: your_api_key_here' \
--header 'Content-Type: application/json' \
--data '{
"carrierName": "DHL",
"carrierId": "DHL001",
"subCarrierName": "DHL Express",
"subCarrierId": "DHLEXP001",
"reason": "Order confirmed by customer",
"metadata": {
"note": "Updated via API",
"priority": "high"
}
}'

Sample response

{
"status": "success",
"statusCode": 200,
"message": "order updated successfully",
"data": {
"id": 27605,
"bookingType": "FORWARD",
"orderId": "2510291113270M3R8H",
"referenceId": "REF-12345",
"parcelCategory": "COURIER",
"orderDate": "2025-10-29T10:30:00Z",
"expectedDeliveryDate": "2025-11-01T18:00:00Z",
"orderType": "B2C",
"eWaybills": [
{
"number": "EWB123456789",
"validUntil": "2025-11-05"
}
],
"autoManifest": true,
"returnable": true,
"deliveryMode": "EXPRESS",
"deliveryPromise": "STANDARD",
"orderStatus": "CONFIRMED",
"carrierName": "Blue Dart",
"carrierId": "CARRIER_001",
"subCarrierName": "Blue Dart Express",
"subCarrierId": "SUB_CARRIER_001",
"reason": "Standard delivery",
"utmProduct": "web_booking",
"documentType": "INVOICE",
"metadata": {
"note": "Updated via API",
"priority": "high"
},
"createdAt": "2025-10-29T11:13:27.607294Z",
"updatedAt": "2025-10-29T12:29:51.652074Z",
"addresses": [
{
"id": 109898,
"type": "PICKUP",
"zip": "413118",
"name": "John Doe",
"phone": "+919876543210",
"email": "john.doe@example.com",
"street": "123 MG Road",
"landmark": "Near City Mall",
"city": "Mumbai",
"state": "Maharashtra",
"country": "India",
"countryCode": "IN",
"hubId": 101,
"latitude": 19.076,
"longitude": 72.8777,
"addressName": "Warehouse A"
},
{
"id": 109899,
"type": "DELIVERY",
"zip": "411001",
"name": "Jane Smith",
"phone": "+919876543211",
"email": "jane.smith@example.com",
"street": "456 Brigade Road",
"landmark": "Opposite Coffee Day",
"city": "Bangalore",
"state": "Karnataka",
"country": "India",
"countryCode": "IN",
"hubId": 102,
"latitude": 12.9716,
"longitude": 77.5946,
"addressName": "Home"
}
],
"documents": [
{
"id": 2331,
"type": "INVOICE",
"number": "INV-2025-001",
"url": "https://example.com/documents/invoice-001.pdf"
},
{
"id": 2332,
"type": "PACKING_LIST",
"number": "PL-2025-001",
"url": "https://example.com/documents/packing-list-001.pdf"
}
],
"shipments": [
{
"id": 127845,
"isParent": true,
"awbNumber": "AWB123456789",
"thirdPartyAwbNumber": "3RD_AWB_987654",
"shipmentStatus": "PENDING",
"documentType": "INVOICE",
"dimensions": {
"unit": "cm",
"width": 20,
"height": 15,
"length": 30
},
"physicalWeight": 2.5,
"volumetricWeight": 3,
"note": "Fragile items inside",
"specialService": {
"insurance": true,
"codEnabled": false,
"priorityHandling": true
},
"packaging": {
"id": 25,
"type": "BOX",
"materials": [
"cardboard",
"bubble_wrap"
],
"fragileHandling": true,
"temperatureRange": {
"max": 25,
"min": 15,
"unit": "celsius"
}
},
"items": [
{
"id": 168741,
"name": "Laptop",
"quantity": 1,
"weight": 2,
"unitPrice": 50000,
"sku": "LAP-001",
"hsnCode": "8471",
"dimensions": {
"unit": "cm",
"width": 18,
"height": 2,
"length": 28
},
"description": "Dell XPS 13 Laptop",
"taxes": [
{
"id": 7132,
"name": "CGST",
"type": "GST",
"value": 4500
},
{
"id": 7133,
"name": "SGST",
"type": "GST",
"value": 4500
}
],
"discounts": [
{
"id": 1059,
"name": "Festival Discount",
"type": "PROMOTIONAL",
"value": 5000
}
]
},
{
"id": 168742,
"name": "Mouse",
"quantity": 1,
"weight": 0.5,
"unitPrice": 500,
"sku": "MOUSE-001",
"hsnCode": "8471",
"dimensions": {
"unit": "cm",
"width": 6,
"height": 4,
"length": 10
},
"description": "Wireless Mouse",
"taxes": [
{
"id": 7134,
"name": "CGST",
"type": "GST",
"value": 45
},
{
"id": 7135,
"name": "SGST",
"type": "GST",
"value": 45
}
],
"discounts": []
}
]
}
],
"vehicles": [],
"slots": [],
"payment": {
"id": 27366,
"finalAmount": 50590,
"type": "PREPAID",
"status": "PENDING",
"currency": "INR",
"paymentMethod": "CREDIT_CARD",
"transactionId": "TXN_123456789",
"breakdown": {
"id": 3343,
"subTotal": 50500,
"taxes": [
{
"id": 7130,
"name": "CGST",
"type": "GST",
"value": 4545
},
{
"id": 7131,
"name": "SGST",
"type": "GST",
"value": 4545
}
],
"discounts": [
{
"id": 1058,
"name": "Festival Sale",
"type": "PROMOTIONAL",
"value": 5000
}
],
"otherCharges": [
{
"id": 10735,
"name": "Shipping Charges",
"type": "SHIPPING",
"value": 100
},
{
"id": 10736,
"name": "Packaging Charges",
"type": "PACKAGING",
"value": 50
}
]
},
"splitPayments": [
{
"id": 45,
"amount": 30000,
"status": "SUCCESS",
"method": "CREDIT_CARD",
"transactionId": "SPLIT_TXN_001"
},
{
"id": 46,
"amount": 20590,
"status": "SUCCESS",
"method": "WALLET",
"transactionId": "SPLIT_TXN_002"
}
]
},
"taxes": [
{
"id": 7136,
"name": "Total GST",
"type": "GST",
"value": 9090
}
],
"discounts": [
{
"id": 1060,
"name": "New Customer Discount",
"type": "PROMOTIONAL",
"value": 5000
}
],
"orderSource": {
"id": 0
}
}
}

Sample Error Response

{
"error": "Internal Server Error",
"status": 500
}

5. Bulk order Manifest

Bulk/Single order manifest

Method: POST
Endpoint: /orders/manifest/bulk

Request Headers:

{
api-key: "your_api_key_here",
// OR
Authorization: "Bearer your_token_here",
Content-Type: application/json
}

Reuqest Body Parameters

Field NameTypeMandatoryDescriptionExample
orderIdsArrayYesArray of order ids[“250904124036HX4ION”]

Sample request CURL:

curl --location 'https://sandbox-apis.prayog.io/gateway/booking-service/orders/manifest/bulk' \
--header 'api-key: your_api_key_here' \
--data '{
"orderIds": ["250904124036HX4ION"]
}'

Sample response

{
"status": "success",
"statusCode": 200,
"message": "bulk manifest completed successfully",
"data": "manifest operation started successfully"
}

Note: For failure/error case you need to check kestra logs

6. Bulk order cancel

Bulk/Single order cancel

Method: POST
Endpoint: /orders/bulk/cancel

Request Headers:

{
api-key: "your_api_key_here",
// OR
Authorization: "Bearer your_token_here",
Content-Type: application/json
}

Reuqest Body Parameters

Field NameTypeMandatoryDescriptionExample
ordersOrders[]YesArray of orders[{“orderId”: “123444”,“reason”: “Custom reason 1”},{“orderId”: “123445”, “reason”: “Custom reason 2”}“]

Orders

Field NameTypeMandatoryDescriptionExample
orderIdVARCHARYesId of order123444
reasonVARCHARNoReason for cancellationCustom reason 2

Sample request CURL:

curl --location 'https://sandbox-apis.prayog.io/gateway/booking-service/orders/bulk/cancel' \
--header 'api-key: your_api_key_here' \
--header 'Content-Type: application/json' \
--data '{
"orders": [
{
"orderId": "2510291113270M3R8H",
"reason": "xyz"
}
]
}'

Sample response

{
"status": "success",
"statusCode": 200,
"message": "Orders cancelled successfully",
"data": {
"cancelledCount": 1
}
}

7. Webhook

Incomming webhook

Method: POST
Endpoint: /orders/webhook

Request Headers:

{
api-key: "your_api_key_here",
// OR
Authorization: "Bearer your_token_here",
Content-Type: application/json
}

Reuqest Body Parameters

Field NameTypeMandatoryDescriptionExample
eventVARCHARYesName of eventAUDIT
orderIdVARCHARNoId of order. Either send orderId or awbNumber based on updation key3546789XFCGVHB
awbNumberVARCHARNoShipment Id. Either send orderId or awbNumber based on updation keyRTFYTU456789

Note: Rest of the keys will be dynamic based on event & data updation.

Sample request CURL:

curl --location 'https://sandbox-apis.prayog.io/gateway/booking-service/orders/webhook' \
--header 'api-key: your_api_key_here' \
--header 'Content-Type: application/json' \
--data '{
"awbNumber": "25052200049033",
"event": "STATUS_UPDATE",
"shipmentStatus": "inscan_at_hub"
}'

Sample response

{
"status": "success",
"statusCode": 200,
"message": "order updated successfully",
"data": {
"id": 393,
"orderId": "250820053716DLYJA1",
"parcelCategory": "COURIER",
"orderDate": "2025-08-20T05:37:16.376Z",
"expectedDeliveryDate": "0001-01-01T00:00:00Z",
"eWaybills": [],
"autoManifest": true,
"deliveryMode": "Surface",
"deliveryPromise": "Standard",
"orderStatus": "READY_FOR_DISPATCH",
"metadata": {
"source": "NBA",
"createdBy": "21931d2a-00d1-70ba-6cd0-cccc9315b5fe"
},
"createdAt": "2025-08-20T05:37:16.634645Z",
"updatedAt": "2025-08-20T05:37:21.332353Z",
"addresses": [
{
"id": 1490,
"type": "PICKUP",
"zip": "560076",
"name": "DEMO FOR TESTING BENGALURU",
"street": "XYZ",
"city": "BENGALURU",
"state": "KARNATAKA",
"country": "India"
},
{
"id": 1491,
"type": "DELIVERY",
"zip": "560108",
"name": "ANHSULLL",
"phone": "8951499596",
"email": "kuma@gmail.com",
"street": "HSR LAYOUT, BENGALURU, KARNATAKA, INDIA",
"city": "BENGALURU",
"state": "KARNATAKA",
"country": "India"
},
{
"id": 1492,
"type": "RETURN",
"zip": "560076",
"name": "DEMO FOR TESTING BENGALURU",
"street": "XYZ",
"city": "BENGALURU",
"state": "KARNATAKA",
"country": "India"
}
],
"documents": [],
"shipments": [
{
"id": 641,
"isParent": true,
"awbNumber": "25052200049033",
"shipmentStatus": "inscan_at_hub",
"documentType": "DOX",
"dimensions": {
"width": 0,
"height": 0,
"length": 0
},
"physicalWeight": 0.05,
"packaging": {
"id": 0
},
"items": [
{
"id": 579,
"name": "DOCUMENT - TENDER DOCUMENT",
"quantity": 1,
"taxes": [],
"discounts": []
}
]
}
],
"vehicles": [],
"slots": [],
"payment": {
"id": 0,
"breakdown": {
"id": 0,
"subTotal": 0,
"taxes": null,
"discounts": null,
"otherCharges": null
},
"splitPayments": null
},
"taxes": [],
"discounts": [],
"orderSource": {
"id": 0
}
}
}

8. Retrives all shipments tracking against orderId

To see every shipment’s current status based on orderId

Method: GET
Endpoint: orders/shipment-tracking/{orderId}

Request Headers:

{
api-key: "your_api_key_here",
// OR
Authorization: "Bearer your_token_here",
Content-Type: application/json
}

Reuqest Query Parameters

Field NameTypeMandatoryDescriptionExample
orderIdVARCHARYesId of order3456789FCGFHJ

Sample request CURL:

curl --location 'https://sandbox-apis.prayog.io/gateway/booking-service/orders/shipment-tracking/250820061346FL8O95' \
--header 'api-key: your_api_key_here'

Sample response

{
"status": "success",
"statusCode": 200,
"message": "Shipment tracking fetched successfully",
"data": [
{
"trackingId": "25052100020202",
"status": "READY_FOR_DISPATCH",
"location": "",
"deliveryPartnerName": "prayog",
"statusTimestamp": "2025-08-20T06:13:51.290Z",
"event": "MANIFESTED",
"cAwbNumber": "",
"createdAt": "2025-08-20T06:13:51.366Z",
"category": "READY_FOR_DISPATCH"
},
{
"trackingId": "25400830664",
"status": "READY_FOR_DISPATCH",
"location": "",
"deliveryPartnerName": "prayog",
"statusTimestamp": "2025-08-20T06:13:51.290Z",
"event": "MANIFESTED",
"cAwbNumber": "",
"createdAt": "2025-08-20T06:13:51.366Z",
"category": "READY_FOR_DISPATCH"
},
{
"trackingId": "25400830665",
"status": "READY_FOR_DISPATCH",
"location": "",
"deliveryPartnerName": "prayog",
"statusTimestamp": "2025-08-20T06:13:51.290Z",
"event": "MANIFESTED",
"cAwbNumber": "",
"createdAt": "2025-08-20T06:13:51.366Z",
"category": "READY_FOR_DISPATCH"
},
{
"trackingId": "25400830666",
"status": "READY_FOR_DISPATCH",
"location": "",
"deliveryPartnerName": "prayog",
"statusTimestamp": "2025-08-20T06:13:51.290Z",
"event": "MANIFESTED",
"cAwbNumber": "",
"createdAt": "2025-08-20T06:13:51.365Z",
"category": "READY_FOR_DISPATCH"
}
]
}

9. Bulk Orders Create (File Upload)

Create multiple orders by uploading a file containing order details.

Method: POST
Endpoint: /bulk-orders

Request Headers:

{
api-key: "your_api_key_here",
// OR
Authorization: "Bearer your_token_here",
Content-Type: multipart/form-data
}

Request Parameters

Field NameTypeMandatoryDescriptionExample
fileFILEYesFile containing bulk order data (CSV, Excel, etc.)orders.csv

Sample request CURL:

Terminal window
curl --location 'https://sandbox-apis.prayog.io/gateway/booking-service/bulk-orders' \
--header 'api-key: your_api_key_here' \
--form 'file=@"/path/to/your/file.csv"'

Sample Success Response

{
"status": "success",
"statusCode": 202,
"message": "Your orders are under processing",
"data": {
"autoManifest": false,
"bulkId": "1762250638768384775"
}
}

Sample Error Response

{
"status": "error",
"statusCode": 400,
"message": "Invalid file format"
}

10. Update Bulk Order Manifest Status

Update the manifest status for a bulk order group.

Method: POST
Endpoint: /bulk-orders/{bulkOrderId}/manifest

Request Headers:

{
api-key: "your_api_key_here",
// OR
Authorization: "Bearer your_token_here",
Content-Type: application/json
}

Request Path Parameters

Field NameTypeMandatoryDescriptionExample
bulkOrderIdVARCHARYesID of the bulk order1762250638768384775

Request Body Parameters

Field NameTypeMandatoryDescriptionExample
groupOrderStatusVARCHARYesStatus to update for the bulk order groupREADY_TO_DISPATCH

Sample request CURL:

Terminal window
curl --location 'https://sandbox-apis.prayog.io/gateway/booking-service/bulk-orders/1762250638768384775/manifest' \
--header 'api-key: your_api_key_here' \
--header 'Content-Type: application/json' \
--data '{
"groupOrderStatus": "READY_TO_DISPATCH"
}'

Sample Success Response

{
"status": "success",
"statusCode": 200,
"message": "Bulk order manifested successfully",
"data": {
"bulkId": "1762250638768384775",
"groupOrderStatus": "READY_TO_DISPATCH"
}
}

Sample Error Response

{
"status": "error",
"statusCode": 404,
"message": "Bulk order not found"
}

11. Get Bulk Order Details

Retrieve details and status of a specific bulk order.

Method: GET
Endpoint: /bulk-orders/{bulkOrderId}

Request Headers:

{
api-key: "your_api_key_here",
// OR
Authorization: "Bearer your_token_here",
Content-Type: application/json
}

Request Path Parameters

Field NameTypeMandatoryDescriptionExample
bulkOrderIdVARCHARYesID of the bulk order1762250638768384775

Sample request CURL:

Terminal window
curl --location 'https://sandbox-apis.prayog.io/gateway/booking-service/bulk-orders/1762250638768384775' \
--header 'api-key: your_api_key_here'

Sample Success Response

{
"status": "success",
"statusCode": 200,
"message": "Bulk order details fetched successfully",
"data": {
"id": 37,
"bulkId": "1762250638768384775",
"tenantId": "68c3cce121fc3f9691aae1e6",
"status": "done",
"groupOrderStatus": "READY_TO_DISPATCH",
"totalOrders": 200,
"completedOrders": 0,
"failedOrders": 0,
"userId": "e133ed7a-5001-70d4-fa2c-5f81c2ebc611",
"excelPath": "https://prayog-files-sandbox.s3.ap-south-1.amazonaws.com/bulk-orders/68c3cce121fc3f9691aae1e6/bulk_order_1762250638768384775_20251104_100852.xlsx",
"createdAt": "2025-11-04T10:04:04.667114Z",
"updatedAt": "2025-11-04T10:09:23.449165Z",
"completedAt": "2025-11-04T10:09:23.449166Z"
}
}

📝 Note:

Bulk Order Status Values:

  • processing: Orders are currently being processed
  • done: Orders have been successfully placed and the Excel sheet is ready for download (available at excelPath)

Sample Error Response

{
"status": "error",
"statusCode": 404,
"message": "Bulk order not found"
}