@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,351 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"_postman_id": "sp123456-4444-4abc-def5-678901234567",
|
|
4
|
+
"name": "Shopify Full Admin REST API Collection (2024-07)",
|
|
5
|
+
"description": "Exhaustive Production Postman Collection for Shopify Admin REST API 2024-07 (Products, Variants, Orders, Fulfillments, Customers, Inventory Levels, Webhooks). Includes auto-chaining IDs.",
|
|
6
|
+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
7
|
+
},
|
|
8
|
+
"auth": {
|
|
9
|
+
"type": "noauth"
|
|
10
|
+
},
|
|
11
|
+
"item": [
|
|
12
|
+
{
|
|
13
|
+
"name": "1. Products & Variants",
|
|
14
|
+
"description": "Manage catalog products, variants, images, and prices.",
|
|
15
|
+
"item": [
|
|
16
|
+
{
|
|
17
|
+
"name": "Fetch Products List",
|
|
18
|
+
"request": {
|
|
19
|
+
"method": "GET",
|
|
20
|
+
"header": [
|
|
21
|
+
{
|
|
22
|
+
"key": "X-Shopify-Access-Token",
|
|
23
|
+
"value": "{{shopify_access_token}}"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"url": {
|
|
27
|
+
"raw": "https://{{shopify_store_domain}}.myshopify.com/admin/api/2024-07/products.json?limit=20",
|
|
28
|
+
"protocol": "https",
|
|
29
|
+
"host": ["{{shopify_store_domain}}", "myshopify", "com"],
|
|
30
|
+
"path": ["admin", "api", "2024-07", "products.json"],
|
|
31
|
+
"query": [
|
|
32
|
+
{
|
|
33
|
+
"key": "limit",
|
|
34
|
+
"value": "20"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"description": "Lists store products."
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "Create Product",
|
|
43
|
+
"event": [
|
|
44
|
+
{
|
|
45
|
+
"listen": "test",
|
|
46
|
+
"script": {
|
|
47
|
+
"exec": [
|
|
48
|
+
"var jsonData = pm.response.json();",
|
|
49
|
+
"if (jsonData && jsonData.product && jsonData.product.id) {",
|
|
50
|
+
" pm.environment.set('shopify_product_id', jsonData.product.id);",
|
|
51
|
+
" if (jsonData.product.variants && jsonData.product.variants[0]) {",
|
|
52
|
+
" pm.environment.set('shopify_variant_id', jsonData.product.variants[0].id);",
|
|
53
|
+
" pm.environment.set('shopify_inventory_item_id', jsonData.product.variants[0].inventory_item_id);",
|
|
54
|
+
" }",
|
|
55
|
+
"}"
|
|
56
|
+
],
|
|
57
|
+
"type": "text/javascript"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"request": {
|
|
62
|
+
"method": "POST",
|
|
63
|
+
"header": [
|
|
64
|
+
{
|
|
65
|
+
"key": "X-Shopify-Access-Token",
|
|
66
|
+
"value": "{{shopify_access_token}}"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"key": "Content-Type",
|
|
70
|
+
"value": "application/json"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"body": {
|
|
74
|
+
"mode": "raw",
|
|
75
|
+
"raw": "{\n \"product\": {\n \"title\": \"Boost Engine Oversized Tee\",\n \"body_html\": \"<strong>240 GSM Luxury Heavyweight Cotton</strong>\",\n \"vendor\": \"Boost Engine\",\n \"product_type\": \"Apparel\",\n \"tags\": \"anime, oversized, luxury\",\n \"variants\": [\n {\n \"option1\": \"Large\",\n \"price\": \"999.00\",\n \"sku\": \"TEE-BOOST-L\",\n \"inventory_management\": \"shopify\"\n }\n ]\n }\n}"
|
|
76
|
+
},
|
|
77
|
+
"url": {
|
|
78
|
+
"raw": "https://{{shopify_store_domain}}.myshopify.com/admin/api/2024-07/products.json",
|
|
79
|
+
"protocol": "https",
|
|
80
|
+
"host": ["{{shopify_store_domain}}", "myshopify", "com"],
|
|
81
|
+
"path": ["admin", "api", "2024-07", "products.json"]
|
|
82
|
+
},
|
|
83
|
+
"description": "Creates product and auto-saves product ID, variant ID, and inventory item ID in environment."
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "Get Product by ID",
|
|
88
|
+
"request": {
|
|
89
|
+
"method": "GET",
|
|
90
|
+
"header": [
|
|
91
|
+
{
|
|
92
|
+
"key": "X-Shopify-Access-Token",
|
|
93
|
+
"value": "{{shopify_access_token}}"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"url": {
|
|
97
|
+
"raw": "https://{{shopify_store_domain}}.myshopify.com/admin/api/2024-07/products/{{shopify_product_id}}.json",
|
|
98
|
+
"protocol": "https",
|
|
99
|
+
"host": ["{{shopify_store_domain}}", "myshopify", "com"],
|
|
100
|
+
"path": ["admin", "api", "2024-07", "products", "{{shopify_product_id}}.json"]
|
|
101
|
+
},
|
|
102
|
+
"description": "Fetches a specific product entity."
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "Update Variant Price",
|
|
107
|
+
"request": {
|
|
108
|
+
"method": "PUT",
|
|
109
|
+
"header": [
|
|
110
|
+
{
|
|
111
|
+
"key": "X-Shopify-Access-Token",
|
|
112
|
+
"value": "{{shopify_access_token}}"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"key": "Content-Type",
|
|
116
|
+
"value": "application/json"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"body": {
|
|
120
|
+
"mode": "raw",
|
|
121
|
+
"raw": "{\n \"variant\": {\n \"id\": {{shopify_variant_id}},\n \"price\": \"899.00\",\n \"compare_at_price\": \"1499.00\"\n }\n}"
|
|
122
|
+
},
|
|
123
|
+
"url": {
|
|
124
|
+
"raw": "https://{{shopify_store_domain}}.myshopify.com/admin/api/2024-07/variants/{{shopify_variant_id}}.json",
|
|
125
|
+
"protocol": "https",
|
|
126
|
+
"host": ["{{shopify_store_domain}}", "myshopify", "com"],
|
|
127
|
+
"path": ["admin", "api", "2024-07", "variants", "{{shopify_variant_id}}.json"]
|
|
128
|
+
},
|
|
129
|
+
"description": "Updates variant price and strikethrough compare-at price."
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "2. Orders & Fulfillments",
|
|
136
|
+
"description": "Fetch orders, create manual orders, and manage fulfillments.",
|
|
137
|
+
"item": [
|
|
138
|
+
{
|
|
139
|
+
"name": "Fetch Orders List",
|
|
140
|
+
"request": {
|
|
141
|
+
"method": "GET",
|
|
142
|
+
"header": [
|
|
143
|
+
{
|
|
144
|
+
"key": "X-Shopify-Access-Token",
|
|
145
|
+
"value": "{{shopify_access_token}}"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"url": {
|
|
149
|
+
"raw": "https://{{shopify_store_domain}}.myshopify.com/admin/api/2024-07/orders.json?status=any&limit=20",
|
|
150
|
+
"protocol": "https",
|
|
151
|
+
"host": ["{{shopify_store_domain}}", "myshopify", "com"],
|
|
152
|
+
"path": ["admin", "api", "2024-07", "orders.json"],
|
|
153
|
+
"query": [
|
|
154
|
+
{
|
|
155
|
+
"key": "status",
|
|
156
|
+
"value": "any"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"key": "limit",
|
|
160
|
+
"value": "20"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"description": "Lists store orders."
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "Get Order Details",
|
|
169
|
+
"request": {
|
|
170
|
+
"method": "GET",
|
|
171
|
+
"header": [
|
|
172
|
+
{
|
|
173
|
+
"key": "X-Shopify-Access-Token",
|
|
174
|
+
"value": "{{shopify_access_token}}"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"url": {
|
|
178
|
+
"raw": "https://{{shopify_store_domain}}.myshopify.com/admin/api/2024-07/orders/{{shopify_order_id}}.json",
|
|
179
|
+
"protocol": "https",
|
|
180
|
+
"host": ["{{shopify_store_domain}}", "myshopify", "com"],
|
|
181
|
+
"path": ["admin", "api", "2024-07", "orders", "{{shopify_order_id}}.json"]
|
|
182
|
+
},
|
|
183
|
+
"description": "Fetches line items, shipping address, and payment gateway details."
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "Cancel Order",
|
|
188
|
+
"request": {
|
|
189
|
+
"method": "POST",
|
|
190
|
+
"header": [
|
|
191
|
+
{
|
|
192
|
+
"key": "X-Shopify-Access-Token",
|
|
193
|
+
"value": "{{shopify_access_token}}"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"key": "Content-Type",
|
|
197
|
+
"value": "application/json"
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"body": {
|
|
201
|
+
"mode": "raw",
|
|
202
|
+
"raw": "{\n \"reason\": \"customer\",\n \"email\": true,\n \"restock\": true\n}"
|
|
203
|
+
},
|
|
204
|
+
"url": {
|
|
205
|
+
"raw": "https://{{shopify_store_domain}}.myshopify.com/admin/api/2024-07/orders/{{shopify_order_id}}/cancel.json",
|
|
206
|
+
"protocol": "https",
|
|
207
|
+
"host": ["{{shopify_store_domain}}", "myshopify", "com"],
|
|
208
|
+
"path": ["admin", "api", "2024-07", "orders", "{{shopify_order_id}}", "cancel.json"]
|
|
209
|
+
},
|
|
210
|
+
"description": "Cancels order and optionally restocks inventory."
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "3. Customers API",
|
|
217
|
+
"description": "Search and manage customer profiles.",
|
|
218
|
+
"item": [
|
|
219
|
+
{
|
|
220
|
+
"name": "Search Customer by Email",
|
|
221
|
+
"request": {
|
|
222
|
+
"method": "GET",
|
|
223
|
+
"header": [
|
|
224
|
+
{
|
|
225
|
+
"key": "X-Shopify-Access-Token",
|
|
226
|
+
"value": "{{shopify_access_token}}"
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"url": {
|
|
230
|
+
"raw": "https://{{shopify_store_domain}}.myshopify.com/admin/api/2024-07/customers/search.json?query=email:aman@example.com",
|
|
231
|
+
"protocol": "https",
|
|
232
|
+
"host": ["{{shopify_store_domain}}", "myshopify", "com"],
|
|
233
|
+
"path": ["admin", "api", "2024-07", "customers", "search.json"],
|
|
234
|
+
"query": [
|
|
235
|
+
{
|
|
236
|
+
"key": "query",
|
|
237
|
+
"value": "email:aman@example.com"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"description": "Searches for an existing customer profile."
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "4. Inventory & Locations",
|
|
248
|
+
"description": "Sync multi-location inventory levels.",
|
|
249
|
+
"item": [
|
|
250
|
+
{
|
|
251
|
+
"name": "List Store Locations",
|
|
252
|
+
"request": {
|
|
253
|
+
"method": "GET",
|
|
254
|
+
"header": [
|
|
255
|
+
{
|
|
256
|
+
"key": "X-Shopify-Access-Token",
|
|
257
|
+
"value": "{{shopify_access_token}}"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"url": {
|
|
261
|
+
"raw": "https://{{shopify_store_domain}}.myshopify.com/admin/api/2024-07/locations.json",
|
|
262
|
+
"protocol": "https",
|
|
263
|
+
"host": ["{{shopify_store_domain}}", "myshopify", "com"],
|
|
264
|
+
"path": ["admin", "api", "2024-07", "locations.json"]
|
|
265
|
+
},
|
|
266
|
+
"description": "Retrieves warehouse locations."
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "Set Inventory Level",
|
|
271
|
+
"request": {
|
|
272
|
+
"method": "POST",
|
|
273
|
+
"header": [
|
|
274
|
+
{
|
|
275
|
+
"key": "X-Shopify-Access-Token",
|
|
276
|
+
"value": "{{shopify_access_token}}"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"key": "Content-Type",
|
|
280
|
+
"value": "application/json"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"body": {
|
|
284
|
+
"mode": "raw",
|
|
285
|
+
"raw": "{\n \"location_id\": {{shopify_location_id}},\n \"inventory_item_id\": {{shopify_inventory_item_id}},\n \"available\": 100\n}"
|
|
286
|
+
},
|
|
287
|
+
"url": {
|
|
288
|
+
"raw": "https://{{shopify_store_domain}}.myshopify.com/admin/api/2024-07/inventory_levels/set.json",
|
|
289
|
+
"protocol": "https",
|
|
290
|
+
"host": ["{{shopify_store_domain}}", "myshopify", "com"],
|
|
291
|
+
"path": ["admin", "api", "2024-07", "inventory_levels", "set.json"]
|
|
292
|
+
},
|
|
293
|
+
"description": "Updates live available stock count."
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "5. Webhooks API",
|
|
300
|
+
"description": "Register and manage Shopify real-time webhooks.",
|
|
301
|
+
"item": [
|
|
302
|
+
{
|
|
303
|
+
"name": "List Registered Webhooks",
|
|
304
|
+
"request": {
|
|
305
|
+
"method": "GET",
|
|
306
|
+
"header": [
|
|
307
|
+
{
|
|
308
|
+
"key": "X-Shopify-Access-Token",
|
|
309
|
+
"value": "{{shopify_access_token}}"
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
"url": {
|
|
313
|
+
"raw": "https://{{shopify_store_domain}}.myshopify.com/admin/api/2024-07/webhooks.json",
|
|
314
|
+
"protocol": "https",
|
|
315
|
+
"host": ["{{shopify_store_domain}}", "myshopify", "com"],
|
|
316
|
+
"path": ["admin", "api", "2024-07", "webhooks.json"]
|
|
317
|
+
},
|
|
318
|
+
"description": "Lists active webhooks."
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "Register Order Paid Webhook",
|
|
323
|
+
"request": {
|
|
324
|
+
"method": "POST",
|
|
325
|
+
"header": [
|
|
326
|
+
{
|
|
327
|
+
"key": "X-Shopify-Access-Token",
|
|
328
|
+
"value": "{{shopify_access_token}}"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"key": "Content-Type",
|
|
332
|
+
"value": "application/json"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"body": {
|
|
336
|
+
"mode": "raw",
|
|
337
|
+
"raw": "{\n \"webhook\": {\n \"topic\": \"orders/paid\",\n \"address\": \"https://yourstore.com/api/webhooks/shopify\",\n \"format\": \"json\"\n }\n}"
|
|
338
|
+
},
|
|
339
|
+
"url": {
|
|
340
|
+
"raw": "https://{{shopify_store_domain}}.myshopify.com/admin/api/2024-07/webhooks.json",
|
|
341
|
+
"protocol": "https",
|
|
342
|
+
"host": ["{{shopify_store_domain}}", "myshopify", "com"],
|
|
343
|
+
"path": ["admin", "api", "2024-07", "webhooks.json"]
|
|
344
|
+
},
|
|
345
|
+
"description": "Subscribes endpoint to orders/paid notifications."
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
}
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"_postman_id": "st123456-1111-4abc-def2-345678901234",
|
|
4
|
+
"name": "Stripe Full Global Payments API Collection",
|
|
5
|
+
"description": "Exhaustive Production Postman Collection for Stripe API (Checkout Sessions, PaymentIntents, Customers, Payment Methods, Refunds, Webhooks).",
|
|
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": "{{stripe_secret_key}}",
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"item": [
|
|
19
|
+
{
|
|
20
|
+
"name": "1. Checkout Sessions",
|
|
21
|
+
"description": "Hosted checkout page APIs for global card and local payment methods.",
|
|
22
|
+
"item": [
|
|
23
|
+
{
|
|
24
|
+
"name": "Create Checkout Session",
|
|
25
|
+
"event": [
|
|
26
|
+
{
|
|
27
|
+
"listen": "test",
|
|
28
|
+
"script": {
|
|
29
|
+
"exec": [
|
|
30
|
+
"var jsonData = pm.response.json();",
|
|
31
|
+
"if (jsonData && jsonData.id) {",
|
|
32
|
+
" pm.environment.set('stripe_session_id', jsonData.id);",
|
|
33
|
+
"}"
|
|
34
|
+
],
|
|
35
|
+
"type": "text/javascript"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"request": {
|
|
40
|
+
"method": "POST",
|
|
41
|
+
"header": [
|
|
42
|
+
{
|
|
43
|
+
"key": "Content-Type",
|
|
44
|
+
"value": "application/x-www-form-urlencoded"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"body": {
|
|
48
|
+
"mode": "urlencoded",
|
|
49
|
+
"urlencoded": [
|
|
50
|
+
{
|
|
51
|
+
"key": "mode",
|
|
52
|
+
"value": "payment"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"key": "success_url",
|
|
56
|
+
"value": "https://yourstore.com/order-confirmed?session_id={CHECKOUT_SESSION_ID}"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"key": "cancel_url",
|
|
60
|
+
"value": "https://yourstore.com/cart"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"key": "line_items[0][price_data][currency]",
|
|
64
|
+
"value": "inr"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"key": "line_items[0][price_data][product_data][name]",
|
|
68
|
+
"value": "Boost Engine Cyberpunk Hoodie"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"key": "line_items[0][price_data][unit_amount]",
|
|
72
|
+
"value": "199900"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"key": "line_items[0][quantity]",
|
|
76
|
+
"value": "1"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"url": {
|
|
81
|
+
"raw": "{{stripe_base_url}}/checkout/sessions",
|
|
82
|
+
"host": ["{{stripe_base_url}}"],
|
|
83
|
+
"path": ["checkout", "sessions"]
|
|
84
|
+
},
|
|
85
|
+
"description": "Creates a Stripe Checkout Session."
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "Retrieve Checkout Session",
|
|
90
|
+
"request": {
|
|
91
|
+
"method": "GET",
|
|
92
|
+
"header": [],
|
|
93
|
+
"url": {
|
|
94
|
+
"raw": "{{stripe_base_url}}/checkout/sessions/{{stripe_session_id}}",
|
|
95
|
+
"host": ["{{stripe_base_url}}"],
|
|
96
|
+
"path": ["checkout", "sessions", "{{stripe_session_id}}"]
|
|
97
|
+
},
|
|
98
|
+
"description": "Retrieves the checkout session to verify payment status."
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "Expire Checkout Session",
|
|
103
|
+
"request": {
|
|
104
|
+
"method": "POST",
|
|
105
|
+
"header": [],
|
|
106
|
+
"url": {
|
|
107
|
+
"raw": "{{stripe_base_url}}/checkout/sessions/{{stripe_session_id}}/expire",
|
|
108
|
+
"host": ["{{stripe_base_url}}"],
|
|
109
|
+
"path": ["checkout", "sessions", "{{stripe_session_id}}", "expire"]
|
|
110
|
+
},
|
|
111
|
+
"description": "Expires an open checkout session so it cannot be paid."
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "2. Payment Intents (Headless)",
|
|
118
|
+
"description": "Direct server-driven payment flows.",
|
|
119
|
+
"item": [
|
|
120
|
+
{
|
|
121
|
+
"name": "Create PaymentIntent",
|
|
122
|
+
"event": [
|
|
123
|
+
{
|
|
124
|
+
"listen": "test",
|
|
125
|
+
"script": {
|
|
126
|
+
"exec": [
|
|
127
|
+
"var jsonData = pm.response.json();",
|
|
128
|
+
"if (jsonData && jsonData.id) {",
|
|
129
|
+
" pm.environment.set('stripe_payment_intent_id', jsonData.id);",
|
|
130
|
+
"}"
|
|
131
|
+
],
|
|
132
|
+
"type": "text/javascript"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"request": {
|
|
137
|
+
"method": "POST",
|
|
138
|
+
"header": [
|
|
139
|
+
{
|
|
140
|
+
"key": "Content-Type",
|
|
141
|
+
"value": "application/x-www-form-urlencoded"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"body": {
|
|
145
|
+
"mode": "urlencoded",
|
|
146
|
+
"urlencoded": [
|
|
147
|
+
{
|
|
148
|
+
"key": "amount",
|
|
149
|
+
"value": "199900"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"key": "currency",
|
|
153
|
+
"value": "inr"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"key": "automatic_payment_methods[enabled]",
|
|
157
|
+
"value": "true"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
"url": {
|
|
162
|
+
"raw": "{{stripe_base_url}}/payment_intents",
|
|
163
|
+
"host": ["{{stripe_base_url}}"],
|
|
164
|
+
"path": ["payment_intents"]
|
|
165
|
+
},
|
|
166
|
+
"description": "Creates a PaymentIntent for custom checkout Elements."
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "Retrieve PaymentIntent",
|
|
171
|
+
"request": {
|
|
172
|
+
"method": "GET",
|
|
173
|
+
"header": [],
|
|
174
|
+
"url": {
|
|
175
|
+
"raw": "{{stripe_base_url}}/payment_intents/{{stripe_payment_intent_id}}",
|
|
176
|
+
"host": ["{{stripe_base_url}}"],
|
|
177
|
+
"path": ["payment_intents", "{{stripe_payment_intent_id}}"]
|
|
178
|
+
},
|
|
179
|
+
"description": "Checks PaymentIntent status."
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "Capture PaymentIntent",
|
|
184
|
+
"request": {
|
|
185
|
+
"method": "POST",
|
|
186
|
+
"header": [],
|
|
187
|
+
"url": {
|
|
188
|
+
"raw": "{{stripe_base_url}}/payment_intents/{{stripe_payment_intent_id}}/capture",
|
|
189
|
+
"host": ["{{stripe_base_url}}"],
|
|
190
|
+
"path": ["payment_intents", "{{stripe_payment_intent_id}}", "capture"]
|
|
191
|
+
},
|
|
192
|
+
"description": "Captures funds of an authorized PaymentIntent."
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "3. Customers API",
|
|
199
|
+
"description": "Manage saved payment methods and customer records.",
|
|
200
|
+
"item": [
|
|
201
|
+
{
|
|
202
|
+
"name": "Create Customer",
|
|
203
|
+
"event": [
|
|
204
|
+
{
|
|
205
|
+
"listen": "test",
|
|
206
|
+
"script": {
|
|
207
|
+
"exec": [
|
|
208
|
+
"var jsonData = pm.response.json();",
|
|
209
|
+
"if (jsonData && jsonData.id) {",
|
|
210
|
+
" pm.environment.set('stripe_customer_id', jsonData.id);",
|
|
211
|
+
"}"
|
|
212
|
+
],
|
|
213
|
+
"type": "text/javascript"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"request": {
|
|
218
|
+
"method": "POST",
|
|
219
|
+
"header": [
|
|
220
|
+
{
|
|
221
|
+
"key": "Content-Type",
|
|
222
|
+
"value": "application/x-www-form-urlencoded"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"body": {
|
|
226
|
+
"mode": "urlencoded",
|
|
227
|
+
"urlencoded": [
|
|
228
|
+
{
|
|
229
|
+
"key": "name",
|
|
230
|
+
"value": "Aman Sharma"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"key": "email",
|
|
234
|
+
"value": "aman@example.com"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"key": "phone",
|
|
238
|
+
"value": "+919876543210"
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
"url": {
|
|
243
|
+
"raw": "{{stripe_base_url}}/customers",
|
|
244
|
+
"host": ["{{stripe_base_url}}"],
|
|
245
|
+
"path": ["customers"]
|
|
246
|
+
},
|
|
247
|
+
"description": "Creates customer record in Stripe."
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "Retrieve Customer",
|
|
252
|
+
"request": {
|
|
253
|
+
"method": "GET",
|
|
254
|
+
"header": [],
|
|
255
|
+
"url": {
|
|
256
|
+
"raw": "{{stripe_base_url}}/customers/{{stripe_customer_id}}",
|
|
257
|
+
"host": ["{{stripe_base_url}}"],
|
|
258
|
+
"path": ["customers", "{{stripe_customer_id}}"]
|
|
259
|
+
},
|
|
260
|
+
"description": "Retrieves customer profile."
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "4. Refunds API",
|
|
267
|
+
"description": "Process and query refunds.",
|
|
268
|
+
"item": [
|
|
269
|
+
{
|
|
270
|
+
"name": "Create Refund",
|
|
271
|
+
"request": {
|
|
272
|
+
"method": "POST",
|
|
273
|
+
"header": [
|
|
274
|
+
{
|
|
275
|
+
"key": "Content-Type",
|
|
276
|
+
"value": "application/x-www-form-urlencoded"
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"body": {
|
|
280
|
+
"mode": "urlencoded",
|
|
281
|
+
"urlencoded": [
|
|
282
|
+
{
|
|
283
|
+
"key": "payment_intent",
|
|
284
|
+
"value": "{{stripe_payment_intent_id}}"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"key": "amount",
|
|
288
|
+
"value": "199900"
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
"url": {
|
|
293
|
+
"raw": "{{stripe_base_url}}/refunds",
|
|
294
|
+
"host": ["{{stripe_base_url}}"],
|
|
295
|
+
"path": ["refunds"]
|
|
296
|
+
},
|
|
297
|
+
"description": "Processes refund."
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "List All Refunds",
|
|
302
|
+
"request": {
|
|
303
|
+
"method": "GET",
|
|
304
|
+
"header": [],
|
|
305
|
+
"url": {
|
|
306
|
+
"raw": "{{stripe_base_url}}/refunds?limit=10",
|
|
307
|
+
"host": ["{{stripe_base_url}}"],
|
|
308
|
+
"path": ["refunds"],
|
|
309
|
+
"query": [
|
|
310
|
+
{
|
|
311
|
+
"key": "limit",
|
|
312
|
+
"value": "10"
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
"description": "Lists recent refunds."
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
}
|