Look Up a Purchase Transaction

You can look up an existing purchase transaction by making a GET request to the purchases endpoint containing the account number and transaction ID in the URL.

GET /directdebit/v1/accounts/account_id/purchases/purchase_id

Prior to trying the example, you should:

  • Replace the account_id (89987201) in the URL with the test account number you received.
  • Replace the API key (after the -u) with the API key you received.
  • Replace the purchase_id (a02e52c7-c991-4418-966a-b62989cb0eae) in the URL with your purchase ID returned in the response to the initial purchase request.

You can look up transactions using a transaction ID to a maximum of one year in the past.

If you do not have a transaction ID, you can look up a transaction based on the merchantRefNum you supplied with the original request.

For more information, including cancelling a purchase and processing a standalone credit, see our API Reference section.

Did you find this page useful?