Credits - TypeScript SDK
Credits method reference
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Overview
Credit management endpoints
Available Operations
- getCredits - Get remaining credits
createCoinbaseCharge- Deprecated Coinbase Commerce charge endpoint ⚠️ Deprecated
getCredits
Get total credits purchased and used for the authenticated user. Management key required.
Example Usage
Standalone function
The standalone function version of this method:
Parameters
Response
Promise<operations.GetCreditsResponse>
Errors
createCoinbaseCharge
Deprecated. The Coinbase APIs used by this endpoint have been deprecated, so Coinbase Commerce charges have been removed. Use the web credits purchase flow instead.
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
Example Usage
Standalone function
The standalone function version of this method:
Parameters
Response
Promise<void>