Skip to main content
GET
/
v1
/
payments
/
{payment_id}
Get payment
curl --request GET \
  --url https://api.adullam.dev/v1/payments/{payment_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "pay_abc123",
  "status": "pending",
  "amount": 5000,
  "currency": "XOF",
  "customer_phone": "+22507987654",
  "customer_name": "KONE ADAMA",
  "channel": "orangeCI",
  "description": "Order #12345",
  "reference": "REF_ABC123",
  "ussd_reference": "MP240115.1030.A12345",
  "fees": 25,
  "net_amount": 4975,
  "metadata": {
    "order_id": "12345"
  },
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z",
  "completed_at": "2024-01-15T10:32:00Z",
  "failure_reason": null
}

Get Payment

Retrieving a specific payment provides detailed information about a particular transaction. Use the Get Payment API to access payment details such as amount, status, and date for a given payment ID.

Authorizations

Authorization
string
header
required

Use the access token obtained from /v1/auth/token

Path Parameters

payment_id
string
required

Payment ID

Response

Payment details

id
string
Example:

"pay_abc123"

status
enum<string>
Available options:
created,
pending,
processing,
completed,
failed,
expired,
cancelled
Example:

"pending"

amount
integer
Example:

5000

currency
string
Example:

"XOF"

customer_phone
string
Example:

"+22507987654"

customer_name
string | null

Name retrieved from mobile money operator

Example:

"KONE ADAMA"

channel
enum<string>
Available options:
orangeCI,
mtnCI,
moovCI,
waveCI
Example:

"orangeCI"

description
string
Example:

"Order #12345"

reference
string

Internal reference

Example:

"REF_ABC123"

ussd_reference
string | null

Mobile money operator reference

Example:

"MP240115.1030.A12345"

fees
integer
Example:

25

net_amount
integer

Amount minus fees

Example:

4975

metadata
object
Example:
{ "order_id": "12345" }
created_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"

updated_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"

completed_at
string<date-time> | null
Example:

"2024-01-15T10:32:00Z"

failure_reason
string | null
Example:

null