Operacion API

Endpoints para operaciones

Ver una operacion

GET /hooks/clients/:client_id/operations/:operation_id

Retorna informacion sobre una operacion (solo accesible a las operaciones realizadas con el merchant)

Request

Headers

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

Route

GET /hooks/clients/100/operations/75

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/"beed541693e4cd3e9d24fb35a1a9dab1"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: bea3acef-83a6-4c14-8cd5-76b62de01bf9
X-Runtime: 0.029780
Vary: Origin
Content-Length: 736

Status

200 OK

Body

{
  "data": {
    "id": 75,
    "status": "request",
    "currency_in": "usd",
    "amount_in": "9051.67",
    "currency_out": "doc",
    "amount_out": "4649.17",
    "comment": null,
    "tx_hash": null,
    "url_voucher_image": null,
    "client_id": 100,
    "merchant_id": 10108,
    "created_at": "2023-04-28T21:44:54.649Z",
    "updated_at": "2023-04-28T21:44:54.649Z",
    "metadata": "{\"network_in\":\"tron\"}",
    "token": "3QJvjJl6jBCDTqf8jTu9",
    "earnings": "0.0",
    "support_data": "{\"raw_amount\":\"8549.91\",\"profit\":\"4364.76\",\"earn_merchant\":\"8590.83\",\"amount_out\":\"5479.86\",\"fee_of_network\":\"2645.78\"}",
    "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
  }
}