GET
/
subscriptions
List Subscriptions
curl --request GET \
  --url https://api.alguna.io/subscriptions \
  --header 'Authorization: Bearer <token>'
{
  "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",
      "quoteTemplateId": "qt_0000000000000001",
      "signerName": "John Doe",
      "signerEmail": "[email protected]",
      "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 [email protected] 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
The page number for pagination (starts at 1)
limit
integer
The number of subscriptions to return per page
filters
array
Filter criteria to apply to the subscription list
sort
object
Sorting criteria for the subscription list

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",
      "quoteTemplateId": "qt_0000000000000001",
      "signerName": "John Doe",
      "signerEmail": "[email protected]",
      "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 [email protected] with any questions",
      "sendActivationEmail": true
    }
  ],
  "pageCount": 5,
  "limit": 10
}
items
array
List of subscription objects
pageCount
integer
Total number of pages available
limit
integer
Number of items per page