From sage-active-api
Complete reference for Sage Active Public API V2 (GraphQL). Use this skill whenever constructing GraphQL queries or mutations for Sage Active, working with Sage Active entities (customers, suppliers, employees, products, sales documents, purchase documents, accounting entries, accounting accounts), implementing OAuth2 authentication with Sage Active, or needing field definitions, business rules, legislation-specific rules (FR, ES, DE), pagination, filtering, or error handling for the Sage Active API. Trigger on any mention of "Sage Active", "sage active api", "sage graphql", "sage active query", or any Sage Active entity names like customers, salesInvoices, accountingEntries, etc.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sage-active-api:sage-active-apiThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A **GraphQL API** built with Hot Chocolate (.NET), available for three legislations: FR (France), ES (Spain), DE (Germany).
CHANGELOG.mdreferences/00-endpoints-auth.mdreferences/01-graphql-patterns.mdreferences/02-customers.mdreferences/03-suppliers.mdreferences/04-employees.mdreferences/05-products.mdreferences/06-sales-quotes.mdreferences/07-sales-orders.mdreferences/08-sales-delivery-notes.mdreferences/09-sales-invoices.mdreferences/10-sales-actions.mdreferences/11-purchase-invoices.mdreferences/12-accounting-accounts.mdreferences/13-accounting-entries.mdreferences/14-accounting-reports.mdreferences/15-reference-data.mdreferences/16-file-management.mdreferences/17-aggregations-lists.mdreferences/18-legislation-rules.mdA GraphQL API built with Hot Chocolate (.NET), available for three legislations: FR (France), ES (Spain), DE (Germany).
Official documentation: https://developer.sage.com/sageactive/ Postman collection: https://developer.sage.com/sageactive/files/Sage%20Active%20Public%20API%20V2.postman_collection.json
To bootstrap a new Sage Active integration:
references/00-endpoints-auth.mduserProfile (no X-OrganizationId needed), then organizations to get the X-OrganizationIdRead references/00-endpoints-auth.md for complete getting started guide with all URLs and auth flows.
| Legislation | GraphQL URL |
|---|---|
| FR | https://api.fr.active.sage.com/graphql |
| ES | https://api.es.active.sage.com/graphql |
| DE | https://api.de.active.sage.com/graphql |
Auth (all): https://sbcauth.sage.fr/connect/authorize | Token: .../connect/token
| Header | Required | Value |
|---|---|---|
Authorization | Always | Bearer {access_token} |
x-api-key | Always | Subscription key from app registration |
X-OrganizationId | Almost always | Organization UUID (not needed for: userProfile, organizations, localizedEnumValues, localizedErrorMessage) |
| Entity | Query Name | Create Mutation | Update Mutation | Delete Mutation | Reference |
|---|---|---|---|---|---|
| Organizations | organizations | — | — | — | 15-reference-data.md |
| User Profile | userProfile | — | — | — | 15-reference-data.md |
| Users | users | — | — | — | 15-reference-data.md |
| Customers | customers | createCustomer | updateCustomer | deleteCustomer | 02-customers.md |
| Suppliers | suppliers | createSupplier | updateSupplier | deleteSupplier | 03-suppliers.md |
| Employees | employees | createEmployee | updateEmployee | deleteEmployee | 04-employees.md |
| Products | products | createProduct | updateProduct | deleteProduct | 05-products.md |
| Product Prices | productPriceService (action) | — | — | — | 05-products.md |
| Tariffs | tariffs | — | — | — | 05-products.md |
| Discounts | discounts | — | — | — | 05-products.md |
| Sales Quotes | salesQuotes / salesQuoteLines | createSalesQuote | updateSalesQuote | deleteSalesQuote | 06-sales-quotes.md |
| Sales Orders | salesOrders / salesOrderLines | createSalesOrder | updateSalesOrder | deleteSalesOrder | 07-sales-orders.md |
| Sales Delivery Notes | salesDeliveryNotes / salesDeliveryNoteLines | createSalesDeliveryNote | updateSalesDeliveryNote | deleteSalesDeliveryNote | 08-sales-delivery-notes.md |
| Sales Invoices | salesInvoices / salesInvoiceLines | createSalesInvoice | updateSalesInvoice | deleteSalesInvoice | 09-sales-invoices.md |
| Close Sales Invoice | — | closeSalesInvoice (action) | — | — | 09-sales-invoices.md |
| Post Sales Invoice | — | postSalesInvoice (action) | — | — | 09-sales-invoices.md |
| Credit Note | — | generateCreditNote (action) | — | — | 10-sales-actions.md |
| Document PDF Preview | documentPdfPreview (action) | — | — | — | 10-sales-actions.md |
| Document PDF Email | — | sendDocumentPdfEmail (action) | — | — | 10-sales-actions.md |
| Sales Invoice Open Items | salesInvoiceOpenItems | — | — | — | 10-sales-actions.md |
| Sales Settlement | — | createSalesOpenItemSettlement (action) | — | — | 10-sales-actions.md |
| Related Sales Docs | relatedSalesDocuments | — | — | — | 10-sales-actions.md |
| Sales KPIs | salesKpis (action) | — | — | — | 10-sales-actions.md |
| Purchase Invoices | purchaseInvoices | createPurchaseInvoice | updatePurchaseInvoice | deletePurchaseInvoice | 11-purchase-invoices.md |
| Post Purchase Invoice | — | postPurchaseInvoice (action) | — | — | 11-purchase-invoices.md |
| Purchase Open Items | purchaseInvoiceOpenItems | — | — | — | 11-purchase-invoices.md |
| Purchase Settlement | — | createPurchaseOpenItemSettlement | — | — | 11-purchase-invoices.md |
| Accounting Accounts | accountingAccounts | createAccountingAccount | updateAccountingAccount | deleteAccountingAccount | 12-accounting-accounts.md |
| Accounting Entries | accountingEntries / accountingEntryLines | createAccountingEntryUsingCodes / createAccountingEntryUsingIds | updateAccountingEntry | deleteAccountingEntry | 13-accounting-entries.md |
| Trial Balance | accountingTrialBalance (action) | — | — | — | 14-accounting-reports.md |
| Third Party Balance | accountingThirdPartyBalance (action) | — | — | — | 14-accounting-reports.md |
| Balance Sheet | accountingBalanceSheet (action) | — | — | — | 14-accounting-reports.md |
| Profit & Loss | accountingProfitAndLoss (action) | — | — | — | 14-accounting-reports.md |
| Accounting KPIs | accountingKpis (action) | — | — | — | 14-accounting-reports.md |
| Countries | countries | — | — | — | 15-reference-data.md |
| Currencies | currencies | — | — | — | 15-reference-data.md |
| Taxes | taxes | — | — | — | 15-reference-data.md |
| Tax Groups | taxGroups | — | — | — | 15-reference-data.md |
| Journal Types | journalTypes | — | — | — | 15-reference-data.md |
| Accounting Exercises | accountingExercises | — | — | — | 15-reference-data.md |
| Bank Accounts | bankAccounts | — | — | — | 15-reference-data.md |
| Bank Movements | bankMovements | — | — | — | 15-reference-data.md |
| Banking Rules | bankingRules | — | — | — | 15-reference-data.md |
| Reconcile Bank Movement | — | reconcileBankMovement (action) | — | — | 15-reference-data.md |
| Unreconcile Bank Movement | — | unReconcileBankMovement (action, COMING SOON) | — | — | 15-reference-data.md |
| Payment Methods | paymentMethods (legacy alias paymentMeans) | — | — | — | 15-reference-data.md |
| Operational Number Preset Texts | operationalNumberPresetTexts | — | — | — | 15-reference-data.md |
| Payment Terms | paymentTerms | — | — | — | 15-reference-data.md |
| Dimensions | dimensions | — | — | — | 15-reference-data.md |
| File Upload | — | uploadFileToEntity (action) | — | — | 16-file-management.md |
| File List | files | — | — | — | 16-file-management.md |
| File Download | fileDownloadById (action) | — | — | — | 16-file-management.md |
| Aggregation Catalog | aggregationCatalog (action) | — | — | — | 17-aggregations-lists.md |
| Aggregation Execute | aggregationExecute (action) | — | — | — | 17-aggregations-lists.md |
| List Catalog | listCatalog (action) | — | — | — | 17-aggregations-lists.md |
| List Execute | listExecute (action) | — | — | — | 17-aggregations-lists.md |
entities(first: 100, after: $cursor) { nodes { ... } pageInfo { endCursor hasNextPage } totalCount }
where: { socialName: { contains: "acme" }, status: { eq: "ENABLED" } }
where: { or: [{ socialName: { contains: "x" } }, { code: { contains: "x" } }] }
where: { documentDate: { gte: "2024-01-01", lte: "2024-12-31" } }
Operators: eq, neq, contains, startsWith, endsWith, gt, gte, lt, lte, in, nin, and, or
order: [{ documentDate: DESC }, { totalGross: DESC }]
Only send changed fields + id. For sub-resources use requestedAction (CREATE/MODIFY/DELETE) or replaceAll. See references/19-update-patterns.md.
HTTP 200 with errors[] for business errors. HTTP 401 for auth. HTTP 429 for rate limit (3000 req/min).
Retry-After| File | Content |
|---|---|
00-endpoints-auth.md | Endpoints, OAuth2 (3 flows), getting started, best practices |
01-graphql-patterns.md | Pagination, filtering, sorting, DataLoaders, errors, complexity |
02-customers.md | Customer CRUD — ALL fields, sub-objects, legislation rules |
03-suppliers.md | Supplier CRUD — ALL fields, differences from customers |
04-employees.md | Employee CRUD — ALL fields |
05-products.md | Products, tariffs, discounts, product price service |
06-sales-quotes.md | Sales quotes CRUD — ALL fields, lines |
07-sales-orders.md | Sales orders CRUD — ALL fields, lines |
08-sales-delivery-notes.md | Delivery notes CRUD — ALL fields, lines |
09-sales-invoices.md | Sales invoices CRUD, close, post, advance, online payment |
10-sales-actions.md | Credit notes, PDF, email, open items, settlements, KPIs |
11-purchase-invoices.md | Purchase invoices CRUD, post, settlements |
12-accounting-accounts.md | Chart of accounts, plan master |
13-accounting-entries.md | Accounting entries (by codes & IDs), sessions |
14-accounting-reports.md | Trial balance, balance sheet, P&L, third party balance, KPIs |
15-reference-data.md | Organizations, users, countries, currencies, taxes, banks, bank movements, banking rules, reconcile/unreconcile actions, payment methods, config |
16-file-management.md | File upload/download/export, AP automation |
17-aggregations-lists.md | Aggregation & List catalog/execute |
18-legislation-rules.md | Consolidated FR/ES/DE rules |
19-update-patterns.md | requestedAction, replaceAll, nested update examples |
For any information not covered in these references, consult the live documentation at the URLs above.
This skill is updated to track Sage's monthly releases. See CHANGELOG.md for what changed in each release and the Open items checklist of features still in COMING SOON state.
Current Sage release tracked: 2026-04 ("Bank reconciliation documentation refresh and new Sales Invoices capabilities").
When Sage ships a new release, follow the "How to update this skill" runbook at the top of CHANGELOG.md.
Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub chkdskman/skill-sage-active-api --plugin sage-active-api