[英]Propagate a return to the WMS with Shippingbo
My company uses Shippingbo as an OMS and WMS我公司使用 Shippingbo 作为 OMS 和 WMS
I try to create a return order from the OMS to the WMS我尝试创建从 OMS 到 WMS 的退货单
The return order is rightly created in my OMS but not in my WMS and I have to trigger the propagation in the UI and I would like to do it automaticaly退货单是在我的 OMS 中正确创建的,但不是在我的 WMS 中创建的,我必须在 UI 中触发传播,我想自动执行
The request I made:我提出的要求:
curl --request POST \
--url https://app.shippingbo.com/returns_orders \
--header 'X-API-USER: my_user' \
--header 'X-API-TOKEN: passwd' \
--header 'X-API-VERSION: 1' \
--header 'Content-Type: application/json' \
--data '{
"source": "Prestashop-staging",
"source_ref": "XMLPJGHU",
"reason": "Bad size",
"reason_ref": "S/M",
"return_order_type": "return_order_customer",
"return_order_expected_items_attributes": [
{
"quantity": 1,
"user_ref": "shirt-and-flag"
}
]
}'
You must add an additional parameter that is the supplier_id
您必须添加一个附加参数,即
supplier_id
curl --request POST \
--url https://app.shippingbo.com/returns_orders \
--header 'X-API-USER: my_user' \
--header 'X-API-TOKEN: passwd' \
--header 'X-API-VERSION: 1' \
--header 'Content-Type: application/json' \
--data '{
"source": "Prestashop-staging",
"source_ref": "XMLPJGHU",
"reason": "Bad size",
"reason_ref": "S/M",
"return_order_type": "return_order_customer",
"supplier_id": __your_id__,
"return_order_expected_items_attributes": [
{
"quantity": 1,
"user_ref": "shirt-and-flag"
}
]
}'
To get the supplier_id you can request:要获取 supplier_id,您可以请求:
curl --request GET \
--url https://app.shippingbo.com/suppliers/available_for_return_order \
--header 'Content-Type: application/json'
Don't forget to add your credentials in the header不要忘记在 header 中添加您的凭据
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.