shop-20260101
  1. Order
shop-20260101
  • Open Api
    • Category
      • Get all categories
    • Product
      • Get product IDs
      • Get products
    • Order
      • Create order
        POST
      • Get order list
        GET
      • Refresh order
        POST
      • Checkout order
        POST
      • Pay order
        POST
      • Cancel order
        POST
    • Address
      • Retrieve recipient address list
      • Query postcode and suburb
      • Edit recipient address
    • Clearance
      • Check clearance info
      • Update personal clearance info
      • Update company clearance info
      • Update passport clearance info
    • Express
      • Preview express
      • Create express
      • Express tracking
      • Query express number
  • Schemas
    • Open Api
      • Vo
        • Category
          • OpenCategoryVo
          • OpenCategoryPageVo
        • Product
          • OpenProductNumberVo
          • OpenProductNumberResultVo
          • OpenProductVo
          • OpenSaleInfoVo
          • OpenPriceRange
          • OpenSkuVo
          • OpenSkuAttrVo
        • Order
          • OpenOrderCreateSuccessVo
          • OpenOrderListVo
          • OpenOrderResultVo
          • OpenOrderCreateFailureVo
          • OpenOrderRefreshVo0
          • OpenOrderRefreshVo1
          • OpenOrderRefreshVo2
          • OpenRiskOrderVo
          • OpenOrderdetailVo
          • OpenOrderCheckoutVo
          • OpenSkuDetailVo
        • Clearance
          • OpenClearanceVo
          • OpenClearancePersonalVo
          • OpenClearanceCompanyVo
          • OpenClearancePassportVo
        • Address
          • OpenAddressVo
          • OpenReceiveAddressVo
        • Express
          • OpenExpressCreateNumberVo
          • OpenExpressDeliveryVo
          • OpenExpressDeliveryModeVo
          • OpenExpressCreateResultVo
          • OpenExpressDeclarednameVo
          • OpenExpressRecordResultVo
          • OpenExpressRecordVo
          • OpenQueryExpressnumberVo
      • Ao
        • Order
          • OpenSkudataAo
          • OpenOrderAo
        • Address
          • OpenReceiveAddressAo
        • Clearance
          • OpenClearancePersonalAo
          • OpenClearanceCompanyAo
          • OpenClearancePassportAo
        • Express
          • OpenExpressPreviewAo
          • OpenExpressCreateAo
          • OpenExpressShipAo
          • OpenQueryExpressnumberAo
          • OpenDeclareAo
      • AjaxMsgOpen
  1. Order

Checkout order

POST
/api/open/order/checkout
This interface can be called to calculate the amount that needs to be paid for an order.
Before calling this interface, it is necessary to first call the 'Refresh order' interface to confirm the order.
If after calling the 'Refresh order' interface, the order status is normal (refreshStatus==0), then it is not necessary to call the 'Checkout order' interface. You can directly proceed to call the 'Pay order' interface to make the payment.
If after calling the 'Refresh order' interface, the order status is abnormal (refreshStatus!=0), it is recommended to proceed with calling the 'Checkout order' interface. Submit the order number that needs to be paid to reconfirm the amount to be paid for the order. Finally, proceed with calling the 'Pay order' interface to make the payment.
If after calling the 'Refresh order' interface, the order status is abnormal (refreshStatus!=0), but the user does not need to know the specific amount of the order, then the order number that needs to be paid can be directly submitted to the 'Pay order' interface to complete the payment.

Request

Header Params

Body Params application/json

Example
[
    "170736529315528"
]

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/open/order/checkout' \
--header 'version: {{shop_openapi_version}}' \
--header 'token: {{shop_openapi_token}}' \
--header 'Content-Type: application/json' \
--data-raw '[
    "170736529315528"
]'

Responses

🟢200Success
application/json
Body

Example
{
    "status": "0",
    "message": "Operation successful.",
    "data": {
        "totalCost": "string"
    }
}
🟢200Failure
Modified at 2025-12-12 00:10:40
Previous
Refresh order
Next
Pay order
Built with