Retrieving operation data for specific payment

This section describes the request that retrieves the data of all the operations of specific payment.

You use the following end point to request and retrieve the data of all the operations for specific payment: /operations/get-by-payment.

The availability rate of data received by using Data API can have a delay of up to 5 minutes.

Any request must contain the following parameters:

  • payment_id Use this parameter to specify the ID of the payment whose operations you want to retrieve. This is mandatory parameter.
  • token Use this parameter to specify your token you use to request and retrieve data from Old Dashboard through Data API. This is mandatory parameter. For more information about how to generate token and its secret key for communication with Old Dashboard, see Generating token and token key for Data API.

Here is an example of request for operations for specific payment:

Figure: Sample request for operations of specific payment

{
  "payment_id":"PID_25467851461-2147",
  "token":"VmJQhaXILAnZWTKmqwSd3j",
  "signature":"JM+YWmTL7uGn26IgZWTKmqwSd3jJM+YWmTL7uGn26IglUOMzQtRkvdC0yaq030+eNXVtJjjtgrkglpeXJg=="
}

In response, Old Dashboard returns all the operations data for the payment you specify in the initial request. Below you will find an example of Old Dashboard response with operations data.

Figure: Sample response with operations data for specific payment

{
  "operations": [
    {
      "arn": "",
      "operation_completed_at": "2019-11-22T13:13:04+00:00",
      "operation_type": "refund",
      "operation_id": "2747253065470",
      "amount": 221,
      "currency": "RUB",
      "operation_created_at": "2019-11-22T13:13:04+00:00",
      "rrn": "803817399309"
    },
    {
      "arn": "",
      "operation_completed_at": "2019-11-22T13:09:03+00:00",
      "operation_type": "capture",
      "operation_id": "2747253065469",
      "amount": 1621,
      "currency": "RUB",
      "operation_created_at": "2019-11-22T13:09:03+00:00",
      "rrn": "000000248370"
    },
    {
      "arn": "",
      "operation_completed_at": "2019-11-22T13:06:40+00:00",
      "operation_type": "auth",
      "operation_id": "2747253065468",
      "amount": 2000,
      "currency": "RUB",
      "operation_created_at": "2019-11-22T13:06:38+00:00",
      "rrn": "000047769105"
    }
  ],
  "signature": "hsUpqn7QPDxNLNH/ZulaK6ICiH7bABSdjLPkQXkMjQ7tqoB8TCJR1Oh2xyiA8y1WihDJ4ljz/Hv7NkQFujSnvw=="
}

Related links