Endpoints para operaciones
Retorna una lista de operaciones.
| Name | Description |
|---|---|
| per_page | Cantidad de recursos por pagina |
| page | Pagina |
| column | Columna por la cual ordenar opciones: created_at |
| order_column | ASC o DESC |
| type | Tipo de operacion, opciones: cash-in, cash-out. |
| merchant_id | Filtra las operaciones por un merchant |
| state | Filtra las operaciones por status |
Content-Type: application/json Authorization: Bearer <token> Host: example.org Cookie:
GET /internal/v1/merchants/operations
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Download-Options: noopen X-Permitted-Cross-Domain-Policies: none Referrer-Policy: strict-origin-when-cross-origin Content-Type: application/json; charset=utf-8 ETag: W/"6ec30d2ccdbf602d54501e74f972dd1e" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 969e3005-adaf-41e1-8eed-4d132b97c23e X-Runtime: 0.041051 Vary: Origin Content-Length: 4762
200 OK
{
"data": [
{
"id": 134,
"status": "request",
"currency_in": "usd",
"amount_in": "4119.76",
"currency_out": "doc",
"amount_out": "7588.72",
"comment": null,
"tx_hash": null,
"url_voucher_image": null,
"created_at": "2022-10-05T15:55:45.215Z",
"client": {
"id": 47,
"first_name": "Ahmed",
"last_name": "Miller",
"nationality": "Grenadians",
"gender": "Male",
"marital_status": "single",
"politically_exposed": false,
"birthday": "1987-07-28",
"client_id": 10118,
"created_at": "2022-10-05T15:55:45.195Z",
"updated_at": "2022-10-05T15:55:45.195Z",
"document_type": "dni",
"document_number": "61-7458185",
"state": "pending"
},
"merchant": {
"id": 8888,
"name": null
},
"type": "cash-in",
"commission": {
"percentage": 0.5
},
"updated_at": "2022-10-05T15:55:45.215Z",
"payment_method": {
},
"reference_2": null,
"metadata": {
"network_in": "tron"
},
"kyc": false,
"payment_data": null
},
{
"id": 135,
"status": "request",
"currency_in": "usd",
"amount_in": "8044.88",
"currency_out": "doc",
"amount_out": "7774.23",
"comment": null,
"tx_hash": null,
"url_voucher_image": null,
"created_at": "2022-10-05T15:55:45.228Z",
"client": {
"id": 47,
"first_name": "Ahmed",
"last_name": "Miller",
"nationality": "Grenadians",
"gender": "Male",
"marital_status": "single",
"politically_exposed": false,
"birthday": "1987-07-28",
"client_id": 10118,
"created_at": "2022-10-05T15:55:45.195Z",
"updated_at": "2022-10-05T15:55:45.195Z",
"document_type": "dni",
"document_number": "61-7458185",
"state": "pending"
},
"merchant": {
"id": 8888,
"name": null
},
"type": "cash-in",
"commission": {
"percentage": 0.5
},
"updated_at": "2022-10-05T15:55:45.228Z",
"payment_method": {
},
"reference_2": null,
"metadata": {
"network_in": "tron"
},
"kyc": false,
"payment_data": null
},
{
"id": 136,
"status": "request",
"currency_in": "usd",
"amount_in": "8953.14",
"currency_out": "doc",
"amount_out": "2436.34",
"comment": null,
"tx_hash": null,
"url_voucher_image": null,
"created_at": "2022-10-05T15:55:45.241Z",
"client": {
"id": 47,
"first_name": "Ahmed",
"last_name": "Miller",
"nationality": "Grenadians",
"gender": "Male",
"marital_status": "single",
"politically_exposed": false,
"birthday": "1987-07-28",
"client_id": 10118,
"created_at": "2022-10-05T15:55:45.195Z",
"updated_at": "2022-10-05T15:55:45.195Z",
"document_type": "dni",
"document_number": "61-7458185",
"state": "pending"
},
"merchant": {
"id": 8888,
"name": null
},
"type": "cash-in",
"commission": {
"percentage": 0.5
},
"updated_at": "2022-10-05T15:55:45.241Z",
"payment_method": {
},
"reference_2": null,
"metadata": {
"network_in": "tron"
},
"kyc": false,
"payment_data": null
},
{
"id": 137,
"status": "request",
"currency_in": "usd",
"amount_in": "3001.99",
"currency_out": "doc",
"amount_out": "4643.83",
"comment": null,
"tx_hash": null,
"url_voucher_image": null,
"created_at": "2022-10-05T15:55:45.254Z",
"client": {
"id": 47,
"first_name": "Ahmed",
"last_name": "Miller",
"nationality": "Grenadians",
"gender": "Male",
"marital_status": "single",
"politically_exposed": false,
"birthday": "1987-07-28",
"client_id": 10118,
"created_at": "2022-10-05T15:55:45.195Z",
"updated_at": "2022-10-05T15:55:45.195Z",
"document_type": "dni",
"document_number": "61-7458185",
"state": "pending"
},
"merchant": {
"id": 8888,
"name": null
},
"type": "cash-out",
"commission": {
"percentage": 0.5
},
"updated_at": "2022-10-05T15:55:45.254Z",
"payment_method": {
},
"reference_2": null,
"metadata": {
},
"kyc": false,
"payment_data": null
},
{
"id": 138,
"status": "request",
"currency_in": "usd",
"amount_in": "5612.53",
"currency_out": "doc",
"amount_out": "6450.73",
"comment": null,
"tx_hash": null,
"url_voucher_image": null,
"created_at": "2022-10-05T15:55:45.265Z",
"client": {
"id": 47,
"first_name": "Ahmed",
"last_name": "Miller",
"nationality": "Grenadians",
"gender": "Male",
"marital_status": "single",
"politically_exposed": false,
"birthday": "1987-07-28",
"client_id": 10118,
"created_at": "2022-10-05T15:55:45.195Z",
"updated_at": "2022-10-05T15:55:45.195Z",
"document_type": "dni",
"document_number": "61-7458185",
"state": "pending"
},
"merchant": {
"id": 8888,
"name": null
},
"type": "cash-out",
"commission": {
"percentage": 0.5
},
"updated_at": "2022-10-05T15:55:45.265Z",
"payment_method": {
},
"reference_2": null,
"metadata": {
},
"kyc": false,
"payment_data": null
},
{
"id": 139,
"status": "request",
"currency_in": "usd",
"amount_in": "3779.17",
"currency_out": "doc",
"amount_out": "1177.41",
"comment": null,
"tx_hash": null,
"url_voucher_image": null,
"created_at": "2022-10-05T15:55:45.276Z",
"client": {
"id": 47,
"first_name": "Ahmed",
"last_name": "Miller",
"nationality": "Grenadians",
"gender": "Male",
"marital_status": "single",
"politically_exposed": false,
"birthday": "1987-07-28",
"client_id": 10118,
"created_at": "2022-10-05T15:55:45.195Z",
"updated_at": "2022-10-05T15:55:45.195Z",
"document_type": "dni",
"document_number": "61-7458185",
"state": "pending"
},
"merchant": {
"id": 8888,
"name": null
},
"type": "cash-out",
"commission": {
"percentage": 0.5
},
"updated_at": "2022-10-05T15:55:45.276Z",
"payment_method": {
},
"reference_2": null,
"metadata": {
},
"kyc": false,
"payment_data": null
}
],
"current_page": 1,
"per_page": 25,
"total_pages": 1,
"total_elements": 6
}