Skip to main content
GET
/
v0
/
sources
List
curl --request GET \
  --url https://api.paygentic.io/v0/sources \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "src_c5d6e7f8g9h0i1j2",
      "config": {
        "ampersandProjectId": "proj_567890"
      },
      "createdAt": "2024-02-20T13:15:00Z",
      "description": "Machine learning inference usage collection",
      "enabled": true,
      "metadata": {
        "billableMetricMapping": {
          "revenue": "bm_s1t2u3v4w5x6y7z8"
        }
      },
      "name": "ML Compute Usage Source",
      "planId": "plan_k3l4m5n6o7p8q9r0",
      "processingMode": "automatic",
      "type": "stripe_revenue",
      "updatedAt": "2024-02-20T13:15:00Z"
    }
  ],
  "pagination": {
    "limit": 10,
    "offset": 0,
    "total": 1
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Query Parameters

limit
integer
default:10
Required range: 1 <= x <= 100
merchantId
string

Filter sources by merchant ID

offset
integer
default:0
Required range: x >= 0
planId
string

Filter sources by plan ID

Response

List of sources

data
object[]
pagination
object

Offset-based pagination response.