Bigcommerce订单确认页接口调试

获取订单信息所需Cookie

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
{
    "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

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
{
    "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
        }
    }
}

版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/03/26/bigcommerce-order-confirmation-page-api-debug/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
海报
Bigcommerce订单确认页接口调试
获取订单信息所需Cookie https://mystore.mybigcommerce.com/api/storefront/orders/110?include=payments,lineItems.physicalItems.socialMedia,lineItems.ph……
<<上一篇
下一篇>>
文章目录
关闭
目 录