<?php
$url = 'https://www.vendus.co.ao/ws/v1.1/registers/';
$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/registers/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$method = 'GET';
$params = array(
'store_id' => 1234,
'type' => 'auto',
);
$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 |
---|---|---|---|
store_id | int | 1234 | Store ID |
type |
string auto - Automáticopos - Normal (Venda Produtos/Serviços)rest - Restaurante (Gestão de Salas/Mesas)api - API (Integração Programática)office - Officerest_terminal - Terminal de Pedidos (Pedidos à Mesa/Cozinha) |
Register Type |
Name | Type | Example | Description |
---|---|---|---|
id | int | Register ID | |
store_id | int | 123 | Store ID |
title | string | POS 1 | Title |
products_show_reference |
string yes, no |
Show Reference | |
products_show_tax |
string yes, no |
Show Tax | |
document_type_id | string | FT | Document Type ID |
expires | date | 2024-03-20 | Expiration date |
status |
string close, open |
Status | |
mode |
string normal, tests |
Register Mode | |
type | string | pos | Register Type |
show_products |
string all, without_barcode, none |
Show Products | |
default_pay_due | string | Default Pay Due |
<?php
$url = 'https://www.vendus.co.ao/ws/v1.1/registers/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/registers/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 | Register ID | |||||||||||||||||||||||||||||||||||||||||||||
store_id | int | 123 | Store ID | ||||||||||||||||||||||||||||||||||||||||||||
title | string | POS 1 | Title | ||||||||||||||||||||||||||||||||||||||||||||
expires | date | 2024-03-20 | Expiration date | ||||||||||||||||||||||||||||||||||||||||||||
subscription_active | string yes, no | Register subscription status | |||||||||||||||||||||||||||||||||||||||||||||
type | string auto, pos, rest, api, office, rest_terminal | Register Type | |||||||||||||||||||||||||||||||||||||||||||||
finalize_advanced | string yes, no | Whether to use advanced finalize | |||||||||||||||||||||||||||||||||||||||||||||
status | string close, open | Status | |||||||||||||||||||||||||||||||||||||||||||||
mode | string normal, tests | Register Mode | |||||||||||||||||||||||||||||||||||||||||||||
document_type_id | string | Default Document Type | |||||||||||||||||||||||||||||||||||||||||||||
prices_group | int | Register Price Group | |||||||||||||||||||||||||||||||||||||||||||||
products | array | Products options | |||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
show_tax | string yes, no | Whether visible prices should include tax | |||||||||||||||||||||||||||||||||||||||||||||
array | Printing options | ||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
print_popup | string yes, no | Whether to print document or send it by email | |||||||||||||||||||||||||||||||||||||||||||||
show_products | string all, without_barcode, none | Show Products |