Order Sync API


  1. Getting all stores
    curl '\
    -H 'accept: application/json' \
    -H 'token: '

  2. Getting all regions
    curl '\
    -H 'accept: application/json' \
    -H 'token: '

  3. Getting settlements by region
    curl ' \
    -H 'accept: application/json' \
    -H 'token: '

  4. Getting all sectors
    curl '\
    -H 'accept: application/json' \
    -H 'token: '

  5. Search for a product by ID/Code/Name
    curl '\
    -H 'accept: application/json' \
    -H 'token: '

  6. Obtaining the delivery address for the order
    curl '\
    -H 'Accept-Language: ro' \
    -H API-Token: '\
    -H 'Content-Type: application/json'

  7. Deleting an order item
    curl -X DELETE '\
    -H API-Token: '

  8. List of all orders of the group (with filtering and sorting)
    curl 'https://YOURDOMAIN/external/external-order/?ordering=-createdat&created_after=1741710342' \
    -H API-Token: '

  9. Search for an order by ID
    curl '

  10. Receive one order
    curl '\
    -H API-Token: '

  11. Receiving stores by group
    curl '\
    -H 'accept: application/json' '

  12. Getting a list of promotional codes
    curl ' \
    -H API-Token: '

  13. Updating/creating an order

curl 'https://YOURDOMAIN/external/external-order/'\
-H 'Accept-Language: ro' \-H API-Token: ' \
-H 'Content-Type: application/json' \
-d '[{
"order
id": 294,
"rrn": "999999",
"shop": 2,
"promocode": 1,
"order
items": [{
"orderid": 12,
"order
status": "done",
"loyaltyprice": 88,
"quantity": 1000,
"product": 104392
}],
"address": {
"address
id": 236154,
"addressru": "testru",
"zipcode": 2068,
"region
id": 101,
"locality_id": 63933,
"sector": 11
}
}]'

ORDERSTATUSNEW = "new"
ORDERSTATUSCONFIRMED = "confirmed"
ORDERSTATUSCANCELED = "canceled"
ORDERSTATUSDONE = "done"
ORDERSTATUSINCOLLECTION = "incollection"
ORDERSTATUSCOLLECTEDWITHCHANGES = "collectedwithchanges"
ORDERSTATUSTOBERETURNEDINTWODAYS = "tobereturnedintwodays"
ORDERSTATUSCOLLECTED = "collected"
ORDERSTATUSCOMPLETEDANDCLOSED = "completedandclosed"
ORDERSTATUSRETURNEDTOWAREHOUSE = "returnedtowarehouse"
ORDERSTATUSCHANGEDANDCLOSED = "changedandclosed"
ORDERSTATUSATCOURIERSORTCENTER = "atcouriersortcenter"
ORDERSTATUSONDELIVERY = "ondelivery"
ORDERSTATUSDELIVERYDATEMOVED = "deliverydatemoved"
ORDERSTATUSCLIENTNOANSWER = "clientnoanswer"
ORDERSTATUSRECIPIENTNOTATHOME = "recipientnotathome"
ORDERSTATUSCUSTOMERREFUSAL = "customerrefusal"

  1. Receiving a list of orders
    curl 'https://YOURDOMAIN/external/external-order?createdafter=123456&status=new,done'

Filtration:
1. created_after=timestamp
2. status=new, done…


Was the article helpful?

Yes, thank you! Unfortunately no

article.helpfulQuestion