Example with all allowed parameters
<?php
$url = 'https://www.vendus.es/ws/v1.1/registers/12345/movements/';
$apiKey = 'c433ff57a5ba6cdf301a48c97d9432594e35e73ce545945639bc4fb5798f1e8a';
$method = 'POST';
$params = array(
'operation' => 'open',
'type' => 'NU',
'amount' => 23.15,
'obs' => 'Took out money to pay our supplier',
'email' => '1234@gmail.com',
'return' => 'summary',
'output' => 'html',
);
$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);
?>
Request
Name | Type | Example | Description |
---|
operation | string
in - Entrada
out - Salida
open - Apertura
close - Cierre
point - Punto de Caja
| Operation |
type | string
NU - Efectivo
CC - Tarjeta de Crédito
CD - Tarjeta de Débito
CO - Vale
CS - Compensación de Saldos C/C
DE - Tarjeta de Puntos
TR - Ticket Restaurante
MB - Referencia Tarjeta
OU - Otro
CH - Cheque Bancario
LC - Letra Comercial
TB - Transferencia Bancaria
PR - Permuta de Bienes
MBWAY - Pago Móvil
ZARPH - Pago Zarph
ALICE - Pago Alice
CASHMATIC - Pago Cashmatic
CASHLOGY - Pago Cashlogy
ITHINKIOT - Pago iThink IoT
MYPOS - Pago MyPOS
TPASIBS - Pago TPA SIBS
VENDUSPAY - Vendus Pay
| Official type |
amount | currency | 23.15 | Amount |
obs | text | Took out money to pay our supplier | Some text explaining the movement |
email | email | 1234@gmail.com | email |
return | string summary, list | What to return |
output | string pdf, escpos, html, email | Printable Output |
Response
Name | Type | Example | Description |
---|
operation | string | open | Operation |
type | string | NU | Official type |
amount | currency | 23.15 | Amount |
obs | text | Took out money to pay our supplier | Observations |
output | text | Base64 Encoded | Printable output |