Get Transaction by Payment Code

Checks the status of one order.

When to use: to confirm if an order is paid. For example, when you didn't receive the callback.

Which code do I use? Your own order number: the payment_code you sent when you started the payment (e.g. ORDER-1001). Herepay's invoice number (HP-INVAPI-...) won't work here.

Tip: give every order its own payment_code. If you reuse one, you get the latest payment that used it.

What you get back: the same details as Get Transactions, for this one order. If the order isn't found, you get 404.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Your own order number — the payment_code you sent in Initiate. Not the Herepay reference_code.

Headers
string

Your team's Secret Key (Herepay dashboard → Settings → API).

string

Your team's API Key (Herepay dashboard → Settings → API).

Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json