Skip to main content

Retrieve Payment Details (Atlas)

Overview

The GET /banking/ibans/v2/payments/{paymentId} endpoint retrieves the comprehensive record of a payment using its unique internal UUID (paymentId).

It returns complete details regarding execution state, amounts, source wallet, destination beneficiary account, purpose of payment, pricing overages, and underlying transaction information.

Resource Access

  • HTTP Method: GET
  • Endpoint: /banking/ibans/v2/payments/{paymentId}
  • Authentication: Bearer token required
  • Permissions: Admin:Exchange Now:read, Client:At Desired Rate:read, Admin:Exchange Later:read

Request Headers

HeaderValueRequiredDescription
AuthorizationBearer {access_token}YesJWT Bearer access token
Acceptapplication/jsonYesResponse payload format

Path Parameters

ParameterTypeRequiredDescriptionExample
paymentIdstringYesUnique payment identifier (UUID).ee7e9602-4dd2-4d02-ae55-bfc527c913ef

Response

Success Response (200 OK)

{
"reference": "TO-29072023-114",
"paymentId": "807e02f5-7235-4826-aef5-d93c75216b48",
"amount": 500.0,
"currency": "USD",
"userRecordId": 2669,
"walletId": 12582,
"state": "completed",
"type": "credit",
"target": "account",
"targetId": 21688,
"purpose": "Purchase of Professional Service(s)",
"description": null,
"pricing": {
"overageFee": 0,
"usageId": null,
"subscriptionId": null
},
"tracking": {},
"transaction": {
"sender": {},
"receiver": {}
}
}

Response Fields

FieldTypeDescription
referencestringUnique human-readable payment reference (e.g. TO-29072023-114).
paymentIdstringUUID identifier of the payment.
amountnumberPayment amount.
currencystringISO currency code.
userRecordIdintegerIdentifier of the user who submitted the request.
walletIdintegerAssociated funding wallet ID.
statestringCurrent lifecycle state (e.g. completed, REQUESTED).
typestringTransaction direction (e.g. credit or debit).
targetstringTarget entity type (account or wallet).
targetIdintegerDestination beneficiary account ID or wallet ID.
purposestringCompliance payment purpose description.
descriptionstringCustomer-provided memo.
pricingobjectOverage fee, usage ID, and subscription details.
trackingobjectClearing tracking metadata.
transactionobjectUnderlying sender and receiver bank ledger records.

Error Codes

Status CodeDescriptionReason
400 Bad RequestInvalid inputMalformed paymentId parameter.
401 UnauthorizedAuthentication failureMissing or expired Bearer token.
403 ForbiddenAccess deniedUser does not have permission or payment belongs to another company.
404 Not FoundPayment not foundNo record exists for the given paymentId.
500 Server ErrorInternal failureServer-side execution issue.

Code Examples

cURL

curl -X GET "https://api.ahrvo.network/banking/ibans/v2/payments/ee7e9602-4dd2-4d02-ae55-bfc527c913ef" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Accept: application/json"

JavaScript (Fetch)

const paymentId = 'ee7e9602-4dd2-4d02-ae55-bfc527c913ef';
const response = await fetch(`https://api.ahrvo.network/banking/ibans/v2/payments/${paymentId}`, {
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Accept': 'application/json'
}
});

const payment = await response.json();
console.log('Payment State:', payment.state, 'Amount:', payment.amount, payment.currency);

Python (requests)

import requests

payment_id = "ee7e9602-4dd2-4d02-ae55-bfc527c913ef"
url = f"https://api.ahrvo.network/banking/ibans/v2/payments/{payment_id}"
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Accept": "application/json"
}

response = requests.get(url, headers=headers)
print(response.json())

Interactive API Console

Test the endpoint directly in your browser: