English
English
Appearance
English
English
Appearance
PATCH {base_url}/api/integration/orders/{id}.json
Only orders created through this API, while fulfillment_status is unfulfilled, on_hold, payment_awaiting or ready. Send only what changes:
| Field | |
|---|---|
shipping_address | Replaces the whole address: send every field. option_ship must be valid. |
skip_verify_address | true / false. Setting it back to false verifies the address again. |
line_items[] | id (the line's), system_sku and quantity (1–999) required; sku, title, note, designs replace the stored values — a line sent without note loses its note. Lines of a combo must be sent together with the same quantity. |
curl -X PATCH "{base_url}/api/integration/orders/f4a795d5-8c5b-4c33-a987-b5640f87857b.json" \
-H "X-pawdo-access-token: $PAWDO_TOKEN" \
-H "Content-Type: application/json" \
-d '{"shipping_address": {"name": "Jane Doe", "option_ship": "standard", "address1": "1600 Amphitheatre Pkwy", "address2": "Building 40", "city": "Mountain View", "state": "California", "province_code": "CA", "country": "United States", "country_code": "US", "postal_code": "94043", "email": "[email protected]", "phone": "+1 650-253-0000"}, "line_items": [{"id": "ea7e9a40-7aa4-47ca-aed0-7891401565e6", "system_sku": "QTN-S", "quantity": 2, "note": "two please"}]}'{
"message": "order updated",
"status": true
}Changed lines are pending until Pawdo has validated them again (a few seconds); an order that was ready goes back through validation and is charged later, at the new price.
| HTTP | message | When |
|---|---|---|
| 400 | a requested lineitem is pending for update, cannot be updated | A line you send is still being re-validated: wait a few seconds |
| 400 | order cannot be updated in its current fulfillment status | The order is charged, in production or cancelled |
| 400 | validation error, detail in error | e.g. validation failed: quantity must be greater than 0 |
| 400 | unsupported shipping option | |
| 400 | a requested lineitem is cancelled, cannot be updated | |
| 404 | order not found | |
| 409 | order was not created via API | Created by CSV, Shopify… — change it in the seller app |
| 422 | invalid system sku: NOPE-SKU | Also: a combo line changed apart from its combo |
If you have any questions about the API, please contact the Pawdo support team via Facebook.