This repository provides comprehensive documentation for integrating with the ShypBuddy API, enabling order creation, PDF generation, thermal label generation, order cancellation, rate calculation, and shipment tracking.
The ShypBuddy API allows sellers to automate order processing, generate shipping documents, calculate shipping rates, track shipments, and manage cancellations. All endpoints require authentication via a Bearer token.
To use the ShypBuddy API, follow these steps:
graph TD
A[Register or Login<br>https://seller.shypbuddy.net]
B[Complete KYC<br>https://seller.shypbuddy.net/kyc]
C[Add Default Warehouse<br>https://seller.shypbuddy.net/address/list_address]
D[Set 3PL Preferences<br>https://seller.shypbuddy.net/settings]
E[Generate API Token<br>https://seller.shypbuddy.net/settings]
A --> B
B --> C
C --> D
D --> E
- Register or Login: Sign up or log in at https://seller.shypbuddy.net.
- Complete KYC: Verify your identity at https://seller.shypbuddy.net/kyc.
- Add Default Warehouse: Configure your warehouse at https://seller.shypbuddy.net/address/list_address.
- Set 3PL Preferences: Update preferences at https://seller.shypbuddy.net/settings.
- Generate API Token: Obtain your token from https://seller.shypbuddy.net/settings.
All API requests require the following headers:
- Content-Type:
application/json - Authorization:
Bearer <your_generated_token>
Replace <your_generated_token> with the token from the settings page.
Create an order with a specified delivery partner.
- Method: POST
- URL:
https://seller.shypbuddy.net/api/orderApi/customOrderApi
{
"orderData": {
"deliveryType": "FORWARD",
"isDangerousGoods": "n",
"paymentMode": "prepaid",
"length": 10,
"breadth": 10,
"height": 15,
"packageCount": 2,
"shippingMode": "air",
"deadWeight": 0.5,
"deliveryPartner": "bluedart surface"
},
"customerAddressList": {
"fullName": "Rahul Kumar",
"contactNumber": "9876543210",
"email": "[email protected]",
"alternateNumber": "8765432109",
"buyerCompanyName": "Tech Solutions Pvt Ltd",
"buyerGstin": "27AAPFU0939F1ZV",
"address": "B-404, Silver Heights, Sector 7",
"landmark": "Near City Mall",
"pincode": 110001,
"createdAt": "2024-03-21T10:30:00Z",
"city": "Mumbai",
"state": "Maharashtra"
},
"packageList": [
{
"name": "Gaming Laptop",
"qty": 1,
"price": 82,
"category": "Electronics",
"sku": "LAP-GM-001",
"hsnCode": "847130"
},
{
"name": "Wireless Mouse",
"qty": 2,
"price": 12,
"category": "Electronics",
"sku": "ACC-MS-002",
"hsnCode": "847160"
}
],
"pickUpAddress": {
"address": "2285 N Hobart Blvd, Los Angeles",
"landmark": "Hollywood Hills",
"pincode": 400064,
"city": "LA",
"state": "Cali",
"country": "USA"
}
}curl -X POST https://seller.shypbuddy.net/api/orderApi/customOrderApi \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{...}' # Replace with the above JSONCreate an order without specifying a delivery partner.
- Method: POST
- URL:
https://seller.shypbuddy.net/api/orderApi/createOrder
{
"orderData": {
"deliveryType": "FORWARD",
"isDangerousGoods": "n",
"paymentMode": "cod",
"length": 10,
"breadth": 10,
"height": 15,
"warehouseName": "spotlight 27",
"packageCount": 2,
"shippingMode": "surface",
"deadWeight": 0.5
},
"customerAddressList": {
"fullName": "Rahul Kumar",
"contactNumber": "9876543210",
"email": "[email protected]",
"alternateNumber": "8765432109",
"buyerCompanyName": "Tech Solutions Pvt Ltd",
"buyerGstin": "27AAPFU0939F1ZV",
"address": "B-404, Silver Heights, Sector 7",
"landmark": "Near City Mall",
"pincode": 400028,
"createdAt": "2024-03-21T10:30:00Z",
"city": "Mumbai",
"state": "Maharashtra"
},
"packageList": [
{
"name": "Gaming Laptop",
"qty": 1,
"price": 82,
"category": "Electronics",
"sku": "LAP-GM-001",
"hsnCode": "847130"
},
{
"name": "Wireless Mouse",
"qty": 2,
"price": 12,
"category": "Electronics",
"sku": "ACC-MS-002",
"hsnCode": "847160"
}
]
}curl -X POST https://seller.shypbuddy.net/api/orderApi/createOrder \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{...}' # Replace with the above JSONGenerate a PDF for specified AWBs.
- Method: POST
- URL:
https://seller.shypbuddy.net/api/generatePdf2/generatePdf
{
"awbs": ["10610372058", "10610372059"]
}curl -X POST https://seller.shypbuddy.net/api/generatePdf2/generatePdf \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{"awbs": ["10610372058", "10610372059"]}'The response contains the generated PDF file. Handle it appropriately to store or display.
Generate a thermal label PDF for specified AWBs.
- Method: POST
- URL:
https://seller.shypbuddy.net/api/generatePdf2/generatePdfThermalLabel
{
"awbs": ["10610372058", "10610372059"]
}curl -X POST https://seller.shypbuddy.net/api/generatePdf2/generatePdfThermalLabel \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{"awbs": ["10610372058", "10610372059"]}'The response contains the generated thermal label PDF. Handle it appropriately to store or display.
Cancel orders by specifying AWBs.
- Method: POST
- URL:
https://seller.shypbuddy.net/api/orderApi/cancelOrderApi
{
"awbs": ["18517412101444"]
}curl -X POST https://seller.shypbuddy.net/api/orderApi/cancelOrderApi \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{"awbs": ["18517412101444"]}'{
"status": "success",
"message": "Orders canceled successfully."
}Calculate shipping rates based on delivery parameters.
- Method: POST
- URL:
https://api.shypbuddy.net/api/direct-api/rate-calculator
{
"deliveryData": {
"pickupPin": "400601",
"deliveryPin": "400064",
"actualWeight": "0.5",
"length": "5",
"breadth": "6",
"height": "6",
"paymentType": "cod",
"volumetricWeight": 0.036,
"applicableWeight": 0.5,
"shipmentValue": "10",
"isDangerousGoods": false,
"isReverse": false
}
}curl -X POST https://api.shypbuddy.net/api/direct-api/rate-calculator \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{...}' # Replace with the above JSONTrack shipments by AWB numbers.
- Method: GET
- URL:
https://api.shypbuddy.net/api/direct-api/shipment-tracking
awbNumbers: Comma-separated AWB numbers (e.g.,143449428418,1430523027)
curl -X GET "https://api.shypbuddy.net/api/direct-api/shipment-tracking?awbNumbers=143449428418,1430523027" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"success": true,
"data": [
{
"awbNumber": "143449428418",
"status": "DELIVERED"
},
{
"awbNumber": "1430523027",
"status": "DELIVERED"
}
],
"message": "Tracking fetched successfully"
}For an interactive view of the API, copy the openapi.yaml into Swagger Editor.
For questions or assistance, contact the ShypBuddy support team at [email protected].