Public
Documentation Settings

Partner

API for managing delivery orders

AUTHORIZATIONBearer Token
Token

{{Token}}

POSTCreate estimate

https://loco.hr/api/partner/estimate

Create new estimate for delivery route

AUTHORIZATIONBearer Token
This request is using Bearer Token from collectionPartner
Bodyurlencoded
Scheduled

{{currentDateTime}}

Date and time when order should be picked up. Expected format is: dd-MM-yyyy hh:mm:ss

PackageValue

123.12

Package value for driver to collect money and for package insurance

CollectCash

true

Should driver collect cash

PickupName

Loco.hr Partner

Pickup name

PickupAddress

Jablanska ul. 27A

Pickup address

PickupCity

Zagreb

Pickup city

PickupPhoneNumber

+38515565855

Pickup phone number

PickupEmail

info@loco.hr

Pickup email

PickupNote

Pickup note for driver

DeliveryName

Loco.hr Customer

Delivery name

DeliveryAddress

Ul. Vice Vukova 6

Delivery address

DeliveryCity

Zagreb

Delivery City

DeliveryPhoneNumber

+38515565855

Delivery phone number

DeliveryEmail

info@loco.hr

Delivery email

DeliveryNote

Delivery note for driver

Example Request
curl
curl --location 'https://loco.hr/api/partner/estimate' \
--data-urlencode 'Scheduled={{currentDateTime}}' \
--data-urlencode 'PackageValue=123.12' \
--data-urlencode 'CollectCash=true' \
--data-urlencode 'PickupName=Loco.hr Partner' \
--data-urlencode 'PickupAddress=Jablanska ul. 27A' \
--data-urlencode 'PickupCity=Zagreb' \
--data-urlencode 'PickupPhoneNumber=+38515565855' \
--data-urlencode 'PickupEmail=info@loco.hr' \
--data-urlencode 'PickupNote=' \
--data-urlencode 'DeliveryName=Loco.hr Customer' \
--data-urlencode 'DeliveryAddress=Ul. Vice Vukova 6' \
--data-urlencode 'DeliveryCity=Zagreb' \
--data-urlencode 'DeliveryPhoneNumber=+38515565855' \
--data-urlencode 'DeliveryEmail=info@loco.hr' \
--data-urlencode 'DeliveryNote='
200 OK
Example Response
json
{
  "estimateId": 1234,
  "distanceInMeter": 1234,
  "durationInSecond": 123,
  "totalPrice": 12.34
}
Content-Type

application/json; charset=utf-8

POSTCreate order

https://loco.hr/api/partner/order

Confirm delivery estimate and order delivery

AUTHORIZATIONBearer Token
This request is using Bearer Token from collectionPartner
Bodyurlencoded
EstimateId

1234

EstimateId that you get from "Create estimate" request

CollectCash

If you want to change collect cash value

PackageValue

If you want to change package value value

Example Request
curl
curl --location 'https://loco.hr/api/partner/order' \
--data-urlencode 'EstimateId=1234'
200 OK
Example Response
json
{
  "orderId": 1804,
  "guid": "f178b9e2-9023-4d66-a4ae-f274c03346c1"
}
Content-Type

application/json; charset=utf-8