1. Warehouse logistics
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
          POST
        • Order overseas freight preview
          POST
        • Create international logistics orders
          POST
        • Update domestic logistics information
          POST
      • 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. Warehouse logistics

Create international logistics orders

POST
/open/pp/logistics/orderBookingFreight

请求参数

Query 参数

Body 参数application/json

示例
{
    "renderId": "FF2024080200007",
    "tmallOrderInfo": {
        "tmallOrderId": "123123444"
    },
    "receiverAddress": {
        "country": "US",
        "state": "California",
        "city": "VALLEY VLG",
        "zip": "91607",
        "address": "5818 WHITSETT AVE 401",
        "name": "Ofir Birinbaum",
        "phone": "5083326888",
        "mobilePhone": "5083326888",
        "email": "1229220680@qq.com"
    },
    "lineItems": [
        {
            "itemId": "2048020617114736",
            "skuId": "413185732720",
            "quantity": 1,
            "title": "这是商品1",
            "imageUrl":"url",
            "freightInfo": {
                "serviceId": "1",
                "companyName": "",
                "serviceCategory": ""
            }
        },
        {
            "itemId": "2048232789087639",
            "skuId": "4970432383383",
            "quantity": 2,
            "title": "这是商品2",
            "imageUrl":"url",
            "freightInfo": {
                "serviceId": "2",
                "companyName": "",
                "serviceCategory": ""
            }
        }
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://www.xportcn.com/api/open/pp/logistics/orderBookingFreight?timestamp=undefined&sign=undefined' \
--header 'Content-Type: application/json' \
--data-raw '{
    "renderId": "FF2024080200007",
    "tmallOrderInfo": {
        "tmallOrderId": "123123444"
    },
    "receiverAddress": {
        "country": "US",
        "state": "California",
        "city": "VALLEY VLG",
        "zip": "91607",
        "address": "5818 WHITSETT AVE 401",
        "name": "Ofir Birinbaum",
        "phone": "5083326888",
        "mobilePhone": "5083326888",
        "email": "1229220680@qq.com"
    },
    "lineItems": [
        {
            "itemId": "2048020617114736",
            "skuId": "413185732720",
            "quantity": 1,
            "title": "这是商品1",
            "imageUrl":"url",
            "freightInfo": {
                "serviceId": "1",
                "companyName": "",
                "serviceCategory": ""
            }
        },
        {
            "itemId": "2048232789087639",
            "skuId": "4970432383383",
            "quantity": 2,
            "title": "这是商品2",
            "imageUrl":"url",
            "freightInfo": {
                "serviceId": "2",
                "companyName": "",
                "serviceCategory": ""
            }
        }
    ]
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "errorCode": 200,
    "errorMsg": null,
    "success": true,
    "data": {
        "orderId": "21",
        "orderFee": {
            "amount": "322.92",
            "currency": "USD"
        },
        "subOrders": [
            {
                "itemInfos": [
                    {
                        "itemId": "2048020617114736",
                        "skuId": "413185732720",
                        "quantity": 1,
                        "title": "这是商品1"
                    }
                ],
                "internationalLogisticInfos": {
                    "logisticNumer": "FARJP2408000013YQ",
                    "logisticCompanyName": "UCS",
                    "trackingUrl": "https://www.far800.com/logistics/result?key=FARJP2408000013YQ",
                    "logisticType": "UCS"
                }
            },
            {
                "itemInfos": [
                    {
                        "itemId": "2048232789087639",
                        "skuId": "4970432383383",
                        "quantity": 2,
                        "title": "这是商品2"
                    }
                ],
                "internationalLogisticInfos": {
                    "logisticNumer": "FARJP2408000014YQ",
                    "logisticCompanyName": "UCS",
                    "trackingUrl": "https://www.far800.com/logistics/result?key=FARJP2408000014YQ",
                    "logisticType": "UCS"
                }
            }
        ]
    }
}
修改于 2024-08-16 08:35:04
上一页
Order overseas freight preview
下一页
Update domestic logistics information
Built with