shopify restapi上传多运单
在Shopify的REST API中,您可以使用POST /admin/api/2021-07/orders/{order_id}/fulfillments.json端点来上传多个运单。以下是一个示例请求:
POST /admin/api/2021-07/orders/{order_id}/fulfillments.json
{
"fulfillment": {
"tracking_number": "123456789",
"tracking_urls": [
"https://tracking-url.com/123456789"
],
"notify_customer": true,
"line_items": [
{
"id": 123456789,
"quantity": 1
},
{
"id": 987654321,
"quantity": 2
}
]
}
}
在上述示例中,您需要替换{order_id}为实际订单的ID。tracking_number和tracking_urls字段用于指定运单的跟踪号码和跟踪链接。notify_customer字段用于指定是否向客户发送通知。line_items字段用于指定要包含在运单中的商品行项目。
请注意,您需要在请求中提供每个商品行项目的唯一标识符(例如,id字段)。您还可以指定每个商品行项目的数量(例如,quantity字段)。
使用上述示例请求,您可以上传多个运单并将其关联到特定订单。
原文地址: https://www.cveoy.top/t/topic/jcgh 著作权归作者所有。请勿转载和采集!