API & WebhooksPayments

Payments

List and retrieve payment records with status and method details.

Payments API

Read-only endpoints to list and retrieve payment records. Requires an API token with documents.view ability (payments are scoped through their associated documents). Amounts are in the smallest currency unit (e.g., cents).


List Payments

GET /api/v1/payments — Permission: documents.view

Query Parameters

ParameterTypeRequiredDescription
document_idintegerNoFilter payments to a specific document
statusstringNoFilter by payment status
per_pageintegerNoResults per page, 1–100 (default: 25)

Example Request

curl -X GET "https://your-domain.com/api/v1/payments?document_id=101&per_page=10" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"

Example Response

{
  "data": [
    {
      "id": 7,
      "document_id": 101,
      "amount": 82500,
      "currency": "usd",
      "method": "stripe",
      "status": "succeeded",
      "paid_at": "2025-03-18T14:22:00.000000Z",
      "created_at": "2025-03-18T14:22:00.000000Z",
      "updated_at": "2025-03-18T14:22:00.000000Z"
    }
  ],
  "meta": { "current_page": 1, "last_page": 1, "per_page": 10, "total": 1 },
  "links": { "first": "...", "last": "...", "prev": null, "next": null }
}

Get Payment

GET /api/v1/payments/{id} — Permission: documents.view

Example Request

curl -X GET "https://your-domain.com/api/v1/payments/7" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"

Returns the same shape as a single item in the list response.

Payment Statuses

StatusDescription
pendingPayment has been initiated but not yet processed
processingPayment is being processed by the payment provider
succeededPayment completed successfully
failedPayment failed (e.g., card declined)
refundedPayment was fully refunded
partial_refundPayment was partially refunded

Payment Methods

MethodDescription
stripePaid via Stripe online payment
manualRecorded manually (cash, check, wire, etc.)
auto_payCharged via auto-pay schedule

Was this article helpful?