Get cost of order by details
- Authentication
This method requires authentication.
Summary
Get Cost of Order by Details
Description
This API method retrieves the cost of an order based on the supplied details. The partner_details parameter is used to provide order details.
Body Parameters
name | type | data type | default | description |
|---|---|---|---|---|
store_id | required | string | N/A | store id |
zip | required | string | N/A | customer's zipcode |
items | required | array of Item | N/A | items |
delivery_type | required | string |
| delivery type |
Item object
name | type | data type | default | description |
|---|---|---|---|---|
id | required | integer | N/A | item id |
count | required | integer | N/A | count of items |
delivery | required | boolean |
| flag if delivery is needed |
assembly | required | boolean |
| flag if assembly is needed |
Response
The response data is an object with the following properties:
- value_items: integer
sum of amounts for work with concrete items
- value_work: integer
sum of amount for items with only assembly
- value_delivery: integer
sum of amount for items with only delivery
- value_small_order_fee: integer
extra amount if total sum is less than minimal cost
- total: integer
total sum
Good Response example
Bad Response Examples
http code | response example |
|---|---|
| see 401 Unauthorized |
|