Skip to content

List eligible payins

Request

Lists the open payment links and orders that an unmatched bank transfer can connect to.

For the full flow, see Resolving Action Required Payments.

Security
JWT
Path
idstring^payt_[a-zA-Z0-9]+$required

The unique identifier for the payment. Starts with payt_ followed by letters and digits. An ID of any other shape is rejected with 400 and a message saying it must start with payt_; a well-formed ID that doesn't match a payment on your account returns 404.

Example:payt_6aad0bc0cZtlS
Query
customer_idstring

Returns only the payins of this customer. This is an exact match.

Example:customer_id=cust_69eb2cf0FYSDF
reference_numberstring

Returns only the payins with this reference number. This is an exact match.

Example:reference_number=RG12FF590
invoice_numberstring

Returns only the payins with this invoice number. This is an exact match.

Example:invoice_number=R0001
curl -i -X GET \
  'https://api.glomopay.com/api/v1/payment/payt_6aad0bc0cZtlS/eligible-payins?customer_id=cust_69eb2cf0FYSDF&reference_number=RG12FF590&invoice_number=R0001' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

The eligible payins for this payment. The endpoint returns a maximum of 10 payins, the newest first. eligible_payins is an empty array when no payin matches.

Bodyapplication/json
payment_idstring

The unique identifier for the payment.

Example:"payt_6aad0bc0cZtlS"
payment_amountnumber

The amount that the customer sent, in minor units. For example, 10000 is 100.00 AED. The payment_currency field gives the currency.

Example:10000
payment_currencystring, (iso-4217)

The currency that the customer sent, in ISO 4217 format.

Example:"AED"
eligible_payinsArray of objects

The payins that this payment can connect to. The endpoint returns a maximum of 10 payins, the newest first. The array is empty when no open payin matches the amount and the currency of the payment.

Response
{ "payment_id": "payt_6aad0bc0cZtlS", "payment_amount": 10000, "payment_currency": "AED", "eligible_payins": [ { … } ] }