Pular para o conteúdo

Create report

Requisição

Request the generation of a custom report based on the specified parameters.

Report duration

Reports can contain up to 90 days of transactions from the previous 9 months.

  • Minimum report duration is 1 day.
  • Maximum report duration is 90 days.

Report retention

Reports are retained for 6 months after the endDate specified in your request. After this period, the report is purged and will no longer be accessible.

Segurança
Bearer
Corpoapplication/json

Parameters defining the requested report

reportNamestring, [ 1 .. 256 ] charactersobrigatório

User defined name of the report.

Exemplo:"My custom report"
startDatestring, (date-time)obrigatório

The ISO-8601 start date (inclusive) for requested report.

Exemplo:"2018-04-06T19:33:35Z"
endDatestring, (date-time)obrigatório

The ISO-8601 end date (inclusive) for a requested report.

Note: Must be after startDate, but no more than 90 days after.

Exemplo:"2018-04-06T20:33:35Z"
reportTypestringobrigatório

The report type of the downloadable report.

Enum ValueDescription
PAYMENT_OPS

Basic payment report suitable for high-level payment investigation and reporting.
View Payment report data fields.

RECON

Reconciliation report suitable for reconciliation and detailed state-by-state investigation.
View Reconciliation report data fields.

FAILURE_CONVERSION_SSA

Failure conversion & SSA report suitable for failed payments investigation.
View Failure conversion & SSA report data fields.

reportFormatstringobrigatório

The report format of the downloadable report.

Enum ValueDescription
CSV

A CSV file is a text file that uses a comma to delimit values. Each line of text corresponds to a unique record.

JSON

JSON (Javascript Object Notation) is a file format that uses human-readable text to store and transmit data objects consisting of attribute-value pairs and arrays.

curl -i -X POST \
  https://docs.ripple.com/_mock/pt-br/products/payments-odl/api-docs/report_service/report_service/v1/reports \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "reportName": "My custom report",
    "startDate": "2018-04-06T19:33:35Z",
    "endDate": "2018-04-06T20:33:35Z",
    "reportType": "PAYMENT_OPS",
    "reportFormat": "CSV"
  }'

Respostas

Returns the JSON record for the posted report

Corpoapplication/json
reportIdstring, (uuid)obrigatório

Unique identifier for a report.

Exemplo:"497f6eca-6276-4993-bfeb-53cbbbba6f08"
reportNamestring, [ 1 .. 256 ] characters

User defined name of the report.

Exemplo:"My custom report"
reportTypestringobrigatório

The report type of the downloadable report.

Enum ValueDescription
PAYMENT_OPS

Basic payment report suitable for high-level payment investigation and reporting.
View Payment report data fields.

RECON

Reconciliation report suitable for reconciliation and detailed state-by-state investigation.
View Reconciliation report data fields.

FAILURE_CONVERSION_SSA

Failure conversion & SSA report suitable for failed payments investigation.
View Failure conversion & SSA report data fields.

reportFormatstringobrigatório

The report format of the downloadable report.

Enum ValueDescription
CSV

A CSV file is a text file that uses a comma to delimit values. Each line of text corresponds to a unique record.

JSON

JSON (Javascript Object Notation) is a file format that uses human-readable text to store and transmit data objects consisting of attribute-value pairs and arrays.

reportStatusstringobrigatório

The status of the report.

Enum ValueDescription
PENDING

Report isn't ready for download.

READY

Report is ready for download.

FAILED

Unable generate the report.

EMPTY

Report has no transactions for the date range.

Exemplo:"READY"
startDatestring, (date-time)obrigatório

The ISO-8601 start date (inclusive) of the report.

Exemplo:"2018-04-06T19:33:35Z"
endDatestring, (date-time)obrigatório

The ISO-8601 end date (inclusive) of the report.

Note: Must be after startDate, but no more than 90 days after.

Exemplo:"2018-04-06T20:33:35Z"
createdOnstring, (date-time)

Report creation time

Exemplo:"2018-04-06T20:33:35Z"
Resposta
{ "reportId": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "reportName": "My custom report", "reportType": "PAYMENT_OPS", "reportFormat": "CSV", "reportStatus": "READY", "startDate": "2018-04-06T19:33:35Z", "endDate": "2018-04-06T20:33:35Z", "createdOn": "2018-04-06T20:33:35Z" }