简体   繁体   English

使用 Shippingbo 将退货传播到 WMS

[英]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.

相关问题 在 JavaScript API 中添加 WMS 层的问题 - Issue in Adding WMS layer in the JavaScript API 如何将气候 API 转换为 WMS / WFS 层以进行高级分析 - How to Convert Climate API into as WMS / WFS Layers for advanced analytics 使用 Python 发出 WMS 请求后如何读取 GeoTIFF - How to read a GeoTIFF after making a WMS request using Python 通过微服务传播错误的良好做法 - Good practices to propagate errors through micro services 尝试从 Laravel 中的 API 传播 select2 下拉列表 - Trying to propagate a select2 dropdown from an API in Laravel 使用ArcGIS Javascript API从Geoserver的WMS图层添加要素表 - Adding feature table from WMS layer in Geoserver using ArcGIS Javascript API 使用 IBM API Connect 传播用户代理标头 - Propagate user-agent header with IBM API Connect Podio Auth。 “数组([error_parameters] => Array()[error_detail] => [error_propagate] => ..” - Podio Auth. “Array ( [error_parameters] => Array ( ) [error_detail] => [error_propagate] =>..” Flask 错误:如果 flask 后端出现故障,该错误如何传播到前端? - Flask Error: If something fails in the flask backend, how does the error propagate to the front end? Laravel 不返回第一个返回 - Laravel not return the first return
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM