Add order ıtem
POST/api/orders/:id/items
Add order ıtem
Request
Path Parameters
id integerrequired
Header Parameters
X-Company-Slug stringrequired
- application/json
Body
product_id numberrequired
price number
quantity number
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
id number
product_id number
order_id number
price number
quantity numbernullable
total number
product_name string
{
"id": "9",
"product_id": "1",
"order_id": "36",
"price": 2011,
"quantity": 1,
"total": 2011,
"product_name": "productsa 21name"
}
Loading...