Skip to main content
Welcome! This API lets you query your sales/purchases programmatically. In 3 steps you’ll make your first request.
Prerequisite: a credential pair (clientId + apiKey) provided by the PagAmerican team. The apiKey is shown only once at creation — store it securely.

Quickstart

1

Exchange your credentials for a token

Response:
2

Query your purchases using the token

3

Done! You get the data as JSON

Generate the token once and reuse it across multiple requests while it’s valid. Only generate a new one when you get a 401.

Key concepts

Dates: `to` is exclusive

To get the entire month of April, use from=2026-04-01 and to=2026-05-01 (the day after your intended last day). The maximum window is 90 days.

Your data, only yours

You only see the data that belongs to you. There’s no per-client filter parameter — it’s enforced automatically by your token.

Rate limits

60 requests/min and 50,000/day per client. When exceeded: 429 with the Retry-After header.

Pagination

Use limit (up to 5000). If meta.truncated is true, there’s more data — narrow the date window. Records come newest first.

Errors

All errors follow the same shape:
The correlation_id is always present in the response (and in the x-correlation-id header). Include it when opening a support ticket — it lets us trace your exact request.

Next steps

Authentication

Understand the token flow and security best practices.

API Reference

Explore the endpoints with the “Try it” playground.

Webhooks

Get notified in near real time about checkouts, orders, and refunds.