CREEM API Reference
Complete API reference with all endpoints, request/response schemas, and field descriptions.Base Configuration
Authentication
All requests require thex-api-key header:
Checkouts API
Create Checkout Session
Creates a new checkout session and returns a URL to redirect the customer.
Custom Fields Schema:
Retrieve Checkout
Response: Full
CheckoutEntity with expanded product, customer, order, subscription, and feature objects if checkout is completed.
Products API
Create Product
Response: ProductEntity
Retrieve Product
List Products
Response: ProductListEntity
Customers API
Retrieve Customer
List Customers
Generate Customer Portal Link
Subscriptions API
Retrieve Subscription
active- Currently active and paidtrialing- In trial periodpaused- Temporarily pausedcanceled- Canceled (terminal)unpaid- Payment failedscheduled_cancel- Will cancel at period end
Update Subscription
proration-charge-immediately- Charge prorated amount now, new billing cycle startsproration-charge- Credit added to next invoice, same billing cycleproration-none- No proration, change at next cycle
Upgrade Subscription
Cancel Subscription
mode:immediate(cancel now) orscheduled(at period end)onExecute:cancelorpause(only for scheduled mode)
Pause Subscription
Resume Subscription
Licenses API
Activate License
active- Valid and usableinactive- No activations yetexpired- Past expiration datedisabled- Manually disabled
Validate License
Deactivate License
Discounts API
Create Discount
Response: DiscountEntity
Retrieve Discount
Delete Discount
Transactions API
Get Transaction
payment- One-time paymentinvoice- Subscription payment
paid- Successfully paidrefunded- Fully refundedpartially_refunded- Partially refundedchargeback- Disputed
List Transactions
Common Entities
OrderEntity
PaginationEntity
EnvironmentMode
Values:test, prod, sandbox
HTTP Response Codes
Rate Limits
Contact support for specific rate limits. Implement exponential backoff for 429 responses.Idempotency
Userequest_id for checkout sessions to prevent duplicate payments if retrying failed requests.