Country:
/payments/{paymentId}
Get Payment
Retrieve payment details by ID
URL Parameters
paymentId
Unique identifier for the payment
example
Response Examples
200
Payment retrieved successfully
{
"id": "pay_1234567890",
"status": "succeeded",
"amount": 1500,
"currency": "USD",
"card": {
"last4": "1111",
"brand": "visa"
},
"created": 1647875400,
"captured": true
}404
Payment not found
{
"error": {
"type": "invalid_request_error",
"code": "resource_missing",
"message": "No such payment: pay_invalid"
}
}500
Internal server error
{
"error": {
"type": "api_error",
"message": "An unexpected error occurred. Please try again later."
}
}Language
Login required to test API
Code Examples
cURL
curl -X GET "https://api.akua.la/payments/pay_1234567890" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"