GetPaid Queries API
List resources filtering and sorting them as needed.
List resources filtering and sorting them as needed.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/getpaid-queries-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Getpaid Queries API
version: v2
contact:
email: support@getpaid.io
description: '# Getting started
Our APIs provide programmatic access to the Getpaid solution.'
servers:
- url: https://api.getpaid.io
description: Live
- url: https://api.sandbox.getpaid.io
description: Sandbox
tags:
- name: Queries
description: List resources filtering and sorting them as needed.
paths:
/v2/{resource_type}/query:
post:
tags:
- Queries
summary: Query resources
description: 'Query Getpaid solution resources obtaining specific data by filtering and retrieving each resource type:
- `checkouts` - Query checkouts
- `payments` - Query payments'
operationId: query_resources
security:
- OAuth:
- payments:read
parameters:
- name: resource_type
in: path
description: The type of the resources to query.
required: true
schema:
$ref: '#/components/schemas/QueriesResourceType'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/QueryResourcesRequest'
examples:
QueryCheckouts:
$ref: '#/components/examples/QueryCheckouts'
QueryPayments:
$ref: '#/components/examples/QueryPayments'
QueryNext20Payments:
$ref: '#/components/examples/QueryNext20Payments'
required: true
responses:
'200':
description: OK
headers:
Getpaid-Trace-Id:
$ref: '#/components/headers/GetpaidTraceId'
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/QueryResourcesResponse'
examples:
FilteredPayments:
$ref: '#/components/examples/FilteredPayments'
FilteredCheckouts:
$ref: '#/components/examples/FilteredCheckouts'
'400':
$ref: '#/components/responses/400BadRequest'
'401':
$ref: '#/components/responses/401Unauthorized'
'422':
$ref: '#/components/responses/422InvalidParameters'
'429':
$ref: '#/components/responses/429TooManyRequests'
'500':
$ref: '#/components/responses/500InternalServerError'
components:
schemas:
PaymentMethodType:
description: The type of payment method.
type: string
enum:
- card
- sepa_direct_debit
PaginationAfter:
description: Pagination. The `cursor` from next page will be retrieved.
type: string
maxLength: 250
CheckoutId:
allOf:
- $ref: '#/components/schemas/Id'
- description: The unique identifier of the checkout.
example: cko_4kf9v6xp00hzc99rdwr5m97wce
AccountLegalName:
allOf:
- description: The legal name of the account.
- $ref: '#/components/schemas/MediumString'
CardPaymentMethodHint:
allOf:
- required:
- scheme
properties:
type:
type: string
scheme:
$ref: '#/components/schemas/CardScheme'
- $ref: '#/components/schemas/BasePaymentMethodHint'
UpdatedAt:
allOf:
- description: When the resource was last updated.
- $ref: '#/components/schemas/DateTime'
PaginationCursor:
description: The cursor to the last item. If non-empty, can be used to fetch the next page. If not set, there is no more elements.
type: string
maxLength: 250
example: Q3VyaW9zaXR5IEtpbGxlZCB0aGUgQ2F0Cg==
CreatedAt:
allOf:
- description: When the resource was created.
- $ref: '#/components/schemas/DateTime'
PaginationData:
description: The list of queried elements.
type: array
items:
type: object
AccountId:
allOf:
- $ref: '#/components/schemas/Id'
- description: The unique identifier of the account.
example: acc_44678r08jtm8zbt227tzhc4nw5
BasePaymentMethodHint:
allOf:
- $ref: '#/components/schemas/PaymentMethodBase'
- required:
- display_hint
properties:
display_hint:
$ref: '#/components/schemas/PaymentMethodDisplayHint'
Currency:
type: string
format: currency
minLength: 3
maxLength: 3
description: The processing currency code according to the [ISO-4217 standard](https://en.wikipedia.org/wiki/ISO_4217)
example: EUR
PaymentsFiltersRequest:
description: Filtering payments.
type: object
properties:
id:
allOf:
- description: The payment identifier to filter by using an exact match operation.
- $ref: '#/components/schemas/PaymentId'
reference:
description: The payment reference to filter by using a contains operation.
type: string
seller_legal_name:
description: The seller legal name to filter by using a contains operation.
type: string
statuses:
description: The list of payment statuses to filter by.
type: array
minItems: 1
uniqueItems: true
items:
$ref: '#/components/schemas/PaymentStatus'
AmountMinor:
type: integer
format: amount-minor
description: The payment amount in the minor currency unit (e.g. 100 cents for 1 EUR).
example: 1000
CheckoutStatus:
description: 'The status of the checkout.
See the [list, transitions, and description of each status](/payments/checkouts#lifecycle) for more details.
'
type: string
enum:
- initiated
- started
- in_progress
- completed
- failed
- expired
QueryPaymentsResponse:
allOf:
- required:
- type
properties:
type:
type: string
enum:
- payments
cursor:
type: string
data:
items:
required:
- id
- reference
- status
- amount
- currency
- created_at
- updated_at
- method
- seller
- parties
properties:
id:
$ref: '#/components/schemas/PaymentId'
reference:
$ref: '#/components/schemas/Reference'
status:
$ref: '#/components/schemas/PaymentStatus'
amount:
$ref: '#/components/schemas/AmountMinor'
currency:
$ref: '#/components/schemas/Currency'
created_at:
$ref: '#/components/schemas/CreatedAt'
updated_at:
$ref: '#/components/schemas/UpdatedAt'
method:
$ref: '#/components/schemas/PaymentMethodHint'
seller:
$ref: '#/components/schemas/SellerRef'
parties:
description: The list of parties involved in the transaction.
type: array
minItems: 1
items:
$ref: '#/components/schemas/PartyRef'
- $ref: '#/components/schemas/PaginatedResponse'
CheckoutExpiresAt:
allOf:
- description: When the checkout session will expire if not completed.
- $ref: '#/components/schemas/DateTime'
PaymentId:
allOf:
- $ref: '#/components/schemas/Id'
- description: The unique identifier of the payment.
example: pay_4a4m2pjycdb1jbj68h1rvk9kcz
PaymentMethodHint:
description: The payment method used.
oneOf:
- $ref: '#/components/schemas/BasePaymentMethodHint'
- $ref: '#/components/schemas/CardPaymentMethodHint'
discriminator:
propertyName: type
mapping:
card: '#/components/schemas/CardPaymentMethodHint'
sepa_direct_debit: '#/components/schemas/BasePaymentMethodHint'
PaginationFirst:
description: Pagination. The number of elements that will be retrieved.
type: integer
default: 20
minimum: 1
maximum: 100
Reference:
allOf:
- $ref: '#/components/schemas/ShortString'
- description: An identifier in your system. It is recommended to make it unique but the uniqueness is not enforced by the solution.
example: ORD-202510-0232
PaymentMethodBase:
type: object
required:
- type
properties:
type:
$ref: '#/components/schemas/PaymentMethodType'
BaseSortItemRequest:
description: Each field to sort by.
type: object
required:
- field
- direction
properties:
field:
description: The field to sort by. Each field available can only be used once in the list.
type: string
direction:
description: The sort direction
type: string
enum:
- ascending
- descending
QueryResourcesRequest:
oneOf:
- $ref: '#/components/schemas/QueryCheckoutsRequest'
- $ref: '#/components/schemas/QueryPaymentsRequest'
discriminator:
propertyName: type
mapping:
checkouts: '#/components/schemas/QueryCheckoutsRequest'
payments: '#/components/schemas/QueryPaymentsRequest'
BaseQueryRequest:
type: object
properties:
type:
description: 'The type of the Getpaid solution resources to query.
Some query endpoints infer the resource type from the request path. In those cases, if this field is set, it
must match the resource targeted by the request URL.
'
type: string
first:
allOf:
- $ref: '#/components/schemas/PaginationFirst'
after:
$ref: '#/components/schemas/PaginationAfter'
filters:
description: Filters to reduce the data set to query. If not set, all resources available of the given type will be queried.
sorts:
$ref: '#/components/schemas/BaseSortsRequest'
QueryPaymentsRequest:
allOf:
- $ref: '#/components/schemas/BaseQueryRequest'
- required:
- type
properties:
type:
type: string
enum:
- payments
filters:
$ref: '#/components/schemas/PaymentsFiltersRequest'
sorts:
$ref: '#/components/schemas/PaymentsSortsRequest'
PaymentStatus:
description: 'The status of the payment.
See the [list, transitions, and description of each status](/payments/lifecycle) for more details.
'
type: string
enum:
- initiated
- action_required
- submitted
- authorized
- captured
- declined
- failed
- partially_refunded
- refunded
ProblemDetailsBase:
type: object
description: The Problem Details JSON Object [[RFC7807](https://tools.ietf.org/html/rfc7807)].
required:
- type
- title
- status
properties:
type:
type: string
description: A URI reference [[RFC3986](https://tools.ietf.org/html/rfc3986)] that identifies the problem type. It should provide human-readable documentation for the problem type. When this member is not present, its value is assumed to be "about:blank".
format: uri
example: https://docs.getpaid.io/ref/error-types#problem
title:
type: string
description: A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
example: Invalid Request
status:
type: integer
description: The HTTP status code.
minimum: 400
maximum: 599
detail:
type: string
description: A human-readable explanation specific to this occurrence of the problem.
example: The request body was invalid
QueryPaymentMethodHint:
description: The payment method used in a checkout.
type: object
required:
- type
properties:
type:
description: The type of payment method.
type: string
enum:
- card
- sepa_direct_debit
scheme:
description: The scheme of the payment method (e.g., visa, mastercard).
type: string
SellerRef:
description: A reference to the seller account.
type: object
required:
- id
- legal_name
properties:
id:
$ref: '#/components/schemas/AccountId'
legal_name:
$ref: '#/components/schemas/AccountLegalName'
PaymentMethodDisplayHint:
allOf:
- description: A hint of the payment method used.
- $ref: '#/components/schemas/ShortString'
QueryCheckoutsRequest:
allOf:
- $ref: '#/components/schemas/BaseQueryRequest'
- required:
- type
properties:
type:
type: string
enum:
- checkouts
filters:
$ref: '#/components/schemas/CheckoutsFiltersRequest'
sorts:
$ref: '#/components/schemas/CheckoutsSortsRequest'
CheckoutsSortsRequest:
description: Fields to sort the data by. If not set, the data will be sorted by the creation date descending.
type: array
minItems: 1
uniqueItems: true
items:
allOf:
- $ref: '#/components/schemas/BaseSortItemRequest'
- properties:
field:
enum:
- created_at
- amount
- seller_legal_name
CheckoutsFiltersRequest:
description: Filtering checkouts.
type: object
properties:
id:
allOf:
- description: The checkout identifier to filter by using an exact match operation.
- $ref: '#/components/schemas/CheckoutId'
reference:
description: The checkout reference to filter by using a contains operation.
type: string
seller_legal_name:
description: The seller legal name to filter by using a contains operation.
type: string
statuses:
description: The list of checkout statuses to filter by.
type: array
minItems: 1
uniqueItems: true
items:
$ref: '#/components/schemas/CheckoutStatus'
CardScheme:
description: The card scheme.
type: string
enum:
- visa
- mastercard
DateTime:
description: 'UTC timestamp in ISO 8601 format with milliseconds ([RFC 3339](https://www.rfc-editor.org/rfc/rfc3339.html)).
Always includes the ''Z'' UTC indicator.
'
type: string
format: date-time
minLength: 24
maxLength: 24
example: '2025-09-01T22:05:48.479Z'
QueriesResourceType:
description: 'The type of the Getpaid solution resources to get analytics from:
- `checkouts`
- `payments`
'
type: string
enum:
- checkouts
- payments
QueryResourcesResponse:
oneOf:
- $ref: '#/components/schemas/QueryCheckoutsResponse'
- $ref: '#/components/schemas/QueryPaymentsResponse'
discriminator:
propertyName: type
mapping:
checkouts: '#/components/schemas/QueryCheckoutsResponse'
payments: '#/components/schemas/QueryPaymentsResponse'
BaseSortsRequest:
description: Fields to sort the data by. If not set, the data will be sorted by the creation date descending.
type: array
minItems: 1
uniqueItems: true
items:
description: Each field to sort by.
type: object
required:
- field
- direction
properties:
field:
description: The field to sort by. Each field available can only be used once in the list.
type: string
direction:
description: The sort direction
type: string
enum:
- ascending
- descending
PartyRef:
description: A reference to a party account involved in the transaction.
type: object
required:
- id
- type
- legal_name
properties:
id:
$ref: '#/components/schemas/AccountId'
type:
description: The type of party.
type: string
enum:
- platform
- other
legal_name:
$ref: '#/components/schemas/AccountLegalName'
MediumString:
type: string
minLength: 1
maxLength: 250
PaginatedResponse:
type: object
required:
- data
properties:
cursor:
$ref: '#/components/schemas/PaginationCursor'
data:
$ref: '#/components/schemas/PaginationData'
QueryCheckoutsResponse:
allOf:
- required:
- type
properties:
type:
type: string
enum:
- checkouts
cursor:
type: string
data:
items:
required:
- id
- reference
- status
- amount
- currency
- created_at
- updated_at
- expires_at
- payment_methods
- seller
- parties
properties:
id:
$ref: '#/components/schemas/CheckoutId'
reference:
$ref: '#/components/schemas/Reference'
status:
$ref: '#/components/schemas/CheckoutStatus'
amount:
$ref: '#/components/schemas/AmountMinor'
currency:
$ref: '#/components/schemas/Currency'
created_at:
$ref: '#/components/schemas/CreatedAt'
updated_at:
$ref: '#/components/schemas/UpdatedAt'
expires_at:
$ref: '#/components/schemas/CheckoutExpiresAt'
payment_methods:
description: The list of payment methods available in the checkout.
type: array
minItems: 1
items:
$ref: '#/components/schemas/QueryPaymentMethodHint'
seller:
$ref: '#/components/schemas/SellerRef'
parties:
description: The list of parties involved in the transaction.
type: array
minItems: 1
items:
$ref: '#/components/schemas/PartyRef'
- $ref: '#/components/schemas/PaginatedResponse'
PaymentsSortsRequest:
description: Fields to sort the data by. If not set, the data will be sorted by the creation date descending.
type: array
minItems: 1
uniqueItems: true
items:
allOf:
- $ref: '#/components/schemas/BaseSortItemRequest'
- properties:
field:
enum:
- created_at
- amount
- seller_legal_name
ShortString:
type: string
minLength: 1
maxLength: 50
Id:
type: string
format: id
minLength: 30
maxLength: 50
responses:
500InternalServerError:
description: Internal Server Error
headers:
Getpaid-Trace-Id:
$ref: '#/components/headers/GetpaidTraceId'
400BadRequest:
description: Bad Request
headers:
Getpaid-Trace-Id:
$ref: '#/components/headers/GetpaidTraceId'
429TooManyRequests:
description: Too Many Requests
headers:
Getpaid-Trace-Id:
$ref: '#/components/headers/GetpaidTraceId'
422InvalidParameters:
description: Invalid Parameters
headers:
Getpaid-Trace-Id:
$ref: '#/components/headers/GetpaidTraceId'
content:
application/problem+json:
schema:
allOf:
- $ref: '#/components/schemas/ProblemDetailsBase'
- type: object
required:
- errors
properties:
errors:
type: object
description: The JSON path of any request body fields or header names that are invalid with a description of the error
additionalProperties:
type: array
items:
type: string
example:
currency:
- invalid_option
type:
example: https://docs.getpaid.io/integration/api/responses#422---invalid-parameters
title:
example: Invalid Parameters
status:
example: 422
401Unauthorized:
description: Unauthorized
headers:
Getpaid-Trace-Id:
$ref: '#/components/headers/GetpaidTraceId'
examples:
QueryCheckouts:
summary: Query checkouts
value:
type: checkouts
filters:
seller_legal_name: Titan Biking
statuses:
- expired
- failed
QueryNext20Payments:
summary: Query next 20 payments
value:
type: payments
after: Q3VyaW9zaXR5IEtpbGxlZCB0aGUgQ2F0Cg==
first: 20
filters:
seller_legal_name: Titan Biking
statuses:
- captured
FilteredCheckouts:
summary: Filtered checkouts
value:
type: checkouts
cursor: Q3VyaW9zaXR5IEtpbGxlZCB0aGUgQ2F0Cg==
data:
- id: chk_4y7kptsvn11qq6d354g5tx735v
reference: ORD-202510-0232
status: expired
amount: 1000
currency: EUR
created_at: '2023-03-15T12:34:56.999Z'
updated_at: '2023-03-15T12:35:56.999Z'
expires_at: '2023-03-15T13:34:56.999Z'
payment_methods:
- type: card
scheme: visa
- type: card
scheme: mastercard
- type: sepa_direct_debit
seller:
id: acc_44678r08jtm8zbt227tzhc4nw5
legal_name: Titan Biking
parties:
- id: acc_5y789s19kum9act338uaic5ox6
type: platform
legal_name: Titan Auto Parts GmbH
- id: chk_4y7kptsvn11qq6d354g5tx736w
reference: ORD-202511-0133
status: failed
amount: 1000
currency: EUR
created_at: '2023-03-16T10:20:30.999Z'
updated_at: '2023-03-16T10:22:45.999Z'
expires_at: '2023-03-16T11:20:30.999Z'
payment_methods:
- type: card
scheme: visa
- type: sepa_direct_debit
seller:
id: acc_44678r08jtm8zbt227tzhc4nw5
legal_name: Titan Biking
parties:
- id: acc_5y789s19kum9act338uaic5ox6
type: platform
legal_name: Titan Auto Parts GmbH
FilteredPayments:
summary: Filtered payments
value:
type: payments
cursor: Q3VyaW9zaXR5IEtpbGxlZCB0aGUgQ2F0Cg==
data:
- id: pay_4y7kptsvn11qq6d354g5tx735v
reference: ORD-202510-0232
status: captured
amount: 1000
currency: EUR
created_at: '2023-03-15T12:34:56.999Z'
updated_at: '2023-03-15T12:34:56.999Z'
method:
type: card
scheme: visa
display_hint: 424242******4242
seller:
id: acc_44678r08jtm8zbt227tzhc4nw5
legal_name: Titan Biking
parties:
- id: acc_5y789s19kum9act338uaic5ox6
type: platform
legal_name: Titan Auto Parts GmbH
- id: pay_4y7kptsvn11qq6d354g5tx736w
reference: ORD-202511-0133
status: captured
amount: 1000
currency: EUR
created_at: '2023-03-15T12:34:56.999Z'
updated_at: '2023-03-15T12:34:56.999Z'
method:
type: card
scheme: visa
display_hint: 411111******1111
seller:
id: acc_44678r08jtm8zbt227tzhc4nw5
legal_name: Titan Biking
parties:
- id: acc_5y789s19kum9act338uaic5ox6
type: platform
legal_name: Titan Auto Parts GmbH
QueryPayments:
summary: Query payments
value:
type: payments
filters:
seller_legal_name: Titan Biking
statuses:
- captured
headers:
GetpaidTraceId:
description: The trace identifier for the request. It is a good idea to log this and provide it with any support requests
schema:
type: string
example: 96ce50247f87f540bb2d86771b3728b8
securitySchemes:
OAuth:
type: oauth2
flows:
clientCredentials:
tokenUrl: https://auth.getpaid.io/oauth/token
scopes:
accounts:read: Allows to read accounts and onboarding applications.
accounts:read_write: Allows to read, create and/or operate accounts and onboarding applications.
payments:read: Allows to read payments and checkouts.
payments:read_write: Allows to read, create and/or operate payments and checkouts.
x-tagGroups:
- name: General
tags:
- Authentication
- Documents
- name: Accept payments
tags:
- Checkouts
- Payments
- Accept payments webhooks
- name: Onboard sellers
tags:
- Accounts
- Applications
- Onboard sellers webhooks
- name: Operate
tags:
- Queries
- Exports
- Analytics
- Operate webhooks