Skip to Content
FlowPayDocs

List the application's payments

GET
/v1/payments

Most recent first. Only returns the payments of the API key's application.

Authorization

ApiKeyBearer
headerAuthorizationBearer <sk_test_… | sk_live_…>

The application's API key. sk_test_…: sandbox, no money moves. sk_live_…: real.

Query Parameters

state?string

Keep only this state.

Value in"CREATED""AWAITING_CUSTOMER""PROCESSING""SUCCEEDED""FAILED""EXPIRED""CANCELED"
reference?string

Keep only payments whose reference contains this text (case-insensitive), 128 characters at most.

Lengthlength <= 128
from?string

Start of the range, included: ISO 8601 instant (2026-11-03T00:00:00+00:00). Compute it in your time zone.

Formatdate-time
to?string

End of the range, excluded: ISO 8601 instant, after from (otherwise 400 invalid_request).

Formatdate-time
page?integer

Page number, from 0.

Range0 <= value
Default0
size?integer

Page size, capped at 100.

Range1 <= value <= 100
Default20

Response Body

The requested page (empty past the last one).

application/json
  1. response

A page of a list. items has fewer than size elements on the last page.

page*integer
size*integer
total*integer

Total number of elements.

total_pages*integer
items*array<>
Example Request
curl -X GET 'https://api.flowpay.example/api/v1/payments'
Example Response
{  "page": 0,  "size": 20,  "total": 135,  "total_pages": 7,  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "state": "CREATED",      "mode": "LIVE",      "merchant_reference": "string",      "amount": "5000",      "amount_minor": 5000,      "currency": "XOF",      "description": "string",      "metadata": {},      "networks": [        "BF_ORANGE"      ],      "network": "BF_ORANGE",      "checkout_url": "string",      "expires_at": "2019-08-24T14:15:22Z",      "succeeded_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "attempts": [        {          "attempt_no": 1,          "state": "CREATED",          "provider_key": "LIGDICASH",          "route_reason": "LOWEST_COST",          "route_cost_minor": 0,          "failure_class": "CUSTOMER_DECLINED",          "created_at": "2019-08-24T14:15:22Z",          "settled_at": "2019-08-24T14:15:22Z"        }      ],      "next_action": "NONE",      "redirect_url": "string"    }  ]}