<?php
$url = 'https://www.vendus.co.ao/ws/v1.1/stores/';
$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/stores/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$method = 'GET';
$params = array(
'type' => 'store',
);
$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 all, store, warehouse | Type |
Name | Type | Example | Description |
---|---|---|---|
id | int | Store ID | |
type | string store, warehouse | Type | |
title | string | Loja da Baixa | Title |
tax_id | stringNOR - Taxa NormalINT - Taxa IntermédiaRED - Taxa ReduzidaISE - IsentoOUT - Outros | Default tax rate | |
tax_exemption | stringM01 - M01 - Artigo 16.º, n.º 6 do CIVA ou similarM02 - M02 - Artigo 6.º do Decreto-Lei n.º 198/90, de 19 de JunhoM03 - M03 - Exigibilidade de caixa (revogado)M04 - M04 - Artigo 13.º do CIVA ou similarM05 - M05 - Artigo 14.º do CIVA ou similarM06 - M06 - Artigo 15.º do CIVA ou similarM07 - M07 - Artigo 9.º do CIVA ou similarM08 - M08 - IVA - autoliquidação (revogado)M09 - M09 - IVA - não confere direito a deduçãoM10 - M10 - IVA - Regime de isenção (Artigo 57.º do CIVA)M11 - M11 - Regime particular do tabacoM12 - M12 - Regime da margem de lucro - Agências de viagensM13 - M13 - Regime da margem de lucro - Bens em segunda mãoM14 - M14 - Regime da margem de lucro - Objetos de arteM15 - M15 - Regime da margem de lucro - Objetos de coleção e antiguidadesM16 - M16 - Artigo 14.º do RITI ou similarM19 - M19 - Outras isençõesM20 - M20 - IVA - regime forfetárioM21 - M21 - IVA – não confere direito à deduçãoM25 - M25 - Mercadorias à consignaçãoM26 - M26 - Cabaz alimentarM30 - M30 - IVA - autoliquidação (2.1.i)M31 - M31 - IVA - autoliquidação (2.1.j)M32 - M32 - IVA - autoliquidação (2.1.l)M33 - M33 - IVA - autoliquidação (2.1.m)M34 - M34 - IVA - autoliquidação (2.1.n)M40 - M40 - IVA - autoliquidação (6.6.a)M41 - M41 - IVA - autoliquidação (8.3.R)M42 - M42 - IVA - autoliquidação (21.2007)M43 - M43 - IVA - autoliquidação (362.99)M99 - M99 - Não sujeito; não tributado ou similar | Tax exemption reason | |
tax_exemption_law | string | Some law | Tax exemption applicable law |
address | string | Rua Nova de Mil Fontes, 35 | Address |
postalcode | string | 1100-234 | Postal Code |
city | string | Setúbal | City/Locality |
country | string | PT | Country |
string | loja.baixa@empresa.pt | ||
phone | string | 210192029 | Phone |
status | string on, off | Status | |
cae | string | 76290 | CAE |
share_stock_store_id | int | Uses Own Stock (0) or Other Store Stock (Store ID) | Stock Configuration |
sync_pos | string | YES|NO - if Store`s POS are linked | POS Sincronization |
sync_pos_ping | string | YES|NO - if Store`s POS are linked with ping socket method | POS Sincronization behavior |
<?php
$url = 'https://www.vendus.co.ao/ws/v1.1/stores/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/stores/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 | Store ID | |
type | string store, warehouse | Type | |
title | string | Loja da Baixa | Title |
tax_id | stringNOR - Taxa NormalINT - Taxa IntermédiaRED - Taxa ReduzidaISE - IsentoOUT - Outros | Default tax rate | |
tax_exemption | stringM01 - M01 - Artigo 16.º, n.º 6 do CIVA ou similarM02 - M02 - Artigo 6.º do Decreto-Lei n.º 198/90, de 19 de JunhoM03 - M03 - Exigibilidade de caixa (revogado)M04 - M04 - Artigo 13.º do CIVA ou similarM05 - M05 - Artigo 14.º do CIVA ou similarM06 - M06 - Artigo 15.º do CIVA ou similarM07 - M07 - Artigo 9.º do CIVA ou similarM08 - M08 - IVA - autoliquidação (revogado)M09 - M09 - IVA - não confere direito a deduçãoM10 - M10 - IVA - Regime de isenção (Artigo 57.º do CIVA)M11 - M11 - Regime particular do tabacoM12 - M12 - Regime da margem de lucro - Agências de viagensM13 - M13 - Regime da margem de lucro - Bens em segunda mãoM14 - M14 - Regime da margem de lucro - Objetos de arteM15 - M15 - Regime da margem de lucro - Objetos de coleção e antiguidadesM16 - M16 - Artigo 14.º do RITI ou similarM19 - M19 - Outras isençõesM20 - M20 - IVA - regime forfetárioM21 - M21 - IVA – não confere direito à deduçãoM25 - M25 - Mercadorias à consignaçãoM26 - M26 - Cabaz alimentarM30 - M30 - IVA - autoliquidação (2.1.i)M31 - M31 - IVA - autoliquidação (2.1.j)M32 - M32 - IVA - autoliquidação (2.1.l)M33 - M33 - IVA - autoliquidação (2.1.m)M34 - M34 - IVA - autoliquidação (2.1.n)M40 - M40 - IVA - autoliquidação (6.6.a)M41 - M41 - IVA - autoliquidação (8.3.R)M42 - M42 - IVA - autoliquidação (21.2007)M43 - M43 - IVA - autoliquidação (362.99)M99 - M99 - Não sujeito; não tributado ou similar | Tax exemption reason | |
tax_exemption_law | string | Some law | Tax exemption applicable law |
address | string | Rua Nova de Mil Fontes, 35 | Address |
postalcode | string | 1100-234 | Postal Code |
city | string | Setúbal | City/Locality |
country | string | PT | Country |
string | loja.baixa@empresa.pt | ||
phone | string | 210192029 | Phone |
status | string on, off | Status | |
cae | string | 76290 | CAE |
share_stock_store_id | int | Uses Own Stock (0) or Other Store Stock (Store ID) | Stock Configuration |
sync_pos | string | YES|NO - if Store`s POS are linked | POS Sincronization |
sync_pos_ping | string | YES|NO - if Store`s POS are linked with ping socket method | POS Sincronization behavior |