Suger

Suger API Reference

CRUD operations on a set of resources, including organizations, products, offers, entitlements, usage record groups for meterting, etc.

Base URL: https://api.suger.cloud. Most endpoints are scoped to an organization under /org/{orgId}/…, and request and response bodies are JSON (application/json).

Authentication

The API uses the OAuth 2.0 client-credentials flow. Create an OAuth App to get a client ID and secret, exchange them for a short-lived (1 hour) bearer token, then send it on every request as Authorization: Bearer <token>.

curl -X POST 'https://apiv2.suger.cloud/oauth2/token' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'grant_type=client_credentials' \
  --data-urlencode 'client_id=YOUR_CLIENT_ID' \
  --data-urlencode 'client_secret=YOUR_CLIENT_SECRET' \
  --data-urlencode 'resource=https://api.suger.cloud'

See API Access for the full token exchange, caching, rotation, and permissions.

Conventions

Versioning and compatibility

Three different "versions" appear around this API, and only one of them describes the resource contract. This is the whole policy:

WhatVersioned?What it means for you
The resource API, https://api.suger.cloud Unversioned and rolling There is no version segment in the path and no version header. There is one live contract, and this reference always describes what is deployed now.
The OAuth token host, apiv2.suger.cloud Version 2 of the auth host apiv2 names the token-issuing host, not a version of the resource API. Requesting a token there and calling https://api.suger.cloud is the current, supported pairing — see API Access.
This OpenAPI document (info.version 1.0) The document's own release number It identifies the specification file, not the API. Do not branch client behavior on it.

What counts as a breaking change. Removing an operation or a response field, renaming either, narrowing an accepted value, or making an optional request field required. Suger avoids these on the public surface; when an operation is withdrawn, its documentation page is removed and the old URL redirects to this reference. Additive changes — a new operation, a new optional request field, a new field in a response, or a new value in an existing enumeration — can ship at any time, so parse responses leniently and ignore fields you do not recognize.

Every operation listed here is currently supported — the reference carries no deprecated operations. Operations that have been withdrawn are removed from this reference, and their old documentation URLs redirect here. If you need advance notice before an operation you depend on changes, contact support@suger.io.

Endpoint groups

Endpoints are organized into the following groups:

All operations

Every operation has a static page at /api/<operation>/ and a Markdown version at /api/<operation>.md, each with a runnable request and response example.

API

Auditing

  • Query Auditing Events GET Query auditing events with filtering, sorting, and pagination using CRUD query language.

Buyer

  • List Buyers GET list buyers by the given organization with pagination and optional filters.
  • Create Buyer POST create a new buyer for Stripe or Adyen under the given organization.
  • Query Buyers GET Query buyers with filtering, sorting, and pagination using CRUD query language.
  • Get Buyer GET get buyer by the given organization and buyer id.
  • Update Buyer PATCH update buyer by the given organization and buyer id.
  • List Buyer's Wallets GET list all wallets of a buyer.
  • Create Credit Wallet POST create a new credit wallet for the buyer.
  • Update Credit Wallet PATCH update startTime or expireTime of the wallet.
  • Delete Buyer Wallet DELETE delete a wallet of the buyer, if it's a payment method, sync to payment provider too.
  • Close Credit Wallet PATCH Close the given credit wallet, if it's a payment method, sync to payment provider too.
  • Set Buyer Default Wallet PATCH set a payment method wallet as buyer's default wallet.

Contact

Cosell

Entitlement

  • Search Marketplace Knowledge POST Searches the shared knowledge index covering AWS, Azure, and GCP marketplace documentation, Suger docs, and…

Metering

Notification

Offer

OfferSet

  • List Offer Sets GET List offer sets under the given organization with filtering, sorting, and pagination using CRUD query…
  • Create Offer Set POST Create a new offer set under the given organization.
  • Get Offer Set GET Get the offer set by the given offer set ID.

Operation

Organization

Partner Relationship Management

Product

Report

  • List Daily Revenue Records GET list daily revenue records for the given organization, partner, entitlement, or buyer, within the given date…
  • List Revenue Records GET list the revenue records for the given organization, product, entitlement, or buyer.
  • List Revenue Record Details GET list the raw revenue record details for the given organization, partner, product, entitlement, or buyer.
  • List Usage Metering Daily Records GET list the daily records of the usage metering from the cloud marketplace for the given organization…
  • Aggregate Revenue Records POST Return per-currency totals (invoice/collectable/disburse/tax + count) and the daily chart series over the…
  • Query Revenue Records GET Query revenue records with filtering, sorting, and pagination using the CRUD query language.
  • Get Revenue Report POST Get the revenue report of the given organization, product, entitlement, or buyer.

Revenue

Support

Using the reference

Explore every endpoint in the interactive reference below. Each operation also has a static page at /api/<operation>/ and a Markdown version at /api/<operation>.md for agents and LLMs.