<?php
$url = 'https://www.vendus.cv/ws/v1.1/documents/paymentmethods/';
$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.cv/ws/v1.1/documents/paymentmethods/';
$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 | 12345 | ID |
title | string | Em Dinheiro | Description |
change | int1 - Yes0 - No | Whether it allows change | |
type | stringNU - NumerárioCC - Cartão de CréditoCD - Cartão de DébitoCO - Cartão OfertaCS - Compensação de Saldos C/CDE - Cartão de PontosTR - Ticket RestauranteMB - Referência MBOU - OutroCH - Cheque BancárioLC - Letra ComercialTB - Transferência BancáriaPR - Permuta de BensDNP - Pagamento em conta corrente - entre 15 e 90 dias ou numa data específicaMBWAY - MB WAYZARPH - ZarphALICE - AliceCASHMATIC - CashmaticCASHLOGY - CashlogyITHINKIOT - iThink IoTMYPOS - MyPOSTPASIBS - TPA SIBSVENDUSPAY - Vendus Pay | Official type | |
status | stringon - Active (default)off - Inactive | Whether is usable | |
order | int | 1 | Display order in a list |
stores | collection | Store IDs where it is available. If empty, it will be available in all stores |
<?php
$url = 'https://www.vendus.cv/ws/v1.1/documents/paymentmethods/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.cv/ws/v1.1/documents/paymentmethods/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 | 12345 | ID |
title | string | Em Dinheiro | Description |
change | int1 - Yes0 - No | Whether it allows change | |
type | stringNU - NumerárioCC - Cartão de CréditoCD - Cartão de DébitoCO - Cartão OfertaCS - Compensação de Saldos C/CDE - Cartão de PontosTR - Ticket RestauranteMB - Referência MBOU - OutroCH - Cheque BancárioLC - Letra ComercialTB - Transferência BancáriaPR - Permuta de BensDNP - Pagamento em conta corrente - entre 15 e 90 dias ou numa data específicaMBWAY - MB WAYZARPH - ZarphALICE - AliceCASHMATIC - CashmaticCASHLOGY - CashlogyITHINKIOT - iThink IoTMYPOS - MyPOSTPASIBS - TPA SIBSVENDUSPAY - Vendus Pay | Official type | |
status | stringon - Active (default)off - Inactive | Whether is usable | |
order | int | 1 | Display order in a list |
stores | collection | Store IDs where it is available. If empty, it will be available in all stores |
<?php
$url = 'https://www.vendus.cv/ws/v1.1/documents/paymentmethods/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$method = 'POST';
$params = array(
'title' => 'Em Dinheiro',
'change' => 1,
'type' => 'NU',
'status' => 'on',
);
$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 |
---|---|---|---|
title | string | Em Dinheiro | Description |
change | int1 - Yes (default)0 - No | Whether it allows change | |
type | stringNU - NumerárioCC - Cartão de CréditoCD - Cartão de DébitoCO - Cartão OfertaCS - Compensação de Saldos C/CDE - Cartão de PontosTR - Ticket RestauranteMB - Referência MBOU - OutroCH - Cheque BancárioLC - Letra ComercialTB - Transferência BancáriaPR - Permuta de BensDNP - Pagamento em conta corrente - entre 15 e 90 dias ou numa data específicaMBWAY - MB WAYZARPH - ZarphALICE - AliceCASHMATIC - CashmaticCASHLOGY - CashlogyITHINKIOT - iThink IoTMYPOS - MyPOSTPASIBS - TPA SIBSVENDUSPAY - Vendus Pay | Official type | |
status | stringon - Active (default)off - Inactive | Whether is usable |
Name | Type | Example | Description |
---|---|---|---|
order | int | 1 | Display order in a list |
id | int | 12345 | ID |
title | string | Em Dinheiro | Description |
change | int1 - Yes0 - No | Whether it allows change | |
type | stringNU - NumerárioCC - Cartão de CréditoCD - Cartão de DébitoCO - Cartão OfertaCS - Compensação de Saldos C/CDE - Cartão de PontosTR - Ticket RestauranteMB - Referência MBOU - OutroCH - Cheque BancárioLC - Letra ComercialTB - Transferência BancáriaPR - Permuta de BensDNP - Pagamento em conta corrente - entre 15 e 90 dias ou numa data específicaMBWAY - MB WAYZARPH - ZarphALICE - AliceCASHMATIC - CashmaticCASHLOGY - CashlogyITHINKIOT - iThink IoTMYPOS - MyPOSTPASIBS - TPA SIBSVENDUSPAY - Vendus Pay | Official type | |
status | stringon - Active (default)off - Inactive | Whether is usable | |
stores | collection | Store IDs where it is available. If empty, it will be available in all stores |