1. API tutorial
Xportcn OpenAPI EN
  • English version
    • API Reference
      • Taobao
        • Product
          • Taobao Hot product recommendation
          • Taobao Spus list query interface
          • Taobao Spus Details Query Interface
          • Taobao Product Detail V2
          • Taobao product search API
          • Taobao product image search API
          • Batch query products according to Taobao product id
          • Query product by Taobao product ID
          • Taobao product inquiry
        • Order
          • purchase order page list
          • purchase order cancel
          • purchase order pay
          • purchase order render
          • purchase order create V2
          • purchase order render v2
          • purchase order create
          • Query the order list by page
          • Upload payment voucher
          • Cancel an order
          • Modify order advance information
          • Pay an order
          • Get IM link
          • Get order details based on the order ID
          • Get logistics details
        • After-sale
          • After-sale single-column table query
          • After-sale order rendering interface
          • Return logistics rendering
          • Return logistics submission
          • After-sale order cancellation
          • Submit After-sale order message
          • After-sale order submission
          • After-sale order message list query
          • After-sale order modification
          • After-sale simple query
        • Message callback
          • Order price correction
          • Order status modification callback
          • Order after-sales refund
        • Shopping cart
          • Shopping cart list
          • Add to shopping cart
          • Delete shopping cart item
          • Edit product quantity
          • Generate order preview
          • Create order
      • 1688
        • Product
          • category get
          • Product details query
          • Convert decryption to Wang Wang URL
          • Product keyword query
          • Product image search
          • Shop search
        • Order
          • Preview the data before creating the order
          • Preview data before order creation (batch for different merchants)
          • Create an order
          • Create an order (different merchants)
          • Cancel the order before payment
          • Order payment
          • Buyer confirms receipt of goods
          • Developers submit bulk payment 1688 orders
          • Get logistics tracking information for orders
          • Order list paging query
        • After-sale
          • Find the reason for a refund return (to create a refund return)
          • Upload refund receipt
          • Create a refund return request
          • Buyer submits refund information
          • List of logistics companies - All logistics companies
          • Query the details of the after-sales order
        • Message callback
          • Order price correction
          • Order status modification interface
          • 1688 order after sale refund
        • Shopping cart
          • Shopping cart list
          • Add shopping cart
          • Delete shopping cart items
          • Edit quantity of goods
          • Preview the data interface before creating the order
          • Create an order
      • Basics
        • Get user address information
        • Address added and updated
      • Warehouse logistics
        • Please refer to the estimated overseas freight
        • Order overseas freight preview
        • Create international logistics orders
        • Update domestic logistics information
      • InternationalAlibaba
        • Product
          • productDetailGet
          • productList
        • Order
          • GetOrderList
          • CreateOrder
      • bigMajor
        • 1688BigMajorProduct
          • 1688BigMajorProductDetail
        • AlibabaMajorClientOrderController
          • Order list
          • Order Preview (The preview interface needs to be called before creating an order)
          • Create an order
          • Get order details
        • WarehouseCallbackController
          • 包裹入库回调
      • Poizon
        • Product
          • keyword serch
          • product detail
        • Order
          • PayOrder
          • OrderList
          • CreateOrder
          • OrderPreview
    • Product Documentation
      • Announcement
      • Summarize
      • Beginner's guide
        • Become a developer
        • Obtain the Access Key and Access key
        • Start development
      • API tutorial
        • Development manual
        • Error code
      • Message service access
        • Message access manual
      • Account test
        • 1688 Test account
      • Q&A
        • Merchandise store search screening
  1. API tutorial

Development manual

Use the HTTP request API#

API call process#

API call request address#

The Xport Global Open platform provides a set of online production environment, in which the data generated is real and valid online data, the request address is as follows
API request address: https://www.xportcn.com

Request and response#

The Xport Global Open Platform API supports both HTTP and HTTPS communication protocols. To ensure data security, it is recommended to use the HTTPS protocol to make API requests.
All API requests return a response result that shows the status of the return (success or error) and may provide results or detailed data related to the specified request, in the format of JSON.

Request parameters#

All API request parameters include system parameters and service parameters.

