Skip to content

List all payments

Request

Returns a list of your payments, sorted by creation date with the most recent first.

Filters combine with AND, with one exception: payin_id and subscription_id are mutually exclusive and sending both returns 400.

The status filter accepts only in_progress, success, failed and action_required; any other value returns 400. That is not the same set of values a payment can come back with, and the filter does not map onto the response field one-for-one: a payment returned with status: under_review is matched by status=in_progress, and some payments returned with status: in_progress are not matched by status=in_progress at all. Treat the filter as a coarse narrowing and read status on each payment you get back.

compliance_status is a separate field with its own filter and moves independently of status. Most payments have no compliance status at all, so filtering on it will exclude them.

Security
JWT
Query
customer_idstring

The unique identifier for the customer.

Example:customer_id=cust_E602sMzgjpDC
statusstring

Status of payin to filter

Enum:"success""failed""action_required""in_progress"
Example:status=success
compliance_statusstring

Filters payments by the outcome of their compliance review.

Enum:"under_review""action_required""approved""rejected"
Example:compliance_status=approved
payin_idstring

The unique identifier for the payin. Accepts a payment link ID (plink_), an order ID (order_) or an Add Balance top-up ID (addfunds_). Any other value returns 400.

Example:payin_id=plink_E602dMzgjpDC
payment_typestring

Filters payments by their payin type. Use add_funds to list only Add Balance top-ups crediting your Funded Balance.

Enum:"payment_link""orders""add_funds"
Example:payment_type=add_funds
subscription_idstring

The unique identifier for the subscription.

Example:subscription_id=sub_68877570b5zeE
currencystring, (iso-4217)

Filters on the payment's requested_currency / converted_currency — the currency the merchant asked for, which is also the currency of the order or payment link the payment belongs to. It does not filter on payment_currency, the currency the customer was actually charged in. Those two differ whenever local payments are in play: a card payment against a USD order is commonly charged to the customer in AED, and that payment matches USD, not AED. Matching is case-insensitive.

Example:currency=USD
request_idstring

Return only the payment created with this request_id.

Example:request_id=unique_request_id_123
beforestring

Return only resources created at or before this time. Send an ISO 8601 timestamp with an offset, such as 2025-02-18T12:03:44Z or 2025-02-18T17:33:44+05:30. A timestamp without an offset is read as UTC. A bare date (YYYY-MM-DD) means the end of that day in UTC (23:59:59.999999Z). An invalid value returns 400 Bad Request. Use this to avoid page drift. See Pagination parameters for more details.

Example:before=2025-02-18T12:03:44Z
afterstring

Return only resources created at or after this time. Send an ISO 8601 timestamp with an offset, such as 2025-01-18T12:03:44Z or 2025-01-18T17:33:44+05:30. A timestamp without an offset is read as UTC. A bare date (YYYY-MM-DD) means the start of that day in UTC (00:00:00Z). An invalid value returns 400 Bad Request. Use this to avoid page drift. See Pagination parameters for more details.

Example:after=2025-01-18T12:03:44Z
per_pageinteger

Number of resources per page. Should be between 1 and 100.

Default:20
pageinteger

Page number for pagination. Starts from 1. Get the next page number from the next field in the response.

Default:1
curl -i -X GET \
  'https://api.glomopay.com/api/v1/payment?customer_id=cust_E602sMzgjpDC&status=success&compliance_status=approved&payin_id=plink_E602dMzgjpDC&payment_type=add_funds&subscription_id=sub_68877570b5zeE&currency=USD&request_id=unique_request_id_123&before=2025-02-18T12%3A03%3A44Z&after=2025-01-18T12%3A03%3A44Z&per_page=20&page=1' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

List of payments matching the filters. Note: If filters do not match, API will return an empty list.

Bodyapplication/json
dataArray of objects(Payment)
page_metaobject(PageMeta)
Response
{ "data": [ { … } ], "page_meta": { "current": 2, "previous": 1, "next": 3, "per_page": 20, "pages": 10, "count": 200 } }