List transactions
Changed onLists transaction history for the merchant, with optional filters for payment type, status, and date range. The response contains the current page in items and pagination query strings in links.
To request another page, use the query string from the relevant link's href with this history endpoint. Use changes_since when retrieving transactions modified since a previous synchronization, including transactions created earlier whose status has changed.
Request
- Base URLhttps://api.sumup.com
- URLhttps://api.sumup.com/v2.1/merchants/{merchant_code}/transactions/history
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://api.sumup.com/authorizeToken URL: https://api.sumup.com/token scopes: transactions.history, transactions.read
Path parameters
Short unique identifier for the merchant.
Query parameters
Retrieves the transaction resource with the specified transaction code.
Sort direction for the transaction history. Use ascending or descending; the default is ascending.
Maximum number of transactions per page. Must be a positive integer. Defaults to 10 when omitted; a page can contain fewer results.
Filters transactions by user email. For multiple values, repeat the query parameter, for example users[]=first@example.com&users[]=second@example.com.
[ "merchant@example.com" ]
Filters transactions by the listed final statuses. For multiple values, repeat the query parameter, for example statuses[]=SUCCESSFUL&statuses[]=REFUNDED.
[ "SUCCESSFUL", "REFUNDED" ]
Filters the returned results by the specified list of payment types used for the transactions.
[ "ECOM", "POS" ]
Filters the returned results by the specified list of entry modes.
[ "CUSTOMER_ENTRY", "CHIP" ]
Filters the returned results by the specified list of transaction types.
[ "PAYMENT", "REFUND" ]
Filters the results by the latest modification time of resources and returns only transactions that are modified at or after the specified timestamp (in ISO8601 format).
Filters the results by the creation time of resources and returns only transactions that are created before the specified timestamp (in ISO8601 format).
Pagination reference that returns results before the specified reference. Use the value from a returned pagination link rather than constructing it yourself. This parameter takes precedence over newest_time when both are provided.
Filters the results by the creation time of resources and returns only transactions that are created at or after the specified timestamp (in ISO8601 format).
Pagination reference that returns results after the specified reference. Use the value from a returned pagination link rather than constructing it yourself. This parameter takes precedence over oldest_time when both are provided.
Response
Returns a page of transaction history items.
Example response
{
"items": [
{
"transaction_code": "TEENSK4W2K",
"amount": 10.1,
"currency": "EUR",
"timestamp": "2020-02-29T10:56:56.876Z",
"status": "SUCCESSFUL",
"payment_type": "ECOM",
"installments_count": 1,
"merchant_code": "MH4H92C7",
"transaction_id": "410fc44a-5956-44e1-b5cc-19c6f8d727a4",
"user": "merchant@example.com",
"type": "PAYMENT",
"payout_date": "2019-08-28",
"payout_type": "BANK_ACCOUNT",
"refunded_amount": 0
}
],
"links": []
}Changes
- warning
added the new
SUMUPenum value to the///response property for the response status
- warning
- warning
added the new
BANCOMATenum value to the///response property for the response status - info
removed the
BGNenum value from the///response property for the response status
- warning