Skip to main content

Update an Order

PATCH 

https://api.staging.powerapi.com/api/v1/orders/:id

Update an Order

Request

Responses

Update an Order

Authorization: http

name: bearertype: httpscheme: bearerbearerFormat: JWT
curl -L -X PATCH 'https://api.staging.powerapi.com/api/v1/orders/:id' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": {
"id": "string",
"type": "orders",
"attributes": {
"delivery_id": "string",
"notes": {},
"pickup_at_business": {},
"shipping_cost_cents": 0,
"shipping_cost_for_business_cents": 0,
"shipping_cost_for_customer_cents": 0,
"state": "string",
"time_wish": "string",
"user_email": "string",
"user_phone": "string",
"user_phone_country_code": "string",
"user_phone_country_prefix": "string"
}
}
}'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Parameters
— pathrequired
Body required
{
  "data": {
    "id": "string",
    "type": "orders",
    "attributes": {
      "delivery_id": "string",
      "notes": {},
      "pickup_at_business": {},
      "shipping_cost_cents": 0,
      "shipping_cost_for_business_cents": 0,
      "shipping_cost_for_customer_cents": 0,
      "state": "string",
      "time_wish": "string",
      "user_email": "string",
      "user_phone": "string",
      "user_phone_country_code": "string",
      "user_phone_country_prefix": "string"
    }
  }
}
ResponseClear

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