Get Transaction

Merchant API authentication requires BOTH headers: AccessKey and SecretKey. Aliases also accepted: x-access-key / x-secret-key, and accesskey / secretkey (and access_key / secret_key).

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

Gets one transaction by its refid. Use it to check a payment's status if you missed a webhook.

Request:

ParameterInTypeRequiredDescription
idPathStringYesThe transaction's refid
businessIdQueryIntegerNoIgnored when you use API keys. See Authentication

Example request

curl --location 'https://api.myvendy.com/transactions/4930517800770623045' \
--header "AccessKey: $VENDY_ACCESS_KEY" \
--header "SecretKey: $VENDY_SECRET_KEY"

Response:

FieldTypeDescription
statusBooleanStates if request was successfully executed or not
codeIntegerInternal code, success if 200
msgStringTransaction
dataTransactionThe transaction

The full example is in the response panel.

Possible errors

Error codeDescription
327Transaction not found
342The transaction belongs to another business, or your keys lack permission
Path Params
string
required

Transaction refid (or numeric id as accepted by handler)

Query Params
integer

Merchant business id (required by many deployments / handler filters)

Responses

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