Bigcommerce订单确认页接口调试

获取订单信息所需Cookie

1
https://mystore.mybigcommerce.com/api/storefront/orders/110?include=payments,lineItems.physicalItems.socialMedia,lineItems.physicalItems.options,lineItems.digitalItems.socialMedia,lineItems.digitalItems.options

所需Cookie:

  • Shopper-Pref=83959E0B61D64CA5E9D3BC4C3104858358FC4145-1612152741995-x{“cur”:”CNY”}
  • SHOP_SESSION_ROTATION_TOKEN=69c17e808da86e6737f53105fe8fbfa3ebd0b6f52f68c8bf40c6503a95a81a4c
  • SHOP_SESSION_TOKEN=hdk85b6p3enhdkubb8kfh6cufu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"orderId":110,
"cartId":"374fee09-4a0f-486d-a24c-98640537fb56",
"currency":{
"name":"Yuan Renminbi",
"code":"CNY",
"symbol":"¥",
"decimalPlaces":2
},
"isTaxIncluded":false,
"baseAmount":225,
"discountAmount":0,
"orderAmount":225,
"orderAmountAsInteger":22500,
"shippingCostTotal":0,
"shippingCostBeforeDiscount":0,
"handlingCostTotal":0,
"giftWrappingCostTotal":0,
"coupons":[

],
"lineItems":{
"physicalItems":[
{
"id":11,
"productId":86,
"name":"[Sample] Able Brewing System",
"url":"https://mystore.mybigcommerce.com/able-brewing-system/",
"sku":"ABS",
"quantity":1,
"isTaxable":true,
"giftWrapping":null,
"imageUrl":"https://cdn11.bigcommerce.com/s-sw7v0idzxq/products/86/images/286/ablebrewingsystem4.1611539325.220.290.jpg?c=1",
"discounts":[

],
"discountAmount":0,
"listPrice":225,
"salePrice":225,
"extendedListPrice":225,
"extendedSalePrice":225,
"extendedComparisonPrice":225,
"categories":[

],
"type":"physical",
"variantId":66,
"socialMedia":[
{
"channel":"Facebook",
"code":"fb",
"text":"I just bought '[Sample] Able Brewing System' on AppStore",
"link":"http://www.facebook.com/sharer/sharer.php?p%5Burl%5D=https%3A%2F%2Fmystore.mybigcommerce.com%2Fable-brewing-system%2F"
},
{
"channel":"Twitter",
"code":"tw",
"text":"I just bought '[Sample] Able Brewing System' on AppStore",
"link":"https://twitter.com/intent/tweet?url=https%3A%2F%2Fmystore.mybigcommerce.com%2Fable-brewing-system%2F&text=I+just+bought+%27%5BSample%5D+Able+Brewing+System%27+on+AppStore"
}
],
"options":[

]
}
],
"digitalItems":[

],
"giftCertificates":[

]
},
"customerId":0,
"billingAddress":{
"firstName":"Joe",
"lastName":"Ye",
"email":"yezhou@lianlianpay.com",
"company":"LianLianPay",
"address1":"剑池街道",
"address2":"",
"city":"LongQuan",
"stateOrProvince":"ZheJiang",
"stateOrProvinceCode":"",
"country":"China",
"countryCode":"CN",
"postalCode":"323700",
"phone":"10086",
"customFields":[

]
},
"status":"AWAITING_PAYMENT",
"customerCanBeCreated":true,
"hasDigitalItems":false,
"isDownloadable":false,
"isComplete":true,
"customerMessage":"",
"taxes":[
{
"name":"Tax",
"amount":0
}
],
"taxTotal":0,
"payments":[
{
"providerId":"instore",
"gatewayId":null,
"description":"LianLian Pay",
"amount":225,
"detail":{
"step":"INITIALIZE",
"instructions":"通过访问零售店铺输入支付说明。"
}
}
]
}

获取收银台配置所需Cookie

1
https://mystore.mybigcommerce.com/api/storefront/checkout-settings

所需Cookie:

  • Shopper-Pref=83959E0B61D64CA5E9D3BC4C3104858358FC4145-1612152741995-x{“cur”:”CNY”}
  • SHOP_SESSION_ROTATION_TOKEN=69c17e808da86e6737f53105fe8fbfa3ebd0b6f52f68c8bf40c6503a95a81a4c
  • SHOP_SESSION_TOKEN=hdk85b6p3enhdkubb8kfh6cufu
  • STORESUITE_CP_TOKEN=19V4Q9PQ1LQDX9372X0BI5B86Y01

