<?php
$url = 'https://www.vendus.co.ao/ws/v1.1/delivery/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, $apiKey);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($curl);
?>
<?php
$url = 'https://www.vendus.co.ao/ws/v1.1/delivery/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$method = 'GET';
$params = array(
'type' => 'takeaway',
'status' => 'cooking',
'kitchen_id' => 1234,
'order_id' => '1234',
'reference' => '1234',
);
$url .= '?' . http_build_query($params);
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, $apiKey);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
$result = curl_exec($curl);
?>
Name | Type | Example | Description |
---|---|---|---|
type | string table, delivery, takeaway, pickup | Type | |
status | string | cooking | Status - You may send a comma separated string with multiple status. received, pending, cooking, waiting_to_delivery, delivered, canceled |
kitchen_id | int | 1234 | Kitchen ID |
order_id | string | 1234 | Order ID |
reference | string | 1234 | Reference |
Name | Type | Example | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | int | Delivery ID | |||||||||||||
saas_id | int | Saas ID | |||||||||||||
user_id | int | User ID | |||||||||||||
order_id | string | Order ID | |||||||||||||
reference | int | Reference | |||||||||||||
store_id | int | 1234 | Store ID | ||||||||||||
table_id | int | 1234 | Table ID | ||||||||||||
table | array | 1234 | Table Data | ||||||||||||
| |||||||||||||||
kitchen_id | int | 1234 | Kitchen ID | ||||||||||||
type | string table, delivery, takeaway, pickup | Type | |||||||||||||
source | string office, pos, vendusgo, api, deliverect, flipdish | Source | |||||||||||||
status | string received, pending, cooking, waiting_to_delivery, delivered, canceled | Status | |||||||||||||
items | collection | Items Data | |||||||||||||
extra_info | string | Extra Info | |||||||||||||
date_create | date | Date Create | |||||||||||||
date_update | date | Date Last Update | |||||||||||||
date_schedule | date | Date Schedule |
<?php
$url = 'https://www.vendus.co.ao/ws/v1.1/delivery/12345/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, $apiKey);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($curl);
?>
<?php
$url = 'https://www.vendus.co.ao/ws/v1.1/delivery/12345/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, $apiKey);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($curl);
?>
Name | Type | Example | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | int | Delivery ID | |||||||||||||
saas_id | int | Saas ID | |||||||||||||
user_id | int | User ID | |||||||||||||
order_id | string | Order ID | |||||||||||||
reference | int | Reference | |||||||||||||
store_id | int | 1234 | Store ID | ||||||||||||
table_id | int | 1234 | Table ID | ||||||||||||
table | array | 1234 | Table Data | ||||||||||||
| |||||||||||||||
kitchen_id | int | 1234 | Kitchen ID | ||||||||||||
type | string table, delivery, takeaway, pickup | Type | |||||||||||||
source | string office, pos, vendusgo, api, deliverect, flipdish | Source | |||||||||||||
status | string received, pending, cooking, waiting_to_delivery, delivered, canceled | Status | |||||||||||||
items | collection | Items Data | |||||||||||||
extra_info | string | Extra Info | |||||||||||||
date_create | date | Date Create | |||||||||||||
date_update | date | Date Last Update | |||||||||||||
date_schedule | date | Date Schedule |
<?php
$url = 'https://www.vendus.co.ao/ws/v1.1/delivery/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$method = 'POST';
$params = array(
'table_id' => ,
'type' => 'table',
'status' => 'received',
'source' => 'office',
'order_id' => '',
'reference' => '',
'date_schedule' => '',
'extra_info' => '',
'items' => array(
array(
'id' => 12345,
'reference' => 'CAFK001',
'qty' => 3.530,
'price' => 5,
'text' => 'Bife mal passado',
'notes' => '',
'modifiers' => '',
),
),
);
$content = json_encode($params);
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, $apiKey);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_HTTPHEADER,
array(
"Content-type: application/json",
"Content-Length: " . strlen($content),
)
);
$result = curl_exec($curl);
?>
Name | Type | Example | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
table_id | int | Table ID | |||||||||||||||||||||||||||||||||
type | string table, delivery, takeaway, pickup | Type | |||||||||||||||||||||||||||||||||
status | string received, pending, cooking, waiting_to_delivery, delivered, canceled | Status | |||||||||||||||||||||||||||||||||
source | string office, pos, vendusgo, api, deliverect, flipdish | Source | |||||||||||||||||||||||||||||||||
order_id | string | Order id | |||||||||||||||||||||||||||||||||
reference | string | Reference | |||||||||||||||||||||||||||||||||
items | collection | ||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
date_schedule | datetime | Date Schedule | |||||||||||||||||||||||||||||||||
extra_info | json |
Name | Type | Example | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | int | Delivery ID | |||||||||||||
saas_id | int | Saas ID | |||||||||||||
user_id | int | User ID | |||||||||||||
order_id | string | Order ID | |||||||||||||
reference | int | Reference | |||||||||||||
store_id | int | 1234 | Store ID | ||||||||||||
table_id | int | 1234 | Table ID | ||||||||||||
table | array | 1234 | Table Data | ||||||||||||
| |||||||||||||||
kitchen_id | int | 1234 | Kitchen ID | ||||||||||||
type | string table, delivery, takeaway, pickup | Type | |||||||||||||
source | string office, pos, vendusgo, api, deliverect, flipdish | Source | |||||||||||||
status | string received, pending, cooking, waiting_to_delivery, delivered, canceled | Status | |||||||||||||
items | collection | Items Data | |||||||||||||
extra_info | string | Extra Info | |||||||||||||
date_create | date | Date Create | |||||||||||||
date_update | date | Date Last Update | |||||||||||||
date_schedule | date | Date Schedule |
<?php
$url = 'https://www.vendus.co.ao/ws/v1.1/delivery/12345/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$method = 'PATCH';
$params = array(
'status' => 'received',
'update_hook' => 0,
'extra_info' => '',
);
$content = json_encode($params);
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, $apiKey);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_HTTPHEADER,
array(
"Content-type: application/json",
"Content-Length: " . strlen($content),
)
);
$result = curl_exec($curl);
?>
Name | Type | Example | Description |
---|---|---|---|
status | string received, pending, cooking, waiting_to_delivery, delivered, canceled | Status | |
update_hook | int 0, 1 | Emit event to update source | |
extra_info | immutable | Extra Info |
Name | Type | Example | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | int | Delivery ID | |||||||||||||
saas_id | int | Saas ID | |||||||||||||
user_id | int | User ID | |||||||||||||
order_id | string | Order ID | |||||||||||||
reference | int | Reference | |||||||||||||
store_id | int | 1234 | Store ID | ||||||||||||
table_id | int | 1234 | Table ID | ||||||||||||
table | array | 1234 | Table Data | ||||||||||||
| |||||||||||||||
kitchen_id | int | 1234 | Kitchen ID | ||||||||||||
type | string table, delivery, takeaway, pickup | Type | |||||||||||||
source | string office, pos, vendusgo, api, deliverect, flipdish | Source | |||||||||||||
status | string received, pending, cooking, waiting_to_delivery, delivered, canceled | Status | |||||||||||||
items | collection | Items Data | |||||||||||||
extra_info | string | Extra Info | |||||||||||||
date_create | date | Date Create | |||||||||||||
date_update | date | Date Last Update | |||||||||||||
date_schedule | date | Date Schedule |