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/wallet/ \
-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/wallet/ \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"wallet_id": "MERCHANT_WALLET_ID",
"name": "WALLET_NAME",
"client_id": "<CLIENT_ID>",
"currency": "EUR",
"enabled": true
}'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "enabled_by_compliance": true, "wallet_id": "string", "name": "string", "client_id": "string", "currency": "str", "enabled": true }
curl -i -X GET \
'https://api.zrupay.com/v1/wallet/{wallet-id}/' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "enabled_by_compliance": true, "wallet_id": "string", "name": "string", "client_id": "string", "currency": "str", "enabled": true }
curl -i -X PATCH \
'https://api.zrupay.com/v1/wallet/{wallet-id}/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "NEW_WALLET_NAME"
}'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "enabled_by_compliance": true, "wallet_id": "string", "name": "string", "client_id": "string", "currency": "str", "enabled": true }
curl -i -X GET \
'https://api.zrupay.com/v1/wallet/{wallet-id}/entry/' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "count": 0, "items_per_page": 0, "next": "string", "previous": "string", "results": [ { … } ] }
curl -i -X GET \
'https://api.zrupay.com/v1/wallet/{wallet-id}/entry/{entry-id}/' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "wallet": "7e04ca6f-1090-4fc4-bba5-96db96e0dd2b", "amount": 0.1, "balance": 0.1, "concept": "string", "currency": "str", "date": "2019-08-24T14:15:22Z", "with_wallet": "4e35e68a-8d5a-4f9d-81cb-a3567c8f6a48", "with_sale": "d29bd245-1299-4b2c-96a8-625e0f49353f", "with_external": "string" }