{ "points_purchase": { "id": 665523890, "customer_id": 304169228, "points_product_id": 132456921, "points_spent": 500, "reward_fulfillment": { "id": 625478984, "name": "$5 off coupon", "code": "5off-e26d02e39149", "customer_id": 304169228, "fulfillment_status": "issued", "image_url": "https://platform-images.smilecdn.co/9283449.png", "action_text": "<string>", "action_url": "<string>", "usage_instructions": "Use this discount code on your next order!", "terms_and_conditions": "Reward expires on June 7, 2025. Reward can only be used on purchase of $50 or more. Reward can only be used on select product collections.", "expires_at": "2025-06-07T23:59:59.999Z", "usage_status": "unused", "used_at": "2023-11-07T05:31:56Z", "created_at": "2024-12-07T20:15:27.893Z", "updated_at": "2024-12-07T20:15:27.893Z" }, "created_at": "2024-04-04T15:10:42.030Z", "updated_at": "2024-04-04T15:10:42.030Z" }}
Points Products
Purchase a points product
Purchase a points product on behalf of a customer in the Smile REST API.
{ "points_purchase": { "id": 665523890, "customer_id": 304169228, "points_product_id": 132456921, "points_spent": 500, "reward_fulfillment": { "id": 625478984, "name": "$5 off coupon", "code": "5off-e26d02e39149", "customer_id": 304169228, "fulfillment_status": "issued", "image_url": "https://platform-images.smilecdn.co/9283449.png", "action_text": "<string>", "action_url": "<string>", "usage_instructions": "Use this discount code on your next order!", "terms_and_conditions": "Reward expires on June 7, 2025. Reward can only be used on purchase of $50 or more. Reward can only be used on select product collections.", "expires_at": "2025-06-07T23:59:59.999Z", "usage_status": "unused", "used_at": "2023-11-07T05:31:56Z", "created_at": "2024-12-07T20:15:27.893Z", "updated_at": "2024-12-07T20:15:27.893Z" }, "created_at": "2024-04-04T15:10:42.030Z", "updated_at": "2024-04-04T15:10:42.030Z" }}
This endpoint requires the points_purchase:write scope.
The number of points that will be spent on behalf of the customer. Only applies when purchasing a points product whose exchange_type is variable, otherwise should be left blank.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Smile.io Developer Documentation","description":"Documentation and guides for using Smile's full-stack developer tooling, including the REST API and JavaScript SDK.","colors":{"primary":"#FFC419","light":"#FFC419","dark":"#1E38FB"},"logo":{"light":"https://mintcdn.com/smileio/VRZup3pt_A0wJgq4/images/logo-light.svg?fit=max\u0026auto=format\u0026n=VRZup3pt_A0wJgq4\u0026q=85\u0026s=2ece8527648f4f7eeb076ce9a821f04e","dark":"https://mintcdn.com/smileio/VRZup3pt_A0wJgq4/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=VRZup3pt_A0wJgq4\u0026q=85\u0026s=a0220ce60be88afca90042a3b8b3071a"},"favicon":"https://mintcdn.com/smileio/MiB8uy9lSdXlgs7f/images/favicon.png?fit=max\u0026auto=format\u0026n=MiB8uy9lSdXlgs7f\u0026q=85\u0026s=579525865d082a1a8c53c139ad14ae11","api":{"playground":{"proxy":false},"examples":{"languages":["bash","go","java","node","php","powershell","python","ruby"]}},"navbar":{"links":[{"href":"/changelog","label":"Changelog"}],"primary":{"type":"button","label":"Install Smile","href":"https://apps.shopify.com/smile-io"}},"footer":{"socials":{"website":"https://smile.io","linkedin":"https://www.linkedin.com/company/smile.io","youtube":"https://www.youtube.com/c/smilerewards"},"links":[{"header":"Guides","items":[{"label":"Fundamentals","href":"/guides/fundamentals"},{"label":"Common use cases","href":"/guides/use-cases/common"},{"label":"How to integrate","href":"/guides/apps/integrate"}]},{"header":"Documentation","items":[{"label":"API Reference","href":"/api/introduction"},{"label":"JavaScript SDK","href":"/js/introduction"},{"label":"Smile UI","href":"/ui/introduction"}]},{"header":"Company","items":[{"label":"Careers","href":"https://smile.io/careers"},{"label":"Partners","href":"https://smile.io/partners"},{"label":"Contact us","href":"https://smile.io/contact-us"}]},{"header":"Resources","items":[{"label":"Changelog","href":"/changelog"},{"label":"Help docs","href":"https://help.smile.io"},{"label":"Status page","href":"https://status.smile.io"}]}]},"seo":{"metatags":{"canonical":"https://dev.smile.io"}},"fonts":{"family":"Inter"},"styling":{"latex":false},"integrations":{"posthog":{"apiKey":"phc_bmeJEeepMfRdoeOXjeD5LQ1XaCMdFUdn3tNB830NPvG","apiHost":"https://p.smile.io","sessionRecording":false}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"smileio","hasAudioNarration":false,"actualSubdomain":"smileio","customDomains":["dev.smile.io"],"gitSource":{"type":"github","owner":"smile-io","repo":"dev-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":false,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aee064f6bf90855ba599d09","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Libraries \u0026 SDKs","count":80},{"language":"default","tag":"JavaScript SDK","count":52},{"language":"default","tag":"Guides","count":42},{"language":"default","tag":"SDK resources","count":38},{"language":"default","tag":"API Reference","count":35},{"language":"default","tag":"Deprecated","count":35},{"language":"default","tag":"API resources","count":29},{"language":"default","tag":"Smile UI","count":28},{"language":"default","tag":"Apps \u0026 integrations","count":13},{"language":"default","tag":"Custom platform","count":12}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@media (max-width: 640px){#home-cards .card-group{grid-template-columns:1fr!important}}@media (min-width: 641px) and (max-width: 1023px){#home-cards .card-group{grid-template-columns:repeat(2, 1fr)!important}}@media (max-width: 640px){:not(#home-cards)>.card-group{grid-template-columns:1fr!important}}@media (min-width: 641px) and (max-width: 1280px){:not(#home-cards)>.card-group{grid-template-columns:repeat(2, 1fr)!important}}ul.contains-task-list{list-style:none;padding-left:0!important}li.task-list-item{list-style:none;padding-left:0!important}li.task-list-item::before{content:none!important}li.task-list-item>input[type=\"checkbox\"]{margin-right:0.5em!important}"}],"page":{"pagePath":"api/resources/points-products/purchase-points-product","slug":"/api/resources/points-products/purchase-points-product","pageMetadata":{"title":"Purchase a points product","description":"Purchase a points product on behalf of a customer in the Smile REST API.","openapi":"schemas/rest-api.json POST /points_products/{id}/purchase","href":"/api/resources/points-products/purchase-points-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: \"Purchase a points product on behalf of a customer in the Smile REST API.\"\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{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const scope_0=`points_purchase:write`;function _createMdxContent(props){const _components={p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Callout}=_components;if(!Callout)_missingMdxReference(`Callout`,true);return _jsx(Callout,{icon:`key`,iconType:`regular`,children:_jsxs(_components.p,{children:[`This endpoint requires the `,_jsx(_components.strong,{children:scope_0}),` scope.`]})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{scope_0,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":"Purchase a points product","description":"Purchase a points product on behalf of a customer in the Smile REST API.","openapi":"schemas/rest-api.json POST /points_products/{id}/purchase","href":"/api/resources/points-products/purchase-points-product"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[493,517,"`points_purchase:write`}),` scope.`]})})"]]},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Purchase a points product","operationId":"post__points_products_id_purchase","tags":["Points Products"],"responses":{"201":"df385b48-04d1-41e1-aaf0-666fdf7040e7"},"description":"Purchase a points product on behalf of a customer in the Smile REST API.","parameters":["b27a566d-2bf5-4cda-bdec-c0e2ed97b962"],"requestBody":"bdc0c3d4-0697-4384-9466-c249aabdfbfc","method":"post","type":"path","servers":["7867e818-4417-402a-83f6-0aa52da02a26"],"security":["814a7ad7-1eca-4312-bc58-cbb04fc4961c"],"path":"/points_products/{id}/purchase","baseUrlOptions":["https://api.smile.io/v1"],"title":"Purchase a points product","codeSamples":[],"requestExampleLanguages":["bash","go","java","node","php","powershell","python","ruby"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"b27a566d-2bf5-4cda-bdec-c0e2ed97b962":{"name":"id","in":"path","required":true,"schema":{"type":"integer","description":"ID of the points product to purchase.","example":132456921,"isRequired":true,"uniqueKey":"","typeLabel":"integer"},"description":"ID of the points product to purchase."}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"customer_id":{"type":"integer","description":"ID of the customer who is purchasing the points product.","example":304169228,"isRequired":true,"uniqueKey":"customer_id","typeLabel":"integer"},"points_to_spend":{"type":"integer","description":"The number of points that will be spent on behalf of the customer. Only applies when purchasing a points product whose `exchange_type` is `variable`, otherwise should be left blank.","example":500,"uniqueKey":"points_to_spend","typeLabel":"integer"}},"required":["customer_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"customer_id":304169228,"points_to_spend":500}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"df385b48-04d1-41e1-aaf0-666fdf7040e7":{"description":"The points product was successfully purchased.","content":{"application/json":{"schema":{"type":"object","properties":{"points_purchase":{"type":"object","properties":{"id":{"type":"integer","description":"Unique identifier for the points purchase.","example":665523890,"uniqueKey":"points_purchase.id","typeLabel":"integer"},"customer_id":{"type":"integer","description":"The ID of the customer who performed the points purchase.","example":304169228,"uniqueKey":"points_purchase.customer_id","typeLabel":"integer"},"points_product_id":{"type":"integer","description":"The ID of the points product that was purchased.","example":132456921,"uniqueKey":"points_purchase.points_product_id","typeLabel":"integer"},"points_spent":{"type":"integer","description":"The total points spent by the customer.","example":500,"minimum":0,"uniqueKey":"points_purchase.points_spent","typeLabel":"integer"},"reward_fulfillment":{"type":"object","properties":{"id":{"type":"integer","example":625478984,"description":"Unique identifier for the reward fulfillment.","uniqueKey":"points_purchase.reward_fulfillment.id","typeLabel":"integer"},"name":{"type":"string","example":"$5 off coupon","description":"The name of the reward fulfillment.","uniqueKey":"points_purchase.reward_fulfillment.name","typeLabel":"string"},"code":{"type":"string","example":"5off-e26d02e39149","description":"A unique code for the customer to use or apply the reward fulfillment. This is commonly a discount code the customer applies at checkout on their next order, but it can be a unique code they use for other purposes like accessing an exclusive page on the merchant's website.","uniqueKey":"points_purchase.reward_fulfillment.code","typeLabel":"string"},"customer_id":{"type":"integer","example":304169228,"description":"The ID of the customer that the reward fulfillment belongs to.","uniqueKey":"points_purchase.reward_fulfillment.customer_id","typeLabel":"integer"},"fulfillment_status":{"type":"string","enum":["pending","issued","cancelled","failed"],"example":"issued","description":"The fulfillment status of the reward fulfillment, indicating whether the reward is available to the customer.","uniqueKey":"points_purchase.reward_fulfillment.fulfillment_status","typeLabel":"enum\u003cstring>"},"image_url":{"type":"string","example":"https://platform-images.smilecdn.co/9283449.png","description":"An image for the reward fulfillment.","uniqueKey":"points_purchase.reward_fulfillment.image_url","typeLabel":"string"},"action_text":{"oneOf":[{"type":"string","description":"A short call-to-action style text, appropriate for use in buttons or links, guiding the customer on how to use the reward fulfillment. This field may be blank","uniqueKey":"points_purchase.reward_fulfillment.action_text.oneOf.0","typeLabel":"string"},{"type":"null","description":"A short call-to-action style text, appropriate for use in buttons or links, guiding the customer on how to use the reward fulfillment. This field may be blank","uniqueKey":"points_purchase.reward_fulfillment.action_text.oneOf.1","typeLabel":"null"}],"uniqueKey":"points_purchase.reward_fulfillment.action_text","typeLabel":"string | null"},"action_url":{"oneOf":[{"type":"string","description":"A URL destination guiding the customer on how to use the reward, often paired with the `action_text` for use in buttons or links. This field may be blank.","uniqueKey":"points_purchase.reward_fulfillment.action_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"A URL destination guiding the customer on how to use the reward, often paired with the `action_text` for use in buttons or links. This field may be blank.","uniqueKey":"points_purchase.reward_fulfillment.action_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"points_purchase.reward_fulfillment.action_url","typeLabel":"string | null"},"usage_instructions":{"oneOf":[{"type":"string","example":"Use this discount code on your next order!","description":"A description of how the customer can use or apply the reward fulfillment.","uniqueKey":"points_purchase.reward_fulfillment.usage_instructions.oneOf.0","typeLabel":"string"},{"type":"null","example":"Use this discount code on your next order!","description":"A description of how the customer can use or apply the reward fulfillment.","uniqueKey":"points_purchase.reward_fulfillment.usage_instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"points_purchase.reward_fulfillment.usage_instructions","typeLabel":"string | null"},"terms_and_conditions":{"oneOf":[{"type":"string","example":"Reward expires on June 7, 2025. Reward can only be used on purchase of $50 or more. Reward can only be used on select product collections.","description":"A description of the reward fulfillment's limitations or restrictions. When the reward is a discount code, this commonly includes expiry date, minimum order amounts, or applicability to specific product collections.","uniqueKey":"points_purchase.reward_fulfillment.terms_and_conditions.oneOf.0","typeLabel":"string"},{"type":"null","example":"Reward expires on June 7, 2025. Reward can only be used on purchase of $50 or more. Reward can only be used on select product collections.","description":"A description of the reward fulfillment's limitations or restrictions. When the reward is a discount code, this commonly includes expiry date, minimum order amounts, or applicability to specific product collections.","uniqueKey":"points_purchase.reward_fulfillment.terms_and_conditions.oneOf.1","typeLabel":"null"}],"uniqueKey":"points_purchase.reward_fulfillment.terms_and_conditions","typeLabel":"string | null"},"expires_at":{"oneOf":[{"type":"string","format":"date-time","example":"2025-06-07T23:59:59.999Z","description":"The date and time when the reward fulfillment expires. When the reward is a discount code, this refers to the expiry date of the discount, and a `null` value indicates that the discount code does not expire.","uniqueKey":"points_purchase.reward_fulfillment.expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","example":"2025-06-07T23:59:59.999Z","description":"The date and time when the reward fulfillment expires. When the reward is a discount code, this refers to the expiry date of the discount, and a `null` value indicates that the discount code does not expire.","uniqueKey":"points_purchase.reward_fulfillment.expires_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"points_purchase.reward_fulfillment.expires_at","typeLabel":"string\u003cdate-time> | null"},"usage_status":{"type":"string","enum":["used","unused","untracked"],"example":"unused","description":"The usage status of the reward fulfillment, indicating whether the generated reward has been used by the customer.","uniqueKey":"points_purchase.reward_fulfillment.usage_status","typeLabel":"enum\u003cstring>"},"used_at":{"oneOf":[{"type":"string","format":"date-time","description":"The date and time when the reward fulfillment was used by the customer. If the reward fulfillments does not support usage tracking, this field may be `null` even after the reward fulfillment has been used.","uniqueKey":"points_purchase.reward_fulfillment.used_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The date and time when the reward fulfillment was used by the customer. If the reward fulfillments does not support usage tracking, this field may be `null` even after the reward fulfillment has been used.","uniqueKey":"points_purchase.reward_fulfillment.used_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"points_purchase.reward_fulfillment.used_at","typeLabel":"string\u003cdate-time> | null"},"created_at":{"type":"string","format":"date-time","example":"2024-12-07T20:15:27.893Z","description":"The date and time when the reward fulfillment was created.","uniqueKey":"points_purchase.reward_fulfillment.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","example":"2024-12-07T20:15:27.893Z","description":"The date and time when the reward fulfillment was last updated.","uniqueKey":"points_purchase.reward_fulfillment.updated_at","typeLabel":"string\u003cdate-time>"}},"description":"A record of a reward that was issued to a customer.","uniqueKey":"points_purchase.reward_fulfillment","typeLabel":"object"},"created_at":{"type":"string","description":"The date and time when the points purchase was created.","format":"date-time","example":"2024-04-04T15:10:42.030Z","uniqueKey":"points_purchase.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","description":"The date and time when the points purchase was last updated.","format":"date-time","example":"2024-04-04T15:10:42.030Z","uniqueKey":"points_purchase.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"points_purchase","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"points_purchase":{"id":665523890,"customer_id":304169228,"points_product_id":132456921,"points_spent":500,"reward_fulfillment":{"id":625478984,"name":"$5 off coupon","code":"5off-e26d02e39149","customer_id":304169228,"fulfillment_status":"issued","image_url":"https://platform-images.smilecdn.co/9283449.png","action_text":"\u003cstring>","action_url":"\u003cstring>","usage_instructions":"Use this discount code on your next order!","terms_and_conditions":"Reward expires on June 7, 2025. Reward can only be used on purchase of $50 or more. Reward can only be used on select product collections.","expires_at":"2025-06-07T23:59:59.999Z","usage_status":"unused","used_at":"2023-11-07T05:31:56Z","created_at":"2024-12-07T20:15:27.893Z","updated_at":"2024-12-07T20:15:27.893Z"},"created_at":"2024-04-04T15:10:42.030Z","updated_at":"2024-04-04T15:10:42.030Z"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"814a7ad7-1eca-4312-bc58-cbb04fc4961c":{"bearerAuth":{"type":"http","scheme":"bearer","scopes":[]}}},"servers":{"7867e818-4417-402a-83f6-0aa52da02a26":{"url":"https://api.smile.io/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"schemas/rest-api.json"},"subdomain":"smileio","siteName":"Smile.io Developer Documentation","title":"Purchase a points product - Smile.io Developer Documentation","contextualStarterQuestions":[{"_id":"6a6d238da5207dd2ddfaba72","deploymentId":"6963e7ff1f9d23b4780f9c32","questionText":"How do I purchase points?","status":"active","generatedBy":"contextual","path":"api/resources/points-products/purchase-points-product","createdAt":"2026-07-31T22:37:01.112Z","updatedAt":"2026-07-31T22:37:01.112Z","__v":0},{"_id":"6a6d238da5207dd2ddfaba73","deploymentId":"6963e7ff1f9d23b4780f9c32","questionText":"What scope is required here?","status":"active","generatedBy":"contextual","path":"api/resources/points-products/purchase-points-product","createdAt":"2026-07-31T22:37:01.112Z","updatedAt":"2026-07-31T22:37:01.112Z","__v":0},{"_id":"6a6d238da5207dd2ddfaba74","deploymentId":"6963e7ff1f9d23b4780f9c32","questionText":"Can I buy points for customers?","status":"active","generatedBy":"contextual","path":"api/resources/points-products/purchase-points-product","createdAt":"2026-07-31T22:37:01.112Z","updatedAt":"2026-07-31T22:37:01.112Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-31T22:36:39.821Z","originalFileLocation":"api/resources/points-products/purchase-points-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=\"Purchase a points product on behalf of a customer in the Smile REST API.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Smile.io Developer Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/smileio/27Cg0i9-pzMj8uaL/_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/smileio/27Cg0i9-pzMj8uaL/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/smileio/27Cg0i9-pzMj8uaL/_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/smileio/27Cg0i9-pzMj8uaL/_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/smileio/27Cg0i9-pzMj8uaL/_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/smileio/27Cg0i9-pzMj8uaL/_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/smileio/27Cg0i9-pzMj8uaL/_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/smileio/27Cg0i9-pzMj8uaL/_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/smileio/27Cg0i9-pzMj8uaL/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Purchase a points product - Smile.io Developer Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Purchase a points product on behalf of a customer in the Smile REST API.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Smile.io Developer Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://dev.smile.io/api/resources/points-products/purchase-points-product\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://smileio.mintlify.site/_mintlify/api/og/v2?division=Points+Products\u0026amp;title=Purchase+a+points+product\u0026amp;description=Purchase+a+points+product+on+behalf+of+a+customer+in+the+Smile+REST+API.\u0026amp;theme=403a5adfc6df8924e3290bc3\u0026amp;signature=96bd09143b71ee61167d077c1bff7bb94ff277e49728c9c24a34a82b12f3825a\">\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=\"Purchase a points product - Smile.io Developer Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Purchase a points product on behalf of a customer in the Smile REST API.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://smileio.mintlify.site/_mintlify/api/og/v2?division=Points+Products\u0026amp;title=Purchase+a+points+product\u0026amp;description=Purchase+a+points+product+on+behalf+of+a+customer+in+the+Smile+REST+API.\u0026amp;theme=403a5adfc6df8924e3290bc3\u0026amp;signature=96bd09143b71ee61167d077c1bff7bb94ff277e49728c9c24a34a82b12f3825a\">\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/smileio/27Cg0i9-pzMj8uaL/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Smile.io Developer Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FFC419\">\u003clink data-mint-head rel=\"canonical\" href=\"https://dev.smile.io/api/resources/points-products/purchase-points-product\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/resources/points-products/purchase-points-product.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://dev.smile.io/#organization\",\"name\":\"Smile.io Developer Documentation\",\"url\":\"https://dev.smile.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/smileio/VRZup3pt_A0wJgq4/images/logo-light.svg?fit=max\u0026auto=format\u0026n=VRZup3pt_A0wJgq4\u0026q=85\u0026s=2ece8527648f4f7eeb076ce9a821f04e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://dev.smile.io#website\",\"name\":\"Smile.io Developer Documentation\",\"url\":\"https://dev.smile.io\",\"publisher\":{\"@id\":\"https://dev.smile.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://dev.smile.io/api/resources/points-products/purchase-points-product#webpage\",\"url\":\"https://dev.smile.io/api/resources/points-products/purchase-points-product\",\"name\":\"Purchase a points product\",\"description\":\"Purchase a points product on behalf of a customer in the Smile REST API.\",\"dateModified\":\"2026-07-31T22:36:39.821Z\",\"isPartOf\":{\"@id\":\"https://dev.smile.io#website\"},\"breadcrumb\":{\"@id\":\"https://dev.smile.io/api/resources/points-products/purchase-points-product#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://dev.smile.io/api/resources/points-products/purchase-points-product#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API resources\",\"item\":\"https://dev.smile.io/api/resources/activities/activity-object\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Points Products\",\"item\":\"https://dev.smile.io/api/resources/points-products/points-product-object\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Purchase a points product\",\"item\":\"https://dev.smile.io/api/resources/points-products/purchase-points-product\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://dev.smile.io/api/resources/points-products/purchase-points-product#apireference\",\"headline\":\"Purchase a points product\",\"name\":\"Purchase a points product\",\"description\":\"Purchase a points product on behalf of a customer in the Smile REST API.\",\"url\":\"https://dev.smile.io/api/resources/points-products/purchase-points-product\",\"mainEntityOfPage\":{\"@id\":\"https://dev.smile.io/api/resources/points-products/purchase-points-product#webpage\"},\"dateModified\":\"2026-07-31T22:36:39.821Z\",\"publisher\":{\"@id\":\"https://dev.smile.io/#organization\"},\"isPartOf\":{\"@id\":\"https://dev.smile.io#website\"}}]}\u003c/script>","siteName":"Smile.io Developer Documentation","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":""}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/introduction"}]},{"tab":"API Reference","pages":[{"group":"REST API","icon":"globe","pages":[{"title":"Introduction","href":"/api/introduction"},{"title":"Authentication","href":"/api/authentication"},{"title":"Errors","href":"/api/errors"},{"group":"Pagination","pages":[{"title":"Cursor pagination","href":"/api/pagination/cursor-pagination"},{"title":"Classic pagination","mode":"wide","href":"/api/pagination/classic-pagination"}]},{"title":"Rate limits","mode":"wide","href":"/api/rate-limits"}]},{"group":"API resources","icon":"brackets-curly","pages":[{"group":"Activities","pages":[{"title":"Activity object","href":"/api/resources/activities/activity-object"},{"title":"Create an activity","openapi":"schemas/rest-api.json POST /activities","href":"/api/resources/activities/create-activity"}]},{"group":"Customers","pages":[{"title":"Customer object","href":"/api/resources/customers/customer-object"},{"title":"List customers","openapi":"schemas/rest-api.json GET /customers","href":"/api/resources/customers/list-customers"},{"title":"Retrieve a customer","openapi":"schemas/rest-api.json GET /customers/{id}","href":"/api/resources/customers/retrieve-a-customer"}]},{"group":"Customer Identities","pages":[{"title":"Customer Identity object","href":"/api/resources/customer-identities/customer-identity-object"},{"title":"Create or update a customer identity","sidebarTitle":"Create or update","openapi":"schemas/rest-api.json POST /customer_identities/create_or_update","href":"/api/resources/customer-identities/create-or-update-identity"}]},{"group":"Earning Rules","pages":[{"title":"Earning Rule object","href":"/api/resources/earning-rules/earning-rule-object"},{"title":"List earning rules","openapi":"schemas/rest-api.json GET /earning_rules","href":"/api/resources/earning-rules/list-earning-rules"}]},{"group":"Points Products","pages":[{"title":"Points Product object","href":"/api/resources/points-products/points-product-object"},{"title":"List points products","openapi":"schemas/rest-api.json GET /points_products","href":"/api/resources/points-products/list-points-products"},{"title":"Retrieve a points product","description":"Retrieve a single points product by ID in the Smile REST API.","openapi":"schemas/rest-api.json GET /points_products/{id}","href":"/api/resources/points-products/retrieve-points-product"},{"title":"Purchase a points product","openapi":"schemas/rest-api.json POST /points_products/{id}/purchase","href":"/api/resources/points-products/purchase-points-product"}]},{"group":"Points Purchases","pages":[{"title":"Points Purchase object","description":"Reference for the points purchase object in the Smile REST API.","href":"/api/resources/points-purchases/points-purchase-object"}]},{"group":"Points Settings","pages":[{"title":"Points Settings object","href":"/api/resources/points-settings/points-settings-object"},{"title":"Get points settings","openapi":"schemas/rest-api.json GET /points_settings","href":"/api/resources/points-settings/get-points-settings"}]},{"group":"Points Transactions","pages":[{"title":"Points Transaction object","href":"/api/resources/points-transactions/points-transaction-object"},{"title":"Create a points transaction","openapi":"schemas/rest-api.json POST /points_transactions","href":"/api/resources/points-transactions/create-points-transaction"},{"title":"List points transactions","openapi":"schemas/rest-api.json GET /points_transactions","href":"/api/resources/points-transactions/list-points-transactions"},{"title":"Retrieve a points transaction","sidebarTitle":"Retrieve a transaction","openapi":"schemas/rest-api.json GET /points_transactions/{id}","href":"/api/resources/points-transactions/retrieve-points-transaction"}]},{"group":"Referrals","pages":[{"title":"Referral object","href":"/api/resources/referrals/referral-object"}]},{"group":"Referral Settings","pages":[{"title":"Referral Settings object","href":"/api/resources/referral-settings/referral-settings-object"},{"title":"Get referral settings","openapi":"schemas/rest-api.json GET /referral_settings","href":"/api/resources/referral-settings/get-referral-settings"}]},{"group":"Rewards","pages":[{"title":"Reward object","href":"/api/resources/rewards/reward-object"}]},{"group":"Reward Fulfillments","pages":[{"title":"Reward Fulfillment object","href":"/api/resources/reward-fulfillments/reward-fulfillment-object"},{"title":"List reward fulfillments","openapi":"schemas/rest-api.json GET /reward_fulfillments","href":"/api/resources/reward-fulfillments/list-reward-fulfillments"}]},{"group":"VIP Tiers","pages":[{"title":"VIP Tier object","href":"/api/resources/vip-tiers/vip-tier-object"},{"title":"List VIP tiers","openapi":"schemas/rest-api.json GET /vip_tiers","href":"/api/resources/vip-tiers/list-vip-tiers"}]},{"group":"VIP Tier Changes","pages":[{"title":"VIP Tier Change object","href":"/api/resources/vip-tier-changes/vip-tier-change-object"}]}]}]},{"tab":"Libraries \u0026 SDKs","dropdowns":[{"dropdown":"JavaScript SDK","icon":"display-code","pages":[{"title":"Introduction","mode":"wide","href":"/js/introduction"},{"title":"Including Smile.js","href":"/js/including"},{"group":"Key concepts","icon":"book","pages":[{"title":"Customer tokens","href":"/js/concepts/customer-tokens"},{"group":"Error management","pages":[{"title":"Error handling","href":"/js/concepts/error-handling"},{"title":"ApiError object","href":"/js/concepts/error-object"}]},{"group":"Lifecycle events","pages":[{"title":"Lifecycle events","href":"/js/concepts/lifecycle-events"},{"title":"Initialized event","href":"/js/concepts/initialized-event"},{"title":"Loaded event","href":"/js/concepts/loaded-event"}]},{"title":"Preloading resources","href":"/js/concepts/preloading"},{"title":"Versioning","href":"/js/concepts/versioning"}]},{"group":"Smile object","icon":"file-code","pages":[{"title":"Initialize the SDK","href":"/js/smile/initialize"},{"title":"Format points","href":"/js/smile/format-points"},{"title":"Preload resources","href":"/js/smile/preload"},{"title":"Reset the SDK","href":"/js/smile/reset"}]},{"group":"SDK resources","icon":"cubes","pages":[{"group":"Activities","pages":[{"title":"Activity object","href":"/js/resources/activities/object"},{"title":"Create an activity","href":"/js/resources/activities/create"}]},{"group":"Customer","pages":[{"title":"Customer object","href":"/js/resources/customer/object"},{"title":"Get current customer","href":"/js/resources/customer/current"},{"title":"Login the customer","href":"/js/resources/customer/login"},{"title":"Logout the customer","href":"/js/resources/customer/logout"}]},{"group":"Customer Points Products","pages":[{"title":"Customer Points Product object","href":"/js/resources/customer-points-products/object"},{"title":"Get customer points products","href":"/js/resources/customer-points-products/get"},{"title":"Preloaded customer points products","href":"/js/resources/customer-points-products/preloaded"}]},{"group":"Customer Points Wallet","pages":[{"title":"Customer Points Wallet object","href":"/js/resources/customer-points-wallet/object"},{"title":"Get customer points wallet","href":"/js/resources/customer-points-wallet/get"},{"title":"Preloaded customer points wallet","href":"/js/resources/customer-points-wallet/preloaded"}]},{"group":"Customer VIP Status","pages":[{"title":"Customer VIP Status object","href":"/js/resources/customer-vip-status/object"},{"title":"Get customer VIP status","href":"/js/resources/customer-vip-status/get"},{"title":"Preloaded customer VIP status","href":"/js/resources/customer-vip-status/preloaded"}]},{"group":"Earning Rules","pages":[{"title":"Earning Rule object","href":"/js/resources/earning-rules/object"},{"title":"Get earning rules","href":"/js/resources/earning-rules/get"},{"title":"Preloaded earning rules","href":"/js/resources/earning-rules/preloaded"}]},{"group":"Points Products","pages":[{"title":"Points Product object","href":"/js/resources/points-products/object"},{"title":"Get a points product","href":"/js/resources/points-products/get-by-id"},{"title":"Get points products","href":"/js/resources/points-products/get"},{"title":"Preloaded points products","href":"/js/resources/points-products/preloaded"},{"title":"Purchase a points product","href":"/js/resources/points-products/purchase"}]},{"group":"Points Purchases","pages":[{"title":"Points Purchase object","href":"/js/resources/points-purchases/object"}]},{"group":"Points Settings","pages":[{"title":"Points Settings object","href":"/js/resources/points-settings/object"},{"title":"Get points settings","href":"/js/resources/points-settings/get"},{"title":"Preloaded points settings","href":"/js/resources/points-settings/preloaded"}]},{"group":"Referral Settings","pages":[{"title":"Referral Settings object","href":"/js/resources/referral-settings/object"},{"title":"Get referral settings","href":"/js/resources/referral-settings/get"},{"title":"Preloaded referral settings","href":"/js/resources/referral-settings/preloaded"}]},{"group":"Rewards","pages":[{"title":"Reward object","href":"/js/resources/rewards/object"}]},{"group":"Reward Fulfillments","pages":[{"title":"Reward Fulfillment object","href":"/js/resources/reward-fulfillments/object"},{"title":"Get reward fulfillments","href":"/js/resources/reward-fulfillments/get"},{"title":"Preloaded reward fulfillments","href":"/js/resources/reward-fulfillments/preloaded"}]},{"group":"VIP Tiers","pages":[{"title":"VIP Tier object","href":"/js/resources/vip-tiers/object"},{"title":"Get a VIP tier","href":"/js/resources/vip-tiers/get-by-id"},{"title":"Get VIP tiers","href":"/js/resources/vip-tiers/get"},{"title":"Preloaded VIP tiers","href":"/js/resources/vip-tiers/preloaded"}]}]}]},{"dropdown":"Smile UI","icon":"browsers","pages":[{"title":"Introduction","mode":"wide","href":"/ui/introduction"},{"title":"Including Smile UI","href":"/ui/including"},{"title":"Initializing Smile UI","href":"/ui/initializing"},{"title":"Customer tokens","href":"/ui/customer-tokens"},{"group":"Panel actions","icon":"hand-pointer","pages":[{"title":"Open panel","href":"/ui/panel/open"},{"title":"Close panel","href":"/ui/panel/close"},{"title":"Deep links","href":"/ui/panel/deep-links"}]},{"group":"Panel events","icon":"square-bolt","pages":[{"title":"Loaded event","href":"/ui/events/ui-loaded"},{"title":"Ready method","href":"/ui/events/ui-ready"}]},{"group":"Deprecated","icon":"exclamation-triangle","pages":[{"title":"Customer ready method","href":"/ui/events/customer-ready"},{"group":"Smile methods","pages":[{"title":"Create an activity","href":"/ui/smile/create-activity"},{"title":"Customer ready","href":"/ui/smile/customer-ready"},{"title":"Format points","href":"/ui/smile/format-points"},{"title":"Load all customer points products","href":"/ui/smile/fetch-all-customer-points-products"},{"title":"Load a points product","href":"/ui/smile/fetch-points-product"},{"title":"Load all points products","href":"/ui/smile/fetch-all-points-products"},{"title":"Load all reward fulfillments","href":"/ui/smile/fetch-all-reward-fulfillments"},{"title":"Purchase a points product","href":"/ui/smile/purchase-points-product"},{"title":"Reload the customer","href":"/ui/smile/fetch-customer"},{"title":"Ready method","href":"/ui/smile/ready"}]},{"group":"Object references","pages":[{"title":"Activity object","href":"/ui/objects/activity"},{"title":"Customer object","href":"/ui/objects/customer"},{"title":"Customer points product object","href":"/ui/objects/customer-points-product"},{"title":"Points product object","href":"/ui/objects/points-product"},{"title":"Points purchase object","href":"/ui/objects/points-purchase"},{"title":"Reward fulfillment object","href":"/ui/objects/reward-fulfillment"},{"title":"Reward object","href":"/ui/objects/reward"},{"title":"VIP Tier object","href":"/ui/objects/vip-tier"}]}]}]}]},{"tab":"Changelog","hidden":true,"pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Purchase a points product - Smile.io Developer Documentation","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}