Skip to main content
GET
/
subscriptions
curl "https://api.alguna.io/subscriptions?page=1&limit=25" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "items": [
    {
      "id": "sub_0000000000000001",
      "createdAt": "2024-01-01T12:00:00Z",
      "updatedAt": "2024-01-01T12:00:00Z",
      "organizationId": "org_0000000000000001",
      "name": "Enterprise Plan - 2024",
      "accountId": "acc_0000000000000001",
      "purchaseOrderNumber": "PO-12345",
      "description": "Annual enterprise subscription",
      "trialPeriodDays": 30,
      "additionalTerms": "Custom terms for this enterprise client",
      "termsOfServiceLinks": [
        {
          "title": "Terms of Service",
          "url": "https://example.com/terms"
        },
        {
          "title": "Privacy Policy",
          "url": "https://example.com/privacy"
        }
      ],
      "termsOfServiceFiles": [
        {
          "title": "MSA Agreement",
          "fileURL": "https://example.com/files/msa.pdf"
        }
      ],
      "minimumSpend": {
        "amount": "10000.00",
        "period": "month"
      },
      "maximumSpend": {
        "amount": "50000.00",
        "period": "month"
      },
      "contractStartDate": "2024-01-01T00:00:00Z",
      "contractEndDate": "2024-12-31T23:59:59Z",
      "contractDuration": 12,
      "contractPeriodType": "fixed",
      "discount": {
        "discountType": "percentage",
        "amount": "10.00",
        "durationType": "fixed",
        "durationValue": 12,
        "durationUnit": "months"
      },
      "currency": "USD",
      "sourceCurrency": "USD",
      "conversionRate": 1,
      "conversionRateDate": "2024-01-01T00:00:00Z",
      "status": "draft",
      "planId": "pln_0000000000000001",
      "signerName": "John Doe",
      "signerEmail": "john.doe@example.com",
      "signerJobTitle": "CEO",
      "cancelationReason": "no_longer_required",
      "cancelationReasonDescription": "We no longer have a need for this subscription",
      "activatedAt": "2024-01-01T00:00:00Z",
      "endedAt": "2024-12-31T23:59:59Z",
      "autoIssueInvoices": true,
      "autoPayInvoices": false,
      "sendInvoicesToCustomer": true,
      "sendReceiptsToCustomer": true,
      "invoiceGenerationStartDate": "2024-01-01T00:00:00Z",
      "autoRenew": true,
      "renewalPeriodType": "fixed",
      "renewalDuration": 12,
      "renewalHistory": [],
      "firstBillingDate": "2024-01-01T00:00:00Z",
      "lastBillingDate": "2024-12-31T23:59:59Z",
      "chargeOneoffPricesOnContractStart": true,
      "hasPDF": false,
      "invoicePaymentTerms": "net_30",
      "invoiceMemoTemplate": "Thank you for your business with us",
      "invoiceFooterText": "Please contact billing@example.com with any questions",
      "sendActivationEmail": true
    }
  ],
  "pageCount": 5,
  "limit": 10
}
Retrieves a paginated list of all subscriptions. You can filter and sort the results using query parameters.

Query Parameters

page
integer
default:"1"
The page number to retrieve (1-indexed).
limit
integer
default:"10"
The number of subscriptions to return per page. Must be one of: 5, 10, 25, 50, or 100. Values exceeding 100 are capped automatically.
filters
string
A JSON-encoded array of filter objects. Each filter object has the following properties:
sort
string
Sort specification in field:order format. Order is either asc (ascending) or desc (descending).Sortable fields: name, account_name, status, activated_at, ended_at, updated_at, contract_start_date, contract_end_date.
curl "https://api.alguna.io/subscriptions?page=1&limit=25" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "items": [
    {
      "id": "sub_0000000000000001",
      "createdAt": "2024-01-01T12:00:00Z",
      "updatedAt": "2024-01-01T12:00:00Z",
      "organizationId": "org_0000000000000001",
      "name": "Enterprise Plan - 2024",
      "accountId": "acc_0000000000000001",
      "purchaseOrderNumber": "PO-12345",
      "description": "Annual enterprise subscription",
      "trialPeriodDays": 30,
      "additionalTerms": "Custom terms for this enterprise client",
      "termsOfServiceLinks": [
        {
          "title": "Terms of Service",
          "url": "https://example.com/terms"
        },
        {
          "title": "Privacy Policy",
          "url": "https://example.com/privacy"
        }
      ],
      "termsOfServiceFiles": [
        {
          "title": "MSA Agreement",
          "fileURL": "https://example.com/files/msa.pdf"
        }
      ],
      "minimumSpend": {
        "amount": "10000.00",
        "period": "month"
      },
      "maximumSpend": {
        "amount": "50000.00",
        "period": "month"
      },
      "contractStartDate": "2024-01-01T00:00:00Z",
      "contractEndDate": "2024-12-31T23:59:59Z",
      "contractDuration": 12,
      "contractPeriodType": "fixed",
      "discount": {
        "discountType": "percentage",
        "amount": "10.00",
        "durationType": "fixed",
        "durationValue": 12,
        "durationUnit": "months"
      },
      "currency": "USD",
      "sourceCurrency": "USD",
      "conversionRate": 1,
      "conversionRateDate": "2024-01-01T00:00:00Z",
      "status": "draft",
      "planId": "pln_0000000000000001",
      "signerName": "John Doe",
      "signerEmail": "john.doe@example.com",
      "signerJobTitle": "CEO",
      "cancelationReason": "no_longer_required",
      "cancelationReasonDescription": "We no longer have a need for this subscription",
      "activatedAt": "2024-01-01T00:00:00Z",
      "endedAt": "2024-12-31T23:59:59Z",
      "autoIssueInvoices": true,
      "autoPayInvoices": false,
      "sendInvoicesToCustomer": true,
      "sendReceiptsToCustomer": true,
      "invoiceGenerationStartDate": "2024-01-01T00:00:00Z",
      "autoRenew": true,
      "renewalPeriodType": "fixed",
      "renewalDuration": 12,
      "renewalHistory": [],
      "firstBillingDate": "2024-01-01T00:00:00Z",
      "lastBillingDate": "2024-12-31T23:59:59Z",
      "chargeOneoffPricesOnContractStart": true,
      "hasPDF": false,
      "invoicePaymentTerms": "net_30",
      "invoiceMemoTemplate": "Thank you for your business with us",
      "invoiceFooterText": "Please contact billing@example.com with any questions",
      "sendActivationEmail": true
    }
  ],
  "pageCount": 5,
  "limit": 10
}
items
array
List of subscription objects.
pageCount
integer
Total number of pages available based on the current limit.
limit
integer
The number of items per page used for this request.