from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.wallets.top_up_wallet(id="<id>", transaction_reason="INVOICE_VOID_REFUND")
# Handle response
print(res)
import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.wallets.topUpWallet("<id>", {
transactionReason: "INVOICE_VOID_REFUND",
});
console.log(result);
}
run();
from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.wallets.top_up_wallet(id="<id>", transaction_reason="INVOICE_VOID_REFUND")
# Handle response
print(res)
import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.wallets.topUpWallet("<id>", {
transactionReason: "INVOICE_VOID_REFUND",
});
console.log(result);
}
run();
amount is the amount in the currency of the wallet to be added
NOTE: this is not the number of credits to add, but the amount in the currency
amount = credits_to_add * conversion_rate
if both amount and credits_to_add are provided, amount will be ignored
ex if the wallet has a conversion_rate of 2 then adding an amount of
10 USD in the wallet wil add 5 credits in the wallet
bonus_credits_expiry_date_utc is the expiry (UTC, full precision) applied to the bonus
credits transaction. Independent of expiry_date_utc, which governs the purchase credits.
Only honored when bonus credits are actually granted (explicit BonusCreditsToAdd or slab).
bonus_credits_to_add is an explicit override for the bonus credits granted alongside this
purchase. When nil/omitted, the bonus is resolved from the tenant's
bonus_credits_topup_config slabs (if enabled). When set, it must be greater than 0 and is
used as-is, skipping slab resolution. To grant no bonus, omit this field entirely.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Flexprice","colors":{"primary":"#15547c","light":"#2580b5","dark":"#134a6b"},"logo":{"light":"https://mintcdn.com/flexprice/Qokjirde4CQUcFy8/images/FlexpriceWordMarkDark.png?fit=max\u0026auto=format\u0026n=Qokjirde4CQUcFy8\u0026q=85\u0026s=d706a1b6139418c2d57ba902fb0b6de4","dark":"https://mintcdn.com/flexprice/Qokjirde4CQUcFy8/images/FlexpriceWordMarkLight.png?fit=max\u0026auto=format\u0026n=Qokjirde4CQUcFy8\u0026q=85\u0026s=3fe3d9881552f4ebecb6f6aa7cfe2f66"},"favicon":"https://mintcdn.com/flexprice/Qokjirde4CQUcFy8/doc.png?fit=max\u0026auto=format\u0026n=Qokjirde4CQUcFy8\u0026q=85\u0026s=7e9ab0952b828b96d03f9298571462a4","api":{"examples":{"languages":["curl","python","typescript","go"]}},"background":{"decoration":"gradient","color":{"light":"#fffdf8","dark":"#010b13"}},"navbar":{"links":[],"primary":{"type":"button","label":"Dashboard","href":"https://admin.flexprice.io/"}},"footer":{"socials":{"github":"https://github.com/flexprice/flexprice","linkedin":"https://www.linkedin.com/company/flexpriceio","website":"https://flexprice.io/","x":"https://x.com/tryflexprice"}},"fonts":{"family":"Geist"},"integrations":{"ga4":{"measurementId":"G-9RV8NDCXNN"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Support","icon":"https://mintlify.s3.us-west-1.amazonaws.com/flexprice/images/anchors/mail.svg","href":"mailto:support@flexprice.io"},{"anchor":"Community","icon":"https://mintlify.s3.us-west-1.amazonaws.com/flexprice/images/anchors/slack.svg","href":"https://join.slack.com/t/flexpricecommunity/shared_invite/zt-39uat51l0-n8JmSikHZP~bHJNXladeaQ"},{"anchor":"Website","icon":"https://mintlify.s3.us-west-1.amazonaws.com/flexprice/images/anchors/flexprice.svg","href":"https://flexprice.io/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"flexprice","hasAudioNarration":false,"actualSubdomain":"flexprice","customDomains":["docs.flexprice.io"],"gitSource":{"type":"github","owner":"flexprice","repo":"flexprice-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aec989125c041b78608b1c8","collectionId":"d131118f-70a0-430c-9af3-09cfe26368e5","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aec989125c041b78608b1c8"},"feedback":{"thumbs":false,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aed9afdb7010cc612502a42","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"API Reference","count":339},{"language":"default","tag":"Resources","count":336},{"language":"default","tag":"Developers","count":152},{"language":"default","tag":"Documentation","count":125},{"language":"default","tag":"Integrations","count":102},{"language":"default","tag":"Webhook Events","count":72},{"language":"default","tag":"Subscriptions","count":46},{"language":"default","tag":"CLI","count":38},{"language":"default","tag":"Command reference","count":34},{"language":"default","tag":"Customers","count":25}]},"assistantConfig":{"enableStarterQuestions":false,"deflection":{"enabled":true,"email":"support@flexprice.io","showHelpButton":true}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"privacy":{"consentBanner":{"enabled":false}},"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"/* latin-ext */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\nh1{font-family:'DM Sans', sans-serif;font-weight:700!important;letter-spacing:-0.01em!important}.title,[data-title],.page-title,.section-title{font-family:'DM Sans', sans-serif;font-weight:400;letter-spacing:0.025em!important}.nav-logo{height:22px}[class*=\"nav\"] a[href*=\"admin.flexprice.io\"],[class*=\"Navbar\"] a[href*=\"admin.flexprice.io\"]{background-color:#134a6b!important;color:#ffffff!important;font-weight:500;border-radius:6px;padding:0.5rem 1rem}[class*=\"nav\"] a[href*=\"admin.flexprice.io\"]:hover,[class*=\"Navbar\"] a[href*=\"admin.flexprice.io\"]:hover{background-color:#0d3d5c!important;color:#ffffff!important}.content-area,.\\32xl\\:max-w-2xl{max-width:50rem!important}.nav-anchor:hover>div{background-color:rgba(21, 84, 124, 0.08)!important}.dark .nav-anchor:hover>div{background-color:rgba(255, 255, 255, 0.08)!important}.nav-anchor img{background-color:transparent!important}.dark .nav-anchor img[src*=\"anchors/flexprice\"]{filter:brightness(0) invert(1)}"}],"page":{"pagePath":"api-reference/wallets/top-up-wallet","slug":"/api-reference/wallets/top-up-wallet","pageMetadata":{"title":"Top up wallet","description":"Use when adding funds to a wallet (e.g. top-up, refund, or manual credit). Supports optional idempotency via reference.","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /wallets/{id}/top-up","href":"/api-reference/wallets/top-up-wallet","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Use when adding funds to a wallet (e.g. top-up, refund, or manual credit). Supports optional idempotency via reference.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Top up wallet","description":"Use when adding funds to a wallet (e.g. top-up, refund, or manual credit). Supports optional idempotency via reference.","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /wallets/{id}/top-up","href":"/api-reference/wallets/top-up-wallet","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/flexprice/c6cd5bf06bcd0181/reo-tracking.js"],"openApiReferenceData":{"operation":{"tags":["Wallets"],"summary":"Top up wallet","description":"Use when adding funds to a wallet (e.g. top-up, refund, or manual credit). Supports optional idempotency via reference.","operationId":"topUpWallet","parameters":["50990392-f4a4-4d4f-a240-a125dda0be65"],"requestBody":"2889b28f-fa6e-41ad-a24a-963ea980dae8","responses":{"200":"be7d19f9-d231-4556-96ee-f36e79f85b91","400":"35421d72-bfdf-4e1f-b1b6-9f03c175bdfc","404":"44863f4c-ade4-44b1-ae80-0dcdb05c27cc","500":"036d6d77-3b93-4b04-b300-76b304b7c3bb"},"security":["48a6bf5c-46d7-4a7f-b7b0-c87897e36d37"],"x-codegen-request-body-name":"request","x-codeSamples":[{"lang":"typescript","label":"TypeScript","source":"import { Flexprice } from \"@flexprice/sdk\";\n\nconst flexprice = new Flexprice({\n apiKeyAuth: \"\u003cYOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await flexprice.wallets.topUpWallet(\"\u003cid>\", {\n transactionReason: \"INVOICE_VOID_REFUND\",\n });\n\n console.log(result);\n}\n\nrun();"},{"lang":"go","label":"Go","source":"package main\n\nimport(\n\t\"context\"\n\tflexprice \"github.com/flexprice/go-sdk/v2\"\n\t\"github.com/flexprice/go-sdk/v2/models/types\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := flexprice.New(\n flexprice.WithSecurity(\"\u003cYOUR_API_KEY_HERE>\"),\n )\n\n res, err := s.Wallets.TopUpWallet(ctx, \"\u003cid>\", types.TopUpWalletRequest{\n TransactionReason: types.TransactionReasonInvoiceVoidRefund,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.TopUpWalletResponse != nil {\n // handle response\n }\n}"},{"lang":"python","label":"Python","source":"from flexprice import Flexprice\n\n\nwith Flexprice(\n api_key_auth=\"\u003cYOUR_API_KEY_HERE>\",\n) as f_client:\n\n res = f_client.wallets.top_up_wallet(id=\"\u003cid>\", transaction_reason=\"INVOICE_VOID_REFUND\")\n\n # Handle response\n print(res)"}],"method":"post","type":"path","servers":["97695df4-4ae7-4c34-afed-a200e709ee91","62b8be32-b3b9-424e-8a59-4ea993240e33","655ef252-553d-455c-afe8-5274ab086d1e","1200ece7-fca2-406b-bd15-745b9395d8a0"],"path":"/wallets/{id}/top-up","baseUrlOptions":["https://us.api.flexprice.io/v1","https://api.cloud.flexprice.io/v1","https://canada.api.flexprice.io/v1","https://eu.api.flexprice.io/v1"],"title":"Top up wallet","codeSamples":[{"label":"TypeScript","lang":"typescript","source":"import { Flexprice } from \"@flexprice/sdk\";\n\nconst flexprice = new Flexprice({\n apiKeyAuth: \"\u003cYOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await flexprice.wallets.topUpWallet(\"\u003cid>\", {\n transactionReason: \"INVOICE_VOID_REFUND\",\n });\n\n console.log(result);\n}\n\nrun();"},{"label":"Go","lang":"go","source":"package main\n\nimport(\n\t\"context\"\n\tflexprice \"github.com/flexprice/go-sdk/v2\"\n\t\"github.com/flexprice/go-sdk/v2/models/types\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := flexprice.New(\n flexprice.WithSecurity(\"\u003cYOUR_API_KEY_HERE>\"),\n )\n\n res, err := s.Wallets.TopUpWallet(ctx, \"\u003cid>\", types.TopUpWalletRequest{\n TransactionReason: types.TransactionReasonInvoiceVoidRefund,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.TopUpWalletResponse != nil {\n // handle response\n }\n}"},{"label":"Python","lang":"python","source":"from flexprice import Flexprice\n\n\nwith Flexprice(\n api_key_auth=\"\u003cYOUR_API_KEY_HERE>\",\n) as f_client:\n\n res = f_client.wallets.top_up_wallet(id=\"\u003cid>\", transaction_reason=\"INVOICE_VOID_REFUND\")\n\n # Handle response\n print(res)"}],"requestExampleLanguages":["bash","python","typescript","go"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"50990392-f4a4-4d4f-a240-a125dda0be65":{"name":"id","in":"path","description":"Wallet ID","required":true,"schema":{"type":"string","isRequired":true,"description":"Wallet ID","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"description":"Top up request","content":{"application/json":{"schema":{"required":["transaction_reason"],"type":"object","properties":{"transaction_reason":{"type":"string","enum":["INVOICE_PAYMENT","FREE_CREDIT_GRANT","SUBSCRIPTION_CREDIT_GRANT","PURCHASED_CREDIT_INVOICED","PURCHASED_CREDIT_DIRECT","CREDIT_NOTE","CREDIT_EXPIRED","WALLET_TERMINATION","MANUAL_BALANCE_DEBIT","CREDIT_ADJUSTMENT","INVOICE_VOID_REFUND","PURCHASED_CREDIT_BONUS"],"x-enum-varnames":["TransactionReasonInvoicePayment","TransactionReasonFreeCredit","TransactionReasonSubscriptionCredit","TransactionReasonPurchasedCreditInvoiced","TransactionReasonPurchasedCreditDirect","TransactionReasonCreditNote","TransactionReasonCreditExpired","TransactionReasonWalletTermination","TransactionReasonManualBalanceDebit","TransactionReasonCreditAdjustment","TransactionReasonInvoiceVoidRefund","TransactionReasonPurchasedCreditBonus"],"x-speakeasy-name-override":"TransactionReason","isRequired":true,"uniqueKey":"transaction_reason","typeLabel":"enum\u003cstring>"},"amount":{"type":"string","description":"amount is the amount in the currency of the wallet to be added\nNOTE: this is not the number of credits to add, but the amount in the currency\namount = credits_to_add * conversion_rate\nif both amount and credits_to_add are provided, amount will be ignored\nex if the wallet has a conversion_rate of 2 then adding an amount of\n10 USD in the wallet wil add 5 credits in the wallet","uniqueKey":"amount","typeLabel":"string"},"bonus_credits_expiry_date_utc":{"type":"string","description":"bonus_credits_expiry_date_utc is the expiry (UTC, full precision) applied to the bonus\ncredits transaction. Independent of expiry_date_utc, which governs the purchase credits.\nOnly honored when bonus credits are actually granted (explicit BonusCreditsToAdd or slab).","uniqueKey":"bonus_credits_expiry_date_utc","typeLabel":"string"},"bonus_credits_to_add":{"type":"string","description":"bonus_credits_to_add is an explicit override for the bonus credits granted alongside this\npurchase. When nil/omitted, the bonus is resolved from the tenant's\nbonus_credits_topup_config slabs (if enabled). When set, it must be greater than 0 and is\nused as-is, skipping slab resolution. To grant no bonus, omit this field entirely.","uniqueKey":"bonus_credits_to_add","typeLabel":"string"},"checkout":{"required":["payment_provider"],"type":"object","properties":{"payment_provider":{"type":"string","enum":["razorpay","chargebee","stripe"],"x-enum-varnames":["CheckoutPaymentProviderRazorpay","CheckoutPaymentProviderChargebee","CheckoutPaymentProviderStripe"],"x-speakeasy-name-override":"CheckoutPaymentProvider","isRequired":true,"uniqueKey":"checkout.payment_provider","typeLabel":"enum\u003cstring>"},"cancel_url":{"type":"string","uniqueKey":"checkout.cancel_url","typeLabel":"string"},"entity_creation_options":{"type":"object","properties":{"entity_creation_conflict_policies":{"type":"object","properties":{"on_existing_entity":{"type":"string","enum":["reject","supersede"],"x-enum-varnames":["OnExistingEntityPolicyReject","OnExistingEntityPolicySupersede"],"x-speakeasy-name-override":"OnExistingEntityPolicy","uniqueKey":"checkout.entity_creation_options.entity_creation_conflict_policies.on_existing_entity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"checkout.entity_creation_options.entity_creation_conflict_policies","typeLabel":"object"}},"uniqueKey":"checkout.entity_creation_options","typeLabel":"object"},"failure_url":{"type":"string","uniqueKey":"checkout.failure_url","typeLabel":"string"},"idempotency_key":{"type":"string","uniqueKey":"checkout.idempotency_key","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"checkout.metadata.additionalProperties","typeLabel":"string"},"uniqueKey":"checkout.metadata","typeLabel":"object"},"payment_provider_config":{"type":"object","properties":{"collection_method":{"type":"string","enum":["charge_automatically","send_invoice"],"x-enum-varnames":["CollectionMethodChargeAutomatically","CollectionMethodSendInvoice"],"x-speakeasy-name-override":"CollectionMethod","uniqueKey":"checkout.payment_provider_config.collection_method","typeLabel":"enum\u003cstring>"},"customer_not_present":{"type":"boolean","description":"CustomerNotPresent is the unattended/MIT opt-in. Zero value (omitted) means\nthe customer is present, so a missed auto-charge may fall back to a hosted\nauthorization link. Set true only from merchant-initiated paths (auto top-up).","uniqueKey":"checkout.payment_provider_config.customer_not_present","typeLabel":"boolean"},"max_mandate_limit":{"type":"string","uniqueKey":"checkout.payment_provider_config.max_mandate_limit","typeLabel":"string"},"payment_method":{"type":"string","enum":["CARD","ACH","OFFLINE","CREDITS","PAYMENT_LINK","UPI"],"x-enum-varnames":["PaymentMethodTypeCard","PaymentMethodTypeACH","PaymentMethodTypeOffline","PaymentMethodTypeCredits","PaymentMethodTypePaymentLink","PaymentMethodTypeUPI"],"x-speakeasy-name-override":"PaymentMethodType","uniqueKey":"checkout.payment_provider_config.payment_method","typeLabel":"enum\u003cstring>"}},"x-speakeasy-name-override":"CheckoutPaymentProviderConfig","uniqueKey":"checkout.payment_provider_config","typeLabel":"object"},"success_url":{"type":"string","uniqueKey":"checkout.success_url","typeLabel":"string"}},"uniqueKey":"checkout","typeLabel":"object"},"coupons":{"type":"array","items":{"required":["coupon_code"],"type":"object","properties":{"coupon_code":{"type":"string","isRequired":true,"uniqueKey":"coupons.items.[INDEX].coupon_code","typeLabel":"string"}},"uniqueKey":"coupons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"coupons","typeLabel":"object[]"},"credits_to_add":{"type":"string","description":"credits_to_add is the number of credits to add to the wallet","uniqueKey":"credits_to_add","typeLabel":"string"},"description":{"type":"string","description":"description to add any specific details about the transaction","uniqueKey":"description","typeLabel":"string"},"effective_date":{"type":"string","description":"effective_date is stored as the credit transaction's created_at.\nOmit to use the current time. Must not be in the future.","format":"date-time","uniqueKey":"effective_date","typeLabel":"string\u003cdate-time>"},"expiry_date_utc":{"type":"string","description":"expiry_date_utc is the expiry date in UTC timezone\nex 2025-01-01 00:00:00 UTC","uniqueKey":"expiry_date_utc","typeLabel":"string"},"force_sync_invoice":{"type":"boolean","uniqueKey":"force_sync_invoice","typeLabel":"boolean"},"idempotency_key":{"type":"string","description":"idempotency_key is a unique key for the transaction","uniqueKey":"idempotency_key","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"x-speakeasy-name-override":"Metadata","uniqueKey":"metadata","typeLabel":"object"},"priority":{"type":"integer","description":"priority is the priority of the transaction\nlower number means higher priority\ndefault is nil which means no priority at all","uniqueKey":"priority","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"amount":"\u003cstring>","bonus_credits_expiry_date_utc":"\u003cstring>","bonus_credits_to_add":"\u003cstring>","coupons":[{"coupon_code":"\u003cstring>"}],"credits_to_add":"\u003cstring>","description":"\u003cstring>","effective_date":"2023-11-07T05:31:56Z","expiry_date_utc":"\u003cstring>","force_sync_invoice":true,"idempotency_key":"\u003cstring>","metadata":{},"priority":123}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"be7d19f9-d231-4556-96ee-f36e79f85b91":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"checkout_session":{"type":"object","properties":{"action":{"type":"string","enum":["create_subscription","modify_subscription","wallet_topup","add_addon","pay_invoice"],"x-enum-varnames":["CheckoutActionCreateSubscription","CheckoutActionModifySubscription","CheckoutActionWalletTopup","CheckoutActionAddAddon","CheckoutActionPayInvoice"],"x-speakeasy-name-override":"CheckoutAction","uniqueKey":"checkout_session.action","typeLabel":"enum\u003cstring>"},"cancel_url":{"type":"string","uniqueKey":"checkout_session.cancel_url","typeLabel":"string"},"cancelled_at":{"type":"string","format":"date-time","uniqueKey":"checkout_session.cancelled_at","typeLabel":"string\u003cdate-time>"},"checkout_invoice_id":{"type":"string","uniqueKey":"checkout_session.checkout_invoice_id","typeLabel":"string"},"checkout_payment_id":{"type":"string","uniqueKey":"checkout_session.checkout_payment_id","typeLabel":"string"},"checkout_status":{"type":"string","enum":["initiated","pending","completed","failed","expired"],"x-enum-varnames":["CheckoutStatusInitiated","CheckoutStatusPending","CheckoutStatusCompleted","CheckoutStatusFailed","CheckoutStatusExpired"],"x-speakeasy-name-override":"CheckoutStatus","uniqueKey":"checkout_session.checkout_status","typeLabel":"enum\u003cstring>"},"completed_at":{"type":"string","format":"date-time","uniqueKey":"checkout_session.completed_at","typeLabel":"string\u003cdate-time>"},"created_at":{"type":"string","format":"date-time","uniqueKey":"checkout_session.created_at","typeLabel":"string\u003cdate-time>"},"customer_id":{"type":"string","uniqueKey":"checkout_session.customer_id","typeLabel":"string"},"entity_creation_result":{"type":"object","properties":{"entity_id":{"type":"string","uniqueKey":"checkout_session.entity_creation_result.entity_id","typeLabel":"string"},"status":{"type":"string","enum":["created","superseded","failed_already_exists"],"x-enum-varnames":["EntityCreationStatusCreated","EntityCreationStatusSuperseded","EntityCreationStatusFailedAlreadyExists"],"x-speakeasy-name-override":"EntityCreationStatus","uniqueKey":"checkout_session.entity_creation_result.status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"checkout_session.entity_creation_result","typeLabel":"object"},"expires_at":{"type":"string","format":"date-time","uniqueKey":"checkout_session.expires_at","typeLabel":"string\u003cdate-time>"},"failure_reason":{"type":"string","uniqueKey":"checkout_session.failure_reason","typeLabel":"string"},"failure_url":{"type":"string","uniqueKey":"checkout_session.failure_url","typeLabel":"string"},"id":{"type":"string","uniqueKey":"checkout_session.id","typeLabel":"string"},"idempotency_key":{"type":"string","uniqueKey":"checkout_session.idempotency_key","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"checkout_session.metadata.additionalProperties","typeLabel":"string"},"x-speakeasy-name-override":"Metadata","uniqueKey":"checkout_session.metadata","typeLabel":"object"},"next_poll_after_ms":{"type":"integer","description":"NextPollAfterMs is how long a client should wait before reading again.\nZero means stop — either the session is terminal, or this response did not\ncome from a polling read.","uniqueKey":"checkout_session.next_poll_after_ms","typeLabel":"integer"},"payment":{"type":"object","properties":{"gateway":{"type":"string","uniqueKey":"checkout_session.payment.gateway","typeLabel":"string"},"id":{"type":"string","uniqueKey":"checkout_session.payment.id","typeLabel":"string"},"status":{"type":"string","enum":["INITIATED","PENDING","PROCESSING","SUCCEEDED","OVERPAID","FAILED","REFUNDED","PARTIALLY_REFUNDED","VOIDED"],"x-enum-varnames":["PaymentStatusInitiated","PaymentStatusPending","PaymentStatusProcessing","PaymentStatusSucceeded","PaymentStatusOverpaid","PaymentStatusFailed","PaymentStatusRefunded","PaymentStatusPartiallyRefunded","PaymentStatusVoided"],"x-speakeasy-name-override":"PaymentStatus","uniqueKey":"checkout_session.payment.status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"checkout_session.payment","typeLabel":"object"},"payment_action":{"type":"object","properties":{"type":{"type":"string","enum":["checkout_url","payment_link"],"x-enum-varnames":["PaymentActionTypeCheckoutURL","PaymentActionTypePaymentLink"],"x-speakeasy-name-override":"PaymentActionType","uniqueKey":"checkout_session.payment_action.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","uniqueKey":"checkout_session.payment_action.url","typeLabel":"string"}},"x-speakeasy-name-override":"PaymentAction","uniqueKey":"checkout_session.payment_action","typeLabel":"object"},"payment_provider":{"type":"string","enum":["razorpay","chargebee","stripe"],"x-enum-varnames":["CheckoutPaymentProviderRazorpay","CheckoutPaymentProviderChargebee","CheckoutPaymentProviderStripe"],"x-speakeasy-name-override":"CheckoutPaymentProvider","uniqueKey":"checkout_session.payment_provider","typeLabel":"enum\u003cstring>"},"stale":{"type":"boolean","description":"Stale reports that this response is stored state that was not checked against\nthe payment provider on this request — the read was debounced, or the gateway\ndid not answer. A UI should say \"still checking\" rather than presenting a\nstale answer as fact.","uniqueKey":"checkout_session.stale","typeLabel":"boolean"},"success_url":{"type":"string","uniqueKey":"checkout_session.success_url","typeLabel":"string"},"terminal":{"type":"boolean","description":"Terminal reports whether the session has finished. Clients poll until this is\ntrue rather than hardcoding the status set, which would go stale if a status\nis ever added.","uniqueKey":"checkout_session.terminal","typeLabel":"boolean"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"checkout_session.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"checkout_session","typeLabel":"object"},"invoice_id":{"type":"string","description":"Invoice ID if an invoice was created (only for PURCHASED_CREDIT_INVOICED)","uniqueKey":"invoice_id","typeLabel":"string"},"wallet":{"type":"object","properties":{"alert_settings":{"type":"object","properties":{"alert_enabled":{"type":"boolean","uniqueKey":"wallet.alert_settings.alert_enabled","typeLabel":"boolean"},"alert_threshold_type":{"type":"string","enum":["absolute","percentage"],"x-enum-varnames":["AlertThresholdTypeAbsolute","AlertThresholdTypePercentage"],"x-speakeasy-name-override":"AlertThresholdType","uniqueKey":"wallet.alert_settings.alert_threshold_type","typeLabel":"enum\u003cstring>"},"critical":{"type":"object","properties":{"condition":{"type":"string","enum":["above","below"],"x-enum-varnames":["AlertConditionAbove","AlertConditionBelow"],"x-speakeasy-name-override":"AlertCondition","uniqueKey":"wallet.alert_settings.critical.condition","typeLabel":"enum\u003cstring>"},"threshold":{"type":"string","uniqueKey":"wallet.alert_settings.critical.threshold","typeLabel":"string"}},"x-speakeasy-name-override":"AlertThreshold","uniqueKey":"wallet.alert_settings.critical","typeLabel":"object"},"info":{"type":"object","properties":{"condition":{"type":"string","enum":["above","below"],"x-enum-varnames":["AlertConditionAbove","AlertConditionBelow"],"x-speakeasy-name-override":"AlertCondition","uniqueKey":"wallet.alert_settings.info.condition","typeLabel":"enum\u003cstring>"},"threshold":{"type":"string","uniqueKey":"wallet.alert_settings.info.threshold","typeLabel":"string"}},"x-speakeasy-name-override":"AlertThreshold","uniqueKey":"wallet.alert_settings.info","typeLabel":"object"},"warning":{"type":"object","properties":{"condition":{"type":"string","enum":["above","below"],"x-enum-varnames":["AlertConditionAbove","AlertConditionBelow"],"x-speakeasy-name-override":"AlertCondition","uniqueKey":"wallet.alert_settings.warning.condition","typeLabel":"enum\u003cstring>"},"threshold":{"type":"string","uniqueKey":"wallet.alert_settings.warning.threshold","typeLabel":"string"}},"x-speakeasy-name-override":"AlertThreshold","uniqueKey":"wallet.alert_settings.warning","typeLabel":"object"}},"x-speakeasy-name-override":"AlertSettings","uniqueKey":"wallet.alert_settings","typeLabel":"object"},"alert_state":{"type":"string","enum":["ok","info","warning","in_alarm"],"x-enum-varnames":["AlertStateOk","AlertStateInfo","AlertStateWarning","AlertStateInAlarm"],"x-speakeasy-name-override":"AlertState","uniqueKey":"wallet.alert_state","typeLabel":"enum\u003cstring>"},"auto_topup":{"type":"object","properties":{"amount":{"type":"number","uniqueKey":"wallet.auto_topup.amount","typeLabel":"number"},"cooldown":{"type":"object","properties":{"unit":{"type":"string","enum":["second","minute","hour","day"],"x-enum-varnames":["DurationUnitSecond","DurationUnitMinute","DurationUnitHour","DurationUnitDay"],"x-speakeasy-name-override":"DurationUnit","uniqueKey":"wallet.auto_topup.cooldown.unit","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","uniqueKey":"wallet.auto_topup.cooldown.value","typeLabel":"integer"}},"enum":["3600000000000"],"x-enum-varnames":["EntitlementGrantMinDuration"],"x-speakeasy-name-override":"Duration","uniqueKey":"wallet.auto_topup.cooldown","typeLabel":"object"},"enabled":{"type":"boolean","uniqueKey":"wallet.auto_topup.enabled","typeLabel":"boolean"},"invoicing":{"type":"boolean","uniqueKey":"wallet.auto_topup.invoicing","typeLabel":"boolean"},"threshold":{"type":"number","uniqueKey":"wallet.auto_topup.threshold","typeLabel":"number"}},"x-speakeasy-name-override":"AutoTopup","uniqueKey":"wallet.auto_topup","typeLabel":"object"},"balance":{"type":"string","uniqueKey":"wallet.balance","typeLabel":"string"},"config":{"type":"object","properties":{"allowed_price_types":{"type":"array","description":"AllowedPriceTypes is a list of price types that are allowed for the wallet\nnil means all price types are allowed","items":{"type":"string","enum":["ALL","USAGE","FIXED"],"x-enum-varnames":["WalletConfigPriceTypeAll","WalletConfigPriceTypeUsage","WalletConfigPriceTypeFixed"],"x-speakeasy-name-override":"WalletConfigPriceType","uniqueKey":"wallet.config.allowed_price_types.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"wallet.config.allowed_price_types","typeLabel":"enum\u003cstring>[]"}},"x-speakeasy-name-override":"WalletConfig","uniqueKey":"wallet.config","typeLabel":"object"},"conversion_rate":{"type":"string","description":"amount in the currency = number of credits * conversion_rate\nex if conversion_rate is 1, then 1 USD = 1 credit\nex if conversion_rate is 2, then 1 USD = 0.5 credits\nex if conversion_rate is 0.5, then 1 USD = 2 credits","uniqueKey":"wallet.conversion_rate","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","uniqueKey":"wallet.created_at","typeLabel":"string\u003cdate-time>"},"created_by":{"type":"string","uniqueKey":"wallet.created_by","typeLabel":"string"},"credit_balance":{"type":"string","uniqueKey":"wallet.credit_balance","typeLabel":"string"},"credits_available_breakdown":{"type":"object","properties":{"free":{"type":"string","uniqueKey":"wallet.credits_available_breakdown.free","typeLabel":"string"},"purchased":{"type":"string","uniqueKey":"wallet.credits_available_breakdown.purchased","typeLabel":"string"}},"x-speakeasy-name-override":"CreditBreakdown","uniqueKey":"wallet.credits_available_breakdown","typeLabel":"object"},"currency":{"type":"string","uniqueKey":"wallet.currency","typeLabel":"string"},"customer_id":{"type":"string","uniqueKey":"wallet.customer_id","typeLabel":"string"},"description":{"type":"string","uniqueKey":"wallet.description","typeLabel":"string"},"environment_id":{"type":"string","uniqueKey":"wallet.environment_id","typeLabel":"string"},"id":{"type":"string","uniqueKey":"wallet.id","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"wallet.metadata.additionalProperties","typeLabel":"string"},"x-speakeasy-name-override":"Metadata","uniqueKey":"wallet.metadata","typeLabel":"object"},"name":{"type":"string","uniqueKey":"wallet.name","typeLabel":"string"},"real_time_balance":{"type":"string","uniqueKey":"wallet.real_time_balance","typeLabel":"string"},"real_time_credit_balance":{"type":"string","uniqueKey":"wallet.real_time_credit_balance","typeLabel":"string"},"status":{"type":"string","enum":["published","deleted","archived"],"x-enum-varnames":["StatusPublished","StatusDeleted","StatusArchived"],"x-speakeasy-name-override":"Status","uniqueKey":"wallet.status","typeLabel":"enum\u003cstring>"},"tenant_id":{"type":"string","uniqueKey":"wallet.tenant_id","typeLabel":"string"},"topup_conversion_rate":{"type":"string","description":"topup_conversion_rate is the conversion rate for the topup to the currency\nex if topup_conversion_rate is 1, then 1 USD = 1 credit\nex if topup_conversion_rate is 2, then 1 USD = 0.5 credits\nex if topup_conversion_rate is 0.5, then 1 USD = 2 credits","uniqueKey":"wallet.topup_conversion_rate","typeLabel":"string"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"wallet.updated_at","typeLabel":"string\u003cdate-time>"},"updated_by":{"type":"string","uniqueKey":"wallet.updated_by","typeLabel":"string"},"wallet_status":{"type":"string","enum":["active","frozen","closed"],"x-enum-varnames":["WalletStatusActive","WalletStatusFrozen","WalletStatusClosed"],"x-speakeasy-name-override":"WalletStatus","uniqueKey":"wallet.wallet_status","typeLabel":"enum\u003cstring>"},"wallet_type":{"type":"string","enum":["PRE_PAID","POST_PAID"],"x-enum-varnames":["WalletTypePrePaid","WalletTypePostPaid"],"x-speakeasy-name-override":"WalletType","uniqueKey":"wallet.wallet_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"wallet","typeLabel":"object"},"wallet_transaction":{"type":"object","properties":{"amount":{"type":"string","uniqueKey":"wallet_transaction.amount","typeLabel":"string"},"consumption_breakdown":{"type":"array","description":"ConsumptionBreakdown is set on debits: the credits drawn from each credit batch.","items":{"type":"object","properties":{"credit_transaction_id":{"type":"string","uniqueKey":"wallet_transaction.consumption_breakdown.items.[INDEX].credit_transaction_id","typeLabel":"string"},"credits":{"type":"string","uniqueKey":"wallet_transaction.consumption_breakdown.items.[INDEX].credits","typeLabel":"string"}},"x-speakeasy-name-override":"WalletTxConsumption","uniqueKey":"wallet_transaction.consumption_breakdown.items.[INDEX]","typeLabel":"object"},"uniqueKey":"wallet_transaction.consumption_breakdown","typeLabel":"object[]"},"conversion_rate":{"type":"string","description":"conversion_rate is the conversion rate for the transaction to the currency","uniqueKey":"wallet_transaction.conversion_rate","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","uniqueKey":"wallet_transaction.created_at","typeLabel":"string\u003cdate-time>"},"created_by":{"type":"string","uniqueKey":"wallet_transaction.created_by","typeLabel":"string"},"created_by_user":{"type":"object","properties":{"email":{"type":"string","description":"Empty for service accounts","uniqueKey":"wallet_transaction.created_by_user.email","typeLabel":"string"},"id":{"type":"string","uniqueKey":"wallet_transaction.created_by_user.id","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"wallet_transaction.created_by_user.metadata.additionalProperties","typeLabel":"string"},"uniqueKey":"wallet_transaction.created_by_user.metadata","typeLabel":"object"},"name":{"type":"string","uniqueKey":"wallet_transaction.created_by_user.name","typeLabel":"string"},"roles":{"type":"array","items":{"type":"string","uniqueKey":"wallet_transaction.created_by_user.roles.items.[INDEX]","typeLabel":"string"},"uniqueKey":"wallet_transaction.created_by_user.roles","typeLabel":"string[]"},"tenant":{"type":"object","properties":{"billing_details":{"type":"object","properties":{"address":{"type":"object","properties":{"address_city":{"maxLength":100,"type":"string","uniqueKey":"wallet_transaction.created_by_user.tenant.billing_details.address.address_city","typeLabel":"string"},"address_country":{"type":"string","uniqueKey":"wallet_transaction.created_by_user.tenant.billing_details.address.address_country","typeLabel":"string"},"address_line1":{"maxLength":255,"type":"string","uniqueKey":"wallet_transaction.created_by_user.tenant.billing_details.address.address_line1","typeLabel":"string"},"address_line2":{"maxLength":255,"type":"string","uniqueKey":"wallet_transaction.created_by_user.tenant.billing_details.address.address_line2","typeLabel":"string"},"address_postal_code":{"maxLength":20,"type":"string","uniqueKey":"wallet_transaction.created_by_user.tenant.billing_details.address.address_postal_code","typeLabel":"string"},"address_state":{"maxLength":100,"type":"string","uniqueKey":"wallet_transaction.created_by_user.tenant.billing_details.address.address_state","typeLabel":"string"}},"uniqueKey":"wallet_transaction.created_by_user.tenant.billing_details.address","typeLabel":"object"},"email":{"type":"string","uniqueKey":"wallet_transaction.created_by_user.tenant.billing_details.email","typeLabel":"string"},"help_email":{"type":"string","uniqueKey":"wallet_transaction.created_by_user.tenant.billing_details.help_email","typeLabel":"string"},"phone":{"type":"string","uniqueKey":"wallet_transaction.created_by_user.tenant.billing_details.phone","typeLabel":"string"}},"uniqueKey":"wallet_transaction.created_by_user.tenant.billing_details","typeLabel":"object"},"created_at":{"type":"string","format":"date-time","uniqueKey":"wallet_transaction.created_by_user.tenant.created_at","typeLabel":"string\u003cdate-time>"},"id":{"type":"string","uniqueKey":"wallet_transaction.created_by_user.tenant.id","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"wallet_transaction.created_by_user.tenant.metadata.additionalProperties","typeLabel":"string"},"x-speakeasy-name-override":"Metadata","uniqueKey":"wallet_transaction.created_by_user.tenant.metadata","typeLabel":"object"},"name":{"type":"string","uniqueKey":"wallet_transaction.created_by_user.tenant.name","typeLabel":"string"},"status":{"type":"string","uniqueKey":"wallet_transaction.created_by_user.tenant.status","typeLabel":"string"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"wallet_transaction.created_by_user.tenant.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"wallet_transaction.created_by_user.tenant","typeLabel":"object"},"type":{"type":"string","enum":["user","service_account"],"x-enum-varnames":["UserTypeUser","UserTypeServiceAccount"],"x-speakeasy-name-override":"UserType","uniqueKey":"wallet_transaction.created_by_user.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"wallet_transaction.created_by_user","typeLabel":"object"},"credit_amount":{"type":"string","uniqueKey":"wallet_transaction.credit_amount","typeLabel":"string"},"credit_balance_after":{"type":"string","uniqueKey":"wallet_transaction.credit_balance_after","typeLabel":"string"},"credit_balance_before":{"type":"string","uniqueKey":"wallet_transaction.credit_balance_before","typeLabel":"string"},"credits_available":{"type":"string","uniqueKey":"wallet_transaction.credits_available","typeLabel":"string"},"currency":{"type":"string","uniqueKey":"wallet_transaction.currency","typeLabel":"string"},"customer":{"type":"object","properties":{"address_city":{"type":"string","description":"AddressCity is the city of the customer's address","uniqueKey":"wallet_transaction.customer.address_city","typeLabel":"string"},"address_country":{"type":"string","description":"AddressCountry is the country of the customer's address (ISO 3166-1 alpha-2)","uniqueKey":"wallet_transaction.customer.address_country","typeLabel":"string"},"address_line1":{"type":"string","description":"AddressLine1 is the first line of the customer's address","uniqueKey":"wallet_transaction.customer.address_line1","typeLabel":"string"},"address_line2":{"type":"string","description":"AddressLine2 is the second line of the customer's address","uniqueKey":"wallet_transaction.customer.address_line2","typeLabel":"string"},"address_postal_code":{"type":"string","description":"AddressPostalCode is the postal code of the customer's address","uniqueKey":"wallet_transaction.customer.address_postal_code","typeLabel":"string"},"address_state":{"type":"string","description":"AddressState is the state of the customer's address","uniqueKey":"wallet_transaction.customer.address_state","typeLabel":"string"},"billing_currency":{"type":"string","description":"BillingCurrency is the fiat currency invoices are issued in; nil means charge currency is used as-is.","uniqueKey":"wallet_transaction.customer.billing_currency","typeLabel":"string"},"contact":{"type":"string","description":"Contact is an optional contact number for the customer (e.g. phone)","uniqueKey":"wallet_transaction.customer.contact","typeLabel":"string"},"contact_persons":{"type":"array","items":{"required":["first_name"],"type":"object","properties":{"first_name":{"maxLength":100,"type":"string","isRequired":true,"uniqueKey":"wallet_transaction.customer.contact_persons.items.[INDEX].first_name","typeLabel":"string"},"department":{"maxLength":100,"type":"string","uniqueKey":"wallet_transaction.customer.contact_persons.items.[INDEX].department","typeLabel":"string"},"designation":{"maxLength":100,"type":"string","uniqueKey":"wallet_transaction.customer.contact_persons.items.[INDEX].designation","typeLabel":"string"},"email":{"type":"string","uniqueKey":"wallet_transaction.customer.contact_persons.items.[INDEX].email","typeLabel":"string"},"id":{"type":"string","uniqueKey":"wallet_transaction.customer.contact_persons.items.[INDEX].id","typeLabel":"string"},"is_primary":{"type":"boolean","uniqueKey":"wallet_transaction.customer.contact_persons.items.[INDEX].is_primary","typeLabel":"boolean"},"last_name":{"maxLength":100,"type":"string","uniqueKey":"wallet_transaction.customer.contact_persons.items.[INDEX].last_name","typeLabel":"string"},"mobile":{"maxLength":20,"type":"string","uniqueKey":"wallet_transaction.customer.contact_persons.items.[INDEX].mobile","typeLabel":"string"},"salutation":{"maxLength":25,"type":"string","uniqueKey":"wallet_transaction.customer.contact_persons.items.[INDEX].salutation","typeLabel":"string"}},"uniqueKey":"wallet_transaction.customer.contact_persons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"wallet_transaction.customer.contact_persons","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","uniqueKey":"wallet_transaction.customer.created_at","typeLabel":"string\u003cdate-time>"},"created_by":{"type":"string","uniqueKey":"wallet_transaction.customer.created_by","typeLabel":"string"},"email":{"type":"string","description":"Email is the email of the customer","uniqueKey":"wallet_transaction.customer.email","typeLabel":"string"},"environment_id":{"type":"string","description":"EnvironmentID is the environment identifier for the customer","uniqueKey":"wallet_transaction.customer.environment_id","typeLabel":"string"},"external_id":{"type":"string","description":"ExternalID is the external identifier for the customer","uniqueKey":"wallet_transaction.customer.external_id","typeLabel":"string"},"id":{"type":"string","description":"ID is the unique identifier for the customer","uniqueKey":"wallet_transaction.customer.id","typeLabel":"string"},"integrations":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"},"created_by":{"type":"string","uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX].created_by","typeLabel":"string"},"entity_id":{"type":"string","uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX].entity_id","typeLabel":"string"},"entity_type":{"type":"string","enum":["customer","plan","invoice","subscription","payment","credit_note","addon","item","item_price","price","invoice_line_item","subscription_line_item"],"x-enum-varnames":["IntegrationEntityTypeCustomer","IntegrationEntityTypePlan","IntegrationEntityTypeInvoice","IntegrationEntityTypeSubscription","IntegrationEntityTypePayment","IntegrationEntityTypeCreditNote","IntegrationEntityTypeAddon","IntegrationEntityTypeItem","IntegrationEntityTypeItemPrice","IntegrationEntityTypePrice","IntegrationEntityTypeInvoiceLineItem","IntegrationEntityTypeSubscriptionLineItem"],"x-speakeasy-name-override":"IntegrationEntityType","uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX].entity_type","typeLabel":"enum\u003cstring>"},"environment_id":{"type":"string","uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX].environment_id","typeLabel":"string"},"id":{"type":"string","uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX].id","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":true,"uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX].metadata","typeLabel":"object"},"provider_entity_id":{"type":"string","uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX].provider_entity_id","typeLabel":"string"},"provider_type":{"type":"string","uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX].provider_type","typeLabel":"string"},"status":{"type":"string","enum":["published","deleted","archived"],"x-enum-varnames":["StatusPublished","StatusDeleted","StatusArchived"],"x-speakeasy-name-override":"Status","uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"tenant_id":{"type":"string","uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX].tenant_id","typeLabel":"string"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX].updated_at","typeLabel":"string\u003cdate-time>"},"updated_by":{"type":"string","uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX].updated_by","typeLabel":"string"}},"uniqueKey":"wallet_transaction.customer.integrations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"wallet_transaction.customer.integrations","typeLabel":"object[]"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"wallet_transaction.customer.metadata.additionalProperties","typeLabel":"string"},"description":"Metadata","uniqueKey":"wallet_transaction.customer.metadata","typeLabel":"object"},"name":{"type":"string","description":"Name is the name of the customer","uniqueKey":"wallet_transaction.customer.name","typeLabel":"string"},"status":{"type":"string","enum":["published","deleted","archived"],"x-enum-varnames":["StatusPublished","StatusDeleted","StatusArchived"],"x-speakeasy-name-override":"Status","uniqueKey":"wallet_transaction.customer.status","typeLabel":"enum\u003cstring>"},"tax_treatment":{"type":"string","enum":["taxable","exempt"],"x-enum-varnames":["TaxTreatmentTaxable","TaxTreatmentExempt"],"x-speakeasy-name-override":"TaxTreatment","uniqueKey":"wallet_transaction.customer.tax_treatment","typeLabel":"enum\u003cstring>"},"tenant_id":{"type":"string","uniqueKey":"wallet_transaction.customer.tenant_id","typeLabel":"string"},"timezone":{"type":"string","description":"Timezone is the customer's IANA timezone name (e.g. \"Asia/Kolkata\").\nDefaults to \"UTC\". Inherited by subscriptions at creation time.","uniqueKey":"wallet_transaction.customer.timezone","typeLabel":"string"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"wallet_transaction.customer.updated_at","typeLabel":"string\u003cdate-time>"},"updated_by":{"type":"string","uniqueKey":"wallet_transaction.customer.updated_by","typeLabel":"string"}},"description":"Customer response object containing all customer information","uniqueKey":"wallet_transaction.customer","typeLabel":"object"},"customer_id":{"type":"string","uniqueKey":"wallet_transaction.customer_id","typeLabel":"string"},"description":{"type":"string","uniqueKey":"wallet_transaction.description","typeLabel":"string"},"environment_id":{"type":"string","uniqueKey":"wallet_transaction.environment_id","typeLabel":"string"},"expiry_date":{"type":"string","format":"date-time","uniqueKey":"wallet_transaction.expiry_date","typeLabel":"string\u003cdate-time>"},"id":{"type":"string","uniqueKey":"wallet_transaction.id","typeLabel":"string"},"idempotency_key":{"type":"string","uniqueKey":"wallet_transaction.idempotency_key","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"wallet_transaction.metadata.additionalProperties","typeLabel":"string"},"x-speakeasy-name-override":"Metadata","uniqueKey":"wallet_transaction.metadata","typeLabel":"object"},"parent_transaction_id":{"type":"string","description":"ParentTransactionID is the ID of the parent wallet_transaction this row was earned from\n(the purchase tx, for a bonus grant). Empty for ordinary transactions.","uniqueKey":"wallet_transaction.parent_transaction_id","typeLabel":"string"},"priority":{"type":"integer","uniqueKey":"wallet_transaction.priority","typeLabel":"integer"},"reference_id":{"type":"string","uniqueKey":"wallet_transaction.reference_id","typeLabel":"string"},"reference_type":{"type":"string","enum":["PAYMENT","EXTERNAL","REQUEST","INVOICE"],"x-enum-varnames":["WalletTxReferenceTypePayment","WalletTxReferenceTypeExternal","WalletTxReferenceTypeRequest","WalletTxReferenceTypeInvoice"],"x-speakeasy-name-override":"WalletTxReferenceType","uniqueKey":"wallet_transaction.reference_type","typeLabel":"enum\u003cstring>"},"source_id":{"type":"string","uniqueKey":"wallet_transaction.source_id","typeLabel":"string"},"source_type":{"type":"string","enum":["INVOICE"],"x-enum-varnames":["WalletTxSourceTypeInvoice"],"x-speakeasy-name-override":"WalletTxSourceType","uniqueKey":"wallet_transaction.source_type","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["published","deleted","archived"],"x-enum-varnames":["StatusPublished","StatusDeleted","StatusArchived"],"x-speakeasy-name-override":"Status","uniqueKey":"wallet_transaction.status","typeLabel":"enum\u003cstring>"},"tenant_id":{"type":"string","uniqueKey":"wallet_transaction.tenant_id","typeLabel":"string"},"topup_conversion_rate":{"type":"string","description":"topup_conversion_rate is the conversion rate for the topup to the currency","uniqueKey":"wallet_transaction.topup_conversion_rate","typeLabel":"string"},"transaction_reason":{"type":"string","enum":["INVOICE_PAYMENT","FREE_CREDIT_GRANT","SUBSCRIPTION_CREDIT_GRANT","PURCHASED_CREDIT_INVOICED","PURCHASED_CREDIT_DIRECT","CREDIT_NOTE","CREDIT_EXPIRED","WALLET_TERMINATION","MANUAL_BALANCE_DEBIT","CREDIT_ADJUSTMENT","INVOICE_VOID_REFUND","PURCHASED_CREDIT_BONUS"],"x-enum-varnames":["TransactionReasonInvoicePayment","TransactionReasonFreeCredit","TransactionReasonSubscriptionCredit","TransactionReasonPurchasedCreditInvoiced","TransactionReasonPurchasedCreditDirect","TransactionReasonCreditNote","TransactionReasonCreditExpired","TransactionReasonWalletTermination","TransactionReasonManualBalanceDebit","TransactionReasonCreditAdjustment","TransactionReasonInvoiceVoidRefund","TransactionReasonPurchasedCreditBonus"],"x-speakeasy-name-override":"TransactionReason","uniqueKey":"wallet_transaction.transaction_reason","typeLabel":"enum\u003cstring>"},"transaction_status":{"type":"string","enum":["pending","completed","failed"],"x-enum-varnames":["TransactionStatusPending","TransactionStatusCompleted","TransactionStatusFailed"],"x-speakeasy-name-override":"TransactionStatus","uniqueKey":"wallet_transaction.transaction_status","typeLabel":"enum\u003cstring>"},"type":{"type":"string","enum":["credit","debit"],"x-enum-varnames":["TransactionTypeCredit","TransactionTypeDebit"],"x-speakeasy-name-override":"TransactionType","uniqueKey":"wallet_transaction.type","typeLabel":"enum\u003cstring>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"wallet_transaction.updated_at","typeLabel":"string\u003cdate-time>"},"updated_by":{"type":"string","uniqueKey":"wallet_transaction.updated_by","typeLabel":"string"},"wallet":{"type":"object","properties":{"alert_settings":{"type":"object","properties":{"alert_enabled":{"type":"boolean","uniqueKey":"wallet_transaction.wallet.alert_settings.alert_enabled","typeLabel":"boolean"},"alert_threshold_type":{"type":"string","enum":["absolute","percentage"],"x-enum-varnames":["AlertThresholdTypeAbsolute","AlertThresholdTypePercentage"],"x-speakeasy-name-override":"AlertThresholdType","uniqueKey":"wallet_transaction.wallet.alert_settings.alert_threshold_type","typeLabel":"enum\u003cstring>"},"critical":{"type":"object","properties":{"condition":{"type":"string","enum":["above","below"],"x-enum-varnames":["AlertConditionAbove","AlertConditionBelow"],"x-speakeasy-name-override":"AlertCondition","uniqueKey":"wallet_transaction.wallet.alert_settings.critical.condition","typeLabel":"enum\u003cstring>"},"threshold":{"type":"string","uniqueKey":"wallet_transaction.wallet.alert_settings.critical.threshold","typeLabel":"string"}},"x-speakeasy-name-override":"AlertThreshold","uniqueKey":"wallet_transaction.wallet.alert_settings.critical","typeLabel":"object"},"info":{"type":"object","properties":{"condition":{"type":"string","enum":["above","below"],"x-enum-varnames":["AlertConditionAbove","AlertConditionBelow"],"x-speakeasy-name-override":"AlertCondition","uniqueKey":"wallet_transaction.wallet.alert_settings.info.condition","typeLabel":"enum\u003cstring>"},"threshold":{"type":"string","uniqueKey":"wallet_transaction.wallet.alert_settings.info.threshold","typeLabel":"string"}},"x-speakeasy-name-override":"AlertThreshold","uniqueKey":"wallet_transaction.wallet.alert_settings.info","typeLabel":"object"},"warning":{"type":"object","properties":{"condition":{"type":"string","enum":["above","below"],"x-enum-varnames":["AlertConditionAbove","AlertConditionBelow"],"x-speakeasy-name-override":"AlertCondition","uniqueKey":"wallet_transaction.wallet.alert_settings.warning.condition","typeLabel":"enum\u003cstring>"},"threshold":{"type":"string","uniqueKey":"wallet_transaction.wallet.alert_settings.warning.threshold","typeLabel":"string"}},"x-speakeasy-name-override":"AlertThreshold","uniqueKey":"wallet_transaction.wallet.alert_settings.warning","typeLabel":"object"}},"x-speakeasy-name-override":"AlertSettings","uniqueKey":"wallet_transaction.wallet.alert_settings","typeLabel":"object"},"alert_state":{"type":"string","enum":["ok","info","warning","in_alarm"],"x-enum-varnames":["AlertStateOk","AlertStateInfo","AlertStateWarning","AlertStateInAlarm"],"x-speakeasy-name-override":"AlertState","uniqueKey":"wallet_transaction.wallet.alert_state","typeLabel":"enum\u003cstring>"},"auto_topup":{"type":"object","properties":{"amount":{"type":"number","uniqueKey":"wallet_transaction.wallet.auto_topup.amount","typeLabel":"number"},"cooldown":{"type":"object","properties":{"unit":{"type":"string","enum":["second","minute","hour","day"],"x-enum-varnames":["DurationUnitSecond","DurationUnitMinute","DurationUnitHour","DurationUnitDay"],"x-speakeasy-name-override":"DurationUnit","uniqueKey":"wallet_transaction.wallet.auto_topup.cooldown.unit","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","uniqueKey":"wallet_transaction.wallet.auto_topup.cooldown.value","typeLabel":"integer"}},"enum":["3600000000000"],"x-enum-varnames":["EntitlementGrantMinDuration"],"x-speakeasy-name-override":"Duration","uniqueKey":"wallet_transaction.wallet.auto_topup.cooldown","typeLabel":"object"},"enabled":{"type":"boolean","uniqueKey":"wallet_transaction.wallet.auto_topup.enabled","typeLabel":"boolean"},"invoicing":{"type":"boolean","uniqueKey":"wallet_transaction.wallet.auto_topup.invoicing","typeLabel":"boolean"},"threshold":{"type":"number","uniqueKey":"wallet_transaction.wallet.auto_topup.threshold","typeLabel":"number"}},"x-speakeasy-name-override":"AutoTopup","uniqueKey":"wallet_transaction.wallet.auto_topup","typeLabel":"object"},"balance":{"type":"string","uniqueKey":"wallet_transaction.wallet.balance","typeLabel":"string"},"config":{"type":"object","properties":{"allowed_price_types":{"type":"array","description":"AllowedPriceTypes is a list of price types that are allowed for the wallet\nnil means all price types are allowed","items":{"type":"string","enum":["ALL","USAGE","FIXED"],"x-enum-varnames":["WalletConfigPriceTypeAll","WalletConfigPriceTypeUsage","WalletConfigPriceTypeFixed"],"x-speakeasy-name-override":"WalletConfigPriceType","uniqueKey":"wallet_transaction.wallet.config.allowed_price_types.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"wallet_transaction.wallet.config.allowed_price_types","typeLabel":"enum\u003cstring>[]"}},"x-speakeasy-name-override":"WalletConfig","uniqueKey":"wallet_transaction.wallet.config","typeLabel":"object"},"conversion_rate":{"type":"string","description":"amount in the currency = number of credits * conversion_rate\nex if conversion_rate is 1, then 1 USD = 1 credit\nex if conversion_rate is 2, then 1 USD = 0.5 credits\nex if conversion_rate is 0.5, then 1 USD = 2 credits","uniqueKey":"wallet_transaction.wallet.conversion_rate","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","uniqueKey":"wallet_transaction.wallet.created_at","typeLabel":"string\u003cdate-time>"},"created_by":{"type":"string","uniqueKey":"wallet_transaction.wallet.created_by","typeLabel":"string"},"credit_balance":{"type":"string","uniqueKey":"wallet_transaction.wallet.credit_balance","typeLabel":"string"},"credits_available_breakdown":{"type":"object","properties":{"free":{"type":"string","uniqueKey":"wallet_transaction.wallet.credits_available_breakdown.free","typeLabel":"string"},"purchased":{"type":"string","uniqueKey":"wallet_transaction.wallet.credits_available_breakdown.purchased","typeLabel":"string"}},"x-speakeasy-name-override":"CreditBreakdown","uniqueKey":"wallet_transaction.wallet.credits_available_breakdown","typeLabel":"object"},"currency":{"type":"string","uniqueKey":"wallet_transaction.wallet.currency","typeLabel":"string"},"customer_id":{"type":"string","uniqueKey":"wallet_transaction.wallet.customer_id","typeLabel":"string"},"description":{"type":"string","uniqueKey":"wallet_transaction.wallet.description","typeLabel":"string"},"environment_id":{"type":"string","uniqueKey":"wallet_transaction.wallet.environment_id","typeLabel":"string"},"id":{"type":"string","uniqueKey":"wallet_transaction.wallet.id","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"wallet_transaction.wallet.metadata.additionalProperties","typeLabel":"string"},"x-speakeasy-name-override":"Metadata","uniqueKey":"wallet_transaction.wallet.metadata","typeLabel":"object"},"name":{"type":"string","uniqueKey":"wallet_transaction.wallet.name","typeLabel":"string"},"real_time_balance":{"type":"string","uniqueKey":"wallet_transaction.wallet.real_time_balance","typeLabel":"string"},"real_time_credit_balance":{"type":"string","uniqueKey":"wallet_transaction.wallet.real_time_credit_balance","typeLabel":"string"},"status":{"type":"string","enum":["published","deleted","archived"],"x-enum-varnames":["StatusPublished","StatusDeleted","StatusArchived"],"x-speakeasy-name-override":"Status","uniqueKey":"wallet_transaction.wallet.status","typeLabel":"enum\u003cstring>"},"tenant_id":{"type":"string","uniqueKey":"wallet_transaction.wallet.tenant_id","typeLabel":"string"},"topup_conversion_rate":{"type":"string","description":"topup_conversion_rate is the conversion rate for the topup to the currency\nex if topup_conversion_rate is 1, then 1 USD = 1 credit\nex if topup_conversion_rate is 2, then 1 USD = 0.5 credits\nex if topup_conversion_rate is 0.5, then 1 USD = 2 credits","uniqueKey":"wallet_transaction.wallet.topup_conversion_rate","typeLabel":"string"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"wallet_transaction.wallet.updated_at","typeLabel":"string\u003cdate-time>"},"updated_by":{"type":"string","uniqueKey":"wallet_transaction.wallet.updated_by","typeLabel":"string"},"wallet_status":{"type":"string","enum":["active","frozen","closed"],"x-enum-varnames":["WalletStatusActive","WalletStatusFrozen","WalletStatusClosed"],"x-speakeasy-name-override":"WalletStatus","uniqueKey":"wallet_transaction.wallet.wallet_status","typeLabel":"enum\u003cstring>"},"wallet_type":{"type":"string","enum":["PRE_PAID","POST_PAID"],"x-enum-varnames":["WalletTypePrePaid","WalletTypePostPaid"],"x-speakeasy-name-override":"WalletType","uniqueKey":"wallet_transaction.wallet.wallet_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"wallet_transaction.wallet","typeLabel":"object"},"wallet_id":{"type":"string","uniqueKey":"wallet_transaction.wallet_id","typeLabel":"string"}},"uniqueKey":"wallet_transaction","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"checkout_session":{"action":"create_subscription","cancel_url":"\u003cstring>","cancelled_at":"2023-11-07T05:31:56Z","checkout_invoice_id":"\u003cstring>","checkout_payment_id":"\u003cstring>","checkout_status":"initiated","completed_at":"2023-11-07T05:31:56Z","created_at":"2023-11-07T05:31:56Z","customer_id":"\u003cstring>","entity_creation_result":{"entity_id":"\u003cstring>","status":"created"},"expires_at":"2023-11-07T05:31:56Z","failure_reason":"\u003cstring>","failure_url":"\u003cstring>","id":"\u003cstring>","idempotency_key":"\u003cstring>","metadata":{},"next_poll_after_ms":123,"payment":{"gateway":"\u003cstring>","id":"\u003cstring>","status":"INITIATED"},"payment_action":{"type":"checkout_url","url":"\u003cstring>"},"payment_provider":"razorpay","stale":true,"success_url":"\u003cstring>","terminal":true,"updated_at":"2023-11-07T05:31:56Z"},"invoice_id":"\u003cstring>","wallet":{"alert_settings":{"alert_enabled":true,"alert_threshold_type":"absolute","critical":{"condition":"above","threshold":"\u003cstring>"},"info":{"condition":"above","threshold":"\u003cstring>"},"warning":{"condition":"above","threshold":"\u003cstring>"}},"alert_state":"ok","auto_topup":{"amount":123,"cooldown":"3600000000000","enabled":true,"invoicing":true,"threshold":123},"balance":"\u003cstring>","config":{"allowed_price_types":["ALL"]},"conversion_rate":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","created_by":"\u003cstring>","credit_balance":"\u003cstring>","credits_available_breakdown":{"free":"\u003cstring>","purchased":"\u003cstring>"},"currency":"\u003cstring>","customer_id":"\u003cstring>","description":"\u003cstring>","environment_id":"\u003cstring>","id":"\u003cstring>","metadata":{},"name":"\u003cstring>","real_time_balance":"\u003cstring>","real_time_credit_balance":"\u003cstring>","status":"published","tenant_id":"\u003cstring>","topup_conversion_rate":"\u003cstring>","updated_at":"2023-11-07T05:31:56Z","updated_by":"\u003cstring>","wallet_status":"active","wallet_type":"PRE_PAID"},"wallet_transaction":{"amount":"\u003cstring>","consumption_breakdown":[{"credit_transaction_id":"\u003cstring>","credits":"\u003cstring>"}],"conversion_rate":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","created_by":"\u003cstring>","created_by_user":{"email":"\u003cstring>","id":"\u003cstring>","metadata":{},"name":"\u003cstring>","roles":["\u003cstring>"],"tenant":{"billing_details":{"address":{"address_city":"\u003cstring>","address_country":"\u003cstring>","address_line1":"\u003cstring>","address_line2":"\u003cstring>","address_postal_code":"\u003cstring>","address_state":"\u003cstring>"},"email":"\u003cstring>","help_email":"\u003cstring>","phone":"\u003cstring>"},"created_at":"2023-11-07T05:31:56Z","id":"\u003cstring>","metadata":{},"name":"\u003cstring>","status":"\u003cstring>","updated_at":"2023-11-07T05:31:56Z"},"type":"user"},"credit_amount":"\u003cstring>","credit_balance_after":"\u003cstring>","credit_balance_before":"\u003cstring>","credits_available":"\u003cstring>","currency":"\u003cstring>","customer":{"address_city":"\u003cstring>","address_country":"\u003cstring>","address_line1":"\u003cstring>","address_line2":"\u003cstring>","address_postal_code":"\u003cstring>","address_state":"\u003cstring>","billing_currency":"\u003cstring>","contact":"\u003cstring>","contact_persons":[{"first_name":"\u003cstring>","department":"\u003cstring>","designation":"\u003cstring>","email":"\u003cstring>","id":"\u003cstring>","is_primary":true,"last_name":"\u003cstring>","mobile":"\u003cstring>","salutation":"\u003cstring>"}],"created_at":"2023-11-07T05:31:56Z","created_by":"\u003cstring>","email":"\u003cstring>","environment_id":"\u003cstring>","external_id":"\u003cstring>","id":"\u003cstring>","integrations":[{"created_at":"2023-11-07T05:31:56Z","created_by":"\u003cstring>","entity_id":"\u003cstring>","entity_type":"customer","environment_id":"\u003cstring>","id":"\u003cstring>","metadata":{},"provider_entity_id":"\u003cstring>","provider_type":"\u003cstring>","status":"published","tenant_id":"\u003cstring>","updated_at":"2023-11-07T05:31:56Z","updated_by":"\u003cstring>"}],"metadata":{},"name":"\u003cstring>","status":"published","tax_treatment":"taxable","tenant_id":"\u003cstring>","timezone":"\u003cstring>","updated_at":"2023-11-07T05:31:56Z","updated_by":"\u003cstring>"},"customer_id":"\u003cstring>","description":"\u003cstring>","environment_id":"\u003cstring>","expiry_date":"2023-11-07T05:31:56Z","id":"\u003cstring>","idempotency_key":"\u003cstring>","metadata":{},"parent_transaction_id":"\u003cstring>","priority":123,"reference_id":"\u003cstring>","reference_type":"PAYMENT","source_id":"\u003cstring>","source_type":"INVOICE","status":"published","tenant_id":"\u003cstring>","topup_conversion_rate":"\u003cstring>","transaction_reason":"INVOICE_PAYMENT","transaction_status":"pending","type":"credit","updated_at":"2023-11-07T05:31:56Z","updated_by":"\u003cstring>","wallet":{"alert_settings":{"alert_enabled":true,"alert_threshold_type":"absolute","critical":{"condition":"above","threshold":"\u003cstring>"},"info":{"condition":"above","threshold":"\u003cstring>"},"warning":{"condition":"above","threshold":"\u003cstring>"}},"alert_state":"ok","auto_topup":{"amount":123,"cooldown":"3600000000000","enabled":true,"invoicing":true,"threshold":123},"balance":"\u003cstring>","config":{"allowed_price_types":["ALL"]},"conversion_rate":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","created_by":"\u003cstring>","credit_balance":"\u003cstring>","credits_available_breakdown":{"free":"\u003cstring>","purchased":"\u003cstring>"},"currency":"\u003cstring>","customer_id":"\u003cstring>","description":"\u003cstring>","environment_id":"\u003cstring>","id":"\u003cstring>","metadata":{},"name":"\u003cstring>","real_time_balance":"\u003cstring>","real_time_credit_balance":"\u003cstring>","status":"published","tenant_id":"\u003cstring>","topup_conversion_rate":"\u003cstring>","updated_at":"2023-11-07T05:31:56Z","updated_by":"\u003cstring>","wallet_status":"active","wallet_type":"PRE_PAID"},"wallet_id":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"35421d72-bfdf-4e1f-b1b6-9f03c175bdfc":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","enum":["http_client_error","system_error","internal_error","not_found","already_exists","version_conflict","validation_error","invalid_operation","permission_denied","database_error","service_unavailable","too_many_requests","not_implemented"],"x-enum-varnames":["ErrCodeHTTPClient","ErrCodeSystemError","ErrCodeInternalError","ErrCodeNotFound","ErrCodeAlreadyExists","ErrCodeVersionConflict","ErrCodeValidation","ErrCodeInvalidOperation","ErrCodePermissionDenied","ErrCodeDatabase","ErrCodeServiceUnavailable","ErrCodeTooManyRequests","ErrCodeNotImplemented"],"x-speakeasy-name-override":"ErrorCode","uniqueKey":"code","typeLabel":"enum\u003cstring>"},"http_status_code":{"type":"integer","uniqueKey":"http_status_code","typeLabel":"integer"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"x-speakeasy-name-override":"ErrorResponse","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"http_client_error","http_status_code":123,"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"44863f4c-ade4-44b1-ae80-0dcdb05c27cc":{"description":"Resource not found","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","enum":["http_client_error","system_error","internal_error","not_found","already_exists","version_conflict","validation_error","invalid_operation","permission_denied","database_error","service_unavailable","too_many_requests","not_implemented"],"x-enum-varnames":["ErrCodeHTTPClient","ErrCodeSystemError","ErrCodeInternalError","ErrCodeNotFound","ErrCodeAlreadyExists","ErrCodeVersionConflict","ErrCodeValidation","ErrCodeInvalidOperation","ErrCodePermissionDenied","ErrCodeDatabase","ErrCodeServiceUnavailable","ErrCodeTooManyRequests","ErrCodeNotImplemented"],"x-speakeasy-name-override":"ErrorCode","uniqueKey":"code","typeLabel":"enum\u003cstring>"},"http_status_code":{"type":"integer","uniqueKey":"http_status_code","typeLabel":"integer"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"x-speakeasy-name-override":"ErrorResponse","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"http_client_error","http_status_code":123,"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"036d6d77-3b93-4b04-b300-76b304b7c3bb":{"description":"Server error","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","enum":["http_client_error","system_error","internal_error","not_found","already_exists","version_conflict","validation_error","invalid_operation","permission_denied","database_error","service_unavailable","too_many_requests","not_implemented"],"x-enum-varnames":["ErrCodeHTTPClient","ErrCodeSystemError","ErrCodeInternalError","ErrCodeNotFound","ErrCodeAlreadyExists","ErrCodeVersionConflict","ErrCodeValidation","ErrCodeInvalidOperation","ErrCodePermissionDenied","ErrCodeDatabase","ErrCodeServiceUnavailable","ErrCodeTooManyRequests","ErrCodeNotImplemented"],"x-speakeasy-name-override":"ErrorCode","uniqueKey":"code","typeLabel":"enum\u003cstring>"},"http_status_code":{"type":"integer","uniqueKey":"http_status_code","typeLabel":"integer"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"x-speakeasy-name-override":"ErrorResponse","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"http_client_error","http_status_code":123,"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"48a6bf5c-46d7-4a7f-b7b0-c87897e36d37":{"ApiKeyAuth":{"type":"apiKey","description":"Enter your API key in the format *x-api-key \u0026lt;api-key\u0026gt;**","name":"x-api-key","in":"header","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"97695df4-4ae7-4c34-afed-a200e709ee91":{"url":"https://us.api.flexprice.io/v1","description":"US Region"},"62b8be32-b3b9-424e-8a59-4ea993240e33":{"url":"https://api.cloud.flexprice.io/v1","description":"India Region"},"655ef252-553d-455c-afe8-5274ab086d1e":{"url":"https://canada.api.flexprice.io/v1","description":"Canada Region"},"1200ece7-fca2-406b-bd15-745b9395d8a0":{"url":"https://eu.api.flexprice.io/v1","description":"EU Region"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","description":"Enter your API key in the format *x-api-key \u0026lt;api-key\u0026gt;**","name":"x-api-key","in":"header","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"Enter your API key in the format *x-api-key \u0026lt;api-key\u0026gt;**","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"https://swagger.flexprice.io"},"subdomain":"flexprice","siteName":"Flexprice","title":"Top up wallet - Flexprice","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T14:54:24.188Z","originalFileLocation":"api-reference/wallets/top-up-wallet.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Use when adding funds to a wallet (e.g. top-up, refund, or manual credit). Supports optional idempotency via reference.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Flexprice\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Top up wallet - Flexprice\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use when adding funds to a wallet (e.g. top-up, refund, or manual credit). Supports optional idempotency via reference.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Flexprice\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.flexprice.io/api-reference/wallets/top-up-wallet\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://flexprice.mintlify.site/_mintlify/api/og/v2?division=Wallets\u0026amp;title=Top+up+wallet\u0026amp;description=Use+when+adding+funds+to+a+wallet+%28e.g.+top-up%2C+refund%2C+or+manual+credit%29.+Supports+optional+idempotency+via+reference.\u0026amp;theme=792146983879b831a3a27cee\u0026amp;signature=043185681f9b0ce81d058ae169eaf65f975f1aaab1aa39b3cbb634b29db0ec2c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Top up wallet - Flexprice\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use when adding funds to a wallet (e.g. top-up, refund, or manual credit). Supports optional idempotency via reference.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://flexprice.mintlify.site/_mintlify/api/og/v2?division=Wallets\u0026amp;title=Top+up+wallet\u0026amp;description=Use+when+adding+funds+to+a+wallet+%28e.g.+top-up%2C+refund%2C+or+manual+credit%29.+Supports+optional+idempotency+via+reference.\u0026amp;theme=792146983879b831a3a27cee\u0026amp;signature=043185681f9b0ce81d058ae169eaf65f975f1aaab1aa39b3cbb634b29db0ec2c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/flexprice/7xM46OYu1enH2rig/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Flexprice\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#15547c\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.flexprice.io/api-reference/wallets/top-up-wallet\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/wallets/top-up-wallet.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.flexprice.io/#organization\",\"name\":\"Flexprice\",\"url\":\"https://docs.flexprice.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/flexprice/Qokjirde4CQUcFy8/images/FlexpriceWordMarkDark.png?fit=max\u0026auto=format\u0026n=Qokjirde4CQUcFy8\u0026q=85\u0026s=d706a1b6139418c2d57ba902fb0b6de4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.flexprice.io#website\",\"name\":\"Flexprice\",\"url\":\"https://docs.flexprice.io\",\"publisher\":{\"@id\":\"https://docs.flexprice.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.flexprice.io/api-reference/wallets/top-up-wallet#webpage\",\"url\":\"https://docs.flexprice.io/api-reference/wallets/top-up-wallet\",\"name\":\"Top up wallet\",\"description\":\"Use when adding funds to a wallet (e.g. top-up, refund, or manual credit). Supports optional idempotency via reference.\",\"dateModified\":\"2026-11-05T14:54:24.188Z\",\"isPartOf\":{\"@id\":\"https://docs.flexprice.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.flexprice.io/api-reference/wallets/top-up-wallet#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.flexprice.io/api-reference/wallets/top-up-wallet#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Resources\",\"item\":\"https://docs.flexprice.io/api-reference/accounting-periods/query-accounting-periods\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Wallets\",\"item\":\"https://docs.flexprice.io/api-reference/wallets/get-customer-wallets\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Top up wallet\",\"item\":\"https://docs.flexprice.io/api-reference/wallets/top-up-wallet\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.flexprice.io/api-reference/wallets/top-up-wallet#apireference\",\"headline\":\"Top up wallet\",\"name\":\"Top up wallet\",\"description\":\"Use when adding funds to a wallet (e.g. top-up, refund, or manual credit). Supports optional idempotency via reference.\",\"url\":\"https://docs.flexprice.io/api-reference/wallets/top-up-wallet\",\"mainEntityOfPage\":{\"@id\":\"https://docs.flexprice.io/api-reference/wallets/top-up-wallet#webpage\"},\"dateModified\":\"2026-11-05T14:54:24.188Z\",\"publisher\":{\"@id\":\"https://docs.flexprice.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.flexprice.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Flexprice\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Flexprice","nav":{"global":{"anchors":[{"anchor":"Support","icon":"https://mintlify.s3.us-west-1.amazonaws.com/flexprice/images/anchors/mail.svg","href":"mailto:support@flexprice.io"},{"anchor":"Community","icon":"https://mintlify.s3.us-west-1.amazonaws.com/flexprice/images/anchors/slack.svg","href":"https://join.slack.com/t/flexpricecommunity/shared_invite/zt-39uat51l0-n8JmSikHZP~bHJNXladeaQ"},{"anchor":"Website","icon":"https://mintlify.s3.us-west-1.amazonaws.com/flexprice/images/anchors/flexprice.svg","href":"https://flexprice.io/"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/welcome-to-flexprice"}]},{"tab":"Cookbooks","pages":[{"title":"Cookbooks","href":"/cookbooks/billing-recipes/usage-based-pricing"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"REST API","href":"/api-reference/introduction"},{"title":"Pagination","href":"/api-reference/pagination"},{"title":"Error responses","href":"/api-reference/error-responses"}]},{"group":"Resources","pages":[{"group":"Accounting Periods","pages":[{"title":"Query accounting periods","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /accounting_periods/search","href":"/api-reference/accounting-periods/query-accounting-periods"}]},{"group":"Activity","pages":[{"title":"List activity","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /activity","href":"/api-reference/activity/list-activity"},{"title":"Get activity","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /activity/{id}","href":"/api-reference/activity/get-activity"}]},{"group":"Addons","pages":[{"title":"Create addon","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /addons","href":"/api-reference/addons/create-addon"},{"title":"Get addon by lookup key","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /addons/lookup/{lookup_key}","href":"/api-reference/addons/get-addon-by-lookup-key"},{"title":"Query addons","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /addons/search","href":"/api-reference/addons/query-addons"},{"title":"Get addon","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /addons/{id}","href":"/api-reference/addons/get-addon"},{"title":"Update addon","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /addons/{id}","href":"/api-reference/addons/update-addon"},{"title":"Delete addon","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /addons/{id}","href":"/api-reference/addons/delete-addon"},{"title":"Synchronize addon prices","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /addons/{id}/sync/subscriptions","href":"/api-reference/addons/synchronize-addon-prices"}]},{"group":"Credit Grants","pages":[{"title":"Get addon credit grants","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /addons/{id}/creditgrants","href":"/api-reference/credit-grants/get-addon-credit-grants"},{"title":"Create credit grant","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /creditgrants","href":"/api-reference/credit-grants/create-credit-grant"},{"title":"Get credit grant","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /creditgrants/{id}","href":"/api-reference/credit-grants/get-credit-grant"},{"title":"Update credit grant","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /creditgrants/{id}","href":"/api-reference/credit-grants/update-credit-grant"},{"title":"Delete credit grant","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /creditgrants/{id}","href":"/api-reference/credit-grants/delete-credit-grant"},{"title":"Get plan credit grants","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /plans/{id}/creditgrants","href":"/api-reference/credit-grants/get-plan-credit-grants"}]},{"group":"Entitlements","pages":[{"title":"Get addon entitlements","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /addons/{id}/entitlements","href":"/api-reference/entitlements/get-addon-entitlements"},{"title":"Create entitlement","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /entitlements","href":"/api-reference/entitlements/create-entitlement"},{"title":"Create entitlements in bulk","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /entitlements/bulk","href":"/api-reference/entitlements/create-entitlements-in-bulk"},{"title":"Query entitlements","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /entitlements/search","href":"/api-reference/entitlements/query-entitlements"},{"title":"Get entitlement","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /entitlements/{id}","href":"/api-reference/entitlements/get-entitlement"},{"title":"Update entitlement","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /entitlements/{id}","href":"/api-reference/entitlements/update-entitlement"},{"title":"Delete entitlement","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /entitlements/{id}","href":"/api-reference/entitlements/delete-entitlement"},{"title":"Get plan entitlements","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /plans/{id}/entitlements","href":"/api-reference/entitlements/get-plan-entitlements"}]},{"group":"Alerts","pages":[{"title":"Query alert logs","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /alerts/search","href":"/api-reference/alerts/query-alert-logs"}]},{"group":"AlertSettings","pages":[{"title":"Create alert settings","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /alerts/setting","href":"/api-reference/alertsettings/create-alert-settings"},{"title":"Query alert settings","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /alerts/setting/search","href":"/api-reference/alertsettings/query-alert-settings"},{"title":"Get alert settings","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /alerts/setting/{id}","href":"/api-reference/alertsettings/get-alert-settings"},{"title":"Update alert settings","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /alerts/setting/{id}","href":"/api-reference/alertsettings/update-alert-settings"},{"title":"Delete alert settings","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /alerts/setting/{id}","href":"/api-reference/alertsettings/delete-alert-settings"}]},{"group":"Analytics","pages":[{"title":"Run an ad-hoc analytics query","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /analytics/query","href":"/api-reference/analytics/run-an-ad-hoc-analytics-query"},{"title":"List financial reports","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /analytics/reports","href":"/api-reference/analytics/list-financial-reports"},{"title":"Run a financial report","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /analytics/reports/{key}/query","href":"/api-reference/analytics/run-a-financial-report"},{"title":"Query revenue analytics","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /analytics/revenue","href":"/api-reference/analytics/query-revenue-analytics"},{"title":"List analytics views","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /analytics/views","href":"/api-reference/analytics/list-analytics-views"},{"title":"Create an analytics view","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /analytics/views","href":"/api-reference/analytics/create-an-analytics-view"},{"title":"Get an analytics view","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /analytics/views/{id}","href":"/api-reference/analytics/get-an-analytics-view"},{"title":"Update an analytics view","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /analytics/views/{id}","href":"/api-reference/analytics/update-an-analytics-view"},{"title":"Delete an analytics view","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /analytics/views/{id}","href":"/api-reference/analytics/delete-an-analytics-view"},{"title":"Query an analytics view","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /analytics/views/{id}/query","href":"/api-reference/analytics/query-an-analytics-view"}]},{"group":"Checkout","pages":[{"title":"Create checkout session","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /checkout/sessions","href":"/api-reference/checkout/create-checkout-session"},{"title":"Get checkout session","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /checkout/sessions/{id}","href":"/api-reference/checkout/get-checkout-session"},{"title":"Delete checkout session","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /checkout/sessions/{id}","href":"/api-reference/checkout/delete-checkout-session"},{"title":"Cancel checkout session","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /checkout/sessions/{id}/cancel","href":"/api-reference/checkout/cancel-checkout-session"}]},{"group":"Commitments","pages":[{"title":"Create commitment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /commitments","href":"/api-reference/commitments/create-commitment"},{"title":"Preview commitment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /commitments/preview","href":"/api-reference/commitments/preview-commitment"},{"title":"Query commitments","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /commitments/search","href":"/api-reference/commitments/query-commitments"},{"title":"Get commitment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /commitments/{id}","href":"/api-reference/commitments/get-commitment"},{"title":"Update commitment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /commitments/{id}","href":"/api-reference/commitments/update-commitment"},{"title":"Get billing terms","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /commitments/{id}/billing-terms","href":"/api-reference/commitments/get-billing-terms"},{"title":"Edit billing terms","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /commitments/{id}/billing-terms","href":"/api-reference/commitments/edit-billing-terms"},{"title":"Preview billing terms edit","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /commitments/{id}/billing-terms/preview","href":"/api-reference/commitments/preview-billing-terms-edit"},{"title":"List instalments","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /commitments/{id}/instalments","href":"/api-reference/commitments/list-instalments"},{"title":"Trigger instalment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /commitments/{id}/instalments/{instalment_id}/trigger","href":"/api-reference/commitments/trigger-instalment"},{"title":"Terminate commitment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /commitments/{id}/terminate","href":"/api-reference/commitments/terminate-commitment"}]},{"group":"Contracts","pages":[{"title":"Query contracts","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /contracts/search","href":"/api-reference/contracts/query-contracts"},{"title":"Get contract","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /contracts/{id}","href":"/api-reference/contracts/get-contract"}]},{"group":"Costs","pages":[{"title":"Create costsheet","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /costs","href":"/api-reference/costs/create-costsheet"},{"title":"Get active costsheet","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /costs/active","href":"/api-reference/costs/get-active-costsheet"},{"title":"Get combined revenue and cost analytics","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /costs/analytics","href":"/api-reference/costs/get-combined-revenue-and-cost-analytics"},{"title":"Query costsheets","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /costs/search","href":"/api-reference/costs/query-costsheets"},{"title":"Get costsheet","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /costs/{id}","href":"/api-reference/costs/get-costsheet"},{"title":"Update costsheet","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /costs/{id}","href":"/api-reference/costs/update-costsheet"},{"title":"Delete costsheet","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /costs/{id}","href":"/api-reference/costs/delete-costsheet"}]},{"group":"Coupons","pages":[{"title":"Create coupon","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /coupons","href":"/api-reference/coupons/create-coupon"},{"title":"Get coupon by code","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /coupons/code/{code}","href":"/api-reference/coupons/get-coupon-by-code"},{"title":"Query coupons","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /coupons/search","href":"/api-reference/coupons/query-coupons"},{"title":"Get coupon","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /coupons/{id}","href":"/api-reference/coupons/get-coupon"},{"title":"Update coupon","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /coupons/{id}","href":"/api-reference/coupons/update-coupon"},{"title":"Delete coupon","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /coupons/{id}","href":"/api-reference/coupons/delete-coupon"}]},{"group":"Coupon Associations","pages":[{"title":"List coupon associations","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /coupons/associations","href":"/api-reference/coupon-associations/list-coupon-associations"},{"title":"Get coupon association","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /coupons/associations/{id}","href":"/api-reference/coupon-associations/get-coupon-association"}]},{"group":"Credit Notes","pages":[{"title":"Create credit note","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /creditnotes","href":"/api-reference/credit-notes/create-credit-note"},{"title":"Get credit note","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /creditnotes/{id}","href":"/api-reference/credit-notes/get-credit-note"},{"title":"Finalize credit note","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /creditnotes/{id}/finalize","href":"/api-reference/credit-notes/finalize-credit-note"},{"title":"Void credit note","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /creditnotes/{id}/void","href":"/api-reference/credit-notes/void-credit-note"}]},{"group":"Customers","pages":[{"title":"Update customer","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /customers","href":"/api-reference/customers/update-customer"},{"title":"Create customer","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /customers","href":"/api-reference/customers/create-customer"},{"title":"Get customer by external ID","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /customers/external/{external_id}","href":"/api-reference/customers/get-customer-by-external-id"},{"title":"Get customer entitlements by external ID","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /customers/external/{external_id}/entitlements","href":"/api-reference/customers/get-customer-entitlements-by-external-id"},{"title":"Get subscriptions for customer by external ID","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /customers/external/{external_id}/subscriptions","href":"/api-reference/customers/get-subscriptions-for-customer-by-external-id"},{"title":"Create customer portal session","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /customers/portal/{external_id}","href":"/api-reference/customers/create-customer-portal-session"},{"title":"Query customers","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /customers/search","href":"/api-reference/customers/query-customers"},{"title":"Get customer usage summary","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /customers/usage","href":"/api-reference/customers/get-customer-usage-summary"},{"title":"Get customer","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /customers/{id}","href":"/api-reference/customers/get-customer"},{"title":"Delete customer","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /customers/{id}","href":"/api-reference/customers/delete-customer"},{"title":"Get customer entitlements","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /customers/{id}/entitlements","href":"/api-reference/customers/get-customer-entitlements"},{"title":"Get upcoming credit grant applications","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /customers/{id}/grants/upcoming","href":"/api-reference/customers/get-upcoming-credit-grant-applications"},{"title":"List customer payment methods","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /customers/{id}/payment-methods","href":"/api-reference/customers/list-customer-payment-methods"}]},{"group":"Wallets","pages":[{"title":"Get Customer Wallets","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /customers/wallets","href":"/api-reference/wallets/get-customer-wallets"},{"title":"Get wallets by customer ID","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /customers/{id}/wallets","href":"/api-reference/wallets/get-wallets-by-customer-id"},{"title":"Create a new wallet","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /wallets","href":"/api-reference/wallets/create-a-new-wallet"},{"title":"Query wallets","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /wallets/search","href":"/api-reference/wallets/query-wallets"},{"title":"Query wallet transactions","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /wallets/transactions/search","href":"/api-reference/wallets/query-wallet-transactions"},{"title":"Get wallet","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /wallets/{id}","href":"/api-reference/wallets/get-wallet"},{"title":"Update a wallet","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /wallets/{id}","href":"/api-reference/wallets/update-a-wallet"},{"title":"Get wallet balance","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /wallets/{id}/balance/real-time","href":"/api-reference/wallets/get-wallet-balance"},{"title":"Terminate a wallet","description":"Use when closing a customer wallet (e.g. churn or migration). Closes the wallet and applies remaining balance per policy (refund or forfeit).","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /wallets/{id}/terminate","href":"/api-reference/wallets/terminate-a-wallet"},{"title":"Top up wallet","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /wallets/{id}/top-up","href":"/api-reference/wallets/top-up-wallet"},{"title":"Get wallet transactions","description":"Use when showing transaction history for a wallet (e.g. credit/debit log or audit). Returns a paginated list; supports limit, offset, and filters.","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /wallets/{id}/transactions","href":"/api-reference/wallets/get-wallet-transactions"}]},{"group":"Invoices","pages":[{"title":"Get customer invoice summary","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /customers/{id}/invoices/summary","href":"/api-reference/invoices/get-customer-invoice-summary"},{"title":"Create one-off invoice","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /invoices","href":"/api-reference/invoices/create-one-off-invoice"},{"title":"Get invoice preview","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /invoices/preview","href":"/api-reference/invoices/get-invoice-preview"},{"title":"Query invoices","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /invoices/search","href":"/api-reference/invoices/query-invoices"},{"title":"Get invoice","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /invoices/{id}","href":"/api-reference/invoices/get-invoice"},{"title":"Update invoice","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /invoices/{id}","href":"/api-reference/invoices/update-invoice"},{"title":"Trigger invoice communication webhook","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /invoices/{id}/comms/trigger","href":"/api-reference/invoices/trigger-invoice-communication-webhook"},{"title":"Finalize invoice","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /invoices/{id}/finalize","href":"/api-reference/invoices/finalize-invoice"},{"title":"Execute invoice modification","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /invoices/{id}/modify/execute","href":"/api-reference/invoices/execute-invoice-modification"},{"title":"Update invoice payment status","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /invoices/{id}/payment","href":"/api-reference/invoices/update-invoice-payment-status"},{"title":"Attempt invoice payment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /invoices/{id}/payment/attempt","href":"/api-reference/invoices/attempt-invoice-payment"},{"title":"Get invoice PDF","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /invoices/{id}/pdf","href":"/api-reference/invoices/get-invoice-pdf"},{"title":"Recalculate invoice (voided invoice)","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /invoices/{id}/recalculate","href":"/api-reference/invoices/recalculate-invoice-voided-invoice"},{"title":"Recalculate draft invoice (v2)","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /invoices/{id}/recalculate-v2","href":"/api-reference/invoices/recalculate-draft-invoice-v2"},{"title":"Void invoice","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /invoices/{id}/void","href":"/api-reference/invoices/void-invoice"}]},{"group":"Environments","pages":[{"title":"Clone an environment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /environments/{id}/clone","href":"/api-reference/environments/clone-an-environment"}]},{"group":"Events","pages":[{"title":"Ingest event","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /events","href":"/api-reference/events/ingest-event"},{"title":"Get usage analytics","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /events/analytics","href":"/api-reference/events/get-usage-analytics"},{"title":"Bulk ingest events","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /events/bulk","href":"/api-reference/events/bulk-ingest-events"},{"title":"Delete events","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /events/delete","href":"/api-reference/events/delete-events"},{"title":"Get event","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /events/lookup","href":"/api-reference/events/get-event"},{"title":"List raw events","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /events/query","href":"/api-reference/events/list-raw-events"},{"title":"Get usage statistics","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /events/usage","href":"/api-reference/events/get-usage-statistics"},{"title":"Get usage by meter","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /events/usage/meter","href":"/api-reference/events/get-usage-by-meter"}]},{"group":"Features","pages":[{"title":"Create feature","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /features","href":"/api-reference/features/create-feature"},{"title":"Query features","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /features/search","href":"/api-reference/features/query-features"},{"title":"Update feature","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /features/{id}","href":"/api-reference/features/update-feature"},{"title":"Delete feature","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /features/{id}","href":"/api-reference/features/delete-feature"},{"title":"Clone a feature","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /features/{id}/clone","href":"/api-reference/features/clone-a-feature"}]},{"group":"FX Rates","pages":[{"title":"Create an FX rate","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /forex","href":"/api-reference/fx-rates/create-an-fx-rate"},{"title":"Query FX rates","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /forex/query","href":"/api-reference/fx-rates/query-fx-rates"},{"title":"Get an FX rate","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /forex/{id}","href":"/api-reference/fx-rates/get-an-fx-rate"},{"title":"Update an FX rate","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /forex/{id}","href":"/api-reference/fx-rates/update-an-fx-rate"},{"title":"Delete an FX rate","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /forex/{id}","href":"/api-reference/fx-rates/delete-an-fx-rate"}]},{"group":"Groups","pages":[{"title":"Create group","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /groups","href":"/api-reference/groups/create-group"},{"title":"Query groups","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /groups/search","href":"/api-reference/groups/query-groups"},{"title":"Get group","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /groups/{id}","href":"/api-reference/groups/get-group"},{"title":"Delete group","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /groups/{id}","href":"/api-reference/groups/delete-group"}]},{"group":"Integrations","pages":[{"title":"Get integration configurations","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /integrations/config","href":"/api-reference/integrations/get-integration-configurations"},{"title":"Link integration mapping","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /integrations/link","href":"/api-reference/integrations/link-integration-mapping"},{"title":"Delink integration mapping","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /integrations/link","href":"/api-reference/integrations/delink-integration-mapping"},{"title":"Get entity integration mappings","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /integrations/mappings","href":"/api-reference/integrations/get-entity-integration-mappings"}]},{"group":"Journal Entries","pages":[{"title":"Query journal entries","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /journal_entries/search","href":"/api-reference/journal-entries/query-journal-entries"},{"title":"Get journal entry","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /journal_entries/{id}","href":"/api-reference/journal-entries/get-journal-entry"}]},{"group":"Marketplace","pages":[{"title":"Register an AWS Marketplace agreement","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /marketplace/agreements","href":"/api-reference/marketplace/register-an-aws-marketplace-agreement"}]},{"group":"Payments","pages":[{"title":"List payments","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /payments","href":"/api-reference/payments/list-payments"},{"title":"Create payment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /payments","href":"/api-reference/payments/create-payment"},{"title":"Get payment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /payments/{id}","href":"/api-reference/payments/get-payment"},{"title":"Update payment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /payments/{id}","href":"/api-reference/payments/update-payment"},{"title":"Delete payment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /payments/{id}","href":"/api-reference/payments/delete-payment"},{"title":"Process payment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /payments/{id}/process","href":"/api-reference/payments/process-payment"}]},{"group":"Performance Obligations","pages":[{"title":"Query performance obligations","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /performance_obligations/search","href":"/api-reference/performance-obligations/query-performance-obligations"},{"title":"Get performance obligation","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /performance_obligations/{id}","href":"/api-reference/performance-obligations/get-performance-obligation"}]},{"group":"Plans","pages":[{"title":"Create plan","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /plans","href":"/api-reference/plans/create-plan"},{"title":"Query plans","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /plans/search","href":"/api-reference/plans/query-plans"},{"title":"Get plan","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /plans/{id}","href":"/api-reference/plans/get-plan"},{"title":"Update plan","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /plans/{id}","href":"/api-reference/plans/update-plan"},{"title":"Delete plan","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /plans/{id}","href":"/api-reference/plans/delete-plan"},{"title":"Clone a plan","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /plans/{id}/clone","href":"/api-reference/plans/clone-a-plan"},{"title":"Synchronize plan prices","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /plans/{id}/sync/subscriptions","href":"/api-reference/plans/synchronize-plan-prices"}]},{"group":"SelfBilling","pages":[{"title":"Start self-billing checkout","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /portal/billing/checkout","href":"/api-reference/selfbilling/start-self-billing-checkout"},{"title":"Poll self-billing checkout","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /portal/billing/checkout/{id}","href":"/api-reference/selfbilling/poll-self-billing-checkout"},{"title":"Cancel self-billing checkout","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /portal/billing/checkout/{id}/cancel","href":"/api-reference/selfbilling/cancel-self-billing-checkout"},{"title":"Create self-billing portal session","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /portal/billing/portal-session","href":"/api-reference/selfbilling/create-self-billing-portal-session"},{"title":"Get self-billing status","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /portal/billing/status","href":"/api-reference/selfbilling/get-self-billing-status"},{"title":"Get self-billing summary","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /portal/billing/summary","href":"/api-reference/selfbilling/get-self-billing-summary"},{"title":"Get tenant billing summary","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /tenants/billing","href":"/api-reference/selfbilling/get-tenant-billing-summary"}]},{"group":"Prices","pages":[{"title":"Create price","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /prices","href":"/api-reference/prices/create-price"},{"title":"Create prices in bulk","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /prices/bulk","href":"/api-reference/prices/create-prices-in-bulk"},{"title":"Get price by lookup key","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /prices/lookup/{lookup_key}","href":"/api-reference/prices/get-price-by-lookup-key"},{"title":"Query prices","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /prices/search","href":"/api-reference/prices/query-prices"},{"title":"Get price","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /prices/{id}","href":"/api-reference/prices/get-price"},{"title":"Update price","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /prices/{id}","href":"/api-reference/prices/update-price"},{"title":"Delete price","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /prices/{id}","href":"/api-reference/prices/delete-price"},{"title":"Get price history","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /prices/{id}/history","href":"/api-reference/prices/get-price-history"}]},{"group":"Price Units","pages":[{"title":"List price units","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /prices/units","href":"/api-reference/price-units/list-price-units"},{"title":"Create price unit","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /prices/units","href":"/api-reference/price-units/create-price-unit"},{"title":"Get price unit by code","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /prices/units/code/{code}","href":"/api-reference/price-units/get-price-unit-by-code"},{"title":"Query price units","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /prices/units/search","href":"/api-reference/price-units/query-price-units"},{"title":"Get price unit","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /prices/units/{id}","href":"/api-reference/price-units/get-price-unit"},{"title":"Update price unit","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /prices/units/{id}","href":"/api-reference/price-units/update-price-unit"},{"title":"Delete price unit","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /prices/units/{id}","href":"/api-reference/price-units/delete-price-unit"}]},{"group":"Products","pages":[{"title":"List products","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /products","href":"/api-reference/products/list-products"},{"title":"Create product","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /products","href":"/api-reference/products/create-product"},{"title":"Query products","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /products/search","href":"/api-reference/products/query-products"},{"title":"Get product","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /products/{id}","href":"/api-reference/products/get-product"},{"title":"Update product","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /products/{id}","href":"/api-reference/products/update-product"},{"title":"Delete product","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /products/{id}","href":"/api-reference/products/delete-product"}]},{"group":"RBAC","pages":[{"title":"List all RBAC roles","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /rbac/roles","href":"/api-reference/rbac/list-all-rbac-roles"},{"title":"Get a specific RBAC role","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /rbac/roles/{id}","href":"/api-reference/rbac/get-a-specific-rbac-role"}]},{"group":"Refunds","pages":[{"title":"List refunds","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /refunds","href":"/api-reference/refunds/list-refunds"},{"title":"Get refund","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /refunds/{id}","href":"/api-reference/refunds/get-refund"},{"title":"Retry refund","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /refunds/{id}/retry","href":"/api-reference/refunds/retry-refund"}]},{"group":"Revenue Reports","pages":[{"title":"Get revenue rollforward","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /revenue_reports/rollforward","href":"/api-reference/revenue-reports/get-revenue-rollforward"},{"title":"Get revenue waterfall","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /revenue_reports/waterfall","href":"/api-reference/revenue-reports/get-revenue-waterfall"}]},{"group":"Secrets","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /secrets/api/keys","href":"/api-reference/secrets/list-api-keys"},{"title":"Create a new API key","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /secrets/api/keys","href":"/api-reference/secrets/create-a-new-api-key"},{"title":"Delete an API key","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /secrets/api/keys/{id}","href":"/api-reference/secrets/delete-an-api-key"}]},{"group":"Subscriptions","pages":[{"title":"Create subscription","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions","href":"/api-reference/subscriptions/create-subscription"},{"title":"Add addon to subscription","deprecated":true,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/addon","href":"/api-reference/subscriptions/add-addon-to-subscription"},{"title":"Remove addon from subscription","deprecated":true,"version":null,"openapi":"https://swagger.flexprice.io delete /subscriptions/addon","href":"/api-reference/subscriptions/remove-addon-from-subscription"},{"title":"Search subscription line items","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/lineitems/search","href":"/api-reference/subscriptions/search-subscription-line-items"},{"title":"Update subscription line item","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /subscriptions/lineitems/{id}","href":"/api-reference/subscriptions/update-subscription-line-item"},{"title":"Delete subscription line item","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /subscriptions/lineitems/{id}","href":"/api-reference/subscriptions/delete-subscription-line-item"},{"title":"Get subscription line item history","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /subscriptions/lineitems/{id}/history","href":"/api-reference/subscriptions/get-subscription-line-item-history"},{"title":"List all subscription schedules","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /subscriptions/schedules","href":"/api-reference/subscriptions/list-all-subscription-schedules"},{"title":"Get subscription schedule","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /subscriptions/schedules/{schedule_id}","href":"/api-reference/subscriptions/get-subscription-schedule"},{"title":"Cancel subscription schedule","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/schedules/{schedule_id}/cancel","href":"/api-reference/subscriptions/cancel-subscription-schedule"},{"title":"Query subscriptions","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/search","href":"/api-reference/subscriptions/query-subscriptions"},{"title":"Get usage by subscription","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/usage","href":"/api-reference/subscriptions/get-usage-by-subscription"},{"title":"Get subscription","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /subscriptions/{id}","href":"/api-reference/subscriptions/get-subscription"},{"title":"Update subscription","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /subscriptions/{id}","href":"/api-reference/subscriptions/update-subscription"},{"title":"Activate draft subscription","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/{id}/activate","href":"/api-reference/subscriptions/activate-draft-subscription"},{"title":"Get active addon associations","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /subscriptions/{id}/addons/associations","href":"/api-reference/subscriptions/get-active-addon-associations"},{"title":"Cancel subscription","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/{id}/cancel","href":"/api-reference/subscriptions/cancel-subscription"},{"title":"Execute subscription plan change","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/{id}/change/execute","href":"/api-reference/subscriptions/execute-subscription-plan-change"},{"title":"Preview subscription plan change","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/{id}/change/preview","href":"/api-reference/subscriptions/preview-subscription-plan-change"},{"title":"Execute a plan change (v2, swap in place)","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/{id}/change/v2/execute","href":"/api-reference/subscriptions/execute-a-plan-change-v2-swap-in-place"},{"title":"Preview a plan change (v2, swap in place)","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/{id}/change/v2/preview","href":"/api-reference/subscriptions/preview-a-plan-change-v2-swap-in-place"},{"title":"Get subscription entitlements","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /subscriptions/{id}/entitlements","href":"/api-reference/subscriptions/get-subscription-entitlements"},{"title":"Get upcoming credit grant applications","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /subscriptions/{id}/grants/upcoming","href":"/api-reference/subscriptions/get-upcoming-credit-grant-applications"},{"title":"Create subscription line item","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/{id}/lineitems","href":"/api-reference/subscriptions/create-subscription-line-item"},{"title":"Execute subscription modification","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/{id}/modify/execute","href":"/api-reference/subscriptions/execute-subscription-modification"},{"title":"Preview subscription modification","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/{id}/modify/preview","href":"/api-reference/subscriptions/preview-subscription-modification"},{"title":"Pause subscription","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/{id}/pause","href":"/api-reference/subscriptions/pause-subscription"},{"title":"Resume subscription","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /subscriptions/{id}/resume","href":"/api-reference/subscriptions/resume-subscription"},{"title":"List subscription schedules","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /subscriptions/{id}/schedules","href":"/api-reference/subscriptions/list-subscription-schedules"},{"title":"Get subscription (V2)","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /subscriptions/{id}/v2","href":"/api-reference/subscriptions/get-subscription-v2"}]},{"group":"Tasks","pages":[{"title":"List tasks","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /tasks","href":"/api-reference/tasks/list-tasks"},{"title":"Import a CSV of usage events","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /tasks","href":"/api-reference/tasks/import-a-csv-of-usage-events"},{"title":"Get task processing result","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /tasks/result","href":"/api-reference/tasks/get-task-processing-result"},{"title":"Get a task","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /tasks/{id}","href":"/api-reference/tasks/get-a-task"},{"title":"Download task export file","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /tasks/{id}/download","href":"/api-reference/tasks/download-task-export-file"},{"title":"Update task status","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /tasks/{id}/status","href":"/api-reference/tasks/update-task-status"}]},{"group":"Scheduled Tasks","pages":[{"title":"List scheduled tasks","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /tasks/scheduled","href":"/api-reference/scheduled-tasks/list-scheduled-tasks"},{"title":"Create scheduled task","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /tasks/scheduled","href":"/api-reference/scheduled-tasks/create-scheduled-task"},{"title":"Schedule draft finalization","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /tasks/scheduled/schedule-draft-finalization","href":"/api-reference/scheduled-tasks/schedule-draft-finalization"},{"title":"Schedule update billing period","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /tasks/scheduled/schedule-update-billing-period","href":"/api-reference/scheduled-tasks/schedule-update-billing-period"},{"title":"Get scheduled task","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /tasks/scheduled/{id}","href":"/api-reference/scheduled-tasks/get-scheduled-task"},{"title":"Update a scheduled task","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /tasks/scheduled/{id}","href":"/api-reference/scheduled-tasks/update-a-scheduled-task"},{"title":"Delete a scheduled task","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /tasks/scheduled/{id}","href":"/api-reference/scheduled-tasks/delete-a-scheduled-task"},{"title":"Trigger force run","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /tasks/scheduled/{id}/run","href":"/api-reference/scheduled-tasks/trigger-force-run"}]},{"group":"Tax Associations","pages":[{"title":"List tax associations","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /taxes/associations","href":"/api-reference/tax-associations/list-tax-associations"},{"title":"Create Tax Association","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /taxes/associations","href":"/api-reference/tax-associations/create-tax-association"},{"title":"Get Tax Association","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /taxes/associations/{id}","href":"/api-reference/tax-associations/get-tax-association"},{"title":"Update tax association","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /taxes/associations/{id}","href":"/api-reference/tax-associations/update-tax-association"},{"title":"Delete tax association","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /taxes/associations/{id}","href":"/api-reference/tax-associations/delete-tax-association"}]},{"group":"Tax Rates","pages":[{"title":"Get tax rates","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /taxes/rates","href":"/api-reference/tax-rates/get-tax-rates"},{"title":"Create a tax rate","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /taxes/rates","href":"/api-reference/tax-rates/create-a-tax-rate"},{"title":"Get a tax rate","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /taxes/rates/{id}","href":"/api-reference/tax-rates/get-a-tax-rate"},{"title":"Update a tax rate","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /taxes/rates/{id}","href":"/api-reference/tax-rates/update-a-tax-rate"},{"title":"Delete a tax rate","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /taxes/rates/{id}","href":"/api-reference/tax-rates/delete-a-tax-rate"}]},{"group":"Tenants","pages":[{"title":"Update a tenant","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /tenants/update","href":"/api-reference/tenants/update-a-tenant"},{"title":"Get tenant by ID","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /tenants/{id}","href":"/api-reference/tenants/get-tenant-by-id"}]},{"group":"Usage Records","pages":[{"title":"List usage records","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /usage-records/search","href":"/api-reference/usage-records/list-usage-records"}]},{"group":"Users","pages":[{"title":"Create user or service account","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /users","href":"/api-reference/users/create-user-or-service-account"},{"title":"Get current user","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io get /users/me","href":"/api-reference/users/get-current-user"},{"title":"Update current user","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /users/me","href":"/api-reference/users/update-current-user"},{"title":"Query users","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /users/search","href":"/api-reference/users/query-users"},{"title":"Update service account","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /users/{id}","href":"/api-reference/users/update-service-account"},{"title":"Delete service account","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io delete /users/{id}","href":"/api-reference/users/delete-service-account"},{"title":"Remove user from tenant","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /users/{id}/remove","href":"/api-reference/users/remove-user-from-tenant"},{"title":"Update user roles","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io put /users/{id}/roles","href":"/api-reference/users/update-user-roles"}]},{"group":"Webhook Events","pages":[{"title":"billing_instalment.cancelled","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/billing_instalment.cancelled","href":"/api-reference/webhook-events/billing_instalmentcancelled"},{"title":"billing_instalment.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/billing_instalment.created","href":"/api-reference/webhook-events/billing_instalmentcreated"},{"title":"billing_instalment.invoiced","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/billing_instalment.invoiced","href":"/api-reference/webhook-events/billing_instalmentinvoiced"},{"title":"billing_instalment.updated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/billing_instalment.updated","href":"/api-reference/webhook-events/billing_instalmentupdated"},{"title":"billing_terms.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/billing_terms.created","href":"/api-reference/webhook-events/billing_termscreated"},{"title":"billing_terms.updated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/billing_terms.updated","href":"/api-reference/webhook-events/billing_termsupdated"},{"title":"checkout.session.completed","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/checkout.session.completed","href":"/api-reference/webhook-events/checkoutsessioncompleted"},{"title":"checkout.session.expired","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/checkout.session.expired","href":"/api-reference/webhook-events/checkoutsessionexpired"},{"title":"checkout.session.failed","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/checkout.session.failed","href":"/api-reference/webhook-events/checkoutsessionfailed"},{"title":"checkout.session.initiated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/checkout.session.initiated","href":"/api-reference/webhook-events/checkoutsessioninitiated"},{"title":"commitment.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/commitment.created","href":"/api-reference/webhook-events/commitmentcreated"},{"title":"commitment.terminated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/commitment.terminated","href":"/api-reference/webhook-events/commitmentterminated"},{"title":"commitment.updated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/commitment.updated","href":"/api-reference/webhook-events/commitmentupdated"},{"title":"credit_note.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/credit_note.created","href":"/api-reference/webhook-events/credit_notecreated"},{"title":"credit_note.updated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/credit_note.updated","href":"/api-reference/webhook-events/credit_noteupdated"},{"title":"customer.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/customer.created","href":"/api-reference/webhook-events/customercreated"},{"title":"customer.deleted","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/customer.deleted","href":"/api-reference/webhook-events/customerdeleted"},{"title":"customer.updated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/customer.updated","href":"/api-reference/webhook-events/customerupdated"},{"title":"entitlement.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/entitlement.created","href":"/api-reference/webhook-events/entitlementcreated"},{"title":"entitlement.deleted","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/entitlement.deleted","href":"/api-reference/webhook-events/entitlementdeleted"},{"title":"entitlement.updated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/entitlement.updated","href":"/api-reference/webhook-events/entitlementupdated"},{"title":"event.rejected","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/event.rejected","href":"/api-reference/webhook-events/eventrejected"},{"title":"feature.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/feature.created","href":"/api-reference/webhook-events/featurecreated"},{"title":"feature.deleted","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/feature.deleted","href":"/api-reference/webhook-events/featuredeleted"},{"title":"feature.updated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/feature.updated","href":"/api-reference/webhook-events/featureupdated"},{"title":"feature.wallet_balance.alert","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/feature.wallet_balance.alert","href":"/api-reference/webhook-events/featurewallet_balancealert"},{"title":"invoice.communication.triggered","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/invoice.communication.triggered","href":"/api-reference/webhook-events/invoicecommunicationtriggered"},{"title":"invoice.create.drafted","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/invoice.create.drafted","href":"/api-reference/webhook-events/invoicecreatedrafted"},{"title":"invoice.payment.overdue","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/invoice.payment.overdue","href":"/api-reference/webhook-events/invoicepaymentoverdue"},{"title":"invoice.sync.failed","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/invoice.sync.failed","href":"/api-reference/webhook-events/invoicesyncfailed"},{"title":"invoice.sync.success","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/invoice.sync.success","href":"/api-reference/webhook-events/invoicesyncsuccess"},{"title":"invoice.update","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/invoice.update","href":"/api-reference/webhook-events/invoiceupdate"},{"title":"invoice.update.finalized","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/invoice.update.finalized","href":"/api-reference/webhook-events/invoiceupdatefinalized"},{"title":"invoice.update.payment","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/invoice.update.payment","href":"/api-reference/webhook-events/invoiceupdatepayment"},{"title":"invoice.update.voided","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/invoice.update.voided","href":"/api-reference/webhook-events/invoiceupdatevoided"},{"title":"payment.attempt.failed","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/payment.attempt.failed","href":"/api-reference/webhook-events/paymentattemptfailed"},{"title":"payment.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/payment.created","href":"/api-reference/webhook-events/paymentcreated"},{"title":"payment.failed","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/payment.failed","href":"/api-reference/webhook-events/paymentfailed"},{"title":"payment.pending","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/payment.pending","href":"/api-reference/webhook-events/paymentpending"},{"title":"payment.success","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/payment.success","href":"/api-reference/webhook-events/paymentsuccess"},{"title":"payment.updated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/payment.updated","href":"/api-reference/webhook-events/paymentupdated"},{"title":"refund.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/refund.created","href":"/api-reference/webhook-events/refundcreated"},{"title":"refund.failed","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/refund.failed","href":"/api-reference/webhook-events/refundfailed"},{"title":"refund.succeeded","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/refund.succeeded","href":"/api-reference/webhook-events/refundsucceeded"},{"title":"subscription.activated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.activated","href":"/api-reference/webhook-events/subscriptionactivated"},{"title":"subscription.cancelled","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.cancelled","href":"/api-reference/webhook-events/subscriptioncancelled"},{"title":"subscription.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.created","href":"/api-reference/webhook-events/subscriptioncreated"},{"title":"subscription.draft.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.draft.created","href":"/api-reference/webhook-events/subscriptiondraftcreated"},{"title":"subscription.group_spend.threshold_reached","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.group_spend.threshold_reached","href":"/api-reference/webhook-events/subscriptiongroup_spendthreshold_reached"},{"title":"subscription.group_spend.threshold_recovered","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.group_spend.threshold_recovered","href":"/api-reference/webhook-events/subscriptiongroup_spendthreshold_recovered"},{"title":"subscription.line_item_spend.threshold_reached","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.line_item_spend.threshold_reached","href":"/api-reference/webhook-events/subscriptionline_item_spendthreshold_reached"},{"title":"subscription.line_item_spend.threshold_recovered","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.line_item_spend.threshold_recovered","href":"/api-reference/webhook-events/subscriptionline_item_spendthreshold_recovered"},{"title":"subscription.paused","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.paused","href":"/api-reference/webhook-events/subscriptionpaused"},{"title":"subscription.phase.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.phase.created","href":"/api-reference/webhook-events/subscriptionphasecreated"},{"title":"subscription.phase.deleted","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.phase.deleted","href":"/api-reference/webhook-events/subscriptionphasedeleted"},{"title":"subscription.phase.updated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.phase.updated","href":"/api-reference/webhook-events/subscriptionphaseupdated"},{"title":"subscription.plan_changed","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.plan_changed","href":"/api-reference/webhook-events/subscriptionplan_changed"},{"title":"subscription.renewal.due","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.renewal.due","href":"/api-reference/webhook-events/subscriptionrenewaldue"},{"title":"subscription.resumed","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.resumed","href":"/api-reference/webhook-events/subscriptionresumed"},{"title":"subscription.spend.threshold_reached","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.spend.threshold_reached","href":"/api-reference/webhook-events/subscriptionspendthreshold_reached"},{"title":"subscription.spend.threshold_recovered","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.spend.threshold_recovered","href":"/api-reference/webhook-events/subscriptionspendthreshold_recovered"},{"title":"subscription.updated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/subscription.updated","href":"/api-reference/webhook-events/subscriptionupdated"},{"title":"wallet.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/wallet.created","href":"/api-reference/webhook-events/walletcreated"},{"title":"wallet.credit_balance.dropped","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/wallet.credit_balance.dropped","href":"/api-reference/webhook-events/walletcredit_balancedropped"},{"title":"wallet.credit_balance.recovered","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/wallet.credit_balance.recovered","href":"/api-reference/webhook-events/walletcredit_balancerecovered"},{"title":"wallet.ongoing_balance.dropped","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/wallet.ongoing_balance.dropped","href":"/api-reference/webhook-events/walletongoing_balancedropped"},{"title":"wallet.ongoing_balance.recovered","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/wallet.ongoing_balance.recovered","href":"/api-reference/webhook-events/walletongoing_balancerecovered"},{"title":"wallet.ongoing_balance.updated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/wallet.ongoing_balance.updated","href":"/api-reference/webhook-events/walletongoing_balanceupdated"},{"title":"wallet.terminated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/wallet.terminated","href":"/api-reference/webhook-events/walletterminated"},{"title":"wallet.transaction.created","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/wallet.transaction.created","href":"/api-reference/webhook-events/wallettransactioncreated"},{"title":"wallet.transaction.updated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/wallet.transaction.updated","href":"/api-reference/webhook-events/wallettransactionupdated"},{"title":"wallet.updated","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /webhook-events/wallet.updated","href":"/api-reference/webhook-events/walletupdated"}]},{"group":"Workflows","pages":[{"title":"Query workflows","deprecated":null,"version":null,"openapi":"https://swagger.flexprice.io post /workflows/search","href":"/api-reference/workflows/query-workflows"}]}]}]},{"tab":"Developers","pages":[{"title":"Developers","href":"/developers/overview"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/docs/changelog"}]}]},"basePath":"","title":"Top up wallet - Flexprice","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js","Markdown-CpxgzsKA.js","clsx-C5EfhVm0.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CJ9Oly2E.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Mk6P3qvh.js"]}