The Sales API lets your integration read a merchant’s sales. Use it to bring sales data into accounting, ERP, and reporting systems.
This guide explains how the Sales API fits into the SumUp platform and suggests patterns for building a reliable integration. For endpoint parameters, response fields, and schemas, see the Sales API reference.
Choose the Right API
The Sales API and Transactions API describe related data at different levels.
| If you need to… | Use… |
|---|---|
| See what was sold, including items, prices, discounts, and taxes | Sales API |
| Retrieve a sale using its sale ID | Sales API |
| Inspect a payment’s outcome and event history | Transactions API |
| Issue a refund | Transactions API |
| Investigate payouts and settlement activity | Transactions API and Payouts API |
Use the Sales API for the business view of a sale. A sale object is created at a checkout, but the Sales API only returns closed and fully paid sales. The diagram shows how checkout, sale data, payment processing, and the public APIs relate. Use the Transactions API for the payment view. If you need both, retrieve the sale first, find its payment references inside the payments[] list, and finally verify that the reference is a transaction identifier, to look for a related transaction. Check the Transactions API reference for the current lookup options.
Out of Scope
- In countries other than the UK, sales created via the Invoices product are only included when the transaction happened through SumUp payments. This means invoices paid via cash or bank transfer won’t be listed. UK sales are an exception to this rule.
- Sales API is read-only, no write operations are available.
- Sales API does not support multi-merchant operations.
- Sales API does not provide webhooks nor async event support.
Get Access
Authenticate Requests
Send an access token in the Authorization header as a bearer token. Merchant API key and OAuth are both valid options. For OAuth, request the sales.read scope. Requests also require the merchant.read permission. See the authorization guide and the Sales API reference.
Use the merchant code for the account associated with the token. Request only the access your integration needs.
Send a User-Agent Header
Include a non-empty User-Agent header with every request. A missing or empty value returns 412. Identify your integration with a product name and version, such as acme-bookkeeping-sync/1.4.0.
Make a First Request
This example searches for sales closed on a specific day. Replace the placeholders with your merchant code, token, and integration name.
curl --request POST \
--url https://api.sumup.com/v1.0/merchants/<MERCHANT_CODE>/sales/search \
--header "Authorization: Bearer <ACCESS_TOKEN>" \
--header "Content-Type: application/json" \
--header "User-Agent: <YOUR_INTEGRATION>/<VERSION>" \
--data '{
"start_date": "2026-06-01T00:00:00Z",
"end_date": "2026-06-01T23:59:59Z",
"sale_statuses": ["CLOSED"],
"payment_statuses": ["PAID"],
"pagination_limit": 25
}'Search returns summary rows. To retrieve the items and other details for a sale, use its id with the Get a sale operation.
Choose an Operation
| Goal | Operation | Notes |
|---|---|---|
| List recent sales without filters | GET /v1.0/merchants/{merchant_code}/sales |
Results are ordered by most recent event. |
| Find sales within a date range or by status or channel | POST /v1.0/merchants/{merchant_code}/sales/search |
Results are ordered by sale close date, newest first. |
| Retrieve one sale | GET /v1.0/merchants/{merchant_code}/sales/{sale_id} |
Use the sale ID from a list or search result. |
Use search for a scheduled sync that needs a date window or filters. Use list when you need to browse recent results without filters.
Build a Reliable Sync
The API has no webhooks, change events, or async notifications for sales. Your integration needs to query the API to learn about new or changed sales; choose the frequency that fits your latency and reconciliation needs.
Use an Overlapping Time Window
The search date filters and the sort order use the same date: the sale’s close time, or its creation time if no close time is recorded. Results are sorted newest first, with sale ID as a tie-breaker.
Because sales are placed in a window by close time, a sale that closes while a run is in progress can fall outside the window you searched. Start each run before the previous window ended so that sales closing near the boundary are picked up.
A practical sync pattern is:
- Save the time window of the last successful run.
- Start the next run before the previous window ended. Choose an overlap that fits your data-latency and reconciliation needs.
- Search with the same date and status filters for every page in the run.
- Follow pagination tokens until there are no more results.
- Retrieve each sale’s details when your integration needs them.
- Store or update the sale using its
idas the key. - Re-read recent windows with
payment_statuses:["PAID", "CHARGED_BACK"]to pick up sales that have newly closed and payment outcomes that have changed on them.
Re-reading recent windows finds sales that have newly closed. It does not detect every later change. Closing a sale does not freeze it: refunds, chargebacks, and payment updates can still happen. A later chargeback does not move an old sale into a recent close-date window, so the sale is not returned by that window.
Re-reads also need to include both payment outcomes. A sale re-read with payment_statuses: ["PAID"] drops out of the results once it becomes CHARGED_BACK, so use ["PAID", "CHARGED_BACK"] for re-reads.
The API covers the merchant’s sales from the last two years. Narrow the results with date filters as needed. See the Search sales reference for the supported date range and filters. For sales older than this window, download reports from the Sales tab in the Web Dashboard(Opens in a new tab).
Follow Pagination Tokens
Treat each pagination token as an opaque value. Pass it to the same operation that returned it; list and search tokens are not interchangeable. Keep the filters unchanged while paging through one search.
The search operation supports a page size of up to 25. Check the Search sales reference for the current limits and request format.
Make Retries Safe
A request can fail after your integration has processed some results. Store records by sale ID and use upserts so that rerunning the same window does not create duplicates.
The API does not determine how long after a sale’s creation its payment details can change. If your reconciliation needs to detect later changes, decide how far back to re-read sales and document that policy in your integration.
Understand Sale and Payment Status
A sale has two separate statuses. The sale state describes its lifecycle. The API returns only closed sales, so sale_statuses: ["CLOSED"] matches every sale it returns. The payment status describes the payment outcome, which can change after the sale closes:
PAIDreturns sales whose payment is paid, including sales that have since been refunded.CHARGED_BACKreturns sales whose payment was charged back.
A paid sale can still be refunded or charged back, so PAID does not mean the money can never be reversed. Use the Search sales reference for the accepted values and their current descriptions.
Read Sale Content
Handle Line Items
A sale can contain different kinds of lines. Use the shared fields described in the Sale schema to display and process a line.
Treat item types as extensible. New types or feature names can be added, so handle values your integration does not recognize without failing the entire sale. Read optional feature data only when it is present.
Distinguish Sale Fees from Payment Costs
Merchant-charged fees, such as shipping or service charges, are represented as sale lines. They contribute to the sale total. Payment processing costs are separate from those sale charges.
See the Sale schema for the line and feature details.
Account for Discounts and Tax
Each line has two sets of totals. total_net_amount and total_gross_amount exclude discounts and modifiers. Their _final counterparts include them, and taxes_final matches the final totals. For reconciliation, use the sale-level price.net_amount and price.gross_amount, which are already final after cart-level discounts.
Use the sale’s tax mode and the tax breakdown in the response when reconciling tax. The Sale schema describes the relevant fields.
Work with Amounts and Payments
Parse Money Safely
Monetary amounts in Sales API responses are integers in minor units. The currency is given separately by the sale. To convert to major units, divide by 10 to the power of the currency’s scale. For example, 1234 in EUR (scale 2) is EUR 12.34.
Store amounts as integers or decimals, not floats. Return-like lines can have negative amounts.
Reconcile Sale Totals with Payments
A sale total and a payment amount may not be equal. The search response describes its total as excluding tips, while payment amounts include tips. Check the Sale schema and Sale Payment schema for the current fields; do not infer a tip amount from the difference unless the response provides the information needed.
The payment reference is the reference stored for that payment. It is often a SumUp transaction code, but not always:
- Some payments have no transaction code. Other payment methods, which are mapped to external payment methods, may not include one.
- The value can be
n/awhen no reference was stored. - Other values appear too, such as gift-card references and charge URNs like
urn:sumup:charge:....
A sale can have several entries in payments[]. Use the sale ID as your primary key. Use a payment reference for transaction lookup only when it has the transaction identifier format you expect.
Handle Errors
The API uses standard HTTP status codes and Problem Details responses. See the API errors guide for the error format.
Common checks:
- For
401, check that the authorization header contains a valid token. - For
403, check the scope, permission, and merchant code. - For
412, add a non-emptyUser-Agentheader. - For other errors, use the response details and the operation-specific reference to correct the request before retrying.
For transient server errors, use a bounded retry policy with backoff. Do not retry an invalid request unchanged.
Prepare for API Changes
Build your integration to tolerate additive changes:
- Ignore response fields that your integration does not use.
- Handle unknown item types and feature names without failing the sale.
- Check the SumUp changelog for API changes that may affect your integration.
Protect Merchant Data
- Request only the access your integration needs.
- Store access tokens securely. Do not include them in logs or error reports.
- Keep only the sale data needed for your use case and define an appropriate retention period.
- Keep records for different merchants separate.