Skip to main content
GET
/
transactions
/
payment
/
{payment_id}
Get transaction by payment ID
curl --request GET \
  --url https://prod-api.pcxpay.com/v1/transactions/payment/{payment_id} \
  --header 'Authorization: <authorization>' \
  --header 'X-Api-Key: <x-api-key>'
{
  "transaction_id": "<string>",
  "user_id": "<string>",
  "beneficiary_id": "<string>",
  "amount": 123,
  "currency": "<string>",
  "type": "inbound",
  "status": "initiated",
  "payment_method": "bank_transfer",
  "payment_id": "<string>",
  "payout_id": "<string>",
  "org_id": "<string>",
  "country": "<string>",
  "entity_type": "<string>",
  "target_amount": 123,
  "target_currency": "<string>",
  "metadata": {},
  "beneficiary_details": {},
  "compound_amount": 123,
  "duration": 123,
  "installment_amount": 123,
  "total_installments": 123,
  "installments_completed": 123,
  "amount_paid": 123,
  "outstanding_balance": 123,
  "next_due_date": "2023-11-07T05:31:56Z",
  "start_date": "2023-11-07T05:31:56Z",
  "frequency": "weekly",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.pcxpay.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

Authorization
string
default:NONE
required

Bearer JWT for user-facing flows (Bearer eyJraWQ...), or the literal string NONE when authenticating via API key.

Example:

"Bearer eyJraWQ..."

X-Api-Key
string
default:NONE
required

API key for server-to-server flows, or the literal string NONE when authenticating via JWT.

Example:

"pcx_abc123_xxxx"

Path Parameters

payment_id
string
required

Response

Transaction object

transaction_id
string
user_id
string
beneficiary_id
string | null
amount
number<float>
currency
string
type
enum<string>
Available options:
inbound,
outbound,
loan
status
enum<string>
Available options:
initiated,
pending,
completed,
failed
payment_method
enum<string>
Available options:
bank_transfer,
mobile_money,
crypto,
card
payment_id
string | null
payout_id
string | null
org_id
string | null
country
string | null
entity_type
string
target_amount
number<float> | null
target_currency
string | null
metadata
object
beneficiary_details
object
compound_amount
number<float> | null
duration
number | null
installment_amount
number<float> | null
total_installments
integer | null
installments_completed
integer | null
amount_paid
number<float> | null
outstanding_balance
number<float> | null
next_due_date
string<date-time> | null
start_date
string<date-time> | null
frequency
enum<string> | null
Available options:
weekly,
bi_weekly,
monthly
created_at
string<date-time>
updated_at
string<date-time>