在Shopify REST API中,您可以使用POST /admin/api/2021-07/orders/{order_id}/fulfillments.json端口上传多个运单。

以下是一个示例请求的cURL命令:

curl -X POST \
  -H "Content-Type: application/json" \
  -H "X-Shopify-Access-Token: {access_token}" \
  -d '{
    "fulfillment": {
      "tracking_number": "123456789",
      "line_items": [
        {
          "id": 123456789,
          "quantity": 1
        },
        {
          "id": 987654321,
          "quantity": 2
        }
      ]
    }
  }' \
  "https://{shop}.myshopify.com/admin/api/2021-07/orders/{order_id}/fulfillments.json"

请确保将{access_token}替换为您的访问令牌,{shop}替换为您的Shopify商店名称,{order_id}替换为要上传运单的订单ID。在line_items数组中,您可以指定要履行的每个产品的ID和数量。

请注意,这只是示例请求,您需要根据您的具体需求进行适当的更改。

shopify restapi fulfillments_order端口 上传多运单

原文地址: https://www.cveoy.top/t/topic/jcgt 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录