System parameters#

All API requests require the following ** system parameters **, as detailed in the following table:
NameTypeIsrequired ** Is used as a sign argument **Description
access-keyStringyesyesis the AccessKey
timestampStringyesyesTime when the request is sent. Use the UTC timestamp and ensure that the request time cannot exceed 600 seconds from the UTC time
once-strStringyesyesA random string of 32 characters
user-idStringyesnois used to control the rights of the subaccount
signatureStringyesnoThe interface signature is used to verify the request. For details, see
Note that all ** system parameters ** must be stored in **HTTP header request headers **.

Business parameters#

In addition to system parameters must be included in the * * * *, all API request must contain the corresponding parameters of * * * * business, the business of each API parameters can be found in the reference [API] (https://doc-en.xportcn.com/?nav=2).

Request a response#

The request response data format of all apis is JSON. The format reference is as follows:
NameTypeDescription
requestIdStringIndicates the request id. You can query the log
codeIntegerThe return code
developIdStringdeveloper id
msgStringCorresponding to the return code
dataObjectReturns the content
Sample request response:
{
    "requestId": "4cfda0b725184ab8a1e3ee3b9051ec35",
    "code": 200,
    "developId": "1014533973088404335",
    "msg": "成功",
    "data": {
        "quantity": 400,
        "categoryPath": "童装/婴儿装/亲子装->裙子(新)->连衣裙",
        "shopName": "u[2206891060210]",
        "description": "测试",
        "productUnit": null,
        "picUrls": [
            "https://img.alicdn.com/bao/uploaded/i1/263669477/O1CN01fH0cbf2JsW8fvHFwx_!!263669477.jpg"
        ],
        "title": "天穹发布商品,测试请不要拍",
        "mpId": "2048057995392326",
        "categoryName": "连衣裙",
        "itemId": 672991141190,
        "userNick": "测试账号tbc003",
        "price": 1,
        "beginAmount": 0,
        "status": "active",
        "promotionPrice": 1,
        "shopId": 268763467,
        "categoryId": "121452038",
        "itemType": "HAVE_MATERIAL",
        "skuList": [
            {
                "picUrl": null,
                "quantity": 200,
                "price": 1,
                "skuId": "3452545926724",
                "status": "active",
                "promotionPrice": "1",
                "postFee": 0,
                "mpSkuld": null,
                "properties": [
                    {
                        "valueId": 28326,
                        "valueName": "红色",
                        "propId": 1627207,
                        "propName": "颜色分类"
                    },
                    {
                        "valueId": 3273546,
                        "valueName": "52cm",
                        "propId": 122216343,
                        "propName": "参考身高"
                    }
                ]
            },
            {
                "picUrl": null,
                "quantity": 200,
                "price": 1,
                "skuId": "3452545926725",
                "status": "active",
                "promotionPrice": "1",
                "postFee": 0,
                "mpSkuld": null,
                "properties": [
                    {
                        "valueId": 28324,
                        "valueName": "黄色",
                        "propId": 1627207,
                        "propName": "颜色分类"
                    },
                    {
                        "valueId": 3273546,
                        "valueName": "52cm",
                        "propId": 122216343,
                        "propName": "参考身高"
                    }
                ]
            }
        ]
    }
}

参数签名#

The Xport Global Open Platform verifies the identity of each API request, and the server verifies that the request parameters are valid. Therefore, every HTTP request must contain signature data, and requests with invalid signatures will be rejected.
The Xport Global Open Platform verifies the identity of a request through an AccessKey and an AccessSecret assigned to the developer. The AccessSecret is used to generate a signature string during HTTP requests. Please keep your AccessSecret strictly confidential.
The signature generation process is as follows:
Step 1: Concatenate public request parameters by 'access-key', 'timestamp', 'nonce_str', 'authorization key';
Step 2: Encrypt the string that is concatenated in the first step through md5;
Step 3: Convert all the encrypted strings into uppercase letters to get the final signature (sign).
业务示例:
image.png
JAVA 示例代码:
PHP 示例代码
修改于 2025-12-23 11:56:04
上一页
Start development
下一页
Error code
Built with