@boostengine/collections 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -64
- package/bin/cli.cjs +49 -0
- package/collections/cashfree.collection.json +651 -0
- package/collections/delhivery.collection.json +270 -0
- package/collections/easyecom.collection.json +84 -82
- package/collections/paytm.collection.json +161 -0
- package/collections/phonepe.collection.json +359 -0
- package/collections/razorpay.collection.json +527 -90
- package/collections/shiprocket.collection.json +490 -0
- package/collections/shopify.collection.json +351 -0
- package/collections/stripe.collection.json +322 -0
- package/dist/index.cjs +602 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.mjs +602 -66
- package/dist/index.mjs.map +1 -1
- package/environments/cashfree.env.json +67 -0
- package/environments/delhivery.env.json +31 -0
- package/environments/paytm.env.json +49 -0
- package/environments/phonepe.env.json +85 -0
- package/environments/razorpay.env.json +12 -0
- package/environments/shiprocket.env.json +61 -0
- package/environments/shopify.env.json +31 -0
- package/environments/stripe.env.json +31 -0
- package/package.json +11 -2
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"_postman_id": "sr123456-2222-4abc-def3-456789012345",
|
|
4
|
+
"name": "Shiprocket Full Logistics & Courier API Collection",
|
|
5
|
+
"description": "Exhaustive Enterprise Postman Collection for Shiprocket (Authentication, Pincode & International Serviceability, Custom & Bulk Orders, AWB Generation, Courier Pickup, Manifests, Labels, Tax Invoices, Live Tracking, NDR Actions, and Webhooks Simulator). Includes auto-chaining token and shipment IDs.",
|
|
6
|
+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
7
|
+
},
|
|
8
|
+
"auth": {
|
|
9
|
+
"type": "bearer",
|
|
10
|
+
"bearer": [
|
|
11
|
+
{
|
|
12
|
+
"key": "token",
|
|
13
|
+
"value": "{{shiprocket_token}}",
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"item": [
|
|
19
|
+
{
|
|
20
|
+
"name": "1. Authentication",
|
|
21
|
+
"description": "Login API to generate Bearer JWT token.",
|
|
22
|
+
"item": [
|
|
23
|
+
{
|
|
24
|
+
"name": "Login & Auto-Set Token",
|
|
25
|
+
"event": [
|
|
26
|
+
{
|
|
27
|
+
"listen": "test",
|
|
28
|
+
"script": {
|
|
29
|
+
"exec": [
|
|
30
|
+
"var jsonData = pm.response.json();",
|
|
31
|
+
"if (jsonData && jsonData.token) {",
|
|
32
|
+
" pm.environment.set('shiprocket_token', jsonData.token);",
|
|
33
|
+
" console.log('Shiprocket token saved to environment!');",
|
|
34
|
+
"}"
|
|
35
|
+
],
|
|
36
|
+
"type": "text/javascript"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"request": {
|
|
41
|
+
"method": "POST",
|
|
42
|
+
"header": [
|
|
43
|
+
{
|
|
44
|
+
"key": "Content-Type",
|
|
45
|
+
"value": "application/json"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"body": {
|
|
49
|
+
"mode": "raw",
|
|
50
|
+
"raw": "{\n \"email\": \"{{shiprocket_email}}\",\n \"password\": \"{{shiprocket_password}}\"\n}"
|
|
51
|
+
},
|
|
52
|
+
"url": {
|
|
53
|
+
"raw": "{{shiprocket_base_url}}/auth/login",
|
|
54
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
55
|
+
"path": ["auth", "login"]
|
|
56
|
+
},
|
|
57
|
+
"description": "Logs in and automatically saves JWT into {{shiprocket_token}} for all subsequent requests."
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "2. Serviceability & Courier Rates",
|
|
64
|
+
"description": "Check pin code delivery, courier rates, and COD eligibility.",
|
|
65
|
+
"item": [
|
|
66
|
+
{
|
|
67
|
+
"name": "Check Domestic Courier Serviceability & Rates",
|
|
68
|
+
"request": {
|
|
69
|
+
"method": "GET",
|
|
70
|
+
"header": [],
|
|
71
|
+
"url": {
|
|
72
|
+
"raw": "{{shiprocket_base_url}}/courier/serviceability?pickup_postcode={{pickup_pincode}}&delivery_postcode={{delivery_pincode}}&weight=0.5&cod=1",
|
|
73
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
74
|
+
"path": ["courier", "serviceability"],
|
|
75
|
+
"query": [
|
|
76
|
+
{ "key": "pickup_postcode", "value": "{{pickup_pincode}}" },
|
|
77
|
+
{ "key": "delivery_postcode", "value": "{{delivery_pincode}}" },
|
|
78
|
+
{ "key": "weight", "value": "0.5" },
|
|
79
|
+
{ "key": "cod", "value": "1" }
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"description": "Returns courier partners (Delhivery, Bluedart, Xpressbees, Shadowfax) with freight rates and estimated delivery times."
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "Check International Courier Serviceability",
|
|
87
|
+
"request": {
|
|
88
|
+
"method": "GET",
|
|
89
|
+
"header": [],
|
|
90
|
+
"url": {
|
|
91
|
+
"raw": "{{shiprocket_base_url}}/courier/international/serviceability?pickup_postcode={{pickup_pincode}}&delivery_country=US&delivery_postcode=90001&weight=1",
|
|
92
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
93
|
+
"path": ["courier", "international", "serviceability"],
|
|
94
|
+
"query": [
|
|
95
|
+
{ "key": "pickup_postcode", "value": "{{pickup_pincode}}" },
|
|
96
|
+
{ "key": "delivery_country", "value": "US" },
|
|
97
|
+
{ "key": "delivery_postcode", "value": "90001" },
|
|
98
|
+
{ "key": "weight", "value": "1" }
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"description": "Calculates cross-border shipping rates for DHL, FedEx, Aramex."
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "3. Orders API",
|
|
108
|
+
"description": "Create, modify, and cancel shipment orders.",
|
|
109
|
+
"item": [
|
|
110
|
+
{
|
|
111
|
+
"name": "Create Custom / Quick Order",
|
|
112
|
+
"event": [
|
|
113
|
+
{
|
|
114
|
+
"listen": "test",
|
|
115
|
+
"script": {
|
|
116
|
+
"exec": [
|
|
117
|
+
"var jsonData = pm.response.json();",
|
|
118
|
+
"if (jsonData && jsonData.order_id) {",
|
|
119
|
+
" pm.environment.set('shiprocket_order_id', jsonData.order_id);",
|
|
120
|
+
" pm.environment.set('shipment_id', jsonData.shipment_id);",
|
|
121
|
+
" console.log('Saved order_id: ' + jsonData.order_id + ', shipment_id: ' + jsonData.shipment_id);",
|
|
122
|
+
"}"
|
|
123
|
+
],
|
|
124
|
+
"type": "text/javascript"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"request": {
|
|
129
|
+
"method": "POST",
|
|
130
|
+
"header": [
|
|
131
|
+
{
|
|
132
|
+
"key": "Content-Type",
|
|
133
|
+
"value": "application/json"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"body": {
|
|
137
|
+
"mode": "raw",
|
|
138
|
+
"raw": "{\n \"order_id\": \"ORD_SR_{{$timestamp}}\",\n \"order_date\": \"2026-09-08 18:30\",\n \"pickup_location\": \"Primary Warehouse\",\n \"billing_customer_name\": \"Aman\",\n \"billing_last_name\": \"Sharma\",\n \"billing_address\": \"Flat 402, Skyline Residency\",\n \"billing_city\": \"Mumbai\",\n \"billing_pincode\": \"400053\",\n \"billing_state\": \"Maharashtra\",\n \"billing_country\": \"India\",\n \"billing_email\": \"aman@example.com\",\n \"billing_phone\": \"9876543210\",\n \"shipping_is_billing\": true,\n \"order_items\": [\n {\n \"name\": \"Boost Engine Heavy Hoodie\",\n \"sku\": \"HOODIE-BLK-L\",\n \"units\": 1,\n \"selling_price\": 1499,\n \"discount\": 0,\n \"tax\": 18\n }\n ],\n \"payment_method\": \"Prepaid\",\n \"sub_total\": 1499,\n \"length\": 10,\n \"breadth\": 15,\n \"height\": 5,\n \"weight\": 0.5\n}"
|
|
139
|
+
},
|
|
140
|
+
"url": {
|
|
141
|
+
"raw": "{{shiprocket_base_url}}/orders/create/adhoc",
|
|
142
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
143
|
+
"path": ["orders", "create", "adhoc"]
|
|
144
|
+
},
|
|
145
|
+
"description": "Creates shipment order and sets {{shiprocket_order_id}} and {{shipment_id}}."
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "Update Customer Delivery Address",
|
|
150
|
+
"request": {
|
|
151
|
+
"method": "POST",
|
|
152
|
+
"header": [
|
|
153
|
+
{
|
|
154
|
+
"key": "Content-Type",
|
|
155
|
+
"value": "application/json"
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"body": {
|
|
159
|
+
"mode": "raw",
|
|
160
|
+
"raw": "{\n \"order_id\": [{{shiprocket_order_id}}],\n \"shipping_customer_name\": \"Aman Sharma\",\n \"shipping_phone\": \"9876543210\",\n \"shipping_address\": \"Plot 12, Tech Park, Andheri East\",\n \"shipping_city\": \"Mumbai\",\n \"shipping_state\": \"Maharashtra\",\n \"shipping_pincode\": \"400069\",\n \"shipping_country\": \"India\"\n}"
|
|
161
|
+
},
|
|
162
|
+
"url": {
|
|
163
|
+
"raw": "{{shiprocket_base_url}}/orders/address/update",
|
|
164
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
165
|
+
"path": ["orders", "address", "update"]
|
|
166
|
+
},
|
|
167
|
+
"description": "Updates customer shipping address before courier pickup."
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "Cancel Order",
|
|
172
|
+
"request": {
|
|
173
|
+
"method": "POST",
|
|
174
|
+
"header": [
|
|
175
|
+
{
|
|
176
|
+
"key": "Content-Type",
|
|
177
|
+
"value": "application/json"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"body": {
|
|
181
|
+
"mode": "raw",
|
|
182
|
+
"raw": "{\n \"ids\": [{{shiprocket_order_id}}]\n}"
|
|
183
|
+
},
|
|
184
|
+
"url": {
|
|
185
|
+
"raw": "{{shiprocket_base_url}}/orders/cancel",
|
|
186
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
187
|
+
"path": ["orders", "cancel"]
|
|
188
|
+
},
|
|
189
|
+
"description": "Cancels an order before dispatch."
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "Create Return Order",
|
|
194
|
+
"request": {
|
|
195
|
+
"method": "POST",
|
|
196
|
+
"header": [
|
|
197
|
+
{
|
|
198
|
+
"key": "Content-Type",
|
|
199
|
+
"value": "application/json"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"body": {
|
|
203
|
+
"mode": "raw",
|
|
204
|
+
"raw": "{\n \"order_id\": \"RET_SR_{{$timestamp}}\",\n \"order_date\": \"2026-09-08 18:30\",\n \"channel_id\": \"\",\n \"pickup_customer_name\": \"Aman Sharma\",\n \"pickup_phone\": \"9876543210\",\n \"pickup_address\": \"Flat 402, Skyline Residency\",\n \"pickup_city\": \"Mumbai\",\n \"pickup_state\": \"Maharashtra\",\n \"pickup_pincode\": \"400053\",\n \"order_items\": [\n {\n \"name\": \"Boost Engine Heavy Hoodie\",\n \"sku\": \"HOODIE-BLK-L\",\n \"units\": 1,\n \"selling_price\": 1499\n }\n ],\n \"sub_total\": 1499,\n \"length\": 10,\n \"breadth\": 15,\n \"height\": 5,\n \"weight\": 0.5\n}"
|
|
205
|
+
},
|
|
206
|
+
"url": {
|
|
207
|
+
"raw": "{{shiprocket_base_url}}/orders/create/return",
|
|
208
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
209
|
+
"path": ["orders", "create", "return"]
|
|
210
|
+
},
|
|
211
|
+
"description": "Creates reverse pickup request for returned products."
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "4. Shipments, AWB & Labels",
|
|
218
|
+
"description": "Assign courier AWB, schedule pickup, print labels & manifests.",
|
|
219
|
+
"item": [
|
|
220
|
+
{
|
|
221
|
+
"name": "Generate AWB (Assign Courier)",
|
|
222
|
+
"event": [
|
|
223
|
+
{
|
|
224
|
+
"listen": "test",
|
|
225
|
+
"script": {
|
|
226
|
+
"exec": [
|
|
227
|
+
"var jsonData = pm.response.json();",
|
|
228
|
+
"if (jsonData && jsonData.response && jsonData.response.data) {",
|
|
229
|
+
" pm.environment.set('shiprocket_awb', jsonData.response.data.awb_code);",
|
|
230
|
+
" console.log('Saved AWB: ' + jsonData.response.data.awb_code);",
|
|
231
|
+
"}"
|
|
232
|
+
],
|
|
233
|
+
"type": "text/javascript"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"request": {
|
|
238
|
+
"method": "POST",
|
|
239
|
+
"header": [
|
|
240
|
+
{
|
|
241
|
+
"key": "Content-Type",
|
|
242
|
+
"value": "application/json"
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"body": {
|
|
246
|
+
"mode": "raw",
|
|
247
|
+
"raw": "{\n \"shipment_id\": {{shipment_id}},\n \"courier_id\": \"\"\n}"
|
|
248
|
+
},
|
|
249
|
+
"url": {
|
|
250
|
+
"raw": "{{shiprocket_base_url}}/courier/assign/awb",
|
|
251
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
252
|
+
"path": ["courier", "assign", "awb"]
|
|
253
|
+
},
|
|
254
|
+
"description": "Assigns courier and generates AWB tracking number."
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "Request Courier Pickup",
|
|
259
|
+
"request": {
|
|
260
|
+
"method": "POST",
|
|
261
|
+
"header": [
|
|
262
|
+
{
|
|
263
|
+
"key": "Content-Type",
|
|
264
|
+
"value": "application/json"
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"body": {
|
|
268
|
+
"mode": "raw",
|
|
269
|
+
"raw": "{\n \"shipment_id\": [{{shipment_id}}]\n}"
|
|
270
|
+
},
|
|
271
|
+
"url": {
|
|
272
|
+
"raw": "{{shiprocket_base_url}}/courier/generate/pickup",
|
|
273
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
274
|
+
"path": ["courier", "generate", "pickup"]
|
|
275
|
+
},
|
|
276
|
+
"description": "Schedules rider pickup at your warehouse."
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "Generate Shipping Label",
|
|
281
|
+
"request": {
|
|
282
|
+
"method": "POST",
|
|
283
|
+
"header": [
|
|
284
|
+
{
|
|
285
|
+
"key": "Content-Type",
|
|
286
|
+
"value": "application/json"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"body": {
|
|
290
|
+
"mode": "raw",
|
|
291
|
+
"raw": "{\n \"shipment_id\": [{{shipment_id}}]\n}"
|
|
292
|
+
},
|
|
293
|
+
"url": {
|
|
294
|
+
"raw": "{{shiprocket_base_url}}/courier/generate/label",
|
|
295
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
296
|
+
"path": ["courier", "generate", "label"]
|
|
297
|
+
},
|
|
298
|
+
"description": "Returns PDF label download URL with barcode for thermal printing."
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "Generate Manifest & Print",
|
|
303
|
+
"request": {
|
|
304
|
+
"method": "POST",
|
|
305
|
+
"header": [
|
|
306
|
+
{
|
|
307
|
+
"key": "Content-Type",
|
|
308
|
+
"value": "application/json"
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"body": {
|
|
312
|
+
"mode": "raw",
|
|
313
|
+
"raw": "{\n \"shipment_id\": [{{shipment_id}}]\n}"
|
|
314
|
+
},
|
|
315
|
+
"url": {
|
|
316
|
+
"raw": "{{shiprocket_base_url}}/manifests/generate",
|
|
317
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
318
|
+
"path": ["manifests", "generate"]
|
|
319
|
+
},
|
|
320
|
+
"description": "Generates courier handover manifest document for driver signature."
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "Print Tax Invoice",
|
|
325
|
+
"request": {
|
|
326
|
+
"method": "POST",
|
|
327
|
+
"header": [
|
|
328
|
+
{
|
|
329
|
+
"key": "Content-Type",
|
|
330
|
+
"value": "application/json"
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"body": {
|
|
334
|
+
"mode": "raw",
|
|
335
|
+
"raw": "{\n \"ids\": [{{shiprocket_order_id}}]\n}"
|
|
336
|
+
},
|
|
337
|
+
"url": {
|
|
338
|
+
"raw": "{{shiprocket_base_url}}/orders/print/invoice",
|
|
339
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
340
|
+
"path": ["orders", "print", "invoice"]
|
|
341
|
+
},
|
|
342
|
+
"description": "Downloads PDF invoice for customer package."
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
]
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "5. Live Tracking API",
|
|
349
|
+
"description": "Realtime parcel location, transit updates, and ETA.",
|
|
350
|
+
"item": [
|
|
351
|
+
{
|
|
352
|
+
"name": "Track by AWB Code",
|
|
353
|
+
"request": {
|
|
354
|
+
"method": "GET",
|
|
355
|
+
"header": [],
|
|
356
|
+
"url": {
|
|
357
|
+
"raw": "{{shiprocket_base_url}}/courier/track/awb/{{shiprocket_awb}}",
|
|
358
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
359
|
+
"path": ["courier", "track", "awb", "{{shiprocket_awb}}"]
|
|
360
|
+
},
|
|
361
|
+
"description": "Returns complete scan history, current hub, and delivered timestamp."
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "Track by Order ID",
|
|
366
|
+
"request": {
|
|
367
|
+
"method": "GET",
|
|
368
|
+
"header": [],
|
|
369
|
+
"url": {
|
|
370
|
+
"raw": "{{shiprocket_base_url}}/courier/track?order_id={{shiprocket_order_id}}",
|
|
371
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
372
|
+
"path": ["courier", "track"],
|
|
373
|
+
"query": [
|
|
374
|
+
{ "key": "order_id", "value": "{{shiprocket_order_id}}" }
|
|
375
|
+
]
|
|
376
|
+
},
|
|
377
|
+
"description": "Fetches tracking history directly by order ID."
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"name": "6. NDR (Non-Delivery Reports & Escalations)",
|
|
384
|
+
"description": "Manage undelivered packages, trigger WhatsApp verification & re-attempts.",
|
|
385
|
+
"item": [
|
|
386
|
+
{
|
|
387
|
+
"name": "Fetch All NDR Orders",
|
|
388
|
+
"request": {
|
|
389
|
+
"method": "GET",
|
|
390
|
+
"header": [],
|
|
391
|
+
"url": {
|
|
392
|
+
"raw": "{{shiprocket_base_url}}/ndr/all",
|
|
393
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
394
|
+
"path": ["ndr", "all"]
|
|
395
|
+
},
|
|
396
|
+
"description": "Lists failed delivery attempts (Customer Unavailable, Address Incomplete, COD Refused)."
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "Action NDR (Re-attempt Delivery)",
|
|
401
|
+
"request": {
|
|
402
|
+
"method": "POST",
|
|
403
|
+
"header": [
|
|
404
|
+
{
|
|
405
|
+
"key": "Content-Type",
|
|
406
|
+
"value": "application/json"
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
"body": {
|
|
410
|
+
"mode": "raw",
|
|
411
|
+
"raw": "{\n \"action\": \"reattempt\",\n \"awb\": \"{{shiprocket_awb}}\",\n \"next_attempt_date\": \"2026-09-09\",\n \"comments\": \"Customer confirmed availability on phone call\"\n}"
|
|
412
|
+
},
|
|
413
|
+
"url": {
|
|
414
|
+
"raw": "{{shiprocket_base_url}}/ndr/action",
|
|
415
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
416
|
+
"path": ["ndr", "action"]
|
|
417
|
+
},
|
|
418
|
+
"description": "Instructs courier to reattempt package delivery."
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"name": "Action NDR (Return to Origin - RTO)",
|
|
423
|
+
"request": {
|
|
424
|
+
"method": "POST",
|
|
425
|
+
"header": [
|
|
426
|
+
{
|
|
427
|
+
"key": "Content-Type",
|
|
428
|
+
"value": "application/json"
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"body": {
|
|
432
|
+
"mode": "raw",
|
|
433
|
+
"raw": "{\n \"action\": \"return\",\n \"awb\": \"{{shiprocket_awb}}\",\n \"comments\": \"Customer cancelled order\"\n}"
|
|
434
|
+
},
|
|
435
|
+
"url": {
|
|
436
|
+
"raw": "{{shiprocket_base_url}}/ndr/action",
|
|
437
|
+
"host": ["{{shiprocket_base_url}}"],
|
|
438
|
+
"path": ["ndr", "action"]
|
|
439
|
+
},
|
|
440
|
+
"description": "Instructs courier to return undelivered parcel back to merchant warehouse."
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "7. Webhooks Simulator",
|
|
447
|
+
"description": "Ready-to-fire simulated Shiprocket webhook payloads.",
|
|
448
|
+
"item": [
|
|
449
|
+
{
|
|
450
|
+
"name": "Webhook: shipment.shipped",
|
|
451
|
+
"request": {
|
|
452
|
+
"method": "POST",
|
|
453
|
+
"header": [
|
|
454
|
+
{ "key": "Content-Type", "value": "application/json" },
|
|
455
|
+
{ "key": "x-api-key", "value": "{{shiprocket_webhook_token}}" }
|
|
456
|
+
],
|
|
457
|
+
"body": {
|
|
458
|
+
"mode": "raw",
|
|
459
|
+
"raw": "{\n \"awb\": \"10928371928\",\n \"courier_name\": \"Delhivery\",\n \"current_status\": \"SHIPPED\",\n \"order_id\": \"ORD_SR_1001\",\n \"scans\": [\n {\n \"date\": \"2026-09-08 20:00:00\",\n \"activity\": \"Picked up from warehouse\",\n \"location\": \"Bhiwandi Hub\"\n }\n ]\n}"
|
|
460
|
+
},
|
|
461
|
+
"url": {
|
|
462
|
+
"raw": "{{local_webhook_url}}",
|
|
463
|
+
"host": ["{{local_webhook_url}}"]
|
|
464
|
+
},
|
|
465
|
+
"description": "Simulates shipment.shipped status update."
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "Webhook: shipment.delivered",
|
|
470
|
+
"request": {
|
|
471
|
+
"method": "POST",
|
|
472
|
+
"header": [
|
|
473
|
+
{ "key": "Content-Type", "value": "application/json" },
|
|
474
|
+
{ "key": "x-api-key", "value": "{{shiprocket_webhook_token}}" }
|
|
475
|
+
],
|
|
476
|
+
"body": {
|
|
477
|
+
"mode": "raw",
|
|
478
|
+
"raw": "{\n \"awb\": \"10928371928\",\n \"courier_name\": \"Delhivery\",\n \"current_status\": \"DELIVERED\",\n \"order_id\": \"ORD_SR_1001\",\n \"delivered_to\": \"Aman Sharma\",\n \"delivered_date\": \"2026-09-10 14:20:00\"\n}"
|
|
479
|
+
},
|
|
480
|
+
"url": {
|
|
481
|
+
"raw": "{{local_webhook_url}}",
|
|
482
|
+
"host": ["{{local_webhook_url}}"]
|
|
483
|
+
},
|
|
484
|
+
"description": "Simulates shipment.delivered event."
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
]
|
|
488
|
+
}
|
|
489
|
+
]
|
|
490
|
+
}
|