Create a new product for an event. Products define redeemable items that can be distributed to users, such as vouchers, coupons, or digital collectibles.
Create a new product for an event. If mint_nft is true, then metadata_uri and chain MUST be provided. The project wallet must have the required balance to create the NFT Collection.
The maximum number of items that can be in the asset collection. Leave blank for an unlimited number of items.
Required range: x >= 1
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Mufi","colors":{"primary":"#b7ff02","light":"#b7ff02","dark":"#080408"},"logo":{"light":"https://mintcdn.com/mufi-c3b4e9a4/9yxXrvWpIAZr8_21/logo/mufi-logo-white.svg?fit=max\u0026auto=format\u0026n=9yxXrvWpIAZr8_21\u0026q=85\u0026s=77e9b71ad2759fee018192b0eea1f87f","dark":"https://mintcdn.com/mufi-c3b4e9a4/9yxXrvWpIAZr8_21/logo/mufi-logo-white.svg?fit=max\u0026auto=format\u0026n=9yxXrvWpIAZr8_21\u0026q=85\u0026s=77e9b71ad2759fee018192b0eea1f87f"},"favicon":"/favicon.svg","appearance":{"default":"dark","strict":true},"background":{"decoration":"gradient","color":{"light":"#080408","dark":"#080408"}},"navbar":{"primary":{"type":"button","label":"Get Started","href":"https://my.mufi.app"}},"footer":{"socials":{"website":"https://mufi.app","twitter":"https://x.com/MusicFinance","discord":"https://discord.gg/SASbjT3B","telegram":"https://t.me/mufi_wallet","github":"https://github.com/mufitech","linkedin":"https://www.linkedin.com/company/mufi"}},"search":{"prompt":"Search..."},"fonts":{"heading":{"family":"Space Grotesk"},"body":{"family":"Plus Jakarta Sans"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mufi-c3b4e9a4","hasAudioNarration":false,"actualSubdomain":"mufi-c3b4e9a4","customDomains":["docs.mufi.app"],"gitSource":{"type":"github","owner":"mufitech","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae92203142dc7511ce6f6f9:success","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"Overview","count":11},{"language":"default","tag":"Users","count":9},{"language":"default","tag":"Products","count":8},{"language":"default","tag":"Events","count":8},{"language":"default","tag":"Products Endpoints","count":7},{"language":"default","tag":"Events Endpoints","count":7},{"language":"default","tag":"Users Endpoints","count":7},{"language":"default","tag":"Getting Started","count":6},{"language":"default","tag":"Security \u0026 Infrastructure","count":4},{"language":"default","tag":"Platform","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"docs/endpoint/engagement/create-product","slug":"/docs/endpoint/engagement/create-product","pageMetadata":{"openapi":"post /v1/products","title":"Create Product","description":"Create a new product for an event. Products define redeemable items that can be distributed to users, such as vouchers, coupons, or digital collectibles.","href":"/docs/endpoint/engagement/create-product","hidden":false},"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 new product for an event. Products define redeemable items that can be distributed to users, such as vouchers, coupons, or digital collectibles.\"\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":"post /v1/products","title":"Create Product","description":"Create a new product for an event. Products define redeemable items that can be distributed to users, such as vouchers, coupons, or digital collectibles.","href":"/docs/endpoint/engagement/create-product","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"security":["1807836d-d303-471b-a51f-390c85e7b9a6"],"description":"Create a new product for an event. Products define redeemable items that can be distributed to users, such as vouchers, coupons, or digital collectibles.","summary":"Create Product","tags":["engagement"],"requestBody":"5c627ded-531d-4469-8277-b7bc8abfd0e7","responses":{"201":"2b6cb056-e383-49f0-bcce-8c09c88c703d","400":"8ce7c713-278e-4c4d-b863-c6a817c4cf1c","401":"2bbf3ae9-0e6d-4b2f-b405-46f1471db3de","403":"f9d4225e-6de9-45ca-98a1-edebbdf8c6bb","422":"bbe0453b-6d1c-463b-94ca-2b7dac8d85c9"},"method":"post","type":"path","servers":["3ad9b19a-76c0-4dbc-9394-6cf1e13d06d9"],"path":"/v1/products","baseUrlOptions":["https://dev.api.mufi.app/"],"title":"Create Product","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"Create a new product for an event. If mint_nft is true, then metadata_uri and chain MUST be provided. The project wallet must have the required balance to create the NFT Collection.","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["admission","presale","perks"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"maxLength":255,"description":"The name of the product.","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"event_id":{"type":"string","format":"uuid","description":"The ID of the event that the product is associated with. Leave blank for a general product that lives longer than an event.","isRequired":true,"uniqueKey":"event_id","typeLabel":"string\u003cuuid>"},"description":{"oneOf":[{"type":"string","minLength":1,"maxLength":255,"description":"The description of the product.","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":255,"description":"The description of the product.","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"price":{"oneOf":[{"type":"string","description":"The price of the product as a decimal string (e.g. \"9.99\"). Defaults to \"0\".","uniqueKey":"price.oneOf.0","typeLabel":"string"},{"type":"null","description":"The price of the product as a decimal string (e.g. \"9.99\"). Defaults to \"0\".","uniqueKey":"price.oneOf.1","typeLabel":"null"}],"uniqueKey":"price","typeLabel":"string | null"},"active":{"oneOf":[{"type":"boolean","description":"Whether the product is active and available. Defaults to true.","uniqueKey":"active.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the product is active and available. Defaults to true.","uniqueKey":"active.oneOf.1","typeLabel":"null"}],"uniqueKey":"active","typeLabel":"boolean | null"},"is_claimable":{"oneOf":[{"type":"boolean","description":"Whether the product can be claimed via a direct URL. Defaults to false.","uniqueKey":"is_claimable.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the product can be claimed via a direct URL. Defaults to false.","uniqueKey":"is_claimable.oneOf.1","typeLabel":"null"}],"uniqueKey":"is_claimable","typeLabel":"boolean | null"},"is_transferable":{"oneOf":[{"type":"boolean","description":"Whether product items can be transferred between users. Defaults to false.","uniqueKey":"is_transferable.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether product items can be transferred between users. Defaults to false.","uniqueKey":"is_transferable.oneOf.1","typeLabel":"null"}],"uniqueKey":"is_transferable","typeLabel":"boolean | null"},"stock":{"oneOf":[{"type":"integer","minimum":1,"description":"Total stock available. Null or omit for unlimited stock.","uniqueKey":"stock.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Total stock available. Null or omit for unlimited stock.","uniqueKey":"stock.oneOf.1","typeLabel":"null"}],"uniqueKey":"stock","typeLabel":"integer | null"},"redemption_quantity":{"oneOf":[{"type":"integer","minimum":1,"description":"How many times a single product item can be redeemed. Defaults to 1.","uniqueKey":"redemption_quantity.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"How many times a single product item can be redeemed. Defaults to 1.","uniqueKey":"redemption_quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"redemption_quantity","typeLabel":"integer | null"},"max_per_account":{"oneOf":[{"type":"integer","minimum":1,"description":"Maximum number of items a single user can hold. Null or omit for unlimited.","uniqueKey":"max_per_account.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Maximum number of items a single user can hold. Null or omit for unlimited.","uniqueKey":"max_per_account.oneOf.1","typeLabel":"null"}],"uniqueKey":"max_per_account","typeLabel":"integer | null"},"min_rep_balance":{"oneOf":[{"type":"integer","minimum":0,"description":"Minimum reputation balance required to receive this product. Defaults to 0.","uniqueKey":"min_rep_balance.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Minimum reputation balance required to receive this product. Defaults to 0.","uniqueKey":"min_rep_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"min_rep_balance","typeLabel":"integer | null"},"metadata_uri":{"oneOf":[{"type":"string","maxLength":512,"format":"uri","description":"The URL of the metadata for the asset containing name, image, description fields. Required if mint_nft is true.","uniqueKey":"metadata_uri.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","maxLength":512,"format":"uri","description":"The URL of the metadata for the asset containing name, image, description fields. Required if mint_nft is true.","uniqueKey":"metadata_uri.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata_uri","typeLabel":"string\u003curi> | null"},"mint_nft":{"oneOf":[{"type":"boolean","description":"Whether to mint an NFT when a user receives a product item. If true, the metadata_uri must be provided.","uniqueKey":"mint_nft.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether to mint an NFT when a user receives a product item. If true, the metadata_uri must be provided.","uniqueKey":"mint_nft.oneOf.1","typeLabel":"null"}],"uniqueKey":"mint_nft","typeLabel":"boolean | null"},"chain":{"type":"string","description":"The chain to mint the NFT on. Required if mint_nft is true.","enum":["WestendAssetHub","AssetHub"],"uniqueKey":"chain","typeLabel":"enum\u003cstring>"},"max_items":{"oneOf":[{"type":"number","minimum":1,"description":"The maximum number of items that can be in the asset collection. Leave blank for an unlimited number of items.","uniqueKey":"max_items.oneOf.0","typeLabel":"number"},{"type":"null","minimum":1,"description":"The maximum number of items that can be in the asset collection. Leave blank for an unlimited number of items.","uniqueKey":"max_items.oneOf.1","typeLabel":"null"}],"uniqueKey":"max_items","typeLabel":"number | null"}},"required":["type","name","event_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","event_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","description":"\u003cstring>","price":"\u003cstring>","active":true,"is_claimable":true,"is_transferable":true,"stock":2,"redemption_quantity":2,"max_per_account":2,"min_rep_balance":1,"metadata_uri":"\u003cstring>","mint_nft":true,"max_items":2}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"2b6cb056-e383-49f0-bcce-8c09c88c703d":{"description":"A product was successfully created.","content":{"application/json":{"schema":{"type":"object","required":["id","created_at","updated_at","event","type","name","event_id"],"properties":{"type":{"type":"string","enum":["admission","presale","perks"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"maxLength":255,"description":"The name of the product.","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"event_id":{"type":"string","format":"uuid","description":"The ID of the event that the product is associated with. Leave blank for a general product that lives longer than an event.","isRequired":true,"uniqueKey":"event_id","typeLabel":"string\u003cuuid>"},"id":{"type":"string","format":"uuid","description":"The ID of the product.","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"created_at":{"type":"string","format":"date-time","description":"The date and time the product was created.","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"The date and time the product was last updated.","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"event":{"type":"object","properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"event.id","typeLabel":"string\u003cuuid>"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"event.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"event.updated_at","typeLabel":"string\u003cdate-time>"},"name":{"type":"string","isRequired":true,"uniqueKey":"event.name","typeLabel":"string"},"start_date":{"type":"integer","isRequired":true,"uniqueKey":"event.start_date","typeLabel":"integer"},"end_date":{"type":"integer","isRequired":true,"uniqueKey":"event.end_date","typeLabel":"integer"},"location":{"type":"string","isRequired":true,"uniqueKey":"event.location","typeLabel":"string"},"address":{"type":"string","isRequired":true,"uniqueKey":"event.address","typeLabel":"string"},"project_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"event.project_id","typeLabel":"string\u003cuuid>"},"reference_id":{"oneOf":[{"type":"string","description":"An optional ID of the reference object in your database. This can be used to query events by reference object.","uniqueKey":"event.reference_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An optional ID of the reference object in your database. This can be used to query events by reference object.","uniqueKey":"event.reference_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"event.reference_id","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","uniqueKey":"event.description.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"event.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"event.description","typeLabel":"string | null"}},"required":["id","created_at","updated_at","name","start_date","end_date","location","address","project_id"],"isRequired":true,"uniqueKey":"event","typeLabel":"object"},"description":{"oneOf":[{"type":"string","minLength":1,"maxLength":255,"description":"The description of the product.","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":255,"description":"The description of the product.","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"price":{"oneOf":[{"type":"string","description":"The price of the product as a decimal string (e.g. \"9.99\"). Defaults to \"0\".","uniqueKey":"price.oneOf.0","typeLabel":"string"},{"type":"null","description":"The price of the product as a decimal string (e.g. \"9.99\"). Defaults to \"0\".","uniqueKey":"price.oneOf.1","typeLabel":"null"}],"uniqueKey":"price","typeLabel":"string | null"},"active":{"oneOf":[{"type":"boolean","description":"Whether the product is active and available. Defaults to true.","uniqueKey":"active.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the product is active and available. Defaults to true.","uniqueKey":"active.oneOf.1","typeLabel":"null"}],"uniqueKey":"active","typeLabel":"boolean | null"},"is_claimable":{"oneOf":[{"type":"boolean","description":"Whether the product can be claimed via a direct URL. Defaults to false.","uniqueKey":"is_claimable.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the product can be claimed via a direct URL. Defaults to false.","uniqueKey":"is_claimable.oneOf.1","typeLabel":"null"}],"uniqueKey":"is_claimable","typeLabel":"boolean | null"},"is_transferable":{"oneOf":[{"type":"boolean","description":"Whether product items can be transferred between users. Defaults to false.","uniqueKey":"is_transferable.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether product items can be transferred between users. Defaults to false.","uniqueKey":"is_transferable.oneOf.1","typeLabel":"null"}],"uniqueKey":"is_transferable","typeLabel":"boolean | null"},"stock":{"oneOf":[{"type":"integer","minimum":1,"description":"Total stock available. Null or omit for unlimited stock.","uniqueKey":"stock.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Total stock available. Null or omit for unlimited stock.","uniqueKey":"stock.oneOf.1","typeLabel":"null"}],"uniqueKey":"stock","typeLabel":"integer | null"},"redemption_quantity":{"oneOf":[{"type":"integer","minimum":1,"description":"How many times a single product item can be redeemed. Defaults to 1.","uniqueKey":"redemption_quantity.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"How many times a single product item can be redeemed. Defaults to 1.","uniqueKey":"redemption_quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"redemption_quantity","typeLabel":"integer | null"},"max_per_account":{"oneOf":[{"type":"integer","minimum":1,"description":"Maximum number of items a single user can hold. Null or omit for unlimited.","uniqueKey":"max_per_account.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Maximum number of items a single user can hold. Null or omit for unlimited.","uniqueKey":"max_per_account.oneOf.1","typeLabel":"null"}],"uniqueKey":"max_per_account","typeLabel":"integer | null"},"min_rep_balance":{"oneOf":[{"type":"integer","minimum":0,"description":"Minimum reputation balance required to receive this product. Defaults to 0.","uniqueKey":"min_rep_balance.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Minimum reputation balance required to receive this product. Defaults to 0.","uniqueKey":"min_rep_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"min_rep_balance","typeLabel":"integer | null"},"metadata_uri":{"oneOf":[{"type":"string","maxLength":512,"format":"uri","description":"The URL of the metadata for the asset containing name, image, description fields. Required if mint_nft is true.","uniqueKey":"metadata_uri.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","maxLength":512,"format":"uri","description":"The URL of the metadata for the asset containing name, image, description fields. Required if mint_nft is true.","uniqueKey":"metadata_uri.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata_uri","typeLabel":"string\u003curi> | null"},"mint_nft":{"oneOf":[{"type":"boolean","description":"Whether to mint an NFT when a user receives a product item. If true, the metadata_uri must be provided.","uniqueKey":"mint_nft.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether to mint an NFT when a user receives a product item. If true, the metadata_uri must be provided.","uniqueKey":"mint_nft.oneOf.1","typeLabel":"null"}],"uniqueKey":"mint_nft","typeLabel":"boolean | null"},"chain":{"type":"string","description":"The chain to mint the NFT on. Required if mint_nft is true.","enum":["WestendAssetHub","AssetHub"],"uniqueKey":"chain","typeLabel":"enum\u003cstring>"},"max_items":{"oneOf":[{"type":"number","minimum":1,"description":"The maximum number of items that can be in the asset collection. Leave blank for an unlimited number of items.","uniqueKey":"max_items.oneOf.0","typeLabel":"number"},{"type":"null","minimum":1,"description":"The maximum number of items that can be in the asset collection. Leave blank for an unlimited number of items.","uniqueKey":"max_items.oneOf.1","typeLabel":"null"}],"uniqueKey":"max_items","typeLabel":"number | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"admission","name":"\u003cstring>","event_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","event":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","name":"\u003cstring>","start_date":123,"end_date":123,"location":"\u003cstring>","address":"\u003cstring>","project_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","reference_id":"\u003cstring>","description":"\u003cstring>"},"description":"\u003cstring>","price":"\u003cstring>","active":true,"is_claimable":true,"is_transferable":true,"stock":2,"redemption_quantity":2,"max_per_account":2,"min_rep_balance":1,"metadata_uri":"\u003cstring>","mint_nft":true,"chain":"WestendAssetHub","max_items":2}}},"exampleType":"generated"}},"exampleType":"generated"},"8ce7c713-278e-4c4d-b863-c6a817c4cf1c":{"description":"A bad request will contain a list of errors for invalid fields.","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string","uniqueKey":"errors.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"errors","typeLabel":"string[]"}},"required":["errors"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"errors":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"2bbf3ae9-0e6d-4b2f-b405-46f1471db3de":{"description":"Unauthorized. The API key is missing or has expired if you are using a key with an expiration date that you configured when creating the key.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"f9d4225e-6de9-45ca-98a1-edebbdf8c6bb":{"description":"Forbidden. The API key that you provided is not valid or does not exist.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"bbe0453b-6d1c-463b-94ca-2b7dac8d85c9":{"description":"Project wallet not found and is pending creation or the wallet balance is too low to create a collection. If the wallet is pending creation, please wait a few minutes for the wallet to be created and try again. If the wallet balance is too low, please add more DOT to your wallet. ### Required Balance for each chain: If minting an NFT, the project wallet must have the required balance to create the NFT Collection. - **AssetHub**: 2 DOT - **WestendAssetHub**: 2 WND","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"1807836d-d303-471b-a51f-390c85e7b9a6":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"A JWT Access Token obtained from Google Cloud.","scopes":[]}}},"servers":{"3ad9b19a-76c0-4dbc-9394-6cf1e13d06d9":{"url":"https://dev.api.mufi.app/","description":"Staging"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"A JWT Access Token obtained from Google Cloud.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A JWT Access Token obtained from Google Cloud.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"mufi-c3b4e9a4","siteName":"Mufi","title":"Create Product - Mufi","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"docs/endpoint/engagement/create-product.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";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=\"dark\"}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 new product for an event. Products define redeemable items that can be distributed to users, such as vouchers, coupons, or digital collectibles.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mufi\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mufi-c3b4e9a4/jeKtxkWyBRrXgK-J/_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/mufi-c3b4e9a4/jeKtxkWyBRrXgK-J/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mufi-c3b4e9a4/jeKtxkWyBRrXgK-J/_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/mufi-c3b4e9a4/jeKtxkWyBRrXgK-J/_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/mufi-c3b4e9a4/jeKtxkWyBRrXgK-J/_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/mufi-c3b4e9a4/jeKtxkWyBRrXgK-J/_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/mufi-c3b4e9a4/jeKtxkWyBRrXgK-J/_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/mufi-c3b4e9a4/jeKtxkWyBRrXgK-J/_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/mufi-c3b4e9a4/jeKtxkWyBRrXgK-J/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Product - Mufi\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new product for an event. Products define redeemable items that can be distributed to users, such as vouchers, coupons, or digital collectibles.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mufi\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mufi.app/docs/endpoint/engagement/create-product\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mufi-c3b4e9a4.mintlify.site/_mintlify/api/og/v2?division=Products+Endpoints\u0026amp;title=Create+Product\u0026amp;description=Create+a+new+product+for+an+event.+Products+define+redeemable+items+that+can+be+distributed+to+users%2C+such+as+vouchers%2C+coupons%2C+or+digital+collectibles.\u0026amp;theme=04095e610e7737d5f621f813\u0026amp;signature=26042eb699103cd1f848869a3f255b9e0097f99b626b94f0ddd9db7d2dd8b022\">\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 - Mufi\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new product for an event. Products define redeemable items that can be distributed to users, such as vouchers, coupons, or digital collectibles.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mufi-c3b4e9a4.mintlify.site/_mintlify/api/og/v2?division=Products+Endpoints\u0026amp;title=Create+Product\u0026amp;description=Create+a+new+product+for+an+event.+Products+define+redeemable+items+that+can+be+distributed+to+users%2C+such+as+vouchers%2C+coupons%2C+or+digital+collectibles.\u0026amp;theme=04095e610e7737d5f621f813\u0026amp;signature=26042eb699103cd1f848869a3f255b9e0097f99b626b94f0ddd9db7d2dd8b022\">\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/mufi-c3b4e9a4/jeKtxkWyBRrXgK-J/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mufi\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#b7ff02\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mufi.app/docs/endpoint/engagement/create-product\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/endpoint/engagement/create-product.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mufi.app/#organization\",\"name\":\"Mufi\",\"url\":\"https://docs.mufi.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mufi-c3b4e9a4/9yxXrvWpIAZr8_21/logo/mufi-logo-white.svg?fit=max\u0026auto=format\u0026n=9yxXrvWpIAZr8_21\u0026q=85\u0026s=77e9b71ad2759fee018192b0eea1f87f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mufi.app#website\",\"name\":\"Mufi\",\"url\":\"https://docs.mufi.app\",\"publisher\":{\"@id\":\"https://docs.mufi.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mufi.app/docs/endpoint/engagement/create-product#webpage\",\"url\":\"https://docs.mufi.app/docs/endpoint/engagement/create-product\",\"name\":\"Create Product\",\"description\":\"Create a new product for an event. Products define redeemable items that can be distributed to users, such as vouchers, coupons, or digital collectibles.\",\"isPartOf\":{\"@id\":\"https://docs.mufi.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mufi.app/docs/endpoint/engagement/create-product#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mufi.app/docs/endpoint/engagement/create-product#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Mufi\",\"item\":\"https://docs.mufi.app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Product\",\"item\":\"https://docs.mufi.app/docs/endpoint/engagement/create-product\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.mufi.app/docs/endpoint/engagement/create-product#apireference\",\"headline\":\"Create Product\",\"name\":\"Create Product\",\"description\":\"Create a new product for an event. Products define redeemable items that can be distributed to users, such as vouchers, coupons, or digital collectibles.\",\"url\":\"https://docs.mufi.app/docs/endpoint/engagement/create-product\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mufi.app/docs/endpoint/engagement/create-product#webpage\"},\"publisher\":{\"@id\":\"https://docs.mufi.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mufi.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mufi\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Mufi\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/endpoint/engagement/create-product.md","siteName":"Mufi","nav":{"global":null,"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":"/docs/introduction"}]},{"tab":"Users","pages":[{"title":"Users","href":"/docs/users/introduction"}]},{"tab":"Events","pages":[{"title":"Events","href":"/docs/events/introduction"}]},{"tab":"Products","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","description":"Create products, issue items, and manage redemptions and transfers","href":"/docs/products/introduction"}]},{"group":"Products Endpoints","pages":[{"openapi":"post /v1/products","title":"Create Product","href":"/docs/endpoint/engagement/create-product"},{"openapi":"get /v1/products","title":"List Products","description":"Fetch all products for a project ordered by creation date. Results can be paginated with `page` and `limit` query parameters.","href":"/docs/endpoint/engagement/list-products"},{"openapi":"get /v1/products/{id}","title":"Get Product","href":"/docs/endpoint/engagement/get-product"},{"openapi":"post /v1/products/{id}/items","title":"Create Product Items","href":"/docs/endpoint/engagement/create-product-items"},{"openapi":"post /v1/products/{id}/items/redeem","title":"Redeem Product Item","href":"/docs/endpoint/engagement/redeem-product-item"},{"openapi":"get /v1/products/{id}/sales","title":"List Product Sales","href":"/docs/endpoint/engagement/list-product-sales"},{"openapi":"post /v1/products/{id}/transfer","title":"Transfer Product Item","href":"/docs/endpoint/engagement/transfer-product-item"}]}]}]},"basePath":"","title":"Create Product - Mufi","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C9Wu0MeN.js","utils-jWgu-6Qf.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BGuX1ui5.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BQHO1lnV.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js","Page-D6S0Yh6q.js","getPastedJson-CwiYOonh.js","icon-DYDpWmDf.js","MethodPill-C-J-l7_c.js","DuplicateIcon-B6ARwg9w.js","createIcon-Dsv4MtDq.js","DynamicMarkdown-CtasenyM.js","SectionHeading-YNcgYwjB.js","axios-vUo_bRtp.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}