Skip to main content

Update Shipment Order With Exts

PUT 

https://api.test.pio.com/api/v1/shipment_orders

ext_shipment_order_id and (ext_order_channel_id or order_channel_id) is required when using this endpoint.

Request

Responses

Successful Response

Authorization: oauth2

name: OAuth2AuthorizationCodeBearertype: oauth2flows: {
  "authorizationCode": {
    "scopes": {},
    "authorizationUrl": "/raw/openapi_auth/authorize_form?client_id=<your-client-id>&redirect_uri=<your-redirect-url>",
    "tokenUrl": "/api/v1/oauth/access_token"
  }
}
import http.client
import json

conn = http.client.HTTPSConnection("api.test.pio.com")
payload = json.dumps({
"ext_shipment_order_id": "string",
"line_items": [
{
"sku": "string",
"ext_shipment_order_line_item_id": "string",
"ext_order_line_item_id": "string",
"quantity": 0
}
],
"destination": {
"address1": "string",
"address2": "string",
"city": "string",
"company": "string",
"country": "string",
"email": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"province": "string",
"zip": "string"
},
"ext_order_id": "string",
"ext_order_channel_id": "string",
"order_channel_id": 0,
"ext_shipping_rate_id": "string",
"shipping_rate_id": 0
})
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer <TOKEN>'
}
conn.request("PUT", "/api/v1/shipment_orders", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Request Collapse all
Base URL
https://api.test.pio.com
Auth
Body required
{
  "ext_shipment_order_id": "string",
  "line_items": [
    {
      "sku": "string",
      "ext_shipment_order_line_item_id": "string",
      "ext_order_line_item_id": "string",
      "quantity": 0
    }
  ],
  "destination": {
    "address1": "string",
    "address2": "string",
    "city": "string",
    "company": "string",
    "country": "string",
    "email": "string",
    "first_name": "string",
    "last_name": "string",
    "phone": "string",
    "province": "string",
    "zip": "string"
  },
  "ext_order_id": "string",
  "ext_order_channel_id": "string",
  "order_channel_id": 0,
  "ext_shipping_rate_id": "string",
  "shipping_rate_id": 0
}
ResponseClear

Click the Send API Request button above and see the response here!