Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforest-t committed Jul 14, 2021
1 parent 30ff89f commit d63332f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adoc/bms_aaS/erp_api.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protocol_method:: POST
method_name:: agent/parcel
method_params:: new
request_body:: {"order_id": "<EXT Order ID>", "receiver": { "id": "<EXT User ID>", "phone": "<PHONE 380XXYYYYYYY>", "email" : "<USER EMAIL>", "first name" : "<FIRST NAME>", "last_name": "<LAST NAME>", "patronymic": "<user patronymic>"}, "delivery_type": "<DELIVERY TYPE>", "dest" : [<LATITUDE>, <LONGITUDE>], ["dest_address_id": "<destination address ID>"], "dest_apartment": "<DEST APARTMENT>", "weight" : <WEIGHT GRAM as INTEGER>, "price" : <PRICE as DECIMAL(10,2)>, "cod_amount" : <PRICE as DECIMAL(10,2)>, "type" : "<TYPE CODE>:<CLASS CODE>", "note" : "<USER NOTE>", "created_at": "<DATE TIME in ISO 8601>", "contragent_id" : "<CONTRAGENT ID>", "sender": "<SENDER USER ID>", "dimensions": [<WIDTH, mm AS INTEGER>, <HEIGHT, mm AS INTEGER>, <DEPTH, mm AS INTEGER>], "_comment" : "<SENDER's comment>", "items": [<PARCEL ITEM SPEC>, ...], "rolling_payments": <BOOLEAN>}
expected_result:: 200 {"id" : "<PARSEL ID>", "code": "<ttn-code>", "success": true}
expected_result:: 200 {"id" : "<PARSEL ID>", "code": "<TTN CODE>", "success": true}

NOTE: Если не указывать `order_id` в теле запроса, он будет сгенерирован системой.

Expand Down

0 comments on commit d63332f

Please sign in to comment.