An integer denoting how many intervals to bill for the. A monthly product
would have month as interval and 1 as interval counts, etc. One time
products should have an interval count of 1.
A list of one or more of the below integration price objects. Not required in the case of a custom integration using the
Subscription and
Charge endpoints where Corrily product IDs are passed to alert us of
payment gateway revenue activity.
The frequency at which a subscription is billed. One of day, week,
month or year. Sometimes Stripe products actually encompass more than
what Corrily would consider a product. For example, the Stripe product for a
company’s “Pro Plan” might have two Price
objects one for the monthly
version of the plan, the other for its annual version. Meanwhile, Corrily
would consider these to be two distinct products pro_monthly and
pro_annual. To capture such differences you can pass a
stripe_with_interval integration object which can help separate such
cases.
The number of intervals (specified in the interval attribute) between
subscription billings. For example, interval=month and interval_count=3
bills every 3 months.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Corrily","colors":{"primary":"#2AB896","light":"#3DE2BB","dark":"#371BB1"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/corrily/Cn8I82iLKQofoT0a/logo/light.svg?fit=max\u0026auto=format\u0026n=Cn8I82iLKQofoT0a\u0026q=85\u0026s=1afe53d6becf6d0438247f620e7703c1","dark":"https://mintcdn.com/corrily/Cn8I82iLKQofoT0a/logo/dark.svg?fit=max\u0026auto=format\u0026n=Cn8I82iLKQofoT0a\u0026q=85\u0026s=35ccda704fe6fcae866645495262a3ef"},"api":{"mdx":{"server":null,"auth":{"method":"key","name":"X-Api-Key"}}},"footer":{"socials":{"website":"https://www.corrily.com","twitter":"https://twitter.com/usecorrily","linkedin":"https://www.linkedin.com/company/corrily"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"corrily","hasAudioNarration":false,"actualSubdomain":"corrily","customDomains":["docs.corrily.com"],"gitSource":{"type":"github","owner":"corrily","repo":"docs","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a20c34112ef21155ee55083","collectionId":"e8ba0cd2-8851-4efe-b256-d5ca4fa301f7","schemaVersion":"v2"},"entitlements":{},"buildId":"6a20c34112ef21155ee55083:success","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"Documentation","count":36},{"language":"default","tag":"API Reference","count":18},{"language":"default","tag":"Users","count":7},{"language":"default","tag":"Integration Guides","count":7},{"language":"default","tag":"Price Management","count":6},{"language":"default","tag":"Experiments","count":6},{"language":"default","tag":"Products","count":5},{"language":"default","tag":"Charges","count":4},{"language":"default","tag":"Subscriptions","count":4},{"language":"default","tag":"Basics","count":3}]},"assistantConfig":{},"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":"editor-v7-file-tree","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":"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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/create-product","slug":"/api-reference/create-product","pageMetadata":{"title":"Create Product","api":"POST https://client.corrily.com/v1/products","description":"Create a Corrily product using an API instead of our dashboard.","auth":"X-Api-Key","href":"/api-reference/create-product"},"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: \"Create a Corrily product using an API instead of our dashboard.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`body-params`,children:`Body Params`}),`\n`,_jsx(ParamField,{body:`api_id`,type:`string`,required:true,id:`param-api-id`,children:_jsxs(_components.p,{children:[`The product identifier you will be calling this product with using `,_jsx(_components.a,{href:`/api-reference/calculate-price`,children:`Corrily’s\nprice endpoint`}),`.`]})}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`The name of the product. Must be unique.`})}),`\n`,_jsx(ParamField,{body:`base_px`,type:`float`,required:true,id:`param-base-px`,children:_jsxs(_components.p,{children:[`The base price of the product in `,_jsx(_components.code,{children:`USD`}),`.`]})}),`\n`,_jsx(ParamField,{body:`interval`,type:`string`,required:true,id:`param-interval`,children:_jsxs(_components.p,{children:[`A string value denoting how often to bill for a subscription. Possible values:\n`,_jsx(_components.code,{children:`day`}),`, `,_jsx(_components.code,{children:`week`}),`, `,_jsx(_components.code,{children:`month`}),`, `,_jsx(_components.code,{children:`year`}),`, `,_jsx(_components.code,{children:`one_time`}),`.`]})}),`\n`,_jsx(ParamField,{body:`interval_count`,type:`integer`,required:true,id:`param-interval-count`,children:_jsxs(_components.p,{children:[`An integer denoting how many intervals to bill for the. A monthly product\nwould have `,_jsx(_components.code,{children:`month`}),` as interval and `,_jsx(_components.code,{children:`1`}),` as interval counts, etc. One time\nproducts should have an interval count of `,_jsx(_components.code,{children:`1`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`country_prices`,type:`[object]`,id:`param-country-prices`,children:[_jsx(_components.p,{children:`A list of one ore more of the below country price object.`}),_jsxs(Expandable,{title:`\u003ccountry_price>`,children:[_jsx(ResponseField,{name:`country`,type:`enum`,required:true,id:`param-country`,children:_jsx(_components.p,{children:`Two-letter ISO3166 country code.`})}),_jsx(ResponseField,{name:`amount`,type:`float`,required:true,id:`param-amount`,children:_jsx(_components.p,{children:`The price of the product in this country.`})}),_jsx(ResponseField,{name:`currency`,type:`enum`,required:true,id:`param-currency`,children:_jsx(_components.p,{children:`The three-letter ISO4217 currency code of the price in this country.`})})]})]}),`\n`,_jsxs(ParamField,{body:`integrations`,type:`[object]`,id:`param-integrations`,children:[_jsxs(_components.p,{children:[`A list of one or more of the below integration price objects. Not required in the case of a custom integration using the\n`,_jsx(_components.a,{href:`/api-reference/create-subscription`,children:`Subscription`}),` and\n`,_jsx(_components.a,{href:`/api-reference/create-subscription`,children:`Charge`}),` endpoints where Corrily product IDs are passed to alert us of\npayment gateway revenue activity.`]}),_jsxs(Expandable,{title:`\u003cstripe>`,children:[_jsx(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type`,children:_jsxs(_components.p,{children:[`Should be set to equal `,_jsx(_components.code,{children:`stripe`}),`.`]})}),_jsx(ResponseField,{name:`stripe_product_id`,type:`string`,required:true,id:`param-stripe-product-id`,children:_jsxs(_components.p,{children:[`The matching `,_jsx(_components.a,{href:`https://stripe.com/docs/api/products/object#product_object-id`,children:`Stripe product ID`}),`.`]})})]}),_jsxs(Expandable,{title:`\u003cstripe_with_interval>`,children:[_jsx(ResponseField,{name:`type`,type:`stripe_with_interval`,required:true,id:`param-type-1`,children:_jsxs(_components.p,{children:[`Should be set to equal `,_jsx(_components.code,{children:`stripe_with_interval`}),`.`]})}),_jsx(ResponseField,{name:`stripe_product_id`,type:`string`,required:true,id:`param-stripe-product-id-1`,children:_jsxs(_components.p,{children:[`The matching `,_jsx(_components.a,{href:`https://stripe.com/docs/api/products/object#product_object-id`,children:`Stripe product\nID`}),`.`]})}),_jsx(ResponseField,{name:`interval`,type:`enum`,required:true,id:`param-interval-1`,children:_jsxs(_components.p,{children:[`The frequency at which a subscription is billed. One of `,_jsx(_components.code,{children:`day`}),`, `,_jsx(_components.code,{children:`week`}),`,\n`,_jsx(_components.code,{children:`month`}),` or `,_jsx(_components.code,{children:`year`}),`. Sometimes Stripe products actually encompass more than\nwhat Corrily would consider a product. For example, the Stripe product for a\ncompany’s “Pro Plan” might have two `,_jsx(_components.a,{href:`https://stripe.com/docs/api/prices/object`,children:`Price\nobjects`}),` one for the monthly\nversion of the plan, the other for its annual version. Meanwhile, Corrily\nwould consider these to be two distinct products `,_jsx(_components.code,{children:`pro_monthly`}),` and\n`,_jsx(_components.code,{children:`pro_annual`}),`. To capture such differences you can pass a\n`,_jsx(_components.code,{children:`stripe_with_interval`}),` integration object which can help separate such\ncases.`]})}),_jsx(ResponseField,{name:`interval_count`,type:`integer`,required:true,id:`param-interval-count-1`,children:_jsx(_components.p,{children:`The number of intervals (specified in the interval attribute) between\nsubscription billings. For example, interval=month and interval_count=3\nbills every 3 months.`})})]}),_jsxs(Expandable,{title:`\u003cchargebee>`,children:[_jsx(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type-2`,children:_jsxs(_components.p,{children:[`Should be set to equal `,_jsx(_components.code,{children:`chargebee`}),`.`]})}),_jsx(ResponseField,{name:`chargebee_plan_id`,type:`string`,required:true,id:`param-chargebee-plan-id`,children:_jsxs(_components.p,{children:[`The matching `,_jsx(_components.a,{href:`https://apidocs.chargebee.com/docs/api/plans?prod_cat_ver=1#plan_id`,children:`Chargebee plan\nID`}),`.`]})})]}),_jsxs(Expandable,{title:`\u003crecurly>`,children:[_jsx(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type-3`,children:_jsxs(_components.p,{children:[`Should be set to equal `,_jsx(_components.code,{children:`recurly`}),`.`]})}),_jsx(ResponseField,{name:`recurly_plan_id`,type:`string`,required:true,id:`param-recurly-plan-id`,children:_jsxs(_components.p,{children:[`The matching `,_jsx(_components.a,{href:`https://developers.recurly.com/api/v2021-02-25/index.html#operation/create_plan`,children:`Recurly plan\nID`}),`.`]})}),_jsx(ResponseField,{name:`currency`,type:`string`,required:true,id:`param-currency-1`,children:_jsx(_components.p,{children:`Currency value`})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Product","api":"POST https://client.corrily.com/v1/products","description":"Create a Corrily product using an API instead of our dashboard.","auth":"X-Api-Key","href":"/api-reference/create-product"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`Bash`,numberOfLines:`24`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`24`,children:[_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -g`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://client.corrily.com/v1/products'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data-raw `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"api_id\": \"monthly\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"name\": \"Monthly Product\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"base_px\": 10,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"interval\": \"month\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"interval_count\": 1,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"country_prices\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"country\": \"ES\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"amount\": 50,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"currency\": \"EUR\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"integrations\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\": \"stripe\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"stripe_product_id\": \"my_stripe_pid\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Example`,numberOfLines:`21`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Successfully created product.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"api_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"monthly\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Monthly Product\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"base_px\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"baseline_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"country_prices\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"country\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ES\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"local_price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EUR\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"integrations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"stripe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stripe_product_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"my_stripe_pid\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`body-params`,children:`Body Params`}),`\n`,_jsx(ParamField,{body:`api_id`,type:`string`,required:true,id:`param-api-id`,children:_jsxs(_components.p,{children:[`The product identifier you will be calling this product with using `,_jsx(_components.a,{href:`/api-reference/calculate-price`,children:`Corrily’s\nprice endpoint`}),`.`]})}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`The name of the product. Must be unique.`})}),`\n`,_jsx(ParamField,{body:`base_px`,type:`float`,required:true,id:`param-base-px`,children:_jsxs(_components.p,{children:[`The base price of the product in `,_jsx(_components.code,{children:`USD`}),`.`]})}),`\n`,_jsx(ParamField,{body:`interval`,type:`string`,required:true,id:`param-interval`,children:_jsxs(_components.p,{children:[`A string value denoting how often to bill for a subscription. Possible values:\n`,_jsx(_components.code,{children:`day`}),`, `,_jsx(_components.code,{children:`week`}),`, `,_jsx(_components.code,{children:`month`}),`, `,_jsx(_components.code,{children:`year`}),`, `,_jsx(_components.code,{children:`one_time`}),`.`]})}),`\n`,_jsx(ParamField,{body:`interval_count`,type:`integer`,required:true,id:`param-interval-count`,children:_jsxs(_components.p,{children:[`An integer denoting how many intervals to bill for the. A monthly product\nwould have `,_jsx(_components.code,{children:`month`}),` as interval and `,_jsx(_components.code,{children:`1`}),` as interval counts, etc. One time\nproducts should have an interval count of `,_jsx(_components.code,{children:`1`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`country_prices`,type:`[object]`,id:`param-country-prices`,children:[_jsx(_components.p,{children:`A list of one ore more of the below country price object.`}),_jsxs(Expandable,{title:`\u003ccountry_price>`,children:[_jsx(ResponseField,{name:`country`,type:`enum`,required:true,id:`param-country`,children:_jsx(_components.p,{children:`Two-letter ISO3166 country code.`})}),_jsx(ResponseField,{name:`amount`,type:`float`,required:true,id:`param-amount`,children:_jsx(_components.p,{children:`The price of the product in this country.`})}),_jsx(ResponseField,{name:`currency`,type:`enum`,required:true,id:`param-currency`,children:_jsx(_components.p,{children:`The three-letter ISO4217 currency code of the price in this country.`})})]})]}),`\n`,_jsxs(ParamField,{body:`integrations`,type:`[object]`,id:`param-integrations`,children:[_jsxs(_components.p,{children:[`A list of one or more of the below integration price objects. Not required in the case of a custom integration using the\n`,_jsx(_components.a,{href:`/api-reference/create-subscription`,children:`Subscription`}),` and\n`,_jsx(_components.a,{href:`/api-reference/create-subscription`,children:`Charge`}),` endpoints where Corrily product IDs are passed to alert us of\npayment gateway revenue activity.`]}),_jsxs(Expandable,{title:`\u003cstripe>`,children:[_jsx(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type`,children:_jsxs(_components.p,{children:[`Should be set to equal `,_jsx(_components.code,{children:`stripe`}),`.`]})}),_jsx(ResponseField,{name:`stripe_product_id`,type:`string`,required:true,id:`param-stripe-product-id`,children:_jsxs(_components.p,{children:[`The matching `,_jsx(_components.a,{href:`https://stripe.com/docs/api/products/object#product_object-id`,children:`Stripe product ID`}),`.`]})})]}),_jsxs(Expandable,{title:`\u003cstripe_with_interval>`,children:[_jsx(ResponseField,{name:`type`,type:`stripe_with_interval`,required:true,id:`param-type-1`,children:_jsxs(_components.p,{children:[`Should be set to equal `,_jsx(_components.code,{children:`stripe_with_interval`}),`.`]})}),_jsx(ResponseField,{name:`stripe_product_id`,type:`string`,required:true,id:`param-stripe-product-id-1`,children:_jsxs(_components.p,{children:[`The matching `,_jsx(_components.a,{href:`https://stripe.com/docs/api/products/object#product_object-id`,children:`Stripe product\nID`}),`.`]})}),_jsx(ResponseField,{name:`interval`,type:`enum`,required:true,id:`param-interval-1`,children:_jsxs(_components.p,{children:[`The frequency at which a subscription is billed. One of `,_jsx(_components.code,{children:`day`}),`, `,_jsx(_components.code,{children:`week`}),`,\n`,_jsx(_components.code,{children:`month`}),` or `,_jsx(_components.code,{children:`year`}),`. Sometimes Stripe products actually encompass more than\nwhat Corrily would consider a product. For example, the Stripe product for a\ncompany’s “Pro Plan” might have two `,_jsx(_components.a,{href:`https://stripe.com/docs/api/prices/object`,children:`Price\nobjects`}),` one for the monthly\nversion of the plan, the other for its annual version. Meanwhile, Corrily\nwould consider these to be two distinct products `,_jsx(_components.code,{children:`pro_monthly`}),` and\n`,_jsx(_components.code,{children:`pro_annual`}),`. To capture such differences you can pass a\n`,_jsx(_components.code,{children:`stripe_with_interval`}),` integration object which can help separate such\ncases.`]})}),_jsx(ResponseField,{name:`interval_count`,type:`integer`,required:true,id:`param-interval-count-1`,children:_jsx(_components.p,{children:`The number of intervals (specified in the interval attribute) between\nsubscription billings. For example, interval=month and interval_count=3\nbills every 3 months.`})})]}),_jsxs(Expandable,{title:`\u003cchargebee>`,children:[_jsx(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type-2`,children:_jsxs(_components.p,{children:[`Should be set to equal `,_jsx(_components.code,{children:`chargebee`}),`.`]})}),_jsx(ResponseField,{name:`chargebee_plan_id`,type:`string`,required:true,id:`param-chargebee-plan-id`,children:_jsxs(_components.p,{children:[`The matching `,_jsx(_components.a,{href:`https://apidocs.chargebee.com/docs/api/plans?prod_cat_ver=1#plan_id`,children:`Chargebee plan\nID`}),`.`]})})]}),_jsxs(Expandable,{title:`\u003crecurly>`,children:[_jsx(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type-3`,children:_jsxs(_components.p,{children:[`Should be set to equal `,_jsx(_components.code,{children:`recurly`}),`.`]})}),_jsx(ResponseField,{name:`recurly_plan_id`,type:`string`,required:true,id:`param-recurly-plan-id`,children:_jsxs(_components.p,{children:[`The matching `,_jsx(_components.a,{href:`https://developers.recurly.com/api/v2021-02-25/index.html#operation/create_plan`,children:`Recurly plan\nID`}),`.`]})}),_jsx(ResponseField,{name:`currency`,type:`string`,required:true,id:`param-currency-1`,children:_jsx(_components.p,{children:`Currency value`})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Product","api":"POST https://client.corrily.com/v1/products","description":"Create a Corrily product using an API instead of our dashboard.","auth":"X-Api-Key","href":"/api-reference/create-product"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Body Params","slug":"body-params","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Bash","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"24\">\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --location\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -g\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://client.corrily.com/v1/products'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--data-raw \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"api_id\": \"monthly\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"name\": \"Monthly Product\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"base_px\": 10,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"interval\": \"month\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"interval_count\": 1,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"country_prices\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"country\": \"ES\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"amount\": 50,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"currency\": \"EUR\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"integrations\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"type\": \"stripe\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"stripe_product_id\": \"my_stripe_pid\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Example","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Successfully created product.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"api_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"monthly\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Monthly Product\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"base_px\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">10.0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"baseline_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"country_prices\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"country\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ES\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"local_price\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">50.0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"currency\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"EUR\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"integrations\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"stripe\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"stripe_product_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"my_stripe_pid\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Create Product","path":"/v1/products","servers":[{"url":"https://client.corrily.com"}],"method":"post","request":{"security":[{"title":"API Key Auth","parameters":{"header":{"X-Api-Key":{"type":"apiKey"}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"api_id":[{"type":"string","description":"The product identifier you will be calling this product with using Corrily’s price endpoint .","required":true}],"name":[{"type":"string","description":"The name of the product. Must be unique.","required":true}],"base_px":[{"type":"number","description":"The base price of the product in `USD` .","required":true}],"interval":[{"type":"string","description":"A string value denoting how often to bill for a subscription. Possible values: `day` , `week` , `month` , `year` , `one_time` .","required":true}],"interval_count":[{"type":"integer","description":"An integer denoting how many intervals to bill for the. A monthly product would have `month` as interval and `1` as interval counts, etc. One time products should have an interval count of `1` .","required":true}],"country_prices":[{"type":"object","properties":{},"description":"A list of one ore more of the below country price object."}],"integrations":[{"type":"object","properties":{},"description":"A list of one or more of the below integration price objects. Not required in the case of a custom integration using the Subscription and Charge endpoints where Corrily product IDs are passed to alert us of payment gateway revenue activity."}]}}],"examples":{"example":{"value":{"api_id":"\u003cstring>","name":"\u003cstring>","base_px":123,"interval":"\u003cstring>","interval_count":123,"country_prices":{},"integrations":{}}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"corrily","siteName":"Corrily","title":"Create Product - Corrily","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-02T07:17:18.172Z","originalFileLocation":"api-reference/create-product.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=\"Create a Corrily product using an API instead of our dashboard.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Corrily\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/corrily/gXHpgCTf7BKZKcpb/_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/corrily/gXHpgCTf7BKZKcpb/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/corrily/gXHpgCTf7BKZKcpb/_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/corrily/gXHpgCTf7BKZKcpb/_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/corrily/gXHpgCTf7BKZKcpb/_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/corrily/gXHpgCTf7BKZKcpb/_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/corrily/gXHpgCTf7BKZKcpb/_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/corrily/gXHpgCTf7BKZKcpb/_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/corrily/gXHpgCTf7BKZKcpb/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Product - Corrily\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a Corrily product using an API instead of our dashboard.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Corrily\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.corrily.com/api-reference/create-product\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://corrily.mintlify.app/_mintlify/api/og/v2?division=Products\u0026amp;title=Create+Product\u0026amp;description=Create+a+Corrily+product+using+an+API+instead+of+our+dashboard.\u0026amp;theme=a21d30a3f45764629d86f2da\u0026amp;signature=4ba76baf6f5f4500efc92f8b9ad12d376914ebf3f443ac8aac38aede43e33cb9\">\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=\"Create Product - Corrily\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a Corrily product using an API instead of our dashboard.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://corrily.mintlify.app/_mintlify/api/og/v2?division=Products\u0026amp;title=Create+Product\u0026amp;description=Create+a+Corrily+product+using+an+API+instead+of+our+dashboard.\u0026amp;theme=a21d30a3f45764629d86f2da\u0026amp;signature=4ba76baf6f5f4500efc92f8b9ad12d376914ebf3f443ac8aac38aede43e33cb9\">\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/corrily/gXHpgCTf7BKZKcpb/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Corrily\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2AB896\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.corrily.com/api-reference/create-product\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/create-product.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.corrily.com/#organization\",\"name\":\"Corrily\",\"url\":\"https://docs.corrily.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/corrily/Cn8I82iLKQofoT0a/logo/light.svg?fit=max\u0026auto=format\u0026n=Cn8I82iLKQofoT0a\u0026q=85\u0026s=1afe53d6becf6d0438247f620e7703c1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.corrily.com#website\",\"name\":\"Corrily\",\"url\":\"https://docs.corrily.com\",\"publisher\":{\"@id\":\"https://docs.corrily.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.corrily.com/api-reference/create-product#webpage\",\"url\":\"https://docs.corrily.com/api-reference/create-product\",\"name\":\"Create Product\",\"description\":\"Create a Corrily product using an API instead of our dashboard.\",\"dateModified\":\"2026-01-02T07:17:18.172Z\",\"isPartOf\":{\"@id\":\"https://docs.corrily.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.corrily.com/api-reference/create-product#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.corrily.com/api-reference/create-product#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Corrily\",\"item\":\"https://docs.corrily.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Product\",\"item\":\"https://docs.corrily.com/api-reference/create-product\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.corrily.com/api-reference/create-product#apireference\",\"headline\":\"Create Product\",\"name\":\"Create Product\",\"description\":\"Create a Corrily product using an API instead of our dashboard.\",\"url\":\"https://docs.corrily.com/api-reference/create-product\",\"mainEntityOfPage\":{\"@id\":\"https://docs.corrily.com/api-reference/create-product#webpage\"},\"dateModified\":\"2026-01-02T07:17:18.172Z\",\"publisher\":{\"@id\":\"https://docs.corrily.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.corrily.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Corrily\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Corrily","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/basics/00_introduction"}]},{"anchor":"API Reference","icon":"rectangle-terminal","groups":[{"group":"Prices","pages":[{"title":"Calculate price","api":"POST https://client.corrily.com/v1/prices","href":"/api-reference/calculate-price"}]},{"group":"Paywall","pages":[{"title":"Get Paywall","api":"POST https://client.corrily.com/v1/paywall","href":"/api-reference/get-paywall"}]},{"group":"Users","pages":[{"title":"Identify Call","api":"POST https://client.corrily.com/v1/identify","href":"/api-reference/set-user-characteristics"},{"title":"Get User country","api":"GET https://client.corrily.com/v1/users/{user_id}","href":"/api-reference/get-user-details"}]},{"group":"Subscriptions","pages":[{"title":"Create subscription","api":"POST https://client.corrily.com/v1/subscriptions","href":"/api-reference/create-subscription"},{"title":"Get subscription","api":"GET https://client.corrily.com/v1/subscriptions/{user_id}/{origin}/{origin_id}","href":"/api-reference/get-subscription"},{"title":"Update subscription","api":"POST https://client.corrily.com/v1/subscriptions/{user_id}/{origin}/{origin_id}","href":"/api-reference/update-subscription"},{"title":"Delete subscription","api":"DELETE https://client.corrily.com/v1/subscriptions/{user_id}/{origin}/{origin_id}","href":"/api-reference/delete-subscription"}]},{"group":"Charges","pages":[{"title":"Create charge","api":"POST https://client.corrily.com/v1/charges","href":"/api-reference/create-charge"},{"title":"Get charge","api":"GET https://client.corrily.com/v1/charges/{user_id}/{origin}/{origin_id}","href":"/api-reference/get-charge"},{"title":"Update charge","api":"POST https://client.corrily.com/v1/charges/{user_id}/{origin}/{origin_id}","href":"/api-reference/update-charge"},{"title":"Delete charge","api":"DELETE https://client.corrily.com/v1/charges/{user_id}/{origin}/{origin_id}","description":null,"href":"/api-reference/delete-charge"}]},{"group":"Products","pages":[{"title":"Create Product","api":"POST https://client.corrily.com/v1/products","href":"/api-reference/create-product"},{"title":"Get Product","api":"GET https://client.corrily.com/v1/products/{product_api_id}","description":"Retrieve the details of a single Corrily product.","href":"/api-reference/get-product"},{"title":"Get All Products","api":"GET https://client.corrily.com/v1/products","href":"/api-reference/get-all-products"},{"title":"Update Product","api":"POST https://client.corrily.com/v1/products","href":"/api-reference/update-product"},{"title":"Delete Product","api":"DELETE https://client.corrily.com/v1/products/{product_api_id}","href":"/api-reference/delete-product"}]},{"group":"Coupons","pages":[{"title":"Get Coupons","api":"GET https://client.corrily.com/v1/coupons","href":"/api-reference/get-coupons"}]}]},{"anchor":"Implementation Examples","href":"https://github.com/corrily/integration-examples","icon":"github"}]},"title":"Create Product - Corrily","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-Bbp7I60D.js","utils-C3RIvJha.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DqD-vLt8.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B31Loprg.js","snippetPresets-DKpk-b8t.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Cj65AhOR.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BXtn5gcC.js","shallow-RY2b03Cp.js","getApiPlaygroundDisplay-B0jeiPk3.js","CodeSnippet-CYgBjjwn.js","CodeSnippets-DOngDrYB.js","Page-n7I5XbKb.js","getPastedJson-DRQbJx-T.js","icon-CQiQCicY.js","MethodPill-BKTLdNtu.js","DuplicateIcon-B9jpAdat.js","createIcon-DCddRrXv.js","DynamicMarkdown-a8hUKrw6.js","SectionHeading-eECVV2eH.js","axios-vUo_bRtp.js"]}