{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Togai documentation","colors":{"primary":"#2853C2","light":"#2563EB","dark":"#2563EB"},"favicon":"/images/togai-logo-light.svg","logo":{"light":"https://mintcdn.com/togai/MzZShn3Chu8s5XJM/images/togai-light.png?fit=max\u0026auto=format\u0026n=MzZShn3Chu8s5XJM\u0026q=85\u0026s=4712c1fa84282ae9cce550c0d3e6ec2b","dark":"https://mintcdn.com/togai/MzZShn3Chu8s5XJM/images/togai-dark.svg?fit=max\u0026auto=format\u0026n=MzZShn3Chu8s5XJM\u0026q=85\u0026s=73a0f4ae77369ff7b7241023a9a671ff"},"api":{"openapi":["openapi.yaml"],"playground":{"display":"simple"},"mdx":{"server":["https://sandbox-api.togai.com","https://api.togai.com"],"auth":{"method":"bearer","name":null}}},"background":{"image":"https://mintlify.s3.us-west-1.amazonaws.com/togai/images/background-documentation-min.png","decoration":null,"color":{"light":"#F8FAFC","dark":"#0D101F"}},"navbar":{"links":[{"label":"Demo app","href":"https://demo.togai.com"},{"label":"Login","href":"https://app.togai.com/login"}],"primary":{"type":"button","label":"Talk to us","href":"https://www.togai.com/contact-us/"}},"footer":{"socials":{"website":"https://togai.com","twitter":"https://twitter.com/togaiHQ","github":"https://github.com/TogaiHQ/","linkedin":"https://www.linkedin.com/company/togai"}},"integrations":{"ga4":{"measurementId":"G-Q0BLXR7WX5"},"gtm":{"tagId":"GTM-TS4BK7Z"}},"navigation":{"global":{"anchors":[{"anchor":"Postman collection","href":"https://www.postman.com/togai-workspace/workspace/togai-public","icon":"folder-open"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"togai","hasAudioNarration":false,"actualSubdomain":"togai","customDomains":[],"gitSource":{"type":"github","owner":"togai-bot","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"edits":true,"issues":true},"entitlements":{},"buildId":"6ae91e8bc02c8f1beff5087f:success","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"API Reference","count":108},{"language":"default","tag":"APIs","count":105},{"language":"default","tag":"Documentation","count":58},{"language":"default","tag":"Integrations","count":29},{"language":"default","tag":"Accounts","count":18},{"language":"default","tag":"Templates","count":16},{"language":"default","tag":"Entitlements","count":8},{"language":"default","tag":"Event Schemas","count":8},{"language":"default","tag":"Invoices","count":7},{"language":"default","tag":"Payments","count":7}]},"assistantConfig":{},"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":"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":"editor-metadata","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/accounts/purchases/get-a-specific-purchase-of-an-account","slug":"/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account","pageMetadata":{"openapi":"get /purchases/{purchase_id}","title":"Get a specific purchase of an account","description":"Get purchase information of an account for a specific plan using account_id and price_plan_id","href":"/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account"},"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: \"Get purchase information of an account for a specific plan using account_id and price_plan_id\"\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":{"openapi":"get /purchases/{purchase_id}","title":"Get a specific purchase of an account","description":"Get purchase information of an account for a specific plan using account_id and price_plan_id","href":"/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Accounts"],"summary":"Get a specific purchase of an account","description":"Get purchase information of an account for a specific plan using account_id and price_plan_id","operationId":"getPurchase","parameters":["6b73f86f-3204-43f8-9570-54799263ec48"],"responses":{"200":"05fae50d-ca51-43bf-83fa-2c0441d5e6bf","400":"49d0dc4d-be24-400e-b349-7a1538c0701e","401":"469fc965-1f4b-4e44-918e-afbf9d12589a","403":"24e27e75-aa15-4dfd-9ceb-f1793ae01a2c","404":"e9117b7d-7782-40d1-8204-49d0afdd987f","429":"0db433de-b03e-42ed-8814-327eaa33ffc4","default":"8aaca04e-4695-4014-a5a5-a91baba14e98"},"method":"get","type":"path","servers":["9f6eb8d4-0e77-4555-b0b9-2240bf1985a2","2cd14a87-0055-4601-b756-fea69647dc6f"],"security":["10d5aef0-c0e7-4a1c-a3a9-3494e6daa2b3"],"path":"/purchases/{purchase_id}","baseUrlOptions":["https://api.togai.com/","https://sandbox-api.togai.com/"],"title":"Get a specific purchase of an account","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"6b73f86f-3204-43f8-9570-54799263ec48":{"in":"path","name":"purchase_id","required":true,"schema":{"type":"string","maxLength":50,"example":"purchase.1zYnCiM9Bpg.lv25y","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"responses":{"05fae50d-ca51-43bf-83fa-2c0441d5e6bf":{"description":"Response for getting a specific purchase detail of an account","content":{"application/json":{"schema":{"type":"object","description":"Represents a Purchase","required":["id","accountId","pricePlanId","pricePlanVersion","createdAt","status","type"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"accountId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"accountId","typeLabel":"string"},"pricePlanId":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"pricePlanId","typeLabel":"string"},"pricePlanVersion":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"pricePlanVersion","typeLabel":"integer\u003cint32>"},"createdAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"status":{"type":"string","enum":["SUCCESS","FAILURE","PENDING","IN_PROGRESS","PROPOSAL_ACTIVE","PROPOSAL_APPROVED","PROPOSAL_DECLINED","PROPOSAL_EXPIRED"],"description":"Status of the purchase","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"type":{"type":"string","enum":["ENTITLEMENT_GRANT","ASSOCIATION"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"quantity":{"type":"integer","format":"int32","uniqueKey":"quantity","typeLabel":"integer\u003cint32>"},"rateCardQuantities":{"type":"object","additionalProperties":{"type":"number","uniqueKey":"rateCardQuantities.additionalProperties","typeLabel":"number"},"uniqueKey":"rateCardQuantities","typeLabel":"object"},"idempotencyKey":{"type":"string","uniqueKey":"idempotencyKey","typeLabel":"string"},"purchasePlanOverride":{"type":"object","properties":{"pricingCycleConfig":{"type":"object","description":"Represents configurations related to pricing cycle","required":["interval","gracePeriod"],"properties":{"interval":{"type":"string","description":"Interval field allow you to define the billing interval you would like to set","enum":["WEEKLY","MONTHLY","QUARTERLY","HALF_YEARLY","ANNUALLY"],"isRequired":true,"uniqueKey":"purchasePlanOverride.pricingCycleConfig.interval","typeLabel":"enum\u003cstring>"},"gracePeriod":{"type":"integer","description":"Togai allows you to ingest past dated events that will be processed by a pricing cycle till the end grace period. \nFor example: Pricing cycle is Monthly from 1st to 30th and gracePeriod is 5 days which next month 1 to 5th date, you can ingest past dated events during this grace period.\n","format":"int32","example":3,"isRequired":true,"uniqueKey":"purchasePlanOverride.pricingCycleConfig.gracePeriod","typeLabel":"integer\u003cint32>"},"startOffset":{"type":"object","description":"Represents the start of pricing cycle in terms of\n - dayOffset - number of days from beginning of week / month and\n - monthOffset - number of months from beginning of interval (quarter, half-year or year)\nNote: If a day with offset doesn't exist for a month, closest previous day is considered\nExamples:\nWEEKLY -\n - {dayOffset: 1, monthOffset: NIL} - First day of every week (Monday)\n - {dayOffset: 3, monthOffset: NIL} - 3rd day of every week (Wednesday)\n - {dayOffset: LAST, monthOffset: NIL} - Last day of every week (Sunday)\nMONTHLY -\n - {dayOffset: 1, monthOffset: NIL} - First day of every month\n - {dayOffset: 12, monthOffset: NIL} - 12th of every month\n - {dayOffset: 28, monthOffset: NIL} - 28th of every month. i.e, 28th of Jan, 28th of Feb, ...\n - {dayOffset: 30, monthOffset: NIL} - 30th of every month. i.e, 28th of Jan, 28th of Feb, ...\n - {dayOffset: LAST, monthOffset: NIL} - Last day of every month. i.e, 31st of Jan, 28th of Feb, ...\nQUARTERLY\n - {dayOffset: 15, monthOffset: FIRST} - 15th Jan, 15th Apr, 15th Jul and 15th Oct\n - {dayOffset: 15, monthOffset: 2} - 15th Feb, 15th May, 15th Aug and 15th Nov\n - {dayOffset: 15, monthOffset: LAST} - 15th Mar, 15th Jun, 15th Sep and 15th Dec\n - {dayOffset: LAST, monthOffset: FIRST} - 31st Jan, 30th Apr, 30th Jul and 31th Oct\nHALF_YEARLY\n - {dayOffset: 15, monthOffset: FIRST} - 15th Jan and 15th Jul\n - {dayOffset: 15, monthOffset: 4} - 15th Apr and 15th Oct\n - {dayOffset: 15, monthOffset: LAST} - 15th Jun and 15th Dec\nANNUALLY\n - {dayOffset: 15, monthOffset: FIRST} - 15th Jan\n - {dayOffset: 15, monthOffset: 1} - 15th Jan\n - {dayOffset: LAST, monthOffset: 2} - 29th Feb on Leap year, 28th otherwise \n - {dayOffset: 15, monthOffset: 8} - 15th Aug\n - {dayOffset: 15, monthOffset: LAST} - 15th Dec\n","required":["dayOffset","monthOffset"],"properties":{"dayOffset":{"type":"string","description":"If interval is WEEKLY, min: \"1\" and max: \"7\" as strings. Spl. string allowed: LAST\nOtherwise, min: \"1\" and max: \"31\" as strings. Spl. string allowed: LAST\n","isRequired":true,"uniqueKey":"purchasePlanOverride.pricingCycleConfig.startOffset.dayOffset","typeLabel":"string"},"monthOffset":{"type":"string","description":"min: \"1\" and max: \"12\". Spl. string allowed: FIRST / LAST.\nFor QUARTERLY only 1 - 3 is allowed and for HALF_YEARLY 1 - 6. This being an optional field, shouldn't be passed for MONTHLY.\n","isRequired":true,"uniqueKey":"purchasePlanOverride.pricingCycleConfig.startOffset.monthOffset","typeLabel":"string"}},"uniqueKey":"purchasePlanOverride.pricingCycleConfig.startOffset","typeLabel":"object"},"anniversaryCycle":{"type":"boolean","description":"Togai calculates the startOffsets based on the date of association instead of requiring from the user and \nthese offsets will be applied as an override if this flag is enabled.\nExamples:\nWEEKLY -\n - 23/10/2023 (Monday) - {dayOffset: 1, monthOffset: NIL} \n - 25/10/2023 (Wednesday) - {dayOffset: 3, monthOffset: NIL} \n - 29/10/2023 (Sunday) - {dayOffset: 7, monthOffset: NIL}\nMONTHLY -\n - 1st Oct - {dayOffset: 1, monthOffset: NIL}\n - 12th Oct - {dayOffset: 12, monthOffset: NIL}\n - 28th Oct - {dayOffset: 28, monthOffset: NIL}\n - 30th Oct - {dayOffset: 30, monthOffset: NIL}\n - 31th Oct - {dayOffset: LAST, monthOffset: NIL}\nQUARTERLY\n - 15th Jan, 15th Apr, 15th Jul and 15th Oct - {dayOffset: 15, monthOffset: 1}\n - 15th Feb, 15th May, 15th Aug and 15th Nov - {dayOffset: 15, monthOffset: 2} \n - 15th Mar, 15th Jun, 15th Sep and 15th Dec - {dayOffset: 15, monthOffset: 3}\nHALF_YEARLY\n - 15th Jan and 15th Jul - {dayOffset: 15, monthOffset: 1} \n - 15th Apr and 15th Oct - {dayOffset: 15, monthOffset: 4} \n - 15th Jun and 15th Dec - {dayOffset: 15, monthOffset: 6}\nANNUALLY\n - 15th Jan - {dayOffset: 15, monthOffset: 1}\n - 29th Feb on Leap year - {dayOffset: LAST, monthOffset: 2}\n - 28th Feb - {dayOffset: LAST, monthOffset: 2}\n - 15th Aug - {dayOffset: 15, monthOffset: 8}\n - 15th Dec - {dayOffset: 15, monthOffset: 12}\n","uniqueKey":"purchasePlanOverride.pricingCycleConfig.anniversaryCycle","typeLabel":"boolean"}},"uniqueKey":"purchasePlanOverride.pricingCycleConfig","typeLabel":"object"},"supportedCurrencies":{"type":"array","uniqueItems":true,"minItems":1,"items":{"type":"string","uniqueKey":"purchasePlanOverride.supportedCurrencies.items.[INDEX]","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.supportedCurrencies","typeLabel":"string[]"},"usageRateCards":{"type":"array","items":{"type":"object","required":["usageMeterId","ratePlan","rateValues"],"properties":{"usageMeterId":{"type":"string","example":"um.1zYnCiM9Bpg.1zYn","isRequired":true,"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].usageMeterId","typeLabel":"string"},"ratePlan":{"type":"object","description":"Contains all rate related configurations","required":["pricingModel","slabs"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].ratePlan.pricingModel","typeLabel":"enum\u003cstring>"},"slabs":{"description":"Rate cards can have single or multiple slab up to 100.","type":"array","minItems":1,"items":{"type":"object","description":"Represents a pricing priceType (rates + slabs) for usage price plan","required":["order","startAfter","priceType"],"properties":{"order":{"type":"integer","format":"int32","minimum":1,"maximum":10,"isRequired":true,"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"startAfter":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].ratePlan.slabs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].ratePlan","typeLabel":"object"},"rateValues":{"type":"array","items":{"type":"object","description":"Represents a rate","required":["currency","slabRates"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].currency","typeLabel":"string"},"slabRates":{"type":"array","minItems":1,"items":{"type":"object","description":"Represents a rate for a slab","required":["order","rate"],"properties":{"order":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].rate","typeLabel":"number"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates","typeLabel":"object[]"}},"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].rateValues","typeLabel":"object[]"},"displayName":{"type":"string","description":"Name your rate card, this will be displayed in the Togai App","uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].displayName","typeLabel":"string"},"tag":{"type":"string","description":"A tag string to group usageRateCards","uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX].tag","typeLabel":"string"}},"uniqueKey":"purchasePlanOverride.usageRateCards.items.[INDEX]","typeLabel":"object"},"uniqueKey":"purchasePlanOverride.usageRateCards","typeLabel":"object[]"},"billingEntitlementRateCards":{"type":"array","items":{"type":"object","description":"Entitlement type rate card","required":["ratePlan","rateValues","invoiceTiming","featureId","featureConfigs"],"properties":{"featureId":{"type":"string","isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].featureId","typeLabel":"string"},"featureConfigs":{"type":"array","minItems":1,"items":{"description":"Feature configuration object","type":"object","additionalProperties":false,"required":["effectiveUntil","featureCreditLimit"],"properties":{"effectiveUntil":{"type":"string","format":"duration","isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].effectiveUntil","typeLabel":"string\u003cduration>"},"featureCreditLimit":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].featureCreditLimit","typeLabel":"number"},"effectiveFrom":{"type":"string","format":"duration","uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].effectiveFrom","typeLabel":"string\u003cduration>"}},"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].featureConfigs","typeLabel":"object[]"},"invoiceTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"x-enum-varnames":["IN_ADVANCE","IN_ARREARS"],"description":"If IN_ADVANCE, the fixed fee will be invoiced in the previous billing cycle.\nIf IN_ARREARS, the fixed fee will be invoiced in the current billing cycle.\n","isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].invoiceTiming","typeLabel":"enum\u003cstring>"},"ratePlan":{"type":"object","description":"Contains all rate related configurations","required":["pricingModel","slabs"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.pricingModel","typeLabel":"enum\u003cstring>"},"slabs":{"description":"Rate cards can have single or multiple slab up to 100.","type":"array","minItems":1,"items":{"type":"object","description":"Represents a pricing priceType (rates + slabs) for usage price plan","required":["order","startAfter","priceType"],"properties":{"order":{"type":"integer","format":"int32","minimum":1,"maximum":10,"isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"startAfter":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].ratePlan","typeLabel":"object"},"rateValues":{"type":"array","items":{"type":"object","description":"Represents a rate","required":["currency","slabRates"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].currency","typeLabel":"string"},"slabRates":{"type":"array","minItems":1,"items":{"type":"object","description":"Represents a rate for a slab","required":["order","rate"],"properties":{"order":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].rate","typeLabel":"number"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates","typeLabel":"object[]"}},"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].rateValues","typeLabel":"object[]"},"tag":{"type":"string","description":"A tag string to group rate cards","uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].tag","typeLabel":"string"},"displayName":{"type":"string","description":"Name your rate card, this will be used in invoice","uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].displayName","typeLabel":"string"},"recurrenceConfig":{"type":"object","properties":{"interval":{"description":"Represents the number of pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":3,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].recurrenceConfig.interval","typeLabel":"integer\u003cint64>"},"offset":{"description":"Represents the offset for pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":5,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].recurrenceConfig.offset","typeLabel":"integer\u003cint64>"}},"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX].recurrenceConfig","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards.items.[INDEX]","typeLabel":"object"},"uniqueKey":"purchasePlanOverride.billingEntitlementRateCards","typeLabel":"object[]"},"entitlementOverageRateCards":{"type":"array","items":{"type":"object","required":["ratePlan","rateValues","featureId"],"properties":{"featureId":{"type":"string","description":"Unique Identifier of the attached Feature","maxLength":50,"isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].featureId","typeLabel":"string"},"ratePlan":{"type":"object","description":"Contains all rate related configurations","required":["pricingModel","slabs"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.pricingModel","typeLabel":"enum\u003cstring>"},"slabs":{"description":"Rate cards can have single or multiple slab up to 100.","type":"array","minItems":1,"items":{"type":"object","description":"Represents a pricing priceType (rates + slabs) for usage price plan","required":["order","startAfter","priceType"],"properties":{"order":{"type":"integer","format":"int32","minimum":1,"maximum":10,"isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"startAfter":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].ratePlan","typeLabel":"object"},"rateValues":{"type":"array","items":{"type":"object","description":"Represents a rate","required":["currency","slabRates"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].currency","typeLabel":"string"},"slabRates":{"type":"array","minItems":1,"items":{"type":"object","description":"Represents a rate for a slab","required":["order","rate"],"properties":{"order":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].rate","typeLabel":"number"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates","typeLabel":"object[]"}},"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].rateValues","typeLabel":"object[]"},"displayName":{"type":"string","description":"Name to be displayed during invoice","uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].displayName","typeLabel":"string"},"tag":{"type":"string","description":"A tag string to group rate cards","uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].tag","typeLabel":"string"},"maxQuantity":{"type":"number","description":"Maximum quantity allowed for the feature, if not specified, unlimited quantity is allowed","uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].maxQuantity","typeLabel":"number"},"billingConfig":{"type":"object","properties":{"interval":{"description":"Represents the number of pricing cycles after which the rate card will be billed","type":"integer","format":"int64","example":3,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].billingConfig.interval","typeLabel":"integer\u003cint64>"},"startOffset":{"description":"Represents the offset for pricing cycles after which the rate card will be billed","type":"integer","format":"int64","example":5,"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].billingConfig.startOffset","typeLabel":"integer\u003cint64>"}},"description":"Represents the billing config of the entitlement overage rate card. If not specified interval:1 and startOffset:0 is taken as default value","uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX].billingConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards.items.[INDEX]","typeLabel":"object"},"uniqueKey":"purchasePlanOverride.entitlementOverageRateCards","typeLabel":"object[]"},"fixedFeeRateCards":{"type":"array","items":{"type":"object","title":"FixedFeeRateCard","required":["id","rateValues","enableProration"],"properties":{"id":{"type":"string","description":"Unique Identifier of the attached AddOn","maxLength":50,"isRequired":true,"uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX].id","typeLabel":"string"},"rateValues":{"type":"array","items":{"type":"object","required":["currency","rate"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX].rateValues.items.[INDEX].currency","typeLabel":"string"},"rate":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX].rateValues.items.[INDEX].rate","typeLabel":"number"}},"uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX].rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX].rateValues","typeLabel":"object[]"},"enableProration":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX].enableProration","typeLabel":"boolean"},"displayName":{"type":"string","description":"Name of the attached AddOn","uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX].displayName","typeLabel":"string"},"tag":{"type":"string","description":"A tag string to group fixedFeeRateCards","uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX].tag","typeLabel":"string"},"invoiceTiming":{"type":"string","description":"If IN_ADVANCE, the fixed fee will be invoiced in the previous billing cycle.\nIf IN_ARREARS, the fixed fee will be invoiced in the current billing cycle.\n","enum":["IN_ADVANCE","IN_ARREARS"],"x-enum-varnames":["IN_ADVANCE","IN_ARREARS"],"uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX].invoiceTiming","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"Fixed fee applies either for a one-time occurrence or for each cycle.","enum":["ONE_TIME","RECURRING"],"uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"recurrenceConfig":{"type":"object","properties":{"interval":{"type":"integer","description":"Represents the number of pricing cycles after which the rate card will be charged","format":"int64","example":3,"uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX].recurrenceConfig.interval","typeLabel":"integer\u003cint64>"},"offset":{"type":"integer","description":"Represents the offset for pricing cycles after which the rate card will be charged","format":"int64","example":5,"uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX].recurrenceConfig.offset","typeLabel":"integer\u003cint64>"}},"uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX].recurrenceConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.fixedFeeRateCards.items.[INDEX]","typeLabel":"FixedFeeRateCard Β· object"},"minItems":1,"uniqueKey":"purchasePlanOverride.fixedFeeRateCards","typeLabel":"FixedFeeRateCard Β· object[]"},"licenseRateCards":{"type":"array","items":{"title":"LicenseRateCard","type":"object","required":["id","rateValues","ratePlan","enableProration"],"properties":{"id":{"description":"Unique Identifier of the attached AddOn","type":"string","maxLength":50,"isRequired":true,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].id","typeLabel":"string"},"enableProration":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].enableProration","typeLabel":"boolean"},"ratePlan":{"type":"object","description":"Contains all rate related configurations","required":["pricingModel","slabs"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].ratePlan.pricingModel","typeLabel":"enum\u003cstring>"},"slabs":{"description":"Rate cards can have single or multiple slab up to 100.","type":"array","minItems":1,"items":{"type":"object","description":"Represents a pricing priceType (rates + slabs) for usage price plan","required":["order","startAfter","priceType"],"properties":{"order":{"type":"integer","format":"int32","minimum":1,"maximum":10,"isRequired":true,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"startAfter":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].ratePlan.slabs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].ratePlan","typeLabel":"object"},"rateValues":{"type":"array","items":{"type":"object","description":"Represents a rate","required":["currency","slabRates"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].currency","typeLabel":"string"},"slabRates":{"type":"array","minItems":1,"items":{"type":"object","description":"Represents a rate for a slab","required":["order","rate"],"properties":{"order":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].rate","typeLabel":"number"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates","typeLabel":"object[]"}},"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].rateValues","typeLabel":"object[]"},"displayName":{"type":"string","description":"Name of the attached AddOn","uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].displayName","typeLabel":"string"},"tag":{"type":"string","description":"A tag string to group licenseRateCards","uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].tag","typeLabel":"string"},"invoiceTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"x-enum-varnames":["IN_ADVANCE","IN_ARREARS"],"description":"If IN_ADVANCE, the fixed fee will be invoiced in the previous billing cycle.\nIf IN_ARREARS, the fixed fee will be invoiced in the current billing cycle.\n","uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].invoiceTiming","typeLabel":"enum\u003cstring>"},"config":{"title":"LicenseRateCardConfig","type":"object","properties":{"maxQuantity":{"description":"Max allowed quantity for a particular license in a price plan","type":"integer","format":"int64","example":100,"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].config.maxQuantity","typeLabel":"integer\u003cint64>"},"maxQuantityBreachAction":{"type":"string","enum":["DO_NOTHING"],"description":"Action to be taken when the license maxQuantity is breached: \n- `DO_NOTHING`: Refrain from granting any new licenses.\n","uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].config.maxQuantityBreachAction","typeLabel":"enum\u003cstring>"}},"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].config","typeLabel":"LicenseRateCardConfig Β· object"},"proratedRefundMode":{"type":"string","enum":["NONE","CREDITS","PAYMENT"],"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX].proratedRefundMode","typeLabel":"enum\u003cstring>"}},"uniqueKey":"purchasePlanOverride.licenseRateCards.items.[INDEX]","typeLabel":"LicenseRateCard Β· object"},"uniqueKey":"purchasePlanOverride.licenseRateCards","typeLabel":"LicenseRateCard Β· object[]"},"minimumCommitment":{"title":"MinimumCommitment","type":"object","required":["displayName","rateValues"],"properties":{"displayName":{"type":"string","isRequired":true,"uniqueKey":"purchasePlanOverride.minimumCommitment.displayName","typeLabel":"string"},"rateValues":{"type":"array","minItems":1,"items":{"type":"object","required":["currency","rate"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"purchasePlanOverride.minimumCommitment.rateValues.items.[INDEX].currency","typeLabel":"string"},"rate":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.minimumCommitment.rateValues.items.[INDEX].rate","typeLabel":"number"}},"uniqueKey":"purchasePlanOverride.minimumCommitment.rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.minimumCommitment.rateValues","typeLabel":"object[]"}},"uniqueKey":"purchasePlanOverride.minimumCommitment","typeLabel":"MinimumCommitment Β· object"},"rateDetails":{"type":"object","description":"rate details for a price plan","additionalProperties":false,"required":["rateValues","ratePlan"],"properties":{"rateValues":{"type":"array","items":{"type":"object","description":"Represents a rate","required":["currency","slabRates"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"purchasePlanOverride.rateDetails.rateValues.items.[INDEX].currency","typeLabel":"string"},"slabRates":{"type":"array","minItems":1,"items":{"type":"object","description":"Represents a rate for a slab","required":["order","rate"],"properties":{"order":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"purchasePlanOverride.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX].rate","typeLabel":"number"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlanOverride.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.rateDetails.rateValues.items.[INDEX].slabRates","typeLabel":"object[]"}},"uniqueKey":"purchasePlanOverride.rateDetails.rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.rateDetails.rateValues","typeLabel":"object[]"},"ratePlan":{"type":"object","description":"Contains all rate related configurations","required":["pricingModel","slabs"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"purchasePlanOverride.rateDetails.ratePlan.pricingModel","typeLabel":"enum\u003cstring>"},"slabs":{"description":"Rate cards can have single or multiple slab up to 100.","type":"array","minItems":1,"items":{"type":"object","description":"Represents a pricing priceType (rates + slabs) for usage price plan","required":["order","startAfter","priceType"],"properties":{"order":{"type":"integer","format":"int32","minimum":1,"maximum":10,"isRequired":true,"uniqueKey":"purchasePlanOverride.rateDetails.ratePlan.slabs.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"startAfter":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.rateDetails.ratePlan.slabs.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"purchasePlanOverride.rateDetails.ratePlan.slabs.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlanOverride.rateDetails.ratePlan.slabs.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.rateDetails.ratePlan.slabs.items.[INDEX].slabConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.rateDetails.ratePlan.slabs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.rateDetails.ratePlan.slabs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"purchasePlanOverride.rateDetails.ratePlan","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.rateDetails","typeLabel":"object"},"entitlementRateCards":{"type":"array","maxItems":50,"items":{"description":"Entitlement type rate card","type":"object","additionalProperties":false,"required":["featureId","featureConfigs"],"properties":{"featureId":{"type":"string","isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementRateCards.items.[INDEX].featureId","typeLabel":"string"},"featureConfigs":{"type":"array","minItems":1,"items":{"description":"Feature configuration object","type":"object","additionalProperties":false,"required":["effectiveUntil","featureCreditLimit"],"properties":{"effectiveUntil":{"type":"string","format":"duration","isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].effectiveUntil","typeLabel":"string\u003cduration>"},"featureCreditLimit":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].featureCreditLimit","typeLabel":"number"},"effectiveFrom":{"type":"string","format":"duration","uniqueKey":"purchasePlanOverride.entitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].effectiveFrom","typeLabel":"string\u003cduration>"}},"uniqueKey":"purchasePlanOverride.entitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.entitlementRateCards.items.[INDEX].featureConfigs","typeLabel":"object[]"}},"uniqueKey":"purchasePlanOverride.entitlementRateCards.items.[INDEX]","typeLabel":"object"},"uniqueKey":"purchasePlanOverride.entitlementRateCards","typeLabel":"object[]"},"creditGrantRateCards":{"type":"array","items":{"description":"Credit grant rate card","type":"object","additionalProperties":false,"required":["id","rateDetails","grantDetails"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].id","typeLabel":"string"},"grantDetails":{"description":"Grant details of Credit Grant Rate Card","type":"object","additionalProperties":false,"required":["priority","expiryType"],"properties":{"priority":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].grantDetails.priority","typeLabel":"integer"},"expiryType":{"type":"string","description":"Expiry type of grant","enum":["PRICING_CYCLE","NO_EXPIRY","CUSTOM"],"isRequired":true,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].grantDetails.expiryType","typeLabel":"enum\u003cstring>"},"expiryDuration":{"type":"string","format":"duration","uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].grantDetails.expiryDuration","typeLabel":"string\u003cduration>"},"applicableEntityIds":{"type":"array","items":{"type":"string","uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].grantDetails.applicableEntityIds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].grantDetails.applicableEntityIds","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].grantDetails","typeLabel":"object"},"rateDetails":{"type":"object","description":"Amount to be credited","additionalProperties":false,"required":["pricingModel","currencySlabRateDetails"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.pricingModel","typeLabel":"enum\u003cstring>"},"currencySlabRateDetails":{"type":"array","items":{"type":"object","description":"The association of a currency along with its slab detail","additionalProperties":false,"required":["currency","creditAmount","slabDetails"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].currency","typeLabel":"string"},"creditAmount":{"type":"number","description":"The amount of credit that needs to be credited","minimum":0,"isRequired":true,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].creditAmount","typeLabel":"number"},"slabDetails":{"type":"array","items":{"type":"object","description":"The details of a slab","additionalProperties":false,"required":["startAfter","priceType","rate"],"properties":{"startAfter":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].rate","typeLabel":"number"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].slabConfig","typeLabel":"object"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails","typeLabel":"object[]"}},"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].rateDetails","typeLabel":"object"},"displayName":{"type":"string","uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].displayName","typeLabel":"string"},"tag":{"type":"string","description":"A tag string to group creditGrantRateCard","uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].tag","typeLabel":"string"},"invoiceTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"x-enum-varnames":["IN_ADVANCE","IN_ARREARS"],"description":"If IN_ADVANCE, the fixed fee will be invoiced in the previous billing cycle.\nIf IN_ARREARS, the fixed fee will be invoiced in the current billing cycle.\n","uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].invoiceTiming","typeLabel":"enum\u003cstring>"},"type":{"type":"string","enum":["ONE_TIME","RECURRING"],"description":"Credit grant applies either for a one-time occurrence or for each cycle.","uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"recurrenceConfig":{"type":"object","properties":{"interval":{"description":"Represents the number of pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":3,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].recurrenceConfig.interval","typeLabel":"integer\u003cint64>"},"offset":{"description":"Represents the offset for pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":5,"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].recurrenceConfig.offset","typeLabel":"integer\u003cint64>"}},"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX].recurrenceConfig","typeLabel":"object"}},"uniqueKey":"purchasePlanOverride.creditGrantRateCards.items.[INDEX]","typeLabel":"object"},"uniqueKey":"purchasePlanOverride.creditGrantRateCards","typeLabel":"object[]"}},"uniqueKey":"purchasePlanOverride","typeLabel":"object"},"associationOverride":{"type":"object","properties":{"pricingCycleConfig":{"type":"object","description":"Represents configurations related to pricing cycle","required":["interval","gracePeriod"],"properties":{"interval":{"type":"string","description":"Interval field allow you to define the billing interval you would like to set","enum":["WEEKLY","MONTHLY","QUARTERLY","HALF_YEARLY","ANNUALLY"],"isRequired":true,"uniqueKey":"associationOverride.pricingCycleConfig.interval","typeLabel":"enum\u003cstring>"},"gracePeriod":{"type":"integer","description":"Togai allows you to ingest past dated events that will be processed by a pricing cycle till the end grace period. \nFor example: Pricing cycle is Monthly from 1st to 30th and gracePeriod is 5 days which next month 1 to 5th date, you can ingest past dated events during this grace period.\n","format":"int32","example":3,"isRequired":true,"uniqueKey":"associationOverride.pricingCycleConfig.gracePeriod","typeLabel":"integer\u003cint32>"},"startOffset":{"type":"object","description":"Represents the start of pricing cycle in terms of\n - dayOffset - number of days from beginning of week / month and\n - monthOffset - number of months from beginning of interval (quarter, half-year or year)\nNote: If a day with offset doesn't exist for a month, closest previous day is considered\nExamples:\nWEEKLY -\n - {dayOffset: 1, monthOffset: NIL} - First day of every week (Monday)\n - {dayOffset: 3, monthOffset: NIL} - 3rd day of every week (Wednesday)\n - {dayOffset: LAST, monthOffset: NIL} - Last day of every week (Sunday)\nMONTHLY -\n - {dayOffset: 1, monthOffset: NIL} - First day of every month\n - {dayOffset: 12, monthOffset: NIL} - 12th of every month\n - {dayOffset: 28, monthOffset: NIL} - 28th of every month. i.e, 28th of Jan, 28th of Feb, ...\n - {dayOffset: 30, monthOffset: NIL} - 30th of every month. i.e, 28th of Jan, 28th of Feb, ...\n - {dayOffset: LAST, monthOffset: NIL} - Last day of every month. i.e, 31st of Jan, 28th of Feb, ...\nQUARTERLY\n - {dayOffset: 15, monthOffset: FIRST} - 15th Jan, 15th Apr, 15th Jul and 15th Oct\n - {dayOffset: 15, monthOffset: 2} - 15th Feb, 15th May, 15th Aug and 15th Nov\n - {dayOffset: 15, monthOffset: LAST} - 15th Mar, 15th Jun, 15th Sep and 15th Dec\n - {dayOffset: LAST, monthOffset: FIRST} - 31st Jan, 30th Apr, 30th Jul and 31th Oct\nHALF_YEARLY\n - {dayOffset: 15, monthOffset: FIRST} - 15th Jan and 15th Jul\n - {dayOffset: 15, monthOffset: 4} - 15th Apr and 15th Oct\n - {dayOffset: 15, monthOffset: LAST} - 15th Jun and 15th Dec\nANNUALLY\n - {dayOffset: 15, monthOffset: FIRST} - 15th Jan\n - {dayOffset: 15, monthOffset: 1} - 15th Jan\n - {dayOffset: LAST, monthOffset: 2} - 29th Feb on Leap year, 28th otherwise \n - {dayOffset: 15, monthOffset: 8} - 15th Aug\n - {dayOffset: 15, monthOffset: LAST} - 15th Dec\n","required":["dayOffset","monthOffset"],"properties":{"dayOffset":{"type":"string","description":"If interval is WEEKLY, min: \"1\" and max: \"7\" as strings. Spl. string allowed: LAST\nOtherwise, min: \"1\" and max: \"31\" as strings. Spl. string allowed: LAST\n","isRequired":true,"uniqueKey":"associationOverride.pricingCycleConfig.startOffset.dayOffset","typeLabel":"string"},"monthOffset":{"type":"string","description":"min: \"1\" and max: \"12\". Spl. string allowed: FIRST / LAST.\nFor QUARTERLY only 1 - 3 is allowed and for HALF_YEARLY 1 - 6. This being an optional field, shouldn't be passed for MONTHLY.\n","isRequired":true,"uniqueKey":"associationOverride.pricingCycleConfig.startOffset.monthOffset","typeLabel":"string"}},"uniqueKey":"associationOverride.pricingCycleConfig.startOffset","typeLabel":"object"},"anniversaryCycle":{"type":"boolean","description":"Togai calculates the startOffsets based on the date of association instead of requiring from the user and \nthese offsets will be applied as an override if this flag is enabled.\nExamples:\nWEEKLY -\n - 23/10/2023 (Monday) - {dayOffset: 1, monthOffset: NIL} \n - 25/10/2023 (Wednesday) - {dayOffset: 3, monthOffset: NIL} \n - 29/10/2023 (Sunday) - {dayOffset: 7, monthOffset: NIL}\nMONTHLY -\n - 1st Oct - {dayOffset: 1, monthOffset: NIL}\n - 12th Oct - {dayOffset: 12, monthOffset: NIL}\n - 28th Oct - {dayOffset: 28, monthOffset: NIL}\n - 30th Oct - {dayOffset: 30, monthOffset: NIL}\n - 31th Oct - {dayOffset: LAST, monthOffset: NIL}\nQUARTERLY\n - 15th Jan, 15th Apr, 15th Jul and 15th Oct - {dayOffset: 15, monthOffset: 1}\n - 15th Feb, 15th May, 15th Aug and 15th Nov - {dayOffset: 15, monthOffset: 2} \n - 15th Mar, 15th Jun, 15th Sep and 15th Dec - {dayOffset: 15, monthOffset: 3}\nHALF_YEARLY\n - 15th Jan and 15th Jul - {dayOffset: 15, monthOffset: 1} \n - 15th Apr and 15th Oct - {dayOffset: 15, monthOffset: 4} \n - 15th Jun and 15th Dec - {dayOffset: 15, monthOffset: 6}\nANNUALLY\n - 15th Jan - {dayOffset: 15, monthOffset: 1}\n - 29th Feb on Leap year - {dayOffset: LAST, monthOffset: 2}\n - 28th Feb - {dayOffset: LAST, monthOffset: 2}\n - 15th Aug - {dayOffset: 15, monthOffset: 8}\n - 15th Dec - {dayOffset: 15, monthOffset: 12}\n","uniqueKey":"associationOverride.pricingCycleConfig.anniversaryCycle","typeLabel":"boolean"}},"uniqueKey":"associationOverride.pricingCycleConfig","typeLabel":"object"},"supportedCurrencies":{"type":"array","uniqueItems":true,"minItems":1,"items":{"type":"string","uniqueKey":"associationOverride.supportedCurrencies.items.[INDEX]","typeLabel":"string"},"uniqueKey":"associationOverride.supportedCurrencies","typeLabel":"string[]"},"usageRateCards":{"type":"array","items":{"type":"object","required":["usageMeterId","ratePlan","rateValues"],"properties":{"usageMeterId":{"type":"string","example":"um.1zYnCiM9Bpg.1zYn","isRequired":true,"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].usageMeterId","typeLabel":"string"},"ratePlan":{"type":"object","description":"Contains all rate related configurations","required":["pricingModel","slabs"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].ratePlan.pricingModel","typeLabel":"enum\u003cstring>"},"slabs":{"description":"Rate cards can have single or multiple slab up to 100.","type":"array","minItems":1,"items":{"type":"object","description":"Represents a pricing priceType (rates + slabs) for usage price plan","required":["order","startAfter","priceType"],"properties":{"order":{"type":"integer","format":"int32","minimum":1,"maximum":10,"isRequired":true,"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"startAfter":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"associationOverride.usageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].ratePlan.slabs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].ratePlan","typeLabel":"object"},"rateValues":{"type":"array","items":{"type":"object","description":"Represents a rate","required":["currency","slabRates"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].currency","typeLabel":"string"},"slabRates":{"type":"array","minItems":1,"items":{"type":"object","description":"Represents a rate for a slab","required":["order","rate"],"properties":{"order":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].rate","typeLabel":"number"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"associationOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates","typeLabel":"object[]"}},"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.usageRateCards.items.[INDEX].rateValues","typeLabel":"object[]"},"displayName":{"type":"string","description":"Name your rate card, this will be displayed in the Togai App","uniqueKey":"associationOverride.usageRateCards.items.[INDEX].displayName","typeLabel":"string"},"tag":{"type":"string","description":"A tag string to group usageRateCards","uniqueKey":"associationOverride.usageRateCards.items.[INDEX].tag","typeLabel":"string"}},"uniqueKey":"associationOverride.usageRateCards.items.[INDEX]","typeLabel":"object"},"uniqueKey":"associationOverride.usageRateCards","typeLabel":"object[]"},"billingEntitlementRateCards":{"type":"array","items":{"type":"object","description":"Entitlement type rate card","required":["ratePlan","rateValues","invoiceTiming","featureId","featureConfigs"],"properties":{"featureId":{"type":"string","isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].featureId","typeLabel":"string"},"featureConfigs":{"type":"array","minItems":1,"items":{"description":"Feature configuration object","type":"object","additionalProperties":false,"required":["effectiveUntil","featureCreditLimit"],"properties":{"effectiveUntil":{"type":"string","format":"duration","isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].effectiveUntil","typeLabel":"string\u003cduration>"},"featureCreditLimit":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].featureCreditLimit","typeLabel":"number"},"effectiveFrom":{"type":"string","format":"duration","uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].effectiveFrom","typeLabel":"string\u003cduration>"}},"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].featureConfigs","typeLabel":"object[]"},"invoiceTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"x-enum-varnames":["IN_ADVANCE","IN_ARREARS"],"description":"If IN_ADVANCE, the fixed fee will be invoiced in the previous billing cycle.\nIf IN_ARREARS, the fixed fee will be invoiced in the current billing cycle.\n","isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].invoiceTiming","typeLabel":"enum\u003cstring>"},"ratePlan":{"type":"object","description":"Contains all rate related configurations","required":["pricingModel","slabs"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.pricingModel","typeLabel":"enum\u003cstring>"},"slabs":{"description":"Rate cards can have single or multiple slab up to 100.","type":"array","minItems":1,"items":{"type":"object","description":"Represents a pricing priceType (rates + slabs) for usage price plan","required":["order","startAfter","priceType"],"properties":{"order":{"type":"integer","format":"int32","minimum":1,"maximum":10,"isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"startAfter":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].ratePlan","typeLabel":"object"},"rateValues":{"type":"array","items":{"type":"object","description":"Represents a rate","required":["currency","slabRates"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].currency","typeLabel":"string"},"slabRates":{"type":"array","minItems":1,"items":{"type":"object","description":"Represents a rate for a slab","required":["order","rate"],"properties":{"order":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].rate","typeLabel":"number"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates","typeLabel":"object[]"}},"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].rateValues","typeLabel":"object[]"},"tag":{"type":"string","description":"A tag string to group rate cards","uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].tag","typeLabel":"string"},"displayName":{"type":"string","description":"Name your rate card, this will be used in invoice","uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].displayName","typeLabel":"string"},"recurrenceConfig":{"type":"object","properties":{"interval":{"description":"Represents the number of pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":3,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].recurrenceConfig.interval","typeLabel":"integer\u003cint64>"},"offset":{"description":"Represents the offset for pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":5,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].recurrenceConfig.offset","typeLabel":"integer\u003cint64>"}},"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX].recurrenceConfig","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"associationOverride.billingEntitlementRateCards.items.[INDEX]","typeLabel":"object"},"uniqueKey":"associationOverride.billingEntitlementRateCards","typeLabel":"object[]"},"entitlementOverageRateCards":{"type":"array","items":{"type":"object","required":["ratePlan","rateValues","featureId"],"properties":{"featureId":{"type":"string","description":"Unique Identifier of the attached Feature","maxLength":50,"isRequired":true,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].featureId","typeLabel":"string"},"ratePlan":{"type":"object","description":"Contains all rate related configurations","required":["pricingModel","slabs"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.pricingModel","typeLabel":"enum\u003cstring>"},"slabs":{"description":"Rate cards can have single or multiple slab up to 100.","type":"array","minItems":1,"items":{"type":"object","description":"Represents a pricing priceType (rates + slabs) for usage price plan","required":["order","startAfter","priceType"],"properties":{"order":{"type":"integer","format":"int32","minimum":1,"maximum":10,"isRequired":true,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"startAfter":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].ratePlan.slabs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].ratePlan","typeLabel":"object"},"rateValues":{"type":"array","items":{"type":"object","description":"Represents a rate","required":["currency","slabRates"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].currency","typeLabel":"string"},"slabRates":{"type":"array","minItems":1,"items":{"type":"object","description":"Represents a rate for a slab","required":["order","rate"],"properties":{"order":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].rate","typeLabel":"number"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates","typeLabel":"object[]"}},"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].rateValues","typeLabel":"object[]"},"displayName":{"type":"string","description":"Name to be displayed during invoice","uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].displayName","typeLabel":"string"},"tag":{"type":"string","description":"A tag string to group rate cards","uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].tag","typeLabel":"string"},"maxQuantity":{"type":"number","description":"Maximum quantity allowed for the feature, if not specified, unlimited quantity is allowed","uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].maxQuantity","typeLabel":"number"},"billingConfig":{"type":"object","properties":{"interval":{"description":"Represents the number of pricing cycles after which the rate card will be billed","type":"integer","format":"int64","example":3,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].billingConfig.interval","typeLabel":"integer\u003cint64>"},"startOffset":{"description":"Represents the offset for pricing cycles after which the rate card will be billed","type":"integer","format":"int64","example":5,"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].billingConfig.startOffset","typeLabel":"integer\u003cint64>"}},"description":"Represents the billing config of the entitlement overage rate card. If not specified interval:1 and startOffset:0 is taken as default value","uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX].billingConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.entitlementOverageRateCards.items.[INDEX]","typeLabel":"object"},"uniqueKey":"associationOverride.entitlementOverageRateCards","typeLabel":"object[]"},"fixedFeeRateCards":{"type":"array","items":{"title":"FixedFeeRateCard","type":"object","required":["id","rateValues","enableProration"],"properties":{"id":{"description":"Unique Identifier of the attached AddOn","type":"string","maxLength":50,"isRequired":true,"uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX].id","typeLabel":"string"},"rateValues":{"type":"array","items":{"type":"object","required":["currency","rate"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX].rateValues.items.[INDEX].currency","typeLabel":"string"},"rate":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX].rateValues.items.[INDEX].rate","typeLabel":"number"}},"uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX].rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX].rateValues","typeLabel":"object[]"},"enableProration":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX].enableProration","typeLabel":"boolean"},"displayName":{"type":"string","description":"Name of the attached AddOn","uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX].displayName","typeLabel":"string"},"tag":{"type":"string","description":"A tag string to group fixedFeeRateCards","uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX].tag","typeLabel":"string"},"invoiceTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"x-enum-varnames":["IN_ADVANCE","IN_ARREARS"],"description":"If IN_ADVANCE, the fixed fee will be invoiced in the previous billing cycle.\nIf IN_ARREARS, the fixed fee will be invoiced in the current billing cycle.\n","uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX].invoiceTiming","typeLabel":"enum\u003cstring>"},"type":{"type":"string","enum":["ONE_TIME","RECURRING"],"description":"Fixed fee applies either for a one-time occurrence or for each cycle.","uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"recurrenceConfig":{"type":"object","properties":{"interval":{"description":"Represents the number of pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":3,"uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX].recurrenceConfig.interval","typeLabel":"integer\u003cint64>"},"offset":{"description":"Represents the offset for pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":5,"uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX].recurrenceConfig.offset","typeLabel":"integer\u003cint64>"}},"uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX].recurrenceConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.fixedFeeRateCards.items.[INDEX]","typeLabel":"FixedFeeRateCard Β· object"},"uniqueKey":"associationOverride.fixedFeeRateCards","typeLabel":"FixedFeeRateCard Β· object[]"},"licenseRateCards":{"type":"array","items":{"title":"LicenseRateCard","type":"object","required":["id","rateValues","ratePlan","enableProration"],"properties":{"id":{"description":"Unique Identifier of the attached AddOn","type":"string","maxLength":50,"isRequired":true,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].id","typeLabel":"string"},"enableProration":{"type":"boolean","example":false,"isRequired":true,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].enableProration","typeLabel":"boolean"},"ratePlan":{"type":"object","description":"Contains all rate related configurations","required":["pricingModel","slabs"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].ratePlan.pricingModel","typeLabel":"enum\u003cstring>"},"slabs":{"description":"Rate cards can have single or multiple slab up to 100.","type":"array","minItems":1,"items":{"type":"object","description":"Represents a pricing priceType (rates + slabs) for usage price plan","required":["order","startAfter","priceType"],"properties":{"order":{"type":"integer","format":"int32","minimum":1,"maximum":10,"isRequired":true,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"startAfter":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].ratePlan.slabs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].ratePlan","typeLabel":"object"},"rateValues":{"type":"array","items":{"type":"object","description":"Represents a rate","required":["currency","slabRates"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].currency","typeLabel":"string"},"slabRates":{"type":"array","minItems":1,"items":{"type":"object","description":"Represents a rate for a slab","required":["order","rate"],"properties":{"order":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].rate","typeLabel":"number"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates","typeLabel":"object[]"}},"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].rateValues","typeLabel":"object[]"},"displayName":{"type":"string","description":"Name of the attached AddOn","uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].displayName","typeLabel":"string"},"tag":{"type":"string","description":"A tag string to group licenseRateCards","uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].tag","typeLabel":"string"},"invoiceTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"x-enum-varnames":["IN_ADVANCE","IN_ARREARS"],"description":"If IN_ADVANCE, the fixed fee will be invoiced in the previous billing cycle.\nIf IN_ARREARS, the fixed fee will be invoiced in the current billing cycle.\n","uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].invoiceTiming","typeLabel":"enum\u003cstring>"},"config":{"title":"LicenseRateCardConfig","type":"object","properties":{"maxQuantity":{"description":"Max allowed quantity for a particular license in a price plan","type":"integer","format":"int64","example":100,"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].config.maxQuantity","typeLabel":"integer\u003cint64>"},"maxQuantityBreachAction":{"type":"string","enum":["DO_NOTHING"],"description":"Action to be taken when the license maxQuantity is breached: \n- `DO_NOTHING`: Refrain from granting any new licenses.\n","uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].config.maxQuantityBreachAction","typeLabel":"enum\u003cstring>"}},"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].config","typeLabel":"LicenseRateCardConfig Β· object"},"proratedRefundMode":{"type":"string","enum":["NONE","CREDITS","PAYMENT"],"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX].proratedRefundMode","typeLabel":"enum\u003cstring>"}},"uniqueKey":"associationOverride.licenseRateCards.items.[INDEX]","typeLabel":"LicenseRateCard Β· object"},"uniqueKey":"associationOverride.licenseRateCards","typeLabel":"LicenseRateCard Β· object[]"},"minimumCommitment":{"title":"MinimumCommitment","type":"object","required":["displayName","rateValues"],"properties":{"displayName":{"type":"string","isRequired":true,"uniqueKey":"associationOverride.minimumCommitment.displayName","typeLabel":"string"},"rateValues":{"type":"array","minItems":1,"items":{"type":"object","required":["currency","rate"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"associationOverride.minimumCommitment.rateValues.items.[INDEX].currency","typeLabel":"string"},"rate":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.minimumCommitment.rateValues.items.[INDEX].rate","typeLabel":"number"}},"uniqueKey":"associationOverride.minimumCommitment.rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.minimumCommitment.rateValues","typeLabel":"object[]"}},"uniqueKey":"associationOverride.minimumCommitment","typeLabel":"MinimumCommitment Β· object"},"rateDetails":{"type":"object","description":"rate details for a price plan","additionalProperties":false,"required":["rateValues","ratePlan"],"properties":{"rateValues":{"type":"array","items":{"type":"object","description":"Represents a rate","required":["currency","slabRates"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"associationOverride.rateDetails.rateValues.items.[INDEX].currency","typeLabel":"string"},"slabRates":{"type":"array","minItems":1,"items":{"type":"object","description":"Represents a rate for a slab","required":["order","rate"],"properties":{"order":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"associationOverride.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX].rate","typeLabel":"number"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"associationOverride.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"associationOverride.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.rateDetails.rateValues.items.[INDEX].slabRates","typeLabel":"object[]"}},"uniqueKey":"associationOverride.rateDetails.rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.rateDetails.rateValues","typeLabel":"object[]"},"ratePlan":{"type":"object","description":"Contains all rate related configurations","required":["pricingModel","slabs"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"associationOverride.rateDetails.ratePlan.pricingModel","typeLabel":"enum\u003cstring>"},"slabs":{"description":"Rate cards can have single or multiple slab up to 100.","type":"array","minItems":1,"items":{"type":"object","description":"Represents a pricing priceType (rates + slabs) for usage price plan","required":["order","startAfter","priceType"],"properties":{"order":{"type":"integer","format":"int32","minimum":1,"maximum":10,"isRequired":true,"uniqueKey":"associationOverride.rateDetails.ratePlan.slabs.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"startAfter":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.rateDetails.ratePlan.slabs.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"associationOverride.rateDetails.ratePlan.slabs.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"associationOverride.rateDetails.ratePlan.slabs.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"associationOverride.rateDetails.ratePlan.slabs.items.[INDEX].slabConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.rateDetails.ratePlan.slabs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.rateDetails.ratePlan.slabs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"associationOverride.rateDetails.ratePlan","typeLabel":"object"}},"uniqueKey":"associationOverride.rateDetails","typeLabel":"object"},"entitlementRateCards":{"type":"array","maxItems":50,"items":{"description":"Entitlement type rate card","type":"object","additionalProperties":false,"required":["featureId","featureConfigs"],"properties":{"featureId":{"type":"string","isRequired":true,"uniqueKey":"associationOverride.entitlementRateCards.items.[INDEX].featureId","typeLabel":"string"},"featureConfigs":{"type":"array","minItems":1,"items":{"description":"Feature configuration object","type":"object","additionalProperties":false,"required":["effectiveUntil","featureCreditLimit"],"properties":{"effectiveUntil":{"type":"string","format":"duration","isRequired":true,"uniqueKey":"associationOverride.entitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].effectiveUntil","typeLabel":"string\u003cduration>"},"featureCreditLimit":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"associationOverride.entitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].featureCreditLimit","typeLabel":"number"},"effectiveFrom":{"type":"string","format":"duration","uniqueKey":"associationOverride.entitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].effectiveFrom","typeLabel":"string\u003cduration>"}},"uniqueKey":"associationOverride.entitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.entitlementRateCards.items.[INDEX].featureConfigs","typeLabel":"object[]"}},"uniqueKey":"associationOverride.entitlementRateCards.items.[INDEX]","typeLabel":"object"},"uniqueKey":"associationOverride.entitlementRateCards","typeLabel":"object[]"},"creditGrantRateCards":{"type":"array","items":{"description":"Credit grant rate card","type":"object","additionalProperties":false,"required":["id","rateDetails","grantDetails"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].id","typeLabel":"string"},"grantDetails":{"description":"Grant details of Credit Grant Rate Card","type":"object","additionalProperties":false,"required":["priority","expiryType"],"properties":{"priority":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].grantDetails.priority","typeLabel":"integer"},"expiryType":{"type":"string","description":"Expiry type of grant","enum":["PRICING_CYCLE","NO_EXPIRY","CUSTOM"],"isRequired":true,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].grantDetails.expiryType","typeLabel":"enum\u003cstring>"},"expiryDuration":{"type":"string","format":"duration","uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].grantDetails.expiryDuration","typeLabel":"string\u003cduration>"},"applicableEntityIds":{"type":"array","items":{"type":"string","uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].grantDetails.applicableEntityIds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].grantDetails.applicableEntityIds","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].grantDetails","typeLabel":"object"},"rateDetails":{"type":"object","description":"Amount to be credited","additionalProperties":false,"required":["pricingModel","currencySlabRateDetails"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.pricingModel","typeLabel":"enum\u003cstring>"},"currencySlabRateDetails":{"type":"array","items":{"type":"object","description":"The association of a currency along with its slab detail","additionalProperties":false,"required":["currency","creditAmount","slabDetails"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].currency","typeLabel":"string"},"creditAmount":{"type":"number","description":"The amount of credit that needs to be credited","minimum":0,"isRequired":true,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].creditAmount","typeLabel":"number"},"slabDetails":{"type":"array","items":{"type":"object","description":"The details of a slab","additionalProperties":false,"required":["startAfter","priceType","rate"],"properties":{"startAfter":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].rate","typeLabel":"number"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].slabConfig","typeLabel":"object"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails","typeLabel":"object[]"}},"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].rateDetails","typeLabel":"object"},"displayName":{"type":"string","uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].displayName","typeLabel":"string"},"tag":{"type":"string","description":"A tag string to group creditGrantRateCard","uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].tag","typeLabel":"string"},"invoiceTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"x-enum-varnames":["IN_ADVANCE","IN_ARREARS"],"description":"If IN_ADVANCE, the fixed fee will be invoiced in the previous billing cycle.\nIf IN_ARREARS, the fixed fee will be invoiced in the current billing cycle.\n","uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].invoiceTiming","typeLabel":"enum\u003cstring>"},"type":{"type":"string","enum":["ONE_TIME","RECURRING"],"description":"Credit grant applies either for a one-time occurrence or for each cycle.","uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"recurrenceConfig":{"type":"object","properties":{"interval":{"description":"Represents the number of pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":3,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].recurrenceConfig.interval","typeLabel":"integer\u003cint64>"},"offset":{"description":"Represents the offset for pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":5,"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].recurrenceConfig.offset","typeLabel":"integer\u003cint64>"}},"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX].recurrenceConfig","typeLabel":"object"}},"uniqueKey":"associationOverride.creditGrantRateCards.items.[INDEX]","typeLabel":"object"},"uniqueKey":"associationOverride.creditGrantRateCards","typeLabel":"object[]"}},"uniqueKey":"associationOverride","typeLabel":"object"},"updatedAt":{"type":"string","format":"date-time","uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"effectiveFrom":{"type":"string","format":"date","uniqueKey":"effectiveFrom","typeLabel":"string\u003cdate>"},"effectiveUntil":{"type":"string","format":"date","uniqueKey":"effectiveUntil","typeLabel":"string\u003cdate>"},"expiryDate":{"type":"string","format":"date-time","uniqueKey":"expiryDate","typeLabel":"string\u003cdate-time>"},"price":{"type":"number","uniqueKey":"price","typeLabel":"number"},"invoiceId":{"type":"string","uniqueKey":"invoiceId","typeLabel":"string"},"invoiceCurrency":{"type":"string","uniqueKey":"invoiceCurrency","typeLabel":"string"},"comment":{"type":"string","uniqueKey":"comment","typeLabel":"string"},"purchasePlan":{"description":"entitlements override options for purchase of a price plan for an account","type":"object","additionalProperties":false,"properties":{"rateDetails":{"type":"object","description":"rate details for a price plan","additionalProperties":false,"required":["rateValues","ratePlan"],"properties":{"rateValues":{"type":"array","items":{"type":"object","description":"Represents a rate","required":["currency","slabRates"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"purchasePlan.rateDetails.rateValues.items.[INDEX].currency","typeLabel":"string"},"slabRates":{"type":"array","minItems":1,"items":{"type":"object","description":"Represents a rate for a slab","required":["order","rate"],"properties":{"order":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"purchasePlan.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"purchasePlan.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX].rate","typeLabel":"number"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlan.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlan.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"purchasePlan.rateDetails.rateValues.items.[INDEX].slabRates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlan.rateDetails.rateValues.items.[INDEX].slabRates","typeLabel":"object[]"}},"uniqueKey":"purchasePlan.rateDetails.rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlan.rateDetails.rateValues","typeLabel":"object[]"},"ratePlan":{"type":"object","description":"Contains all rate related configurations","required":["pricingModel","slabs"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"purchasePlan.rateDetails.ratePlan.pricingModel","typeLabel":"enum\u003cstring>"},"slabs":{"description":"Rate cards can have single or multiple slab up to 100.","type":"array","minItems":1,"items":{"type":"object","description":"Represents a pricing priceType (rates + slabs) for usage price plan","required":["order","startAfter","priceType"],"properties":{"order":{"type":"integer","format":"int32","minimum":1,"maximum":10,"isRequired":true,"uniqueKey":"purchasePlan.rateDetails.ratePlan.slabs.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"startAfter":{"type":"number","isRequired":true,"uniqueKey":"purchasePlan.rateDetails.ratePlan.slabs.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"purchasePlan.rateDetails.ratePlan.slabs.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlan.rateDetails.ratePlan.slabs.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlan.rateDetails.ratePlan.slabs.items.[INDEX].slabConfig","typeLabel":"object"}},"uniqueKey":"purchasePlan.rateDetails.ratePlan.slabs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlan.rateDetails.ratePlan.slabs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"purchasePlan.rateDetails.ratePlan","typeLabel":"object"}},"uniqueKey":"purchasePlan.rateDetails","typeLabel":"object"},"entitlementRateCards":{"type":"array","maxItems":50,"items":{"description":"Entitlement type rate card","type":"object","additionalProperties":false,"required":["featureId","featureConfigs"],"properties":{"featureId":{"type":"string","isRequired":true,"uniqueKey":"purchasePlan.entitlementRateCards.items.[INDEX].featureId","typeLabel":"string"},"featureConfigs":{"type":"array","minItems":1,"items":{"description":"Feature configuration object","type":"object","additionalProperties":false,"required":["effectiveUntil","featureCreditLimit"],"properties":{"effectiveUntil":{"type":"string","format":"duration","isRequired":true,"uniqueKey":"purchasePlan.entitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].effectiveUntil","typeLabel":"string\u003cduration>"},"featureCreditLimit":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"purchasePlan.entitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].featureCreditLimit","typeLabel":"number"},"effectiveFrom":{"type":"string","format":"duration","uniqueKey":"purchasePlan.entitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].effectiveFrom","typeLabel":"string\u003cduration>"}},"uniqueKey":"purchasePlan.entitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlan.entitlementRateCards.items.[INDEX].featureConfigs","typeLabel":"object[]"}},"uniqueKey":"purchasePlan.entitlementRateCards.items.[INDEX]","typeLabel":"object"},"uniqueKey":"purchasePlan.entitlementRateCards","typeLabel":"object[]"},"billingEntitlementRateCards":{"type":"array","maxItems":50,"items":{"type":"object","description":"Entitlement type rate card","required":["ratePlan","rateValues","invoiceTiming","featureId","featureConfigs"],"properties":{"featureId":{"type":"string","isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].featureId","typeLabel":"string"},"featureConfigs":{"type":"array","minItems":1,"items":{"description":"Feature configuration object","type":"object","additionalProperties":false,"required":["effectiveUntil","featureCreditLimit"],"properties":{"effectiveUntil":{"type":"string","format":"duration","isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].effectiveUntil","typeLabel":"string\u003cduration>"},"featureCreditLimit":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].featureCreditLimit","typeLabel":"number"},"effectiveFrom":{"type":"string","format":"duration","uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX].effectiveFrom","typeLabel":"string\u003cduration>"}},"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].featureConfigs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].featureConfigs","typeLabel":"object[]"},"invoiceTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"x-enum-varnames":["IN_ADVANCE","IN_ARREARS"],"description":"If IN_ADVANCE, the fixed fee will be invoiced in the previous billing cycle.\nIf IN_ARREARS, the fixed fee will be invoiced in the current billing cycle.\n","isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].invoiceTiming","typeLabel":"enum\u003cstring>"},"ratePlan":{"type":"object","description":"Contains all rate related configurations","required":["pricingModel","slabs"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].ratePlan.pricingModel","typeLabel":"enum\u003cstring>"},"slabs":{"description":"Rate cards can have single or multiple slab up to 100.","type":"array","minItems":1,"items":{"type":"object","description":"Represents a pricing priceType (rates + slabs) for usage price plan","required":["order","startAfter","priceType"],"properties":{"order":{"type":"integer","format":"int32","minimum":1,"maximum":10,"isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"startAfter":{"type":"number","isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX].slabConfig","typeLabel":"object"}},"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].ratePlan.slabs","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].ratePlan","typeLabel":"object"},"rateValues":{"type":"array","items":{"type":"object","description":"Represents a rate","required":["currency","slabRates"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].currency","typeLabel":"string"},"slabRates":{"type":"array","minItems":1,"items":{"type":"object","description":"Represents a rate for a slab","required":["order","rate"],"properties":{"order":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].order","typeLabel":"integer\u003cint32>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].rate","typeLabel":"number"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX].slabRates","typeLabel":"object[]"}},"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].rateValues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].rateValues","typeLabel":"object[]"},"tag":{"type":"string","description":"A tag string to group rate cards","uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].tag","typeLabel":"string"},"displayName":{"type":"string","description":"Name your rate card, this will be used in invoice","uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].displayName","typeLabel":"string"},"recurrenceConfig":{"type":"object","properties":{"interval":{"description":"Represents the number of pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":3,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].recurrenceConfig.interval","typeLabel":"integer\u003cint64>"},"offset":{"description":"Represents the offset for pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":5,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].recurrenceConfig.offset","typeLabel":"integer\u003cint64>"}},"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX].recurrenceConfig","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"purchasePlan.billingEntitlementRateCards.items.[INDEX]","typeLabel":"object"},"uniqueKey":"purchasePlan.billingEntitlementRateCards","typeLabel":"object[]"},"creditGrantRateCards":{"type":"array","maxItems":50,"items":{"description":"Credit grant rate card","type":"object","additionalProperties":false,"required":["id","rateDetails","grantDetails"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].id","typeLabel":"string"},"grantDetails":{"description":"Grant details of Credit Grant Rate Card","type":"object","additionalProperties":false,"required":["priority","expiryType"],"properties":{"priority":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].grantDetails.priority","typeLabel":"integer"},"expiryType":{"type":"string","description":"Expiry type of grant","enum":["PRICING_CYCLE","NO_EXPIRY","CUSTOM"],"isRequired":true,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].grantDetails.expiryType","typeLabel":"enum\u003cstring>"},"expiryDuration":{"type":"string","format":"duration","uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].grantDetails.expiryDuration","typeLabel":"string\u003cduration>"},"applicableEntityIds":{"type":"array","items":{"type":"string","uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].grantDetails.applicableEntityIds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].grantDetails.applicableEntityIds","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].grantDetails","typeLabel":"object"},"rateDetails":{"type":"object","description":"Amount to be credited","additionalProperties":false,"required":["pricingModel","currencySlabRateDetails"],"properties":{"pricingModel":{"type":"string","description":"Togai supports two type of pricing model Tiered and Volume. Tiered pricing model applies respective slab and its rate to the usage value while volume pricing model applies the latest matching slab of the usage value and applies respective rate. \nFor more understanding read [Rate Cards](https://docs.togai.com/docs/priceplan#setting-up-multiple-rate-cards)\n","enum":["TIERED","VOLUME"],"isRequired":true,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.pricingModel","typeLabel":"enum\u003cstring>"},"currencySlabRateDetails":{"type":"array","items":{"type":"object","description":"The association of a currency along with its slab detail","additionalProperties":false,"required":["currency","creditAmount","slabDetails"],"properties":{"currency":{"type":"string","isRequired":true,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].currency","typeLabel":"string"},"creditAmount":{"type":"number","description":"The amount of credit that needs to be credited","minimum":0,"isRequired":true,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].creditAmount","typeLabel":"number"},"slabDetails":{"type":"array","items":{"type":"object","description":"The details of a slab","additionalProperties":false,"required":["startAfter","priceType","rate"],"properties":{"startAfter":{"type":"number","isRequired":true,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].startAfter","typeLabel":"number"},"priceType":{"type":"string","enum":["FLAT","PER_UNIT","PACKAGE"],"isRequired":true,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].priceType","typeLabel":"enum\u003cstring>"},"rate":{"type":"number","isRequired":true,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].rate","typeLabel":"number"},"slabConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].slabConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].slabConfig","typeLabel":"object"},"slabRateConfig":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].slabRateConfig.additionalProperties","typeLabel":"string"},"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX].slabRateConfig","typeLabel":"object"}},"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX].slabDetails","typeLabel":"object[]"}},"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails.currencySlabRateDetails","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].rateDetails","typeLabel":"object"},"displayName":{"type":"string","uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].displayName","typeLabel":"string"},"tag":{"type":"string","description":"A tag string to group creditGrantRateCard","uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].tag","typeLabel":"string"},"invoiceTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"x-enum-varnames":["IN_ADVANCE","IN_ARREARS"],"description":"If IN_ADVANCE, the fixed fee will be invoiced in the previous billing cycle.\nIf IN_ARREARS, the fixed fee will be invoiced in the current billing cycle.\n","uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].invoiceTiming","typeLabel":"enum\u003cstring>"},"type":{"type":"string","enum":["ONE_TIME","RECURRING"],"description":"Credit grant applies either for a one-time occurrence or for each cycle.","uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"recurrenceConfig":{"type":"object","properties":{"interval":{"description":"Represents the number of pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":3,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].recurrenceConfig.interval","typeLabel":"integer\u003cint64>"},"offset":{"description":"Represents the offset for pricing cycles after which the rate card will be charged","type":"integer","format":"int64","example":5,"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].recurrenceConfig.offset","typeLabel":"integer\u003cint64>"}},"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX].recurrenceConfig","typeLabel":"object"}},"uniqueKey":"purchasePlan.creditGrantRateCards.items.[INDEX]","typeLabel":"object"},"uniqueKey":"purchasePlan.creditGrantRateCards","typeLabel":"object[]"}},"uniqueKey":"purchasePlan","typeLabel":"object"},"features":{"type":"array","items":{"title":"PurchaseFeatureDetails","type":"object","additionalProperties":false,"required":["id","name","creditsGranted","creditsAvailable","updatedAt","effectiveFrom","effectiveUntil"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"features.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"features.items.[INDEX].name","typeLabel":"string"},"creditsGranted":{"type":"number","isRequired":true,"uniqueKey":"features.items.[INDEX].creditsGranted","typeLabel":"number"},"creditsAvailable":{"type":"number","isRequired":true,"uniqueKey":"features.items.[INDEX].creditsAvailable","typeLabel":"number"},"updatedAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"features.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"},"effectiveFrom":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"features.items.[INDEX].effectiveFrom","typeLabel":"string\u003cdate-time>"},"effectiveUntil":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"features.items.[INDEX].effectiveUntil","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"features.items.[INDEX]","typeLabel":"PurchaseFeatureDetails Β· object"},"uniqueKey":"features","typeLabel":"PurchaseFeatureDetails Β· object[]"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"GetPurchaseForEntitlementPlanResponse":{"title":"GetPurchaseForEntitlementPlanResponse","value":{"id":"purchase.1zYnCiM9Bpg.lv25y","accountId":"G234DZZKBKACATFFGVGEMERFI","pricePlanId":"pp.1zYnCiM9Bpg.lv25y","quantity":1,"idempotencyKey":"AAAAABBBDDIIEOO42","pricePlanVersion":1,"purchasePlan":{"rateValues":[{"CurrencyRateValue":{"currency":"USD","rate":10}},{"CurrencyRateValue":{"currency":"INR","rate":150}}],"entitlementRateCards":[{"EntitlementRateCard":{"featureId":"feature.1zYnCiM9Bpg.lv25y","featureCredits":100,"expiryDurationSeconds":1000}}]},"features":[{"id":"feature.1zYnCiM9Bpg.lv25y","name":"DiscountCredits","description":"Discount Credits Feature","effectiveUntil":"2020-01-01T00:00:00Z","grantedCredits":100,"credits":100,"updatedAt":"2020-01-01T00:00:00Z"}],"createdAt":"2020-01-01T00:00:00Z","updatedAt":"2020-01-01T00:00:00Z"}},"GetPurchaseForPurchasePlanResponse":{"title":"GetPurchaseForPurchasePlanResponse","value":{"id":"purchase.20txx14r0m8.VKxaB","accountId":"c102","pricePlanId":"pp.20txw0FrqjQ.byM8V","pricePlanVersion":1,"createdAt":"2023-07-31T15:49:25.007848Z","status":"SUCCESS","purchasePlan":{"billingEntitlementRateCards":[{"featureId":"feature.20txvOAhiIS.m3X3d","featureConfigs":[{"effectiveUntil":"P20D","featureCreditLimit":100,"effectiveFrom":"PT0S"}],"invoiceTiming":"IN_ADVANCE","ratePlan":{"pricingModel":"TIERED","slabs":[{"order":1,"startAfter":0,"priceType":"PER_UNIT","slabConfig":null}]},"rateValues":[{"currency":"USD","slabRates":[{"order":1,"rate":1,"slabRateConfig":null}]}],"tag":null,"displayName":"feature1"}]},"features":[{"id":"feature.20txvOAhiIS.m3X3d","name":"feature1","creditsGranted":120,"creditsAvailable":120,"updatedAt":"2023-07-31T15:47:52.570011Z","effectiveFrom":"2023-07-31T15:51:34.308371Z","effectiveUntil":"2023-08-20T15:51:34.308371Z"}],"quantity":null,"rateCardQuantities":{"feature.20txvOAhiIS.m3X3d":1.2},"idempotencyKey":null,"planOverride":null,"updatedAt":"2023-07-31T15:51:35.093598Z","price":120,"invoiceId":"inv.20txx3jeQU4.nlMQh","invoiceCurrency":"USD"}}},"exampleType":"examples"}},"exampleType":"examples"},"49d0dc4d-be24-400e-b349-7a1538c0701e":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["message"],"properties":{"message":{"type":"string","description":"error description","maxLength":500,"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ErrorResponse":{"title":"ErrorResponse","value":{"message":"\u003cReason message>"}}},"exampleType":"examples"}},"exampleType":"examples"},"469fc965-1f4b-4e44-918e-afbf9d12589a":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["message"],"properties":{"message":{"type":"string","description":"error description","maxLength":500,"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ErrorResponse":{"title":"ErrorResponse","value":{"message":"\u003cReason message>"}}},"exampleType":"examples"}},"exampleType":"examples"},"24e27e75-aa15-4dfd-9ceb-f1793ae01a2c":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["message"],"properties":{"message":{"type":"string","description":"error description","maxLength":500,"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ErrorResponse":{"title":"ErrorResponse","value":{"message":"\u003cReason message>"}}},"exampleType":"examples"}},"exampleType":"examples"},"e9117b7d-7782-40d1-8204-49d0afdd987f":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["message"],"properties":{"message":{"type":"string","description":"error description","maxLength":500,"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ErrorResponse":{"title":"ErrorResponse","value":{"message":"\u003cReason message>"}}},"exampleType":"examples"}},"exampleType":"examples"},"0db433de-b03e-42ed-8814-327eaa33ffc4":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["message"],"properties":{"message":{"type":"string","description":"error description","maxLength":500,"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ErrorResponse":{"title":"ErrorResponse","value":{"message":"\u003cReason message>"}}},"exampleType":"examples"}},"exampleType":"examples"},"8aaca04e-4695-4014-a5a5-a91baba14e98":{"description":"Error response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["message"],"properties":{"message":{"type":"string","description":"error description","maxLength":500,"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"ErrorResponse":{"title":"ErrorResponse","value":{"message":"\u003cReason message>"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"10d5aef0-c0e7-4a1c-a3a9-3494e6daa2b3":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Bearer \u003ccredential>","scopes":[]}}},"servers":{"9f6eb8d4-0e77-4555-b0b9-2240bf1985a2":{"description":"Api endpoint","url":"https://api.togai.com/"},"2cd14a87-0055-4601-b756-fea69647dc6f":{"description":"Sandbox api endpoint","url":"https://sandbox-api.togai.com/"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"Bearer \u003ccredential>","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"togai","siteName":"Togai documentation","title":"Get a specific purchase of an account - Togai documentation","navMaps":{"firstHrefInVersion":{"v1":{"href":"/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T00:47:48.683Z","originalFileLocation":"api-reference/accounts/purchases/get-a-specific-purchase-of-an-account.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=\"Get purchase information of an account for a specific plan using account_id and price_plan_id\">\u003cmeta data-mint-head name=\"application-name\" content=\"Togai documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_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/togai/QGbZyPMOaxdwX2w6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get a specific purchase of an account - Togai documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get purchase information of an account for a specific plan using account_id and price_plan_id\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Togai documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://togai.mintlify.app/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://togai.mintlify.site/_mintlify/api/og/v2?division=Purchases\u0026amp;title=Get+a+specific+purchase+of+an+account\u0026amp;description=Get+purchase+information+of+an+account+for+a+specific+plan+using+account_id+and+price_plan_id\u0026amp;theme=41b132f678a134340ae92c04\u0026amp;signature=dc30745edf0913d2e9e482fcd79662961e7ed150908a57beabcc993072c92610\">\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=\"Get a specific purchase of an account - Togai documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get purchase information of an account for a specific plan using account_id and price_plan_id\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://togai.mintlify.site/_mintlify/api/og/v2?division=Purchases\u0026amp;title=Get+a+specific+purchase+of+an+account\u0026amp;description=Get+purchase+information+of+an+account+for+a+specific+plan+using+account_id+and+price_plan_id\u0026amp;theme=41b132f678a134340ae92c04\u0026amp;signature=dc30745edf0913d2e9e482fcd79662961e7ed150908a57beabcc993072c92610\">\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/togai/QGbZyPMOaxdwX2w6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Togai documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2853C2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://togai.mintlify.app/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://togai.mintlify.app/#organization\",\"name\":\"Togai documentation\",\"url\":\"https://togai.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/togai/MzZShn3Chu8s5XJM/images/togai-light.png?fit=max\u0026auto=format\u0026n=MzZShn3Chu8s5XJM\u0026q=85\u0026s=4712c1fa84282ae9cce550c0d3e6ec2b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://togai.mintlify.app#website\",\"name\":\"Togai documentation\",\"url\":\"https://togai.mintlify.app\",\"publisher\":{\"@id\":\"https://togai.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://togai.mintlify.app/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account#webpage\",\"url\":\"https://togai.mintlify.app/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account\",\"name\":\"Get a specific purchase of an account\",\"description\":\"Get purchase information of an account for a specific plan using account_id and price_plan_id\",\"dateModified\":\"2026-01-07T00:47:48.683Z\",\"isPartOf\":{\"@id\":\"https://togai.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://togai.mintlify.app/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://togai.mintlify.app/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"APIs\",\"item\":\"https://togai.mintlify.app/api-reference/authentication/get-bearer-token\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Accounts\",\"item\":\"https://togai.mintlify.app/api-reference/accounts/list-accounts-of-customer\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Purchases\",\"item\":\"https://togai.mintlify.app/api-reference/accounts/purchases/get-all-purchases-for-an-account\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Get a specific purchase of an account\",\"item\":\"https://togai.mintlify.app/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://togai.mintlify.app/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account#apireference\",\"headline\":\"Get a specific purchase of an account\",\"name\":\"Get a specific purchase of an account\",\"description\":\"Get purchase information of an account for a specific plan using account_id and price_plan_id\",\"url\":\"https://togai.mintlify.app/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account\",\"mainEntityOfPage\":{\"@id\":\"https://togai.mintlify.app/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account#webpage\"},\"dateModified\":\"2026-01-07T00:47:48.683Z\",\"publisher\":{\"@id\":\"https://togai.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://togai.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Togai documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Togai documentation","nav":{"global":{"anchors":[{"anchor":"Postman collection","href":"https://www.postman.com/togai-workspace/workspace/togai-public","icon":"folder-open"}]},"versions":[{"version":"v1","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/introduction"}]},{"tab":"API Reference","groups":[{"group":"Introduction","pages":[{"title":"Getting Started","href":"/api-reference/getting-started"},{"title":"Authentication π","href":"/api-reference/authentication"},{"title":"Pagination π","href":"/api-reference/pagination"}]},{"group":"APIs","pages":[{"group":"Authentication","pages":[{"openapi":"post /authenticate","title":"Generate short lived bearer token","href":"/api-reference/authentication/get-bearer-token"}]},{"group":"Customers","pages":[{"openapi":"get /customers","title":"List customers","href":"/api-reference/customers/list-customers"},{"openapi":"post /customers","title":"Create a customer","href":"/api-reference/customers/create-a-customer"},{"openapi":"get /customers/{customer_id}","title":"Get a customer","href":"/api-reference/customers/get-a-customer"},{"openapi":"delete /customers/{customer_id}","title":"Delete a customer","href":"/api-reference/customers/delete-a-customer"},{"openapi":"patch /customers/{customer_id}","title":"Update a customer","href":"/api-reference/customers/update-a-customer"}]},{"group":"Accounts","pages":[{"openapi":"get /accounts","title":"List accounts of customer","href":"/api-reference/accounts/list-accounts-of-customer"},{"openapi":"post /accounts","title":"Create an account","href":"/api-reference/accounts/create-an-account"},{"openapi":"get /accounts/{account_id}","title":"Get an account","href":"/api-reference/accounts/get-an-account"},{"openapi":"delete /accounts/{account_id}","title":"Delete an account","href":"/api-reference/accounts/delete-an-account"},{"openapi":"patch /accounts/{account_id}","title":"Update an account","href":"/api-reference/accounts/update-an-account"},{"group":"Account Aliases","pages":[{"openapi":"get /accounts/{account_id}/account_aliases","title":"Get all aliases of an account","href":"/api-reference/accounts/account-aliases/get-all-aliases-of-an-account"},{"openapi":"post /accounts/{account_id}/add_aliases","title":"Add Aliases to account","href":"/api-reference/accounts/account-aliases/add-aliases-to-account"},{"openapi":"post /accounts/{account_id}/remove_aliases","title":"Remove Aliases to account","href":"/api-reference/accounts/account-aliases/remove-aliases-to-account"}]},{"group":"Plan Associations","pages":[{"openapi":"get /accounts/{account_id}/pricing_schedules","title":"List pricing schedules of an account","href":"/api-reference/accounts/plan-association/list-pricing-schedules-of-an-account"},{"openapi":"post /accounts/{account_id}/edit_schedules","title":"Edit schedules of an account.","href":"/api-reference/accounts/plan-association/edit-schedules-of-an-account"},{"openapi":"post /accounts/{account_id}/price_plans","title":"Dissociate or associate a price plan with an account","href":"/api-reference/accounts/plan-association/disassociate-a-plan-fromto-an-account"}]},{"group":"Purchases","pages":[{"openapi":"get /accounts/{account_id}/purchases","title":"Get all purchases for an account","href":"/api-reference/accounts/purchases/get-all-purchases-for-an-account"},{"openapi":"post /accounts/{account_id}/purchases","title":"Initiate a purchase","description":"This API letβs you to initiate a purchase for an account","href":"/api-reference/accounts/purchases/initiate-a-purchase"},{"openapi":"get /purchases/{purchase_id}","title":"Get a specific purchase of an account","href":"/api-reference/accounts/purchases/get-a-specific-purchase-of-an-account"}]},{"group":"Proposals","pages":[{"openapi":"get /accounts/{account_id}/purchase_proposals","title":"List all proposals of an account","description":"List all proposals of an account","href":"/api-reference/accounts/proposals/list-all-proposals-of-an-account"},{"openapi":"post /accounts/{account_id}/purchase_proposals","title":"Propose a purchase of a plan","href":"/api-reference/accounts/proposals/propose-a-purchase-of-a-plan"},{"openapi":"get /purchase_proposals/{purchase_proposal_id}","title":"Get proposal information","href":"/api-reference/accounts/proposals/get-proposal-information"},{"openapi":"post /purchase_proposals/{purchase_proposal_id}/update_status","title":"Approve or decline a purchase of a billing plan","href":"/api-reference/accounts/proposals/approve-or-decline-a-purchase-of-a-billing-plan"}]}]},{"group":"Aliases","pages":[{"openapi":"get /aliases","title":"List all aliases","href":"/api-reference/aliases/list-all-aliases"},{"openapi":"post /aliases","title":"Create an alias","href":"/api-reference/aliases/create-an-alias"},{"openapi":"get /aliases/{alias}","title":"Get an alias","href":"/api-reference/aliases/get-an-alias"},{"openapi":"delete /aliases/{alias}","title":"Delete an alias","href":"/api-reference/aliases/delete-an-alias"}]},{"group":"Event Schemas","pages":[{"openapi":"get /event_schema","title":"List event schemas","href":"/api-reference/event-schemas/list-event-schemas"},{"openapi":"post /event_schema","title":"Create an event schema","href":"/api-reference/event-schemas/create-an-event-schema"},{"openapi":"get /event_schema/{event_schema_name}","title":"Get an event schema","href":"/api-reference/event-schemas/get-an-event-schema"},{"openapi":"delete /event_schema/{event_schema_name}","title":"Delete an event schema","href":"/api-reference/event-schemas/delete-an-event-schema"},{"openapi":"patch /event_schema/{event_schema_name}","title":"Update an event schema","href":"/api-reference/event-schemas/update-an-event-schema"},{"openapi":"get /event_schema/{event_schema_name}/versions","title":"List all event schema versions","href":"/api-reference/event-schemas/list-all-event-schema-versions"},{"openapi":"post /event_schema/{event_schema_name}/activate","title":"Activate an event schema","href":"/api-reference/event-schemas/activate-an-event-schema"},{"openapi":"post /event_schema/{event_schema_name}/deactivate","title":"Deactivate an event schema","href":"/api-reference/event-schemas/deactivate-an-event-schema"}]},{"group":"Usage Meters","pages":[{"openapi":"get /usage_meters","title":"List usage meters for event schema","href":"/api-reference/usage-meters/list-usage-meters-for-event-schema"},{"openapi":"post /usage_meters","title":"Create an usage meter","href":"/api-reference/usage-meters/create-an-usage-meter"},{"openapi":"get /usage_meters/{usage_meter_id}","title":"Get usage meter","href":"/api-reference/usage-meters/get-usage-meter"},{"openapi":"delete /usage_meters/{usage_meter_id}","title":"Delete an Usage Meter","href":"/api-reference/usage-meters/delete-an-usage-meter"},{"openapi":"patch /usage_meters/{usage_meter_id}","title":"Update an usage meter","href":"/api-reference/usage-meters/update-an-usage-meter"},{"openapi":"post /usage_meters/{usage_meter_id}/activate","title":"Activate usage meter","href":"/api-reference/usage-meters/activate-usage-meter"},{"openapi":"post /usage_meters/{usage_meter_id}/deactivate","title":"Deactivate usage meter","href":"/api-reference/usage-meters/deactivate-usage-meter"}]},{"group":"AddOns","pages":[{"openapi":"get /addons","title":"List addOns","href":"/api-reference/addons/list-addons"},{"openapi":"post /addons","title":"Create an AddOn","href":"/api-reference/addons/create-an-addon"},{"openapi":"get /addons/{addon_id}","title":"Get an addon","href":"/api-reference/addons/get-an-addon"},{"openapi":"delete /addons/{addon_id}","title":"Delete an addon","href":"/api-reference/addons/delete-an-addon"},{"openapi":"patch /addons/{addon_id}","title":"Update an addon","href":"/api-reference/addons/update-an-addon"}]},{"group":"Licenses","pages":[{"openapi":"get /license_updates","title":"Get a list of licenses updates","href":"/api-reference/licenses/get-a-list-of-licenses-updates"},{"openapi":"post /license_updates","title":"Update a license entry","href":"/api-reference/licenses/update-a-license-entry"}]},{"group":"Feature","pages":[{"openapi":"get /features","title":"List Feature","href":"/api-reference/feature/list-feature"},{"openapi":"post /features","title":"Create a Feature and optionally associate with one or more event_schemas","href":"/api-reference/feature/create-a-feature-and-optionally-associate-with-one-or-more-event_schemas"},{"openapi":"get /features/{feature_id}","title":"Get a Feature","href":"/api-reference/feature/get-a-feature"},{"openapi":"patch /features/{feature_id}","title":"Update a Feature","href":"/api-reference/feature/update-a-feature"}]},{"group":"Price Plans","pages":[{"openapi":"get /price_plans","title":"List price plans","href":"/api-reference/price-plans/list-price-plans"},{"openapi":"post /price_plans","title":"Create a price plan","href":"/api-reference/price-plans/create-a-price-plan"},{"openapi":"get /price_plans/{price_plan_id}","title":"Get a price plan","href":"/api-reference/price-plans/get-a-price-plan"},{"openapi":"patch /price_plans/{price_plan_id}","title":"Update a price plan","href":"/api-reference/price-plans/update-a-price-plan"},{"openapi":"post /price_plans/{price_plan_id}/activate","title":"Activate a price plan","href":"/api-reference/price-plans/activate-a-price-plan"},{"openapi":"post /price_plans/{price_plan_id}/currencies","title":"Add currencies to a price plan","href":"/api-reference/price-plans/add-currencies-to-a-price-plan"},{"openapi":"delete /price_plans/{price_plan_id}/currencies/{currency_id}","title":"Remove a draft currency from a price plan","href":"/api-reference/price-plans/remove-a-draft-currency-from-a-price-plan"}]},{"group":"Settings","pages":[{"openapi":"get /settings","title":"Lists settings","href":"/api-reference/settings/lists-settings"},{"openapi":"post /settings","title":"Create a setting","href":"/api-reference/settings/create-a-setting"},{"openapi":"get /settings/{setting_id_str}","title":"Get a setting","href":"/api-reference/settings/get-a-setting"},{"openapi":"patch /settings/{setting_id_str}","title":"Update a setting","href":"/api-reference/settings/update-a-setting"}]},{"group":"Price Experimentation","pages":[{"openapi":"post /revenue_calculator","title":"Calculate and return the revenue for a existing or new price plan","href":"/api-reference/price-experimentation/calculate-and-return-the-revenue-for-a-existing-or-new-price-plan"}]},{"group":"Migrations","pages":[{"openapi":"get /migrations/{migration_id}","title":"Get the status of a migration","href":"/api-reference/migrations/get-the-status-of-a-migration"},{"openapi":"post /migrations/price_plan","title":"Migrates accounts which are associated to one price plan to another price plan","href":"/api-reference/migrations/migrates-accounts-which-are-associated-to-one-price-plan-to-another-price-plan"},{"openapi":"get /migrations","title":"List migrations","href":"/api-reference/migrations/list-migrations"}]},{"group":"Event Ingestion","pages":[{"openapi":"post /ingest","title":"Ingest events to Togai","href":"/api-reference/event-ingestion/ingest-events-to-togai"},{"openapi":"post /ingestBatch","title":"Ingest events to Togai in batch","href":"/api-reference/event-ingestion/ingest-events-to-togai-in-batch"}]},{"group":"Entitlements","pages":[{"openapi":"post /entitled","title":"Ingest event if a user is entitled to a feature","href":"/api-reference/entitlements/ingest-event-if-a-user-is-entitled-to-a-feature"},{"openapi":"get /accounts/{account_id}/features/{feature_id}","title":"Get Feature credits balance","href":"/api-reference/entitlements/get-feature-credits-balance"},{"openapi":"get /accounts/{account_id}/features/{feature_id}/entries","title":"List feature credits entries of a feature for an account","href":"/api-reference/entitlements/list-feature-credits-entries-of-a-feature-for-an-account"},{"openapi":"patch /accounts/{account_id}/features/{feature_id}/entries/{entry_id}","title":"Update a feature credits entry","href":"/api-reference/entitlements/update-a-feature-credits-entry-of-a-feature-for-an-account"},{"openapi":"post /accounts/{account_id}/features/{feature_id}/entries/{entry_id}/void","title":"Void a feature credits entry of a feature for an account","href":"/api-reference/entitlements/void-a-feature-credits-entry-of-a-feature-for-an-account"},{"openapi":"get /accounts/{account_id}/entitlements","title":"Get entitlements for a account","href":"/api-reference/entitlements/get-entitlements-for-a-account"},{"openapi":"post /accounts/{account_id}/entitlements/{feature_id}","title":"Check entitlement value for a account","href":"/api-reference/entitlements/check-entitlement-value-for-a-account"},{"openapi":"get /accounts/{account_id}/entitlements/{feature_id}","title":"Get entitlement value for a account","href":"/api-reference/entitlements/get-entitlement-value-for-a-account"}]},{"group":"Event Management","pages":[{"openapi":"get /events","title":"Get a list of usage events with multiple query options","href":"/api-reference/event-management/get-a-list-of-usage-events-with-multiple-query-options"},{"openapi":"get /events/{event_id}","title":"Get an usage event using event id","href":"/api-reference/event-management/get-an-usage-event-using-event-id"},{"openapi":"delete /events","title":"Undo ingested events.","href":"/api-reference/event-management/undo-ingested-events"}]},{"group":"Metrics","pages":[{"openapi":"post /metrics","title":"Get Togai Metrics","href":"/api-reference/metrics/get-togai-metrics"}]},{"group":"Credits","pages":[{"openapi":"get /credits","title":"List credits","href":"/api-reference/credits/list-credits"},{"openapi":"post /credits","title":"Grant credit","href":"/api-reference/credits/grant-credit"},{"openapi":"get /credits/{credit_id}","title":"Get credit details","href":"/api-reference/credits/get-credit-details"},{"openapi":"post /credits/{credit_id}/void","title":"Void credit","href":"/api-reference/credits/void-credit"},{"openapi":"get /accounts/{account_id}/credit_balance","title":"Credit balance for Account","href":"/api-reference/credits/credit-balance-for-account"}]},{"group":"Invoices","pages":[{"openapi":"get /invoices","title":"List invoices","href":"/api-reference/invoices/list-invoices"},{"openapi":"get /invoices/{invoice_id}","title":"Get an invoice","href":"/api-reference/invoices/get-an-invoice"},{"openapi":"put /invoices/{invoice_id}/miscellaneous_charges","title":"Add or update miscellaneous charges in Invoice","href":"/api-reference/invoices/add-or-update-miscellaneous-charges-in-invoice"},{"openapi":"post /invoices/{invoice_id}/payments","title":"Update payment status in Invoice","href":"/api-reference/invoices/update-payment-status-in-invoice"},{"openapi":"put /accounts/{account_id}/miscellaneous_charges","title":"Add or update miscellaneous charges in upcoming Invoice for a account","href":"/api-reference/invoices/add-or-update-miscellaneous-charges-in-upcoming-invoice-for-a-account"},{"openapi":"post /invoices","title":"Create a custom invoice for an account","href":"/api-reference/invoices/create-a-custom-invoice-for-an-account"},{"openapi":"delete /invoices/{invoice_id}","title":"Delete a custom invoice in DRAFT state","href":"/api-reference/invoices/delete-a-custom-invoice-in-draft-state"}]},{"group":"Payments","pages":[{"openapi":"get /payments","title":"List all payments","href":"/api-reference/payments/list-all-payments"},{"openapi":"get /payments/{payment_id}","title":"Get a payment","href":"/api-reference/payments/get-a-payment"},{"openapi":"post /payments","title":"create payments","href":"/api-reference/payments/create-payments"}]},{"group":"Wallet","pages":[{"openapi":"get /accounts/{account_id}/wallet","title":"Wallet balance for Account","href":"/api-reference/wallet/wallet-balance-for-account"},{"openapi":"get /accounts/{account_id}/wallet/entries","title":"Wallet entries for Account","href":"/api-reference/wallet/wallet-entries-for-account"}]},{"group":"InvoiceGroups","pages":[{"openapi":"get /invoice_groups","title":"List Invoice Groups","href":"/api-reference/invoicegroups/list-invoice-groups"},{"openapi":"post /invoice_groups","title":"Create an invoice group","href":"/api-reference/invoicegroups/create-an-invoice-group"},{"openapi":"get /invoice_groups/{invoice_group_id}","title":"Get information of an invoice group","href":"/api-reference/invoicegroups/get-information-of-an-invoice-group"},{"openapi":"post /invoice_groups/{invoice_group_id}/add_accounts","title":"Add accounts to an invoice group","href":"/api-reference/invoicegroups/add-accounts-to-an-invoice-group"},{"openapi":"post /invoice_groups/{invoice_group_id}/remove_accounts","title":"Remove accounts from an invoice group. Removing all accounts will also delete the invoice group","href":"/api-reference/invoicegroups/remove-accounts-from-an-invoice-group-removing-all-accounts-will-also-delete-the-invoice-group"}]}]}]},{"tab":"Change log","pages":[{"title":"Change log","href":"/changelog/change-log"}]},{"tab":"Templates","pages":[{"title":"Templates","href":"/templates/eleven-labs"}]}]}]},"basePath":"","title":"Get a specific purchase of an account - Togai documentation","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","Page-D9ithiIZ.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js","Markdown-5FGIym-8.js","clsx-D-TRO5q5.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdrJecqK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CHlcWBLM.js"]}