logoAccess

Get transaction

GET
/api/v1/transactions/{id}

Retrieve a single transaction by ID.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Path Parameters

id*string

Unique transaction ID

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Response Body

Response for status 200

application/json
  1. response
id*string
amount*number
currency*string
status*string
tx_ref*string|null
payment_method*string|null
receipt_image_url*string|null
created_at*string
updated_at*string
customer*
curl -X GET 'https://api.tryaccess.xyz/api/v1/transactions/tx_01J9Z8K2P3Q4R5S6T7U8V9W0X1' \  -H 'x-api-key: string'
{  "id": "string",  "amount": 0,  "currency": "string",  "status": "string",  "tx_ref": "string",  "payment_method": "string",  "receipt_image_url": "string",  "created_at": "string",  "updated_at": "string",  "customer": {    "id": "string",    "name": "string",    "email": "string",    "phone_number": "string"  }}

How is this guide?