Introduction
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
This API is not authenticated.
AppTokens
Store app token
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/voluptatem/app-tokens/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"id\": \"accusantium\",
\"deviceToken\": \"dicta\",
\"deviceData\": [],
\"notificationToken\": \"et\",
\"lang\": \"quia\"
}"
const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/voluptatem/app-tokens/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": "accusantium",
"deviceToken": "dicta",
"deviceData": [],
"notificationToken": "et",
"lang": "quia"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/voluptatem/app-tokens/register';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'id' => 'accusantium',
'deviceToken' => 'dicta',
'deviceData' => [],
'notificationToken' => 'et',
'lang' => 'quia',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
id
string
accountId
string
userId
string|null
type
int
status
int
deviceToken
string|null
deviceData
array
lang
string|null
notificationToken
string|null
Update app token notification token
requires authentication
Example request:
curl --request PATCH \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/voluptatem/app-tokens/sit/notification-token" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"notificationToken\": \"amet\"
}"
const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/voluptatem/app-tokens/sit/notification-token"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"notificationToken": "amet"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/voluptatem/app-tokens/sit/notification-token';
$response = $client->patch(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'notificationToken' => 'amet',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update app token lang
requires authentication
Example request:
curl --request PATCH \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/maxime/app-tokens/quo/lang" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"lang\": \"fr\"
}"
const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/maxime/app-tokens/quo/lang"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"lang": "fr"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/maxime/app-tokens/quo/lang';
$response = $client->patch(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'lang' => 'fr',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Auth
Sign in
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/auth/sign-in" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"account\": \"sit\",
\"login\": \"sunt\",
\"password\": \"#OZ26AXVzrR\"
}"
const url = new URL(
"http://dots.test/business-app/api/couriers/v2/auth/sign-in"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"account": "sit",
"login": "sunt",
"password": "#OZ26AXVzrR"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/auth/sign-in';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'account' => 'sit',
'login' => 'sunt',
'password' => '#OZ26AXVzrR',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
courierId
string
accountId
string
authToken
string
Sign out
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/auth/sign-out" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/auth/sign-out"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/auth/sign-out';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Notifications
Active notifications
requires authentication
Example request:
curl --request GET \
--get "http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/exercitationem/notifications/active" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/exercitationem/notifications/active"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/exercitationem/notifications/active';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE, OPTIONS
access-control-allow-headers: App-Lang, App-Token, App-Account-Token, App-Auth-Token, Content-Type, Accept, Authorization, X-Requested-With, Application
{
"message": "Account is not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
items
object
id
string
message
string
order
object|null
id
string
number
string
companyName
string
createdTime
int
hasNext
boolean
Indicates whether there are more items in the collection
Accept notification
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/debitis/notifications/voluptatem/accept" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/debitis/notifications/voluptatem/accept"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/debitis/notifications/voluptatem/accept';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Orders
Competed orders
requires authentication
Example request:
curl --request GET \
--get "http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/harum/orders/completed" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"fromTime\": 11,
\"toTime\": 13,
\"limit\": 14,
\"offset\": 19
}"
const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/harum/orders/completed"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"fromTime": 11,
"toTime": 13,
"limit": 14,
"offset": 19
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/harum/orders/completed';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'fromTime' => 11,
'toTime' => 13,
'limit' => 14,
'offset' => 19,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE, OPTIONS
access-control-allow-headers: App-Lang, App-Token, App-Account-Token, App-Auth-Token, Content-Type, Accept, Authorization, X-Requested-With, Application
{
"message": "Account is not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
items
object
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
hasNext
boolean
Indicates whether there are more items in the collection
Show order
requires authentication
Example request:
curl --request GET \
--get "http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/modi/orders/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/modi/orders/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/modi/orders/1';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE, OPTIONS
access-control-allow-headers: App-Lang, App-Token, App-Account-Token, App-Auth-Token, Content-Type, Accept, Authorization, X-Requested-With, Application
{
"message": "Account is not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
cart
object
items
list
id
string
name
string
price
float
standardPrice
float
count
int
fullPackagePrice
float
totalPrice
float
promotions
list
id
string
type
int
promoCode
object|null
promotionId
string
compensatedByType
int
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
phoneCall
object|null
orderId
string
status
int
expiredIn
int
Accept order
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/magnam/orders/1/statuses/accept-by-courier" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/magnam/orders/1/statuses/accept-by-courier"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/magnam/orders/1/statuses/accept-by-courier';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
cart
object
items
list
id
string
name
string
price
float
standardPrice
float
count
int
fullPackagePrice
float
totalPrice
float
promotions
list
id
string
type
int
promoCode
object|null
promotionId
string
compensatedByType
int
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
phoneCall
object|null
orderId
string
status
int
expiredIn
int
Courier arrive to company
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/alias/orders/1/statuses/arrive-to-company" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/alias/orders/1/statuses/arrive-to-company"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/alias/orders/1/statuses/arrive-to-company';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
cart
object
items
list
id
string
name
string
price
float
standardPrice
float
count
int
fullPackagePrice
float
totalPrice
float
promotions
list
id
string
type
int
promoCode
object|null
promotionId
string
compensatedByType
int
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
phoneCall
object|null
orderId
string
status
int
expiredIn
int
Finish order by company
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/beatae/orders/1/statuses/company-finish" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/beatae/orders/1/statuses/company-finish"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/beatae/orders/1/statuses/company-finish';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
cart
object
items
list
id
string
name
string
price
float
standardPrice
float
count
int
fullPackagePrice
float
totalPrice
float
promotions
list
id
string
type
int
promoCode
object|null
promotionId
string
compensatedByType
int
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
phoneCall
object|null
orderId
string
status
int
expiredIn
int
Courier arrive to user
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/dicta/orders/1/statuses/arrive-to-user" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/dicta/orders/1/statuses/arrive-to-user"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/dicta/orders/1/statuses/arrive-to-user';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
cart
object
items
list
id
string
name
string
price
float
standardPrice
float
count
int
fullPackagePrice
float
totalPrice
float
promotions
list
id
string
type
int
promoCode
object|null
promotionId
string
compensatedByType
int
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
phoneCall
object|null
orderId
string
status
int
expiredIn
int
Finish order
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/voluptatum/orders/1/statuses/finish" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/voluptatum/orders/1/statuses/finish"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/voluptatum/orders/1/statuses/finish';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
cart
object
items
list
id
string
name
string
price
float
standardPrice
float
count
int
fullPackagePrice
float
totalPrice
float
promotions
list
id
string
type
int
promoCode
object|null
promotionId
string
compensatedByType
int
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
phoneCall
object|null
orderId
string
status
int
expiredIn
int
Decline arrive to company
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/dicta/orders/1/statuses/arrive-to-company/decline" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/dicta/orders/1/statuses/arrive-to-company/decline"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/dicta/orders/1/statuses/arrive-to-company/decline';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
cart
object
items
list
id
string
name
string
price
float
standardPrice
float
count
int
fullPackagePrice
float
totalPrice
float
promotions
list
id
string
type
int
promoCode
object|null
promotionId
string
compensatedByType
int
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
phoneCall
object|null
orderId
string
status
int
expiredIn
int
Decline arrive to user
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/non/orders/1/statuses/arrive-to-user/decline" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/non/orders/1/statuses/arrive-to-user/decline"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/non/orders/1/statuses/arrive-to-user/decline';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
cart
object
items
list
id
string
name
string
price
float
standardPrice
float
count
int
fullPackagePrice
float
totalPrice
float
promotions
list
id
string
type
int
promoCode
object|null
promotionId
string
compensatedByType
int
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
phoneCall
object|null
orderId
string
status
int
expiredIn
int
Decline order status
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/iusto/orders/1/statuses/decline" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"6\"
}"
const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/iusto/orders/1/statuses/decline"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "6"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/iusto/orders/1/statuses/decline';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'status' => '6',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
cart
object
items
list
id
string
name
string
price
float
standardPrice
float
count
int
fullPackagePrice
float
totalPrice
float
promotions
list
id
string
type
int
promoCode
object|null
promotionId
string
compensatedByType
int
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
phoneCall
object|null
orderId
string
status
int
expiredIn
int
Store company delay
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/reiciendis/orders/1/delays/company" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"time\": 12
}"
const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/reiciendis/orders/1/delays/company"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"time": 12
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/reiciendis/orders/1/delays/company';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'time' => 12,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
cart
object
items
list
id
string
name
string
price
float
standardPrice
float
count
int
fullPackagePrice
float
totalPrice
float
promotions
list
id
string
type
int
promoCode
object|null
promotionId
string
compensatedByType
int
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
phoneCall
object|null
orderId
string
status
int
expiredIn
int
Store delivery delay
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/necessitatibus/orders/1/delays/delivery" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"time\": 20
}"
const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/necessitatibus/orders/1/delays/delivery"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"time": 20
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/necessitatibus/orders/1/delays/delivery';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'time' => 20,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
cart
object
items
list
id
string
name
string
price
float
standardPrice
float
count
int
fullPackagePrice
float
totalPrice
float
promotions
list
id
string
type
int
promoCode
object|null
promotionId
string
compensatedByType
int
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
phoneCall
object|null
orderId
string
status
int
expiredIn
int
Call to client
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/quo/orders/1/call-to-client" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/quo/orders/1/call-to-client"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/quo/orders/1/call-to-client';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Statistics
Statistics
requires authentication
Example request:
curl --request GET \
--get "http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/accusamus/statistics" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"timeFrom\": 19,
\"timeTo\": 13
}"
const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/accusamus/statistics"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"timeFrom": 19,
"timeTo": 13
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/accusamus/statistics';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'timeFrom' => 19,
'timeTo' => 13,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE, OPTIONS
access-control-allow-headers: App-Lang, App-Token, App-Account-Token, App-Auth-Token, Content-Type, Accept, Authorization, X-Requested-With, Application
{
"message": "Account is not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
ordersCount
int
successCount
int
successOnlineCount
int
cancelledCount
int
deliveryToHouseCount
int
deliveryToDoorCount
int
totalLeadTime
float
totalIdealOrdersCount
int
totalShiftsCount
int
totalSalary
float
totalOnlineSalary
float
freeDeliveriesCount
int
totalDeliveryPrice
float
totalOnlineDeliveryPrice
float
totalOnlineOtherPrice
float
totalCashbackAmount
float
totalOnlineCashbackAmount
float
totalCityCertificateCompensationAmount
float
totalOnlineCityCertificateCompensationAmount
float
ordersTotalCycleByCourierDistance
float
ordersTotalCycleByCourierDuration
float
ordersWithTotalCycleByCourierCount
int
totalTipsAmount
float
totalOnlineTipsAmount
float
totalDeliveringTime
int
totalWorkTime
int
Reports
requires authentication
Example request:
curl --request GET \
--get "http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/qui/reports" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"timeFrom\": 15,
\"timeTo\": 6,
\"limit\": 13,
\"offset\": 8
}"
const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/qui/reports"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"timeFrom": 15,
"timeTo": 6,
"limit": 13,
"offset": 8
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/qui/reports';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'timeFrom' => 15,
'timeTo' => 6,
'limit' => 13,
'offset' => 8,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE, OPTIONS
access-control-allow-headers: App-Lang, App-Token, App-Account-Token, App-Auth-Token, Content-Type, Accept, Authorization, X-Requested-With, Application
{
"message": "Account is not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
items
object
id
string
deliveryPrice
float
onlineDeliveryPrice
float
cityCertificateCompensationAmount
float
cashbackAmount
float
onlineTipsAmount
float
orderOnlineOther
float
totalAmount
float
createdTime
int
order
object
id
string
number
string
status
int
paymentType
int
hasNext
boolean
Indicates whether there are more items in the collection
Tasks
Active tasks
requires authentication
Example request:
curl --request GET \
--get "http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/eos/tasks/active" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/eos/tasks/active"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/eos/tasks/active';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE, OPTIONS
access-control-allow-headers: App-Lang, App-Token, App-Account-Token, App-Auth-Token, Content-Type, Accept, Authorization, X-Requested-With, Application
{
"message": "Account is not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
items
object
orders
list
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
route
object
distance
float
duration
float
positions
list
latitude
float|null
longitude
float|null
hasNext
boolean
Indicates whether there are more items in the collection
Unassigned tasks
requires authentication
Example request:
curl --request GET \
--get "http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/ut/tasks/unassigned" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"deliveryId\": \"23bc7edd-edb1-3d1f-ab76-16e9e155180a\",
\"limit\": 11,
\"offset\": 5
}"
const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/ut/tasks/unassigned"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"deliveryId": "23bc7edd-edb1-3d1f-ab76-16e9e155180a",
"limit": 11,
"offset": 5
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/ut/tasks/unassigned';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'deliveryId' => '23bc7edd-edb1-3d1f-ab76-16e9e155180a',
'limit' => 11,
'offset' => 5,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE, OPTIONS
access-control-allow-headers: App-Lang, App-Token, App-Account-Token, App-Auth-Token, Content-Type, Accept, Authorization, X-Requested-With, Application
{
"message": "Account is not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
items
object
orders
list
id
string
number
string
paymentType
int
showCheckPackage
bool
pickupDetails
object
time
int
companyName
string
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
deliveryDetails
object
time
int
contact
object
name
string
phone
string|null
address
object
rawAddress
string
position
object
latitude
float|null
longitude
float|null
note
string|null
priceDetails
object|null
summaryPrice
float
companyPrice
float
cashDeliveryPrice
float
userPrice
float
deliveryPriceBalance
float
balance
float
cityCertificateCompensationAmount
float
prices
object
checkPrice
float
deliveryPrice
float
cashbackAmount
float
fullPrice
float
orderPackagePrice
float|null
tipsAmount
float|null
tags
array
status
int
deliveryArrivedToUserTime
int|null
deliveryArrivedToCompanyTime
int|null
route
object
distance
float
duration
float
positions
list
latitude
float|null
longitude
float|null
hasNext
boolean
Indicates whether there are more items in the collection
Users
Profile
requires authentication
Example request:
curl --request GET \
--get "http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/ab/user" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/ab/user"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/ab/user';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE, OPTIONS
access-control-allow-headers: App-Lang, App-Token, App-Account-Token, App-Auth-Token, Content-Type, Accept, Authorization, X-Requested-With, Application
{
"message": "Account is not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
id
string
deliveryId
string
status
int
callSign
string|null
name
string|null
phone
string
type
int
currentPosition
object|null
latitude
float|null
longitude
float|null
dateFormatType
string
measurementSystemType
string
currency
string
etherActive
bool
etherSettings
object
minutesDelayTrivial
int
minutesDelayUrgent
int
timezone
string
interactionMode
int
tipsActive
bool
mainLang
string
langs
list
code
string
locale
string
trackingPositionInterval
int
Store position
requires authentication
Example request:
curl --request POST \
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/aperiam/user/position" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"position\": {
\"latitude\": 409440782.74,
\"longitude\": 33732
},
\"companyAddressId\": \"ad\"
}"
const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/aperiam/user/position"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"position": {
"latitude": 409440782.74,
"longitude": 33732
},
"companyAddressId": "ad"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/aperiam/user/position';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'position' => [
'latitude' => 409440782.74,
'longitude' => 33732.0,
],
'companyAddressId' => 'ad',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
User company addresses
requires authentication
Example request:
curl --request GET \
--get "http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/adipisci/user/company-addresses" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/adipisci/user/company-addresses"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'http://dots.test/business-app/api/couriers/v2/accounts/1/couriers/adipisci/user/company-addresses';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, PATCH, DELETE, OPTIONS
access-control-allow-headers: App-Lang, App-Token, App-Account-Token, App-Auth-Token, Content-Type, Accept, Authorization, X-Requested-With, Application
{
"message": "Account is not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
items
object
id
string
address
string
company
object
id
string
name
string
logo
string|null
hasNext
boolean
Indicates whether there are more items in the collection