@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"info": {
|
|
3
3
|
"_postman_id": "9b12a83e-105b-4832-8419-a86d5e789012",
|
|
4
|
-
"name": "Razorpay eCommerce API Collection",
|
|
5
|
-
"description": "
|
|
4
|
+
"name": "Razorpay Full eCommerce API Collection",
|
|
5
|
+
"description": "Exhaustive Enterprise Postman Collection for Razorpay (Orders, Payments, Payment Links, Smart Collect Virtual Accounts, UPI QR Codes, Customers & Card Tokens, Invoices, Subscriptions, Route Transfers & Webhook Simulator). Includes auto-chaining test scripts.",
|
|
6
6
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
7
7
|
},
|
|
8
8
|
"auth": {
|
|
@@ -22,33 +22,45 @@
|
|
|
22
22
|
},
|
|
23
23
|
"item": [
|
|
24
24
|
{
|
|
25
|
-
"name": "Orders",
|
|
26
|
-
"description": "
|
|
25
|
+
"name": "1. Orders API",
|
|
26
|
+
"description": "Create, fetch, and manage customer checkout orders.",
|
|
27
27
|
"item": [
|
|
28
28
|
{
|
|
29
|
-
"name": "
|
|
29
|
+
"name": "Create Order (Standard eCommerce)",
|
|
30
|
+
"event": [
|
|
31
|
+
{
|
|
32
|
+
"listen": "test",
|
|
33
|
+
"script": {
|
|
34
|
+
"exec": [
|
|
35
|
+
"var jsonData = pm.response.json();",
|
|
36
|
+
"if (jsonData && jsonData.id) {",
|
|
37
|
+
" pm.environment.set('order_id', jsonData.id);",
|
|
38
|
+
" console.log('Saved order_id to environment: ' + jsonData.id);",
|
|
39
|
+
"}"
|
|
40
|
+
],
|
|
41
|
+
"type": "text/javascript"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
],
|
|
30
45
|
"request": {
|
|
31
46
|
"method": "POST",
|
|
32
47
|
"header": [
|
|
33
|
-
{
|
|
34
|
-
"key": "Content-Type",
|
|
35
|
-
"value": "application/json"
|
|
36
|
-
}
|
|
48
|
+
{ "key": "Content-Type", "value": "application/json" }
|
|
37
49
|
],
|
|
38
50
|
"body": {
|
|
39
51
|
"mode": "raw",
|
|
40
|
-
"raw": "{\n \"amount\":
|
|
52
|
+
"raw": "{\n \"amount\": 149900,\n \"currency\": \"INR\",\n \"receipt\": \"rcpt_boost_{{$timestamp}}\",\n \"partial_payment\": false,\n \"notes\": {\n \"customer_name\": \"Aman Sharma\",\n \"customer_email\": \"aman@example.com\",\n \"customer_phone\": \"+919876543210\",\n \"shipping_address\": \"Flat 402, Skyline Residency, Mumbai\"\n }\n}"
|
|
41
53
|
},
|
|
42
54
|
"url": {
|
|
43
55
|
"raw": "{{razorpay_base_url}}/v1/orders",
|
|
44
56
|
"host": ["{{razorpay_base_url}}"],
|
|
45
57
|
"path": ["v1", "orders"]
|
|
46
58
|
},
|
|
47
|
-
"description": "Creates a new
|
|
59
|
+
"description": "Creates a new Order in Razorpay. Automatically extracts and sets {{order_id}} in environment."
|
|
48
60
|
}
|
|
49
61
|
},
|
|
50
62
|
{
|
|
51
|
-
"name": "
|
|
63
|
+
"name": "Fetch Order by ID",
|
|
52
64
|
"request": {
|
|
53
65
|
"method": "GET",
|
|
54
66
|
"header": [],
|
|
@@ -57,11 +69,11 @@
|
|
|
57
69
|
"host": ["{{razorpay_base_url}}"],
|
|
58
70
|
"path": ["v1", "orders", "{{order_id}}"]
|
|
59
71
|
},
|
|
60
|
-
"description": "
|
|
72
|
+
"description": "Retrieves the order entity using {{order_id}}."
|
|
61
73
|
}
|
|
62
74
|
},
|
|
63
75
|
{
|
|
64
|
-
"name": "
|
|
76
|
+
"name": "Fetch Payments for an Order",
|
|
65
77
|
"request": {
|
|
66
78
|
"method": "GET",
|
|
67
79
|
"header": [],
|
|
@@ -70,37 +82,53 @@
|
|
|
70
82
|
"host": ["{{razorpay_base_url}}"],
|
|
71
83
|
"path": ["v1", "orders", "{{order_id}}", "payments"]
|
|
72
84
|
},
|
|
73
|
-
"description": "
|
|
85
|
+
"description": "Fetches all payment attempts made against {{order_id}}."
|
|
74
86
|
}
|
|
75
87
|
},
|
|
76
88
|
{
|
|
77
|
-
"name": "
|
|
89
|
+
"name": "List All Orders (Paginated)",
|
|
78
90
|
"request": {
|
|
79
91
|
"method": "GET",
|
|
80
92
|
"header": [],
|
|
81
93
|
"url": {
|
|
82
|
-
"raw": "{{razorpay_base_url}}/v1/orders?count=
|
|
94
|
+
"raw": "{{razorpay_base_url}}/v1/orders?count=20&skip=0",
|
|
83
95
|
"host": ["{{razorpay_base_url}}"],
|
|
84
96
|
"path": ["v1", "orders"],
|
|
85
97
|
"query": [
|
|
86
|
-
{
|
|
87
|
-
|
|
88
|
-
"value": "10",
|
|
89
|
-
"description": "Number of orders to retrieve"
|
|
90
|
-
}
|
|
98
|
+
{ "key": "count", "value": "20" },
|
|
99
|
+
{ "key": "skip", "value": "0" }
|
|
91
100
|
]
|
|
92
101
|
},
|
|
93
|
-
"description": "Lists
|
|
102
|
+
"description": "Lists all merchant orders in descending order."
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "Update Order Notes",
|
|
107
|
+
"request": {
|
|
108
|
+
"method": "PATCH",
|
|
109
|
+
"header": [
|
|
110
|
+
{ "key": "Content-Type", "value": "application/json" }
|
|
111
|
+
],
|
|
112
|
+
"body": {
|
|
113
|
+
"mode": "raw",
|
|
114
|
+
"raw": "{\n \"notes\": {\n \"special_instructions\": \"Fragile packing required\",\n \"delivery_slot\": \"Morning 9 AM - 12 PM\"\n }\n}"
|
|
115
|
+
},
|
|
116
|
+
"url": {
|
|
117
|
+
"raw": "{{razorpay_base_url}}/v1/orders/{{order_id}}",
|
|
118
|
+
"host": ["{{razorpay_base_url}}"],
|
|
119
|
+
"path": ["v1", "orders", "{{order_id}}"]
|
|
120
|
+
},
|
|
121
|
+
"description": "Updates metadata/notes for an existing order."
|
|
94
122
|
}
|
|
95
123
|
}
|
|
96
124
|
]
|
|
97
125
|
},
|
|
98
126
|
{
|
|
99
|
-
"name": "Payments",
|
|
100
|
-
"description": "
|
|
127
|
+
"name": "2. Payments API",
|
|
128
|
+
"description": "Inspect, capture, and process transactions.",
|
|
101
129
|
"item": [
|
|
102
130
|
{
|
|
103
|
-
"name": "
|
|
131
|
+
"name": "Fetch Payment by ID",
|
|
104
132
|
"request": {
|
|
105
133
|
"method": "GET",
|
|
106
134
|
"header": [],
|
|
@@ -109,167 +137,576 @@
|
|
|
109
137
|
"host": ["{{razorpay_base_url}}"],
|
|
110
138
|
"path": ["v1", "payments", "{{payment_id}}"]
|
|
111
139
|
},
|
|
112
|
-
"description": "Fetches
|
|
140
|
+
"description": "Fetches details of a specific payment transaction."
|
|
113
141
|
}
|
|
114
142
|
},
|
|
115
143
|
{
|
|
116
|
-
"name": "
|
|
144
|
+
"name": "Capture Payment (Manual)",
|
|
117
145
|
"request": {
|
|
118
146
|
"method": "POST",
|
|
119
147
|
"header": [
|
|
120
|
-
{
|
|
121
|
-
"key": "Content-Type",
|
|
122
|
-
"value": "application/json"
|
|
123
|
-
}
|
|
148
|
+
{ "key": "Content-Type", "value": "application/json" }
|
|
124
149
|
],
|
|
125
150
|
"body": {
|
|
126
151
|
"mode": "raw",
|
|
127
|
-
"raw": "{\n \"amount\":
|
|
152
|
+
"raw": "{\n \"amount\": 149900,\n \"currency\": \"INR\"\n}"
|
|
128
153
|
},
|
|
129
154
|
"url": {
|
|
130
155
|
"raw": "{{razorpay_base_url}}/v1/payments/{{payment_id}}/capture",
|
|
131
156
|
"host": ["{{razorpay_base_url}}"],
|
|
132
157
|
"path": ["v1", "payments", "{{payment_id}}", "capture"]
|
|
133
158
|
},
|
|
134
|
-
"description": "Captures an authorized payment
|
|
159
|
+
"description": "Captures an authorized payment before timeout."
|
|
135
160
|
}
|
|
136
161
|
},
|
|
137
162
|
{
|
|
138
|
-
"name": "
|
|
163
|
+
"name": "Fetch Card Details of Payment",
|
|
139
164
|
"request": {
|
|
140
|
-
"method": "
|
|
165
|
+
"method": "GET",
|
|
166
|
+
"header": [],
|
|
167
|
+
"url": {
|
|
168
|
+
"raw": "{{razorpay_base_url}}/v1/payments/{{payment_id}}/card",
|
|
169
|
+
"host": ["{{razorpay_base_url}}"],
|
|
170
|
+
"path": ["v1", "payments", "{{payment_id}}", "card"]
|
|
171
|
+
},
|
|
172
|
+
"description": "Fetches tokenized card brand, last4, and issuer network."
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "List All Payments",
|
|
177
|
+
"request": {
|
|
178
|
+
"method": "GET",
|
|
179
|
+
"header": [],
|
|
180
|
+
"url": {
|
|
181
|
+
"raw": "{{razorpay_base_url}}/v1/payments?count=10",
|
|
182
|
+
"host": ["{{razorpay_base_url}}"],
|
|
183
|
+
"path": ["v1", "payments"],
|
|
184
|
+
"query": [
|
|
185
|
+
{ "key": "count", "value": "10" }
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"description": "Lists recent payments received."
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "3. Payment Links & UPI QR Codes",
|
|
195
|
+
"description": "Direct checkout links and dynamic on-counter / on-screen UPI QR codes.",
|
|
196
|
+
"item": [
|
|
197
|
+
{
|
|
198
|
+
"name": "Create Standard Payment Link",
|
|
199
|
+
"event": [
|
|
200
|
+
{
|
|
201
|
+
"listen": "test",
|
|
202
|
+
"script": {
|
|
203
|
+
"exec": [
|
|
204
|
+
"var jsonData = pm.response.json();",
|
|
205
|
+
"if (jsonData && jsonData.id) {",
|
|
206
|
+
" pm.environment.set('payment_link_id', jsonData.id);",
|
|
207
|
+
" console.log('Saved payment_link_id: ' + jsonData.id);",
|
|
208
|
+
"}"
|
|
209
|
+
],
|
|
210
|
+
"type": "text/javascript"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"request": {
|
|
215
|
+
"method": "POST",
|
|
141
216
|
"header": [
|
|
142
|
-
{
|
|
143
|
-
|
|
144
|
-
|
|
217
|
+
{ "key": "Content-Type", "value": "application/json" }
|
|
218
|
+
],
|
|
219
|
+
"body": {
|
|
220
|
+
"mode": "raw",
|
|
221
|
+
"raw": "{\n \"amount\": 149900,\n \"currency\": \"INR\",\n \"accept_partial\": false,\n \"reference_id\": \"pl_ref_{{$timestamp}}\",\n \"description\": \"Payment for Boost Engine eCommerce Order\",\n \"customer\": {\n \"name\": \"Aman Sharma\",\n \"contact\": \"+919876543210\",\n \"email\": \"aman@example.com\"\n },\n \"notify\": {\n \"sms\": true,\n \"email\": true,\n \"whatsapp\": true\n },\n \"reminder_enable\": true\n}"
|
|
222
|
+
},
|
|
223
|
+
"url": {
|
|
224
|
+
"raw": "{{razorpay_base_url}}/v1/payment_links",
|
|
225
|
+
"host": ["{{razorpay_base_url}}"],
|
|
226
|
+
"path": ["v1", "payment_links"]
|
|
227
|
+
},
|
|
228
|
+
"description": "Generates a hosted payment link with automatic SMS/Email/WhatsApp notification."
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "Fetch Payment Link Details",
|
|
233
|
+
"request": {
|
|
234
|
+
"method": "GET",
|
|
235
|
+
"header": [],
|
|
236
|
+
"url": {
|
|
237
|
+
"raw": "{{razorpay_base_url}}/v1/payment_links/{{payment_link_id}}",
|
|
238
|
+
"host": ["{{razorpay_base_url}}"],
|
|
239
|
+
"path": ["v1", "payment_links", "{{payment_link_id}}"]
|
|
240
|
+
},
|
|
241
|
+
"description": "Checks payment link status (created, paid, expired, cancelled)."
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "Cancel Payment Link",
|
|
246
|
+
"request": {
|
|
247
|
+
"method": "POST",
|
|
248
|
+
"header": [],
|
|
249
|
+
"url": {
|
|
250
|
+
"raw": "{{razorpay_base_url}}/v1/payment_links/{{payment_link_id}}/cancel",
|
|
251
|
+
"host": ["{{razorpay_base_url}}"],
|
|
252
|
+
"path": ["v1", "payment_links", "{{payment_link_id}}", "cancel"]
|
|
253
|
+
},
|
|
254
|
+
"description": "Cancels an unpaid payment link."
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "Create Dynamic UPI QR Code",
|
|
259
|
+
"event": [
|
|
260
|
+
{
|
|
261
|
+
"listen": "test",
|
|
262
|
+
"script": {
|
|
263
|
+
"exec": [
|
|
264
|
+
"var jsonData = pm.response.json();",
|
|
265
|
+
"if (jsonData && jsonData.id) {",
|
|
266
|
+
" pm.environment.set('razorpay_qr_id', jsonData.id);",
|
|
267
|
+
"}"
|
|
268
|
+
],
|
|
269
|
+
"type": "text/javascript"
|
|
145
270
|
}
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"request": {
|
|
274
|
+
"method": "POST",
|
|
275
|
+
"header": [
|
|
276
|
+
{ "key": "Content-Type", "value": "application/json" }
|
|
146
277
|
],
|
|
147
278
|
"body": {
|
|
148
279
|
"mode": "raw",
|
|
149
|
-
"raw": "{\n \"
|
|
280
|
+
"raw": "{\n \"type\": \"upi_qr\",\n \"name\": \"Boost Engine Checkout QR\",\n \"usage\": \"single_use\",\n \"fixed_amount\": true,\n \"payment_amount\": 149900,\n \"description\": \"Payment for Order #1001\",\n \"customer_id\": \"{{customer_id}}\",\n \"close_by\": 1735689600\n}"
|
|
150
281
|
},
|
|
151
282
|
"url": {
|
|
152
|
-
"raw": "{{razorpay_base_url}}/v1/payments/
|
|
283
|
+
"raw": "{{razorpay_base_url}}/v1/payments/qr_codes",
|
|
153
284
|
"host": ["{{razorpay_base_url}}"],
|
|
154
|
-
"path": ["v1", "payments", "
|
|
285
|
+
"path": ["v1", "payments", "qr_codes"]
|
|
155
286
|
},
|
|
156
|
-
"description": "
|
|
287
|
+
"description": "Creates a dynamic single-use or multi-use UPI QR code image and payload."
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "Fetch QR Code by ID",
|
|
292
|
+
"request": {
|
|
293
|
+
"method": "GET",
|
|
294
|
+
"header": [],
|
|
295
|
+
"url": {
|
|
296
|
+
"raw": "{{razorpay_base_url}}/v1/payments/qr_codes/{{razorpay_qr_id}}",
|
|
297
|
+
"host": ["{{razorpay_base_url}}"],
|
|
298
|
+
"path": ["v1", "payments", "qr_codes", "{{razorpay_qr_id}}"]
|
|
299
|
+
},
|
|
300
|
+
"description": "Retrieves the status, scanned state, and payments received on a QR code."
|
|
157
301
|
}
|
|
158
302
|
}
|
|
159
303
|
]
|
|
160
304
|
},
|
|
161
305
|
{
|
|
162
|
-
"name": "
|
|
163
|
-
"description": "
|
|
306
|
+
"name": "4. Smart Collect (Virtual Accounts / B2B Bank Transfer)",
|
|
307
|
+
"description": "Generate unique virtual bank account & UPI ID for automatic reconciliation of NEFT/RTGS/IMPS payments.",
|
|
164
308
|
"item": [
|
|
165
309
|
{
|
|
166
|
-
"name": "
|
|
310
|
+
"name": "Create Virtual Account",
|
|
311
|
+
"event": [
|
|
312
|
+
{
|
|
313
|
+
"listen": "test",
|
|
314
|
+
"script": {
|
|
315
|
+
"exec": [
|
|
316
|
+
"var jsonData = pm.response.json();",
|
|
317
|
+
"if (jsonData && jsonData.id) {",
|
|
318
|
+
" pm.environment.set('razorpay_va_id', jsonData.id);",
|
|
319
|
+
"}"
|
|
320
|
+
],
|
|
321
|
+
"type": "text/javascript"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
],
|
|
167
325
|
"request": {
|
|
168
326
|
"method": "POST",
|
|
169
327
|
"header": [
|
|
170
|
-
{
|
|
171
|
-
|
|
172
|
-
|
|
328
|
+
{ "key": "Content-Type", "value": "application/json" }
|
|
329
|
+
],
|
|
330
|
+
"body": {
|
|
331
|
+
"mode": "raw",
|
|
332
|
+
"raw": "{\n \"receivers\": {\n \"types\": [\n \"bank_account\",\n \"vpa\"\n ]\n },\n \"description\": \"Dedicated Virtual Account for Aman Sharma\",\n \"customer_id\": \"{{customer_id}}\",\n \"close_by\": 1735689600\n}"
|
|
333
|
+
},
|
|
334
|
+
"url": {
|
|
335
|
+
"raw": "{{razorpay_base_url}}/v1/virtual_accounts",
|
|
336
|
+
"host": ["{{razorpay_base_url}}"],
|
|
337
|
+
"path": ["v1", "virtual_accounts"]
|
|
338
|
+
},
|
|
339
|
+
"description": "Creates a dedicated virtual bank account (account number + IFSC) and UPI ID."
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "Fetch Virtual Account by ID",
|
|
344
|
+
"request": {
|
|
345
|
+
"method": "GET",
|
|
346
|
+
"header": [],
|
|
347
|
+
"url": {
|
|
348
|
+
"raw": "{{razorpay_base_url}}/v1/virtual_accounts/{{razorpay_va_id}}",
|
|
349
|
+
"host": ["{{razorpay_base_url}}"],
|
|
350
|
+
"path": ["v1", "virtual_accounts", "{{razorpay_va_id}}"]
|
|
351
|
+
},
|
|
352
|
+
"description": "Fetches bank account and receiver details."
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "Fetch Payments for Virtual Account",
|
|
357
|
+
"request": {
|
|
358
|
+
"method": "GET",
|
|
359
|
+
"header": [],
|
|
360
|
+
"url": {
|
|
361
|
+
"raw": "{{razorpay_base_url}}/v1/virtual_accounts/{{razorpay_va_id}}/payments",
|
|
362
|
+
"host": ["{{razorpay_base_url}}"],
|
|
363
|
+
"path": ["v1", "virtual_accounts", "{{razorpay_va_id}}", "payments"]
|
|
364
|
+
},
|
|
365
|
+
"description": "Lists all payments received into the virtual account."
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"name": "5. Customers & Card Vault API",
|
|
372
|
+
"description": "Manage customer profiles and saved cards/mandates.",
|
|
373
|
+
"item": [
|
|
374
|
+
{
|
|
375
|
+
"name": "Create Customer",
|
|
376
|
+
"event": [
|
|
377
|
+
{
|
|
378
|
+
"listen": "test",
|
|
379
|
+
"script": {
|
|
380
|
+
"exec": [
|
|
381
|
+
"var jsonData = pm.response.json();",
|
|
382
|
+
"if (jsonData && jsonData.id) {",
|
|
383
|
+
" pm.environment.set('customer_id', jsonData.id);",
|
|
384
|
+
" console.log('Saved customer_id: ' + jsonData.id);",
|
|
385
|
+
"}"
|
|
386
|
+
],
|
|
387
|
+
"type": "text/javascript"
|
|
173
388
|
}
|
|
389
|
+
}
|
|
390
|
+
],
|
|
391
|
+
"request": {
|
|
392
|
+
"method": "POST",
|
|
393
|
+
"header": [
|
|
394
|
+
{ "key": "Content-Type", "value": "application/json" }
|
|
174
395
|
],
|
|
175
396
|
"body": {
|
|
176
397
|
"mode": "raw",
|
|
177
|
-
"raw": "{\n \"
|
|
398
|
+
"raw": "{\n \"name\": \"Aman Sharma\",\n \"contact\": \"+919876543210\",\n \"email\": \"aman@example.com\",\n \"fail_existing\": 0,\n \"notes\": {\n \"user_type\": \"VIP Member\",\n \"app_user_id\": \"usr_boost_1001\"\n }\n}"
|
|
178
399
|
},
|
|
179
400
|
"url": {
|
|
180
|
-
"raw": "{{razorpay_base_url}}/v1/
|
|
401
|
+
"raw": "{{razorpay_base_url}}/v1/customers",
|
|
181
402
|
"host": ["{{razorpay_base_url}}"],
|
|
182
|
-
"path": ["v1", "
|
|
403
|
+
"path": ["v1", "customers"]
|
|
183
404
|
},
|
|
184
|
-
"description": "
|
|
405
|
+
"description": "Creates customer record for one-click checkout and saved payment methods."
|
|
185
406
|
}
|
|
186
407
|
},
|
|
187
408
|
{
|
|
188
|
-
"name": "
|
|
409
|
+
"name": "Fetch Customer by ID",
|
|
189
410
|
"request": {
|
|
190
411
|
"method": "GET",
|
|
191
412
|
"header": [],
|
|
192
413
|
"url": {
|
|
193
|
-
"raw": "{{razorpay_base_url}}/v1/
|
|
414
|
+
"raw": "{{razorpay_base_url}}/v1/customers/{{customer_id}}",
|
|
194
415
|
"host": ["{{razorpay_base_url}}"],
|
|
195
|
-
"path": ["v1", "
|
|
416
|
+
"path": ["v1", "customers", "{{customer_id}}"]
|
|
196
417
|
},
|
|
197
|
-
"description": "Fetches
|
|
418
|
+
"description": "Fetches customer entity."
|
|
198
419
|
}
|
|
199
420
|
},
|
|
200
421
|
{
|
|
201
|
-
"name": "
|
|
422
|
+
"name": "Fetch Saved Tokens / Cards of Customer",
|
|
202
423
|
"request": {
|
|
203
424
|
"method": "GET",
|
|
204
425
|
"header": [],
|
|
205
426
|
"url": {
|
|
206
|
-
"raw": "{{razorpay_base_url}}/v1/
|
|
427
|
+
"raw": "{{razorpay_base_url}}/v1/customers/{{customer_id}}/tokens",
|
|
207
428
|
"host": ["{{razorpay_base_url}}"],
|
|
208
|
-
"path": ["v1", "
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
429
|
+
"path": ["v1", "customers", "{{customer_id}}", "tokens"]
|
|
430
|
+
},
|
|
431
|
+
"description": "Fetches RBI-compliant tokenized cards for 1-click seamless re-purchases."
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
]
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "6. Invoices API",
|
|
438
|
+
"description": "GST-compliant tax invoices for eCommerce sales.",
|
|
439
|
+
"item": [
|
|
440
|
+
{
|
|
441
|
+
"name": "Create Tax Invoice",
|
|
442
|
+
"event": [
|
|
443
|
+
{
|
|
444
|
+
"listen": "test",
|
|
445
|
+
"script": {
|
|
446
|
+
"exec": [
|
|
447
|
+
"var jsonData = pm.response.json();",
|
|
448
|
+
"if (jsonData && jsonData.id) {",
|
|
449
|
+
" pm.environment.set('razorpay_invoice_id', jsonData.id);",
|
|
450
|
+
"}"
|
|
451
|
+
],
|
|
452
|
+
"type": "text/javascript"
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
"request": {
|
|
457
|
+
"method": "POST",
|
|
458
|
+
"header": [
|
|
459
|
+
{ "key": "Content-Type", "value": "application/json" }
|
|
460
|
+
],
|
|
461
|
+
"body": {
|
|
462
|
+
"mode": "raw",
|
|
463
|
+
"raw": "{\n \"type\": \"invoice\",\n \"customer\": {\n \"name\": \"Aman Sharma\",\n \"email\": \"aman@example.com\",\n \"contact\": \"+919876543210\"\n },\n \"line_items\": [\n {\n \"name\": \"Boost Engine Premium Hoodie\",\n \"description\": \"Size L, Black color\",\n \"amount\": 149900,\n \"currency\": \"INR\",\n \"quantity\": 1\n }\n ],\n \"sms_notify\": 1,\n \"email_notify\": 1,\n \"currency\": \"INR\"\n}"
|
|
464
|
+
},
|
|
465
|
+
"url": {
|
|
466
|
+
"raw": "{{razorpay_base_url}}/v1/invoices",
|
|
467
|
+
"host": ["{{razorpay_base_url}}"],
|
|
468
|
+
"path": ["v1", "invoices"]
|
|
215
469
|
},
|
|
216
|
-
"description": "
|
|
470
|
+
"description": "Creates a GST itemized invoice."
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "Issue Invoice",
|
|
475
|
+
"request": {
|
|
476
|
+
"method": "POST",
|
|
477
|
+
"header": [],
|
|
478
|
+
"url": {
|
|
479
|
+
"raw": "{{razorpay_base_url}}/v1/invoices/{{razorpay_invoice_id}}/issue",
|
|
480
|
+
"host": ["{{razorpay_base_url}}"],
|
|
481
|
+
"path": ["v1", "invoices", "{{razorpay_invoice_id}}", "issue"]
|
|
482
|
+
},
|
|
483
|
+
"description": "Issues a draft invoice and sends email/SMS link to customer."
|
|
217
484
|
}
|
|
218
485
|
}
|
|
219
486
|
]
|
|
220
487
|
},
|
|
221
488
|
{
|
|
222
|
-
"name": "
|
|
223
|
-
"description": "
|
|
489
|
+
"name": "7. Subscriptions & Recurring Plans",
|
|
490
|
+
"description": "Automated recurring subscriptions with UPI Autopay and cards.",
|
|
224
491
|
"item": [
|
|
225
492
|
{
|
|
226
|
-
"name": "
|
|
493
|
+
"name": "Create Recurring Plan",
|
|
494
|
+
"event": [
|
|
495
|
+
{
|
|
496
|
+
"listen": "test",
|
|
497
|
+
"script": {
|
|
498
|
+
"exec": [
|
|
499
|
+
"var jsonData = pm.response.json();",
|
|
500
|
+
"if (jsonData && jsonData.id) {",
|
|
501
|
+
" pm.environment.set('razorpay_plan_id', jsonData.id);",
|
|
502
|
+
"}"
|
|
503
|
+
],
|
|
504
|
+
"type": "text/javascript"
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
],
|
|
227
508
|
"request": {
|
|
228
509
|
"method": "POST",
|
|
229
510
|
"header": [
|
|
230
|
-
{
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
{
|
|
235
|
-
|
|
236
|
-
|
|
511
|
+
{ "key": "Content-Type", "value": "application/json" }
|
|
512
|
+
],
|
|
513
|
+
"body": {
|
|
514
|
+
"mode": "raw",
|
|
515
|
+
"raw": "{\n \"period\": \"monthly\",\n \"interval\": 1,\n \"item\": {\n \"name\": \"Boost Engine Pro Membership\",\n \"amount\": 99900,\n \"currency\": \"INR\",\n \"description\": \"Monthly Pro Membership\"\n }\n}"
|
|
516
|
+
},
|
|
517
|
+
"url": {
|
|
518
|
+
"raw": "{{razorpay_base_url}}/v1/plans",
|
|
519
|
+
"host": ["{{razorpay_base_url}}"],
|
|
520
|
+
"path": ["v1", "plans"]
|
|
521
|
+
},
|
|
522
|
+
"description": "Creates a billing plan."
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "Create Subscription",
|
|
527
|
+
"event": [
|
|
528
|
+
{
|
|
529
|
+
"listen": "test",
|
|
530
|
+
"script": {
|
|
531
|
+
"exec": [
|
|
532
|
+
"var jsonData = pm.response.json();",
|
|
533
|
+
"if (jsonData && jsonData.id) {",
|
|
534
|
+
" pm.environment.set('razorpay_sub_id', jsonData.id);",
|
|
535
|
+
"}"
|
|
536
|
+
],
|
|
537
|
+
"type": "text/javascript"
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
"request": {
|
|
542
|
+
"method": "POST",
|
|
543
|
+
"header": [
|
|
544
|
+
{ "key": "Content-Type", "value": "application/json" }
|
|
545
|
+
],
|
|
546
|
+
"body": {
|
|
547
|
+
"mode": "raw",
|
|
548
|
+
"raw": "{\n \"plan_id\": \"{{razorpay_plan_id}}\",\n \"total_count\": 12,\n \"quantity\": 1,\n \"customer_notify\": 1,\n \"start_at\": 1735689600,\n \"notes\": {\n \"user_id\": \"usr_boost_01\"\n }\n}"
|
|
549
|
+
},
|
|
550
|
+
"url": {
|
|
551
|
+
"raw": "{{razorpay_base_url}}/v1/subscriptions",
|
|
552
|
+
"host": ["{{razorpay_base_url}}"],
|
|
553
|
+
"path": ["v1", "subscriptions"]
|
|
554
|
+
},
|
|
555
|
+
"description": "Initializes a recurring subscription."
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"name": "Cancel Subscription",
|
|
560
|
+
"request": {
|
|
561
|
+
"method": "POST",
|
|
562
|
+
"header": [
|
|
563
|
+
{ "key": "Content-Type", "value": "application/json" }
|
|
564
|
+
],
|
|
565
|
+
"body": {
|
|
566
|
+
"mode": "raw",
|
|
567
|
+
"raw": "{\n \"cancel_at_cycle_end\": 0\n}"
|
|
568
|
+
},
|
|
569
|
+
"url": {
|
|
570
|
+
"raw": "{{razorpay_base_url}}/v1/subscriptions/{{razorpay_sub_id}}/cancel",
|
|
571
|
+
"host": ["{{razorpay_base_url}}"],
|
|
572
|
+
"path": ["v1", "subscriptions", "{{razorpay_sub_id}}", "cancel"]
|
|
573
|
+
},
|
|
574
|
+
"description": "Cancels active subscription."
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
]
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"name": "8. Refunds API",
|
|
581
|
+
"description": "Process standard or instant refunds.",
|
|
582
|
+
"item": [
|
|
583
|
+
{
|
|
584
|
+
"name": "Create Refund",
|
|
585
|
+
"event": [
|
|
586
|
+
{
|
|
587
|
+
"listen": "test",
|
|
588
|
+
"script": {
|
|
589
|
+
"exec": [
|
|
590
|
+
"var jsonData = pm.response.json();",
|
|
591
|
+
"if (jsonData && jsonData.id) {",
|
|
592
|
+
" pm.environment.set('refund_id', jsonData.id);",
|
|
593
|
+
" console.log('Saved refund_id: ' + jsonData.id);",
|
|
594
|
+
"}"
|
|
595
|
+
],
|
|
596
|
+
"type": "text/javascript"
|
|
237
597
|
}
|
|
598
|
+
}
|
|
599
|
+
],
|
|
600
|
+
"request": {
|
|
601
|
+
"method": "POST",
|
|
602
|
+
"header": [
|
|
603
|
+
{ "key": "Content-Type", "value": "application/json" }
|
|
238
604
|
],
|
|
239
605
|
"body": {
|
|
240
606
|
"mode": "raw",
|
|
241
|
-
"raw": "{\n \"
|
|
607
|
+
"raw": "{\n \"amount\": 149900,\n \"reverse_all\": 1,\n \"notes\": {\n \"reason\": \"Customer requested cancellation before dispatch\"\n }\n}"
|
|
608
|
+
},
|
|
609
|
+
"url": {
|
|
610
|
+
"raw": "{{razorpay_base_url}}/v1/payments/{{payment_id}}/refund",
|
|
611
|
+
"host": ["{{razorpay_base_url}}"],
|
|
612
|
+
"path": ["v1", "payments", "{{payment_id}}", "refund"]
|
|
613
|
+
},
|
|
614
|
+
"description": "Initiates a full or partial refund."
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "Fetch Refund by ID",
|
|
619
|
+
"request": {
|
|
620
|
+
"method": "GET",
|
|
621
|
+
"header": [],
|
|
622
|
+
"url": {
|
|
623
|
+
"raw": "{{razorpay_base_url}}/v1/refunds/{{refund_id}}",
|
|
624
|
+
"host": ["{{razorpay_base_url}}"],
|
|
625
|
+
"path": ["v1", "refunds", "{{refund_id}}"]
|
|
626
|
+
},
|
|
627
|
+
"description": "Fetches refund details and status (processed, pending)."
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
]
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"name": "9. Webhooks Simulator",
|
|
634
|
+
"description": "Simulated webhook payloads ready to trigger against local API server.",
|
|
635
|
+
"item": [
|
|
636
|
+
{
|
|
637
|
+
"name": "Webhook: order.paid",
|
|
638
|
+
"request": {
|
|
639
|
+
"method": "POST",
|
|
640
|
+
"header": [
|
|
641
|
+
{ "key": "Content-Type", "value": "application/json" },
|
|
642
|
+
{ "key": "X-Razorpay-Signature", "value": "{{computed_webhook_signature}}" }
|
|
643
|
+
],
|
|
644
|
+
"body": {
|
|
645
|
+
"mode": "raw",
|
|
646
|
+
"raw": "{\n \"entity\": \"event\",\n \"account_id\": \"acc_boost_1001\",\n \"event\": \"order.paid\",\n \"contains\": [\"order\", \"payment\"],\n \"payload\": {\n \"payment\": {\n \"entity\": {\n \"id\": \"pay_test_001\",\n \"entity\": \"payment\",\n \"amount\": 149900,\n \"currency\": \"INR\",\n \"status\": \"captured\",\n \"order_id\": \"order_test_001\",\n \"method\": \"upi\",\n \"vpa\": \"aman@upi\"\n }\n },\n \"order\": {\n \"entity\": {\n \"id\": \"order_test_001\",\n \"entity\": \"order\",\n \"amount\": 149900,\n \"currency\": \"INR\",\n \"status\": \"paid\"\n }\n }\n },\n \"created_at\": 1709923200\n}"
|
|
242
647
|
},
|
|
243
648
|
"url": {
|
|
244
649
|
"raw": "{{local_webhook_url}}",
|
|
245
650
|
"host": ["{{local_webhook_url}}"]
|
|
246
651
|
},
|
|
247
|
-
"description": "Simulates
|
|
652
|
+
"description": "Simulates order.paid webhook."
|
|
248
653
|
}
|
|
249
654
|
},
|
|
250
655
|
{
|
|
251
|
-
"name": "
|
|
656
|
+
"name": "Webhook: payment.failed",
|
|
252
657
|
"request": {
|
|
253
658
|
"method": "POST",
|
|
254
659
|
"header": [
|
|
255
|
-
{
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
660
|
+
{ "key": "Content-Type", "value": "application/json" },
|
|
661
|
+
{ "key": "X-Razorpay-Signature", "value": "{{computed_webhook_signature}}" }
|
|
662
|
+
],
|
|
663
|
+
"body": {
|
|
664
|
+
"mode": "raw",
|
|
665
|
+
"raw": "{\n \"entity\": \"event\",\n \"account_id\": \"acc_boost_1001\",\n \"event\": \"payment.failed\",\n \"contains\": [\"payment\"],\n \"payload\": {\n \"payment\": {\n \"entity\": {\n \"id\": \"pay_test_failed\",\n \"entity\": \"payment\",\n \"amount\": 149900,\n \"currency\": \"INR\",\n \"status\": \"failed\",\n \"error_code\": \"BAD_REQUEST_ERROR\",\n \"error_description\": \"Payment was declined by bank\"\n }\n }\n },\n \"created_at\": 1709923200\n}"
|
|
666
|
+
},
|
|
667
|
+
"url": {
|
|
668
|
+
"raw": "{{local_webhook_url}}",
|
|
669
|
+
"host": ["{{local_webhook_url}}"]
|
|
670
|
+
},
|
|
671
|
+
"description": "Simulates payment.failed webhook."
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"name": "Webhook: refund.processed",
|
|
676
|
+
"request": {
|
|
677
|
+
"method": "POST",
|
|
678
|
+
"header": [
|
|
679
|
+
{ "key": "Content-Type", "value": "application/json" },
|
|
680
|
+
{ "key": "X-Razorpay-Signature", "value": "{{computed_webhook_signature}}" }
|
|
681
|
+
],
|
|
682
|
+
"body": {
|
|
683
|
+
"mode": "raw",
|
|
684
|
+
"raw": "{\n \"entity\": \"event\",\n \"account_id\": \"acc_boost_1001\",\n \"event\": \"refund.processed\",\n \"contains\": [\"refund\"],\n \"payload\": {\n \"refund\": {\n \"entity\": {\n \"id\": \"rfnd_test_001\",\n \"entity\": \"refund\",\n \"amount\": 149900,\n \"currency\": \"INR\",\n \"payment_id\": \"pay_test_001\",\n \"status\": \"processed\"\n }\n }\n },\n \"created_at\": 1709923500\n}"
|
|
685
|
+
},
|
|
686
|
+
"url": {
|
|
687
|
+
"raw": "{{local_webhook_url}}",
|
|
688
|
+
"host": ["{{local_webhook_url}}"]
|
|
689
|
+
},
|
|
690
|
+
"description": "Simulates refund.processed webhook."
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"name": "Webhook: virtual_account.credited",
|
|
695
|
+
"request": {
|
|
696
|
+
"method": "POST",
|
|
697
|
+
"header": [
|
|
698
|
+
{ "key": "Content-Type", "value": "application/json" },
|
|
699
|
+
{ "key": "X-Razorpay-Signature", "value": "{{computed_webhook_signature}}" }
|
|
263
700
|
],
|
|
264
701
|
"body": {
|
|
265
702
|
"mode": "raw",
|
|
266
|
-
"raw": "{\n \"entity\": \"event\",\n \"account_id\": \"
|
|
703
|
+
"raw": "{\n \"entity\": \"event\",\n \"account_id\": \"acc_boost_1001\",\n \"event\": \"virtual_account.credited\",\n \"contains\": [\"virtual_account\", \"payment\"],\n \"payload\": {\n \"payment\": {\n \"entity\": {\n \"id\": \"pay_va_001\",\n \"amount\": 500000,\n \"currency\": \"INR\",\n \"method\": \"bank_transfer\",\n \"bank\": \"HDFC\"\n }\n }\n },\n \"created_at\": 1709923800\n}"
|
|
267
704
|
},
|
|
268
705
|
"url": {
|
|
269
706
|
"raw": "{{local_webhook_url}}",
|
|
270
707
|
"host": ["{{local_webhook_url}}"]
|
|
271
708
|
},
|
|
272
|
-
"description": "Simulates
|
|
709
|
+
"description": "Simulates virtual_account.credited webhook for automated B2B NEFT/RTGS reconciliation."
|
|
273
710
|
}
|
|
274
711
|
}
|
|
275
712
|
]
|