All transactions can be listed by calling the GET /transactions API.

curl -i -X GET "https://api.mattildapayments.com/transactions" \
    -H "Authorization: Bearer [JWT_TOKEN]" \
    -H "X-GR4VY-MERCHANT-ACCOUNT-ID: merchant_id" 

The response includes a list of transactions as well as a cursor that points to the next and previous page of results.

Filter transactions

The GET /transactions API supports various query parameters to filter the results. For example, the search query parameter can be used to filter results by either the transaction id or external_identifier.

curl -i -X GET "https://api.mattildapayments.com/transactions?search=fe26475d-ec3e-4884-9553-f7356683f7f9" \
    -H "Authorization: Bearer [JWT_TOKEN]" \
    -H "X-GR4VY-MERCHANT-ACCOUNT-ID: merchant_id"