Skip to main content
Returns all charges (payins) associated with your organization in the current API key environment, with pagination and optional status filtering.

List payins

GET /api/v1/payments/payins
Requires API key authentication via the Authorization: Bearer <api_key> header. Query parameters
limit
integer
default:"50"
Maximum number of results to return. Accepts 1–100.
offset
integer
default:"0"
Number of results to skip for pagination.
status_filter
string
Filter results to a specific charge status (e.g., succeeded, pending, failed, underpaid).
Response
total
integer
required
Total number of payins matching the query (before pagination).
items
object[]
required
Array of payin objects.
{
  "total": 142,
  "items": [
    {
      "id": "ch_a1b2c3d4e5f6",
      "reference": "ord_12345",
      "status": "succeeded",
      "is_refundable": true,
      "customer_email": "customer@example.com",
      "customer_name": "John Doe",
      "amount": "50.00",
      "amount_paid": "50.00",
      "amount_remaining": "0.00",
      "amount_collected": "48.50",
      "currency": "USD",
      "transaction_date": "2024-01-15T10:00:00Z",
      "completed_at": "2024-01-15T10:02:30Z"
    }
  ]
}

Get a single payin

GET /api/v1/payments/payins/{charge_id}
Requires API key authentication. Returns the full payin detail for a single charge. Path parameters
charge_id
string
required
The ID of the charge to retrieve.
Response Returns a payin object with expanded fields including payment method, channel, narration, and customer details.
charge_id
string
required
Charge ID.
reference
string
Checkout reference.
checkout_id
string
Associated checkout ID.
organization_id
string
required
Your organization ID.
status
string
required
Current charge status.
is_refundable
boolean
Whether this charge is eligible for a refund.
amount
string
required
Requested amount as a decimal string.
amount_paid
string
Amount actually received.
amount_remaining
string
Amount still outstanding.
currency
string
required
Charge currency code.
payment_source_type
string
Payment method type (e.g., bank_transfer, mobile_money, card).
payment_method
string
Internal payment method identifier.
payment_rail
string
Payment rail identifier.
channel
string
Originating channel (e.g., api, checkout).
narration
string
Payment description or narration.
meta
object
Public metadata attached to the charge.
customer
object
created_at
string
required
ISO 8601 creation timestamp.
updated_at
string
required
ISO 8601 last-updated timestamp.
completed_at
string
ISO 8601 completion timestamp.

Error codes

StatusDescription
401Invalid or missing API key.
403Charge belongs to a different organization.
404Charge not found.

Example

List payins
curl --request GET \
  --url 'https://api.syncgrampay.com/api/v1/payments/payins?limit=10&offset=0&status_filter=succeeded' \
  --header 'Authorization: Bearer sk_live_a1b2c3d4e5f6g7h8i9j0'
Get a single payin
curl --request GET \
  --url https://api.syncgrampay.com/api/v1/payments/payins/ch_a1b2c3d4e5f6 \
  --header 'Authorization: Bearer sk_live_a1b2c3d4e5f6g7h8i9j0'