put https://api.plugg.to/orders/plugg_id
Example Request
{
"status":"shipping_informed",
"shipments":
[{"id":"606b87e9e7cb7f1d4d5f8d33",
"shipping_company":"Correios",
"shipping_method":"PAC",
"track_code":"11111",
"track_url":"http://correios.com.br",
"status":"shipped",
"date_shipped":"2021-02-01"
}]
}
Attention
It is important to send the id attribute to avoid duplicating delivery in the order.
Reason for update failure
When you return the error:
{
"error": true,
"type": "not_updated",
"message": "An error occurred, see details for more information.",
"details": "Changes not found in the order"
}
It means that the order is already updated in the API Plugg.to, and it is not possible to send the same status.
Request object has the following properties:
Field | Type | Description |
---|---|---|
id | string | Id created in shipments after invoice update |
shipping_company | string | Shipping company |
shipping_method | string | Order shipping method |
track_code | string | Package Tracking Number |
track_url | string | Package Tracking URL |
status (1) | string | Order update status |
status (2) | string | Shipping action status |
date_shipped | string | Date shipped |