API

Report

A reporting summary of one payment: amount, status, provider, sender, recipient and remittance information.

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/reports/payments/{id} load

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

report, err := client.Report(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(report)

Lua

Construct client as shown in the Lua setup, then call the operations:

local report, err = client:Report():load({ id = "example_id" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$report = $client->Report()->load(["id" => "example_id"]);

Python

Construct client as shown in the Python setup, then call the operations:

report = client.Report().load({"id": "example_id"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

report = client.Report.load({ "id" => "example_id" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const report = await client.Report().load({ id: "example_id" })

Fields

Field Type Required Description
amount number Yes Payment amount
createdAt string Yes Created At
currency string Yes Currency code
id string Yes Unique payment identifier
provider object No Selected provider details (name, country).
recipient object Yes Recipient
remittanceInformation any Yes Remittance Information
sender object No Sender
status string Yes The most recent status of the payment.

load

GET /api/v1/reports/payments/{id}

Operation ID: PaymentsController_getById_v1.

Authentication: credential (bearer).

Parameters

Parameter In Type Required Description
id path string Yes

Responses

200

application/json

Property Type Required Description
amount number Yes Payment amount
createdAt string Yes
currency enum: AED, AFN, ALL, AMD, ANG, AOA, ... Yes Currency code
id string Yes Unique payment identifier
provider object No Selected provider details (name, country). Null when the payment has no provider assigned to it.
recipient object Yes
recipient.account object Yes Recipient account details
recipient.name string Yes Recipient's name
remittanceInformation object Yes
sender object No
status enum: PENDING, COMPLETED, FAILED, UNKNOWN Yes The most recent status of the payment.
400: The request is not formatted correctly

application/json

Example response:

{
  "message": "Invalid ID value",
  "statusCode": 400,
  "title": "Bad Request"
}
401: Your access token was either not passed with the request, or it is invalid (for example expired or malformed). Make sure to pass the token in the Authorization header, and obtain a new one if it has expired

application/json

Property Type Required Description
message string Yes Error message
statusCode number Yes HTTP status code
title string Yes Name of the error

Example response:

{
  "message": "Unauthorized",
  "statusCode": 401,
  "title": "Unauthorized"
}
403: You do not have the necessary permissions to perform this action

application/json

Property Type Required Description
message string Yes Error message
statusCode number Yes HTTP status code
title string Yes Name of the error

Example response:

{
  "message": "Access denied",
  "statusCode": 403,
  "title": "Forbidden"
}
404: The payment with the specified ID was not found

application/json

Example response:

{
  "message": "Not Found",
  "statusCode": 404,
  "title": "Not Found"
}