所需Header:

  • x-api-internal: This API endpoint is for internal use only and may change in the future
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
{
"context":{
"flashMessages":[

],
"payment":{
"token":null
},
"checkoutId":"374fee09-4a0f-486d-a24c-98640537fb56",
"geoCountryCode":"CN"
},
"customization":{
"languageData":[

]
},
"storeConfig":{
"cdnPath":"https://cdn11.bigcommerce.com/r-2cdf0f918611406e294b380879290d5d89f568c4",
"checkoutSettings":{
"hasMultiShippingEnabled":false,
"enableOrderComments":true,
"enableTermsAndConditions":false,
"guestCheckoutEnabled":true,
"isCardVaultingEnabled":true,
"isCouponCodeCollapsed":true,
"isPaymentRequestEnabled":false,
"isPaymentRequestCanMakePaymentEnabled":false,
"isSignInEmailEnabled":false,
"isSpamProtectionEnabled":false,
"isTrustedShippingAddressEnabled":true,
"orderTermsAndConditions":"",
"orderTermsAndConditionsLocation":"payment",
"orderTermsAndConditionsLink":"",
"orderTermsAndConditionsType":"",
"privacyPolicyUrl":"",
"shippingQuoteFailedMessage":"Unfortunately one or more items in your cart can't be shipped to your location. Please choose a different delivery address.",
"realtimeShippingProviders":[
"Fedex",
"UPS",
"USPS"
],
"remoteCheckoutProviders":[

],
"isAnalyticsEnabled":false,
"isStorefrontSpamProtectionEnabled":true,
"googleMapsApiKey":"",
"googleRecaptchaSitekey":"6LccmasUAAAAAIRhScC9asOrH_rQblw06weNOzDI",
"features":{
"CHECKOUT-3573.expose_correct_error_message":true,
"CHECKOUT-3671.do_not_render_payment_form_if_not_payment":true,
"CHECKOUT-4941.account_creation_in_checkout":false,
"CHECKOUT-4183.checkout_google_address_autocomplete_uk":false,
"CHECKOUT-5327.validate_checkout_values":true,
"PROJECT-2743.checkout_hosted_payment_form":true,
"DATA-6891.missing_orders_within_GA":true,
"PROJECT-2381.upgrade_checkout":true,
"CHECKOUT-3984.upgrade_checkout_billing_step":true,
"CHECKOUT-3790.upgrade_checkout_customer_step":true,
"CHECKOUT-3790.upgrade_checkout_payment_step":true,
"CHECKOUT-3983.upgrade_checkout_shipping_step":true,
"CHECKOUT-3790.upgrade_order_confirmation":true,
"CHECKOUT-3852.upgrade_cart_summary":true
},
"requiresMarketingConsent":false
},
"currency":{
"code":"CNY",
"decimalPlaces":"2",
"decimalSeparator":".",
"isTransactional":true,
"symbolLocation":"left",
"symbol":"¥",
"thousandsSeparator":","
},
"displayDateFormat":"do MMM yyyy",
"inputDateFormat":"dd/MM/yyyy",
"formFields":{
"billingAddressFields":[
{
"id":"field_4",
"name":"firstName",
"custom":false,
"label":"First Name",
"required":true,
"default":"",
"maxLength":""
},
{
"id":"field_5",
"name":"lastName",
"custom":false,
"label":"Last Name",
"required":true,
"default":"",
"maxLength":""
},
{
"id":"field_6",
"name":"company",
"custom":false,
"label":"Company Name",
"required":false,
"default":"",
"maxLength":""
},
{
"id":"field_7",
"name":"phone",
"custom":false,
"label":"Phone Number",
"required":false,
"default":"",
"maxLength":""
},
{
"id":"field_8",
"name":"address1",
"custom":false,
"label":"Address Line 1",
"required":true,
"default":"",
"maxLength":""
},
{
"id":"field_9",
"name":"address2",
"custom":false,
"label":"Address Line 2",
"required":false,
"default":"",
"maxLength":""
},
{
"id":"field_10",
"name":"city",
"custom":false,
"label":"Suburb/City",
"required":true,
"default":"",
"maxLength":""
},
{
"id":"field_11",
"name":"countryCode",
"custom":false,
"label":"Country",
"required":true,
"default":null,
"maxLength":false
},
{
"id":"field_12",
"name":"stateOrProvince",
"custom":false,
"label":"State/Province",
"required":true,
"default":null,
"maxLength":""
},
{
"id":"field_13",
"name":"postalCode",
"custom":false,
"label":"Zip/Postcode",
"required":true,
"default":"",
"maxLength":""
}
],
"shippingAddressFields":[
{
"id":"field_14",
"name":"firstName",
"custom":false,
"label":"First Name",
"required":true,
"default":"",
"maxLength":""
},
{
"id":"field_15",
"name":"lastName",
"custom":false,
"label":"Last Name",
"required":true,
"default":"",
"maxLength":""
},
{
"id":"field_16",
"name":"company",
"custom":false,
"label":"Company Name",
"required":false,
"default":"",
"maxLength":""
},
{
"id":"field_17",
"name":"phone",
"custom":false,
"label":"Phone Number",
"required":false,
"default":"",
"maxLength":""
},
{
"id":"field_18",
"name":"address1",
"custom":false,
"label":"Address Line 1",
"required":true,
"default":"",
"maxLength":""
},
{
"id":"field_19",
"name":"address2",
"custom":false,
"label":"Address Line 2",
"required":false,
"default":"",
"maxLength":""
},
{
"id":"field_20",
"name":"city",
"custom":false,
"label":"Suburb/City",
"required":true,
"default":"",
"maxLength":""
},
{
"id":"field_21",
"name":"countryCode",
"custom":false,
"label":"Country",
"required":true,
"default":null,
"maxLength":false
},
{
"id":"field_22",
"name":"stateOrProvince",
"custom":false,
"label":"State/Province",
"required":true,
"default":null,
"maxLength":""
},
{
"id":"field_23",
"name":"postalCode",
"custom":false,
"label":"Zip/Postcode",
"required":true,
"default":"",
"maxLength":""
}
]
},
"links":{
"cartLink":"https://mystore.mybigcommerce.com/cart.php",
"checkoutLink":"https://mystore.mybigcommerce.com/checkout",
"createAccountLink":"https://mystore.mybigcommerce.com/login.php?action=create_account",
"forgotPasswordLink":"https://mystore.mybigcommerce.com/login.php?action=reset_password",
"loginLink":"https://mystore.mybigcommerce.com/login.php",
"orderConfirmationLink":"https://mystore.mybigcommerce.com/checkout/order-confirmation",
"siteLink":"https://mystore.mybigcommerce.com"
},
"paymentSettings":{
"bigpayBaseUrl":"https://payments.bigcommerce.com",
"clientSidePaymentProviders":[
"adyenv2",
"affirm",
"afterpay",
"authorizenet",
"barclays",
"bigpaypay",
"bluesnap",
"bolt",
"braintree",
"braintreepaypal",
"braintreepaypalcredit",
"braintreevisacheckout",
"cardconnect",
"ccavenuemars",
"clover",
"chasepay",
"checkoutcom",
"cybersource",
"converge",
"elavon",
"eway",
"ewayrapid",
"firstdatae4v14",
"googlepayadyenv2",
"googlepaybraintree",
"googlepaycheckoutcom",
"googlepaystripe",
"hps",
"laybuy",
"migs",
"mollie",
"nmi",
"orbital",
"paymetric",
"paypal",
"paypalcommercecreditcards",
"quickbooks",
"sagepay",
"securenet",
"sezzle",
"shopkeep",
"squarev2",
"stripe",
"stripev3",
"usaepay",
"vantiv",
"vantivcore",
"wepay",
"zip",
"cabbage_pay",
"windcave"
]
},
"shopperConfig":{
"defaultNewsletterSignup":false,
"passwordRequirements":{
"alpha":"[A-Za-z]",
"numeric":"[0-9]",
"minlength":7,
"error":"Passwords must be at least 7 characters and contain both alphabetic and numeric characters."
},
"showNewsletterSignup":true
},
"storeProfile":{
"orderEmail":"test@iobeta.com",
"shopPath":"https://mystore.mybigcommerce.com",
"storeCountry":"China",
"storeHash":"sw7v0idzxq",
"storeId":1001624749,
"storeName":"AppStore",
"storePhoneNumber":"",
"storeLanguage":"en_US"
},
"imageDirectory":"product_images",
"isAngularDebuggingEnabled":false,
"shopperCurrency":{
"code":"CNY",
"symbolLocation":"left",
"symbol":"¥",
"decimalPlaces":"2",
"decimalSeparator":".",
"thousandsSeparator":",",
"exchangeRate":1,
"isTransactional":true
}
}
}