API reference
Every endpoint, generated from the OpenAPI document the API serves at /api/v1/openapi.json.
The base URL is https://globalymint.com. Send an API key as Authorization: Bearer <key>; see API keys. Responses are JSON in one envelope, described under Errors. This reference describes API version 2026-07-01.
Customers
- GETList customers (cursor-paginated)
/customers - POSTCreate a customer
/customers - GETGet a customer
/customers/{id} - GETGet a customer by your own id
/customers/by-external-id/{externalId} - PUTCreate or update a customer by your own id
/customers/by-external-id/{externalId} - GETCustomer balance ledger
/customers/{id}/balance-transactions - GETList a customer’s subscriptions
/customers/{id}/subscriptions - GETList a customer’s invoices
/customers/{id}/invoices
Checkout
Portal
Pricing tables
Subscriptions
- GETList subscriptions (status-filtered, cursor-paginated)
/subscriptions - POSTCreate a subscription
/subscriptions - GETGet a subscription
/subscriptions/{id} - PATCHUpdate the seat count
/subscriptions/{id} - POSTCancel a subscription (immediately or at period end)
/subscriptions/{id}/cancel - POSTPause a subscription
/subscriptions/{id}/pause - POSTResume a paused subscription
/subscriptions/{id}/resume - POSTUndo a scheduled cancel
/subscriptions/{id}/reactivate - POSTChange plan (and optionally seats)
/subscriptions/{id}/change-plan - POSTPreview a plan change
/subscriptions/{id}/change-plan/preview - POSTAdd an item (add-on / per-seat item)
/subscriptions/{id}/items - PATCHChange an item’s quantity
/subscriptions/{id}/items/{itemId} - DELETERemove an item
/subscriptions/{id}/items/{itemId} - DELETEDrop a plan change staged for period end
/subscriptions/{id}/pending-change - GETA subscription’s invoices with their lines
/subscriptions/{id}/invoices
Invoices
- GETList invoices
/invoices - POSTGenerate a draft invoice for a subscription
/invoices - GETGet an invoice (with line items)
/invoices/{id} - POSTFinalize a draft invoice
/invoices/{id}/finalize - POSTCharge a finalized invoice
/invoices/{id}/charge - POSTMark an invoice void
/invoices/{id}/void - POSTMark an invoice uncollectible
/invoices/{id}/uncollectible - GETList refunds on an invoice
/invoices/{id}/refunds - POSTRefund a settled invoice, wholly or in part
/invoices/{id}/refunds - POSTMint a hosted pay-page link for an invoice
/invoices/{id}/pay-link - GETCredit notes on an invoice
/invoices/{id}/credit-notes - POSTIssue a credit note
/invoices/{id}/credit-notes - GETGet a credit note
/credit-notes/{id} - POSTRecord a bank-transfer (or other offline) payment
/invoices/{id}/record-payment - POSTCreate a one-off invoice (charged to the card on file, or sent with a pay link)
/invoices/one-off - GETDownload an invoice PDF
/invoices/{id}/pdf
Payments
- POSTOpen a SetupIntent so the customer can save a payment method
/customers/{id}/setup-intent - GETList a customer’s saved payment methods
/customers/{id}/payment-methods - POSTAttach a payment method to a customer
/customers/{id}/payment-methods - DELETERemove a saved payment method
/customers/{id}/payment-methods/{pmId} - GETRead the invoice behind a pay link (public)
/pay/{token} - POSTOpen the PaymentIntent for a pay link (public)
/pay/{token}/intent
Invoice pay links
Usage
- POSTIngest a usage event
/usage-events - GETAggregate usage for a subscription over a period
/usage-events/aggregate - GETList meters
/meters - POSTCreate a meter
/meters - GETGet a meter
/meters/{id} - PATCHUpdate a meter
/meters/{id} - POSTRecord usage (one event or a batch of up to 1000)
/meter-events - GETA meter’s aggregate for one customer over [from, to)
/meter-events/summary
Entitlements
- GETList features
/features - POSTCreate a feature
/features - GETGet a feature
/features/{id} - PATCHUpdate a feature (key and type are immutable)
/features/{id} - GETA plan’s grants
/plans/{id}/entitlements - PUTReplace a plan’s grants
/plans/{id}/entitlements - GETA customer’s entitlement snapshot
/customers/{id}/entitlements - GETEntitlement snapshot by your own customer id
/customers/by-external-id/{externalId}/entitlements - GETThe tenant’s default (Free) plan
/entitlement-settings - PUTSet the default (Free) plan
/entitlement-settings - POSTSpend credits from a pool
/customers/{id}/credits/consume - POSTAdd credits to a pool
/customers/{id}/credits/grant - POSTSpend credits from a pool
/customers/by-external-id/{externalId}/credits/consume - POSTAdd credits to a pool
/customers/by-external-id/{externalId}/credits/grant
Catalog
- GETList products (cursor-paginated)
/products - POSTCreate a product
/products - GETGet a product
/products/{id} - PATCHUpdate a product (name, description, portal settings)
/products/{id} - GETList plans (cursor-paginated)
/plans - POSTCreate a plan
/plans - GETGet a plan (with price points)
/plans/{id} - PATCHUpdate a plan (name, active and metadata only; pricing is immutable)
/plans/{id} - PUTSet per-currency price points for a plan
/plans/{id}/price-points - PUTCreate or update a plan by its code (versioned on a price change)
/plans/by-code/{code} - GETPreview a price change to a later version of this plan
/plans/{id}/price-changes/preview - POSTSchedule a price change for every subscriber of this plan
/plans/{id}/price-changes - GETList price changes
/price-changes - GETGet a price change with its subscribers
/price-changes/{id} - POSTCancel a scheduled price change
/price-changes/{id}/cancel
Discounts
- GETList coupons
/coupons - POSTCreate a coupon
/coupons - GETGet a coupon
/coupons/{id} - PATCHUpdate a coupon (what it takes off is immutable)
/coupons/{id} - DELETEArchive a coupon
/coupons/{id} - GETList promotion codes
/promotion-codes - POSTCreate a promotion code
/promotion-codes - GETGet a promotion code
/promotion-codes/{id} - PATCHUpdate a promotion code
/promotion-codes/{id} - DELETEArchive a promotion code
/promotion-codes/{id} - POSTWould this code work? (redeems nothing)
/promotion-codes/validate - GETActive discounts on a subscription
/subscriptions/{id}/discounts - POSTApply a coupon or promotion code to a subscription
/subscriptions/{id}/discounts - DELETERemove a discount
/subscriptions/{id}/discounts/{discountId}
Tax rates
- GETList tax rates
/tax-rates - POSTCreate a tax rate
/tax-rates - GETGet a tax rate
/tax-rates/{id} - PATCHUpdate a tax rate (percentage and location are immutable)
/tax-rates/{id} - DELETEArchive a tax rate
/tax-rates/{id} - POSTPreview tax on a basket (writes nothing)
/tax-rates/calculate - PUTSet a customer’s tax status
/customers/{id}/tax
Webhooks
- GETList endpoints
/webhook-endpoints - POSTRegister an endpoint
/webhook-endpoints - PATCHUpdate an endpoint
/webhook-endpoints/{id} - DELETERemove an endpoint
/webhook-endpoints/{id} - POSTRotate the signing secret
/webhook-endpoints/{id}/rotate-secret - POSTRetire the previous signing secret now
/webhook-endpoints/{id}/end-secret-overlap - POSTSend a test event
/webhook-endpoints/{id}/test - POSTReplay failed deliveries since a date
/webhook-endpoints/{id}/replay - GETDeliveries for an endpoint
/webhook-endpoints/{id}/deliveries - POSTReplay a delivery
/webhook-endpoints/deliveries/{id}/replay
API keys
Settings
Team
- GETList workspace members
/team/members - PATCHChange a member’s role
/team/members/{userId} - DELETERemove a member
/team/members/{userId} - GETList invites
/team/invites - POSTInvite someone to the workspace
/team/invites - DELETERevoke a pending invite
/team/invites/{id} - GETPreview an invitation (public)
/team/invites/{token} - POSTAccept an invitation
/team/invites/{token}/accept