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
}
Retrieve a paginated list of subscriptions with optional filtering and sorting
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
}
5, 10, 25, 50, or 100. Values exceeding 100 are capped automatically.Show Filter Object
| Field | Description |
|---|---|
status | Subscription status (draft, sent, accepted, active, canceled) |
account_id | The account/customer ID |
metadata | Metadata key-value pairs (use dot notation, e.g. metadata.custom_key) |
tag_ids | Tag IDs associated with the subscription |
owner_id | The owner/assignee user ID |
| Operator | Description | Example |
|---|---|---|
eq | Exact match | "value": "active" |
in | Matches any value in a comma-separated list | "value": "active,canceled" |
in operator, use comma-separated values.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"
{
"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
}
Show Subscription Object
monthly_rolling, fixedShow Discount
percentage, fixedmonthly_rolling, fixeddays, weeks, months,
yearsdraft, sent,
accepted, active, canceledno_longer_required, moving_provider, pricing, support, features,
othermonthly_rolling, fixedon_issue, net_7, net_15,
net_30, net_60, net_90, indefinite