GET
/
payments
Search & list payments
curl --request GET \
  --url https://api.sandbox.primer.io/payments \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-VERSION: <x-api-version>'
{
  "data": [
    {
      "id": "IHQlakKC",
      "date": "2021-03-24T14:56:56.869248",
      "status": "SETTLED",
      "orderId": "my-order-123",
      "currencyCode": "EUR",
      "amount": 700,
      "processor": {
        "name": "STRIPE",
        "processorMerchantId": "acct_stripe_1234"
      },
      "metadata": {
        "productId": 123,
        "merchantId": "a13bsd62s"
      }
    }
  ],
  "nextCursor": "<string>",
  "prevCursor": "<string>"
}

Authorizations

X-API-KEY
string
header
required

Headers

X-API-VERSION
string
required

Specifies the version of the API to use. This must be set to 2.4.

Example:

"2.4"

Query Parameters

status
enum<string>[]

Filter payments by their status.

payment_method_type
enum<string>[]

Filter payments by their payment method type.

processor
string[]

Filter payments by their payment processor.

currency_code
string[]

Filter payments by their payment currency. e.g. use USD for US dollars.

from_date
string<date-time>

Return only payments from this date (inclusive).

to_date
string<date-time>

Return only payments up to this date (inclusive).

order_id
string

Return payments related to this order ID.

min_amount
integer

Return payments of this amount minimum (inclusive).

max_amount
integer

Return payments of this amount max (inclusive).

customer_id
string[]

ID of the customer that has made the payment.

merchant_id
string[]

ID of the merchant involved in the payment.

customer_email_address
string[]

Email of the customer that has made the payment.

last_4_digits
string[]

Last 4 digits of the card used for the payment.

paypal_email
string[]

Paypal email address associated with the payment.

klarna_email
string[]

Klarna email address associated with the payment.

limit
integer
default:100

Maximum number of payments to return per page.

Required range: 1 <= x <= 100
cursor
string

If results are paginated, pass the nextCursor to access next page.

Response

Successful Response

data
PaymentSummaryAPISchema · object[]
nextCursor
string
prevCursor
string