Operacion API

Endpoints para operaciones

Lista de operaciones

GET /hooks/clients/:client_id/operations

Retorna las operaciones realizadas por un cliente a traves de un merchant.

Request

Headers

Content-Type: application/json
Authorization: <integration-token>
Host: example.org
Cookie: 

Route

GET /hooks/clients/100/operations

Response

Headers

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/"5076f18b0e6d9d9ee84f613b8295ac79"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 057ba95f-df69-42bf-a322-fbc3ed3b7577
X-Runtime: 0.028513
Vary: Origin
Content-Length: 2880

Status

200 OK

Body

{
  "data": [
    {
      "id": 128,
      "status": "request",
      "currency_in": "usd",
      "amount_in": "1215.14",
      "currency_out": "doc",
      "amount_out": "8490.53",
      "comment": null,
      "tx_hash": null,
      "url_voucher_image": null,
      "client_id": 100,
      "merchant_id": 10107,
      "created_at": "2023-04-28T21:44:53.991Z",
      "updated_at": "2023-04-28T21:44:53.991Z",
      "metadata": "{\"network_in\":\"tron\"}",
      "token": "sqw5AiZgoIxDLA0GmDas",
      "earnings": "0.0",
      "support_data": "{\"raw_amount\":\"5315.36\",\"profit\":\"6794.38\",\"earn_merchant\":\"6417.84\",\"amount_out\":\"3650.78\",\"fee_of_network\":\"4388.76\"}",
      "quotation_in": null,
      "quotation_out": null,
      "payment_method_type": null,
      "payment_method_id": null,
      "reference_2": null,
      "pairing_network_id": null,
      "order_id": null,
      "usd_amount": "0.0",
      "crypto_network_id": null
    },
    {
      "id": 129,
      "status": "request",
      "currency_in": "usd",
      "amount_in": "2130.01",
      "currency_out": "doc",
      "amount_out": "6960.25",
      "comment": null,
      "tx_hash": null,
      "url_voucher_image": null,
      "client_id": 100,
      "merchant_id": 10107,
      "created_at": "2023-04-28T21:44:54.013Z",
      "updated_at": "2023-04-28T21:44:54.013Z",
      "metadata": "{\"network_in\":\"tron\"}",
      "token": "yARdwBD5RSj9w2AcaQ3u",
      "earnings": "0.0",
      "support_data": "{\"raw_amount\":\"9097.43\",\"profit\":\"7190.36\",\"earn_merchant\":\"5137.45\",\"amount_out\":\"2177.08\",\"fee_of_network\":\"3110.84\"}",
      "quotation_in": null,
      "quotation_out": null,
      "payment_method_type": null,
      "payment_method_id": null,
      "reference_2": null,
      "pairing_network_id": null,
      "order_id": null,
      "usd_amount": "0.0",
      "crypto_network_id": null
    },
    {
      "id": 130,
      "status": "request",
      "currency_in": "usd",
      "amount_in": "8421.58",
      "currency_out": "doc",
      "amount_out": "2696.62",
      "comment": null,
      "tx_hash": null,
      "url_voucher_image": null,
      "client_id": 100,
      "merchant_id": 10107,
      "created_at": "2023-04-28T21:44:54.027Z",
      "updated_at": "2023-04-28T21:44:54.027Z",
      "metadata": "{}",
      "token": "mSmFBiWoadKAypgpAKgA",
      "earnings": "0.0",
      "support_data": "{\"raw_amount\":\"8496.82\",\"profit\":\"7845.41\",\"earn_merchant\":\"4086.58\",\"amount_out\":\"9066.27\",\"fee_of_network\":\"9404.59\"}",
      "quotation_in": null,
      "quotation_out": null,
      "payment_method_type": null,
      "payment_method_id": null,
      "reference_2": null,
      "pairing_network_id": null,
      "order_id": null,
      "usd_amount": "0.0",
      "crypto_network_id": null
    },
    {
      "id": 131,
      "status": "request",
      "currency_in": "usd",
      "amount_in": "3709.84",
      "currency_out": "doc",
      "amount_out": "1922.22",
      "comment": null,
      "tx_hash": null,
      "url_voucher_image": null,
      "client_id": 100,
      "merchant_id": 10107,
      "created_at": "2023-04-28T21:44:54.049Z",
      "updated_at": "2023-04-28T21:44:54.049Z",
      "metadata": "{}",
      "token": "ZsJA9IGbJnABRcnZc9rt",
      "earnings": "0.0",
      "support_data": "{\"raw_amount\":\"7156.02\",\"profit\":\"1111.16\",\"earn_merchant\":\"3330.01\",\"amount_out\":\"1647.62\",\"fee_of_network\":\"7791.98\"}",
      "quotation_in": null,
      "quotation_out": null,
      "payment_method_type": null,
      "payment_method_id": null,
      "reference_2": null,
      "pairing_network_id": null,
      "order_id": null,
      "usd_amount": "0.0",
      "crypto_network_id": null
    }
  ]
}