El API de ZRU utiliza métodos HTTP y una estructura RESTful de endpoint.
- La autenticación del API se realiza vía Header Authorization.
- Todas las peticiones se deben realizar en formato JSON, y las respuestas del API son en dicho formato.
El API de ZRU utiliza métodos HTTP y una estructura RESTful de endpoint.
curl -i -X GET \
https://api.zrupay.com/v1/client/ \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "count": 0, "items_per_page": 0, "next": "string", "previous": "string", "results": [ { … } ] }
curl -i -X POST \
https://api.zrupay.com/v1/client/ \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "CLIENT_NAME",
"id_country": "ES",
"id_number": "24968842L"
}'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "enabled_by_compliance": true, "name": "string", "client_id": "string", "client_type": "individual", "id_type": "national", "id_country": "st", "id_number": "string", "id_expiration_date": "2019-08-24", "email": "user@example.com", "phone": "string", "web": "http://example.com", "street": "string", "postal_code": "string", "city": "string", "province": "string", "country": "st", "enabled": true }
curl -i -X GET \
'https://api.zrupay.com/v1/client/{client-id}/' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "enabled_by_compliance": true, "name": "string", "client_id": "string", "client_type": "individual", "id_type": "national", "id_country": "st", "id_number": "string", "id_expiration_date": "2019-08-24", "email": "user@example.com", "phone": "string", "web": "http://example.com", "street": "string", "postal_code": "string", "city": "string", "province": "string", "country": "st", "enabled": true }
curl -i -X PATCH \
'https://api.zrupay.com/v1/client/{client-id}/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"id_number": "1234"
}'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "enabled_by_compliance": true, "name": "string", "client_id": "string", "client_type": "individual", "id_type": "national", "id_country": "st", "id_number": "string", "id_expiration_date": "2019-08-24", "email": "user@example.com", "phone": "string", "web": "http://example.com", "street": "string", "postal_code": "string", "city": "string", "province": "string", "country": "st", "enabled": true }
curl -i -X GET \
'https://api.zrupay.com/v1/client/{client-id}/iban/' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "count": 0, "items_per_page": 0, "next": "string", "previous": "string", "results": [ { … } ] }
curl -i -X POST \
'https://api.zrupay.com/v1/client/{client-id}/iban/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"iban_id": "MERCHANT_IBAN_ID",
"iban": "ES91 2100 0418 4502 0005 1332"
}'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "iban_id": "string", "iban": "string" }
curl -i -X GET \
'https://api.zrupay.com/v1/client/{client-id}/iban/{iban-id}/' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "iban_id": "string", "iban": "string" }
curl -i -X PATCH \
'https://api.zrupay.com/v1/client/{client-id}/iban/{iban-id}/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"iban_id": "2432876"
}'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "iban_id": "string", "iban": "string" }