Payments
Get a paginated list of payments with optional filtering
- : Read payments and payment requests
Number of items to return
100Specifies the cursor after which to start returning results. For the first page, this should be left empty. For subsequent pages, use the value of the end_cursor field from the previous response.
Specifies the cursor before which to return results. Use this to paginate backwards. For example, to load the previous page, provide the value of the start_cursor field from the last response.
Filter by payment type
Filter by payment status
Filter by customer ID
Filter by invoice ID
Filter by payment method
Filter by creation date start (RFC3339 format)
Filter by creation date end (RFC3339 format)
OK
gaFpxBACEaXBVABEYbHG+X9LyLnHtruegaFpxBACEaXBVABEYbHG+X9LyLnHBad Request
GET /payments HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"data": [
{
"created_at": "text",
"customer_id": "text",
"due_date": "text",
"fees": [
{
"amount": 1,
"covered_by_customer": true,
"name": "text",
"type": "FT_LATE_PAYMENT"
}
],
"id": "text",
"payment_method": "text",
"status": "text",
"sub_total": 1,
"total": 1
}
],
"end_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH",
"has_next_page": true,
"has_previous_page": false,
"start_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH"
}Create a single payment to charge an invoice.
- : Create payments and payment requests
Request body for creating a payment
100.0000000000-0000-0000-0000-00000000000000000000-0000-0000-0000-00000000000000000000-0000-0000-0000-0000000000002025-01-01T00:00:000Z@enum card,standard_ach
00000000-0000-0000-0000-000000000000Payment is being processed!
Bad Request
Unprocessable Entity
POST /payments HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 303
{
"amount": "100.00",
"customer_id": "00000000-0000-0000-0000-000000000000",
"idempotency_key": "00000000-0000-0000-0000-000000000000",
"invoice_id": "00000000-0000-0000-0000-000000000000",
"payment_date": "2025-01-01T00:00:000Z",
"payment_method": "card",
"payment_method_id": "00000000-0000-0000-0000-000000000000"
}textRetrieve detailed information about a specific payment
- : Read payments and payment requests
Payment ID
OK
Bad Request
Not Found
GET /payments/{id} HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"created_at": "text",
"customer_id": "text",
"due_date": "text",
"fees": [
{
"amount": 1,
"covered_by_customer": true,
"name": "text",
"type": "FT_LATE_PAYMENT"
}
],
"id": "text",
"payment_method": "text",
"status": "text",
"sub_total": 1,
"total": 1
}Last updated
Was this helpful?
