{ "code": 404, "error": "ErrorCartNotFound", "description": "Cart does not exist for the specified domain"}
Overview
Retrieves the current consent settings for a customer’s cart session. This endpoint returns all available consent options along with their current status, including whether they have been signed by the customer.
How Consent Management Works
Consent management is integrated into the checkout flow to ensure compliance with data protection regulations:
Session-Based: Consents are stored in the cart session and persist until checkout completion
Type-Based: Different consent types (marketing, terms, privacy) are supported
UI Placement: Each consent includes a ui_slot hint for proper placement in your checkout UI
Audit Trail: Signed consents include timestamp, IP address, and user agent for compliance
Response
array
required
Array of consent objects
Show Consent Object
string
required
Unique identifier for the consent
string
required
UI placement hint for the consentPossible values:
UNDER_EMAIL_INPUT - Display under email field
ABOVE_PLACE_ORDER_BUTTON - Display above order button
AFTER_SHIPPING_INFO - Display after shipping form
string
required
Plain text version of the consent for accessibility
string
required
HTML version with rich formatting and links
string
required
Type of consentPossible values:
marketing - Marketing communications
terms - Terms of service
privacy - Privacy policy
custom - Custom consent type
boolean
required
Whether explicit consent action is required
boolean
required
Whether this consent must be signed to complete checkout
boolean
required
Whether the consent can be revoked after being signed
boolean
required
Whether the customer has signed this consent
Code Examples
curl -X GET https://api.firmly.work/api/v2/domains/staging.luma.gift/cart/consents \ -H "x-firmly-authorization: Bearer YOUR_TOKEN"
[ { "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "ui_slot": "UNDER_EMAIL_INPUT", "text": "I would like to receive marketing emails about special offers and new products.", "html": "I would like to receive marketing emails about special offers and new products.", "type": "marketing", "explicit": true, "required": false, "revokable": true, "signed": false }, { "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "ui_slot": "ABOVE_PLACE_ORDER_BUTTON", "text": "I agree to the Terms of Service and Privacy Policy.", "html": "I agree to the <a href='/terms'>Terms of Service</a> and <a href='/privacy'>Privacy Policy</a>.", "type": "terms", "explicit": true, "required": true, "revokable": false, "signed": true }]
Default Consent States
When no consents have been configured by the merchant:
A default marketing consent is provided if marketing_consent_text is configured
The default marketing consent is optional and revokable
No other consents are created by default
Error Responses
{ "code": 404, "error": "ErrorCartNotFound", "description": "Cart does not exist for the specified domain"}
{ "code": 404, "error": "ErrorCartNotFound", "description": "Cart does not exist for the specified domain"}
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Firmly API","colors":{"primary":"#0066FF","light":"#4D94FF","dark":"#0052CC"},"logo":{"light":"https://mintcdn.com/firmly/r7dgvkipd3R1MD5w/logo/firmly-l.svg?fit=max\u0026auto=format\u0026n=r7dgvkipd3R1MD5w\u0026q=85\u0026s=8965271ce86f1ebdc22ec1c6cf6a2efb","dark":"https://mintcdn.com/firmly/r7dgvkipd3R1MD5w/logo/firmly-d.svg?fit=max\u0026auto=format\u0026n=r7dgvkipd3R1MD5w\u0026q=85\u0026s=3c0ae733516caa38333d950a50475087"},"favicon":"https://mintcdn.com/firmly/r7dgvkipd3R1MD5w/favicon.svg?fit=max\u0026auto=format\u0026n=r7dgvkipd3R1MD5w\u0026q=85\u0026s=d79d6af6760832d53fb9092f39b34d7d","api":{"openapi":"openapi.json","mdx":{"auth":{"method":"bearer","name":"x-firmly-authorization"},"server":"https://api.firmly.work/api/v2"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"firmly","hasAudioNarration":false,"actualSubdomain":"firmly","customDomains":[],"gitSource":{"type":"github","owner":"goyalu","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6aecdff57600c2083d3c6022","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"API Reference","count":58},{"language":"default","tag":"Payment Processing","count":16},{"language":"default","tag":"Express Checkout","count":11},{"language":"default","tag":"Simple Cart API (v1)","count":8},{"language":"default","tag":"Checkout","count":7},{"language":"default","tag":"Session","count":6},{"language":"default","tag":"firmly Connect","count":6},{"language":"default","tag":"Cart Management","count":5},{"language":"default","tag":"Catalog","count":4},{"language":"default","tag":"Shipment Configuration","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/checkout/get-consents","slug":"/api-reference/checkout/get-consents","pageMetadata":{"title":"Get Consents","api":"GET https://api.firmly.work/api/v2/domains/{domain}/cart/consents","description":"Retrieves consent settings for the current cart session","href":"/api-reference/checkout/get-consents"},"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: \"Retrieves consent settings for the current cart session\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,Heading,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Retrieves the current consent settings for a customer’s cart session. This endpoint returns all available consent options along with their current status, including whether they have been signed by the customer.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-consent-management-works`,children:`How Consent Management Works`}),`\n`,_jsx(_components.p,{children:`Consent management is integrated into the checkout flow to ensure compliance with data protection regulations:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Session-Based`}),`: Consents are stored in the cart session and persist until checkout completion`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Type-Based`}),`: Different consent types (marketing, terms, privacy) are supported`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`UI Placement`}),`: Each consent includes a `,_jsx(_components.code,{children:`ui_slot`}),` hint for proper placement in your checkout UI`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Audit Trail`}),`: Signed consents include timestamp, IP address, and user agent for compliance`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`consents`,type:`array`,required:true,id:`param-consents`,children:[_jsx(_components.p,{children:`Array of consent objects`}),_jsxs(Expandable,{title:`Consent Object`,children:[_jsx(ResponseField,{name:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`Unique identifier for the consent`})}),_jsxs(ResponseField,{name:`ui_slot`,type:`string`,required:true,id:`param-ui-slot`,children:[_jsx(_components.p,{children:`UI placement hint for the consent`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Possible values:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`UNDER_EMAIL_INPUT`}),` - Display under email field`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ABOVE_PLACE_ORDER_BUTTON`}),` - Display above order button`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`AFTER_SHIPPING_INFO`}),` - Display after shipping form`]}),`\n`]})]}),_jsx(ResponseField,{name:`text`,type:`string`,required:true,id:`param-text`,children:_jsx(_components.p,{children:`Plain text version of the consent for accessibility`})}),_jsx(ResponseField,{name:`html`,type:`string`,required:true,id:`param-html`,children:_jsx(_components.p,{children:`HTML version with rich formatting and links`})}),_jsxs(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type`,children:[_jsx(_components.p,{children:`Type of consent`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Possible values:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`marketing`}),` - Marketing communications`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`terms`}),` - Terms of service`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`privacy`}),` - Privacy policy`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`custom`}),` - Custom consent type`]}),`\n`]})]}),_jsx(ResponseField,{name:`explicit`,type:`boolean`,required:true,id:`param-explicit`,children:_jsx(_components.p,{children:`Whether explicit consent action is required`})}),_jsx(ResponseField,{name:`required`,type:`boolean`,required:true,id:`param-required`,children:_jsx(_components.p,{children:`Whether this consent must be signed to complete checkout`})}),_jsx(ResponseField,{name:`revokable`,type:`boolean`,required:true,id:`param-revokable`,children:_jsx(_components.p,{children:`Whether the consent can be revoked after being signed`})}),_jsx(ResponseField,{name:`signed`,type:`boolean`,required:true,id:`param-signed`,children:_jsx(_components.p,{children:`Whether the customer has signed this consent`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`code-examples`,children:`Code Examples`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.firmly.work/api/v2/domains/staging.luma.gift/cart/consents`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-firmly-authorization: Bearer YOUR_TOKEN\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`8`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.firmly.work/api/v2/domains/staging.luma.gift/cart/consents'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'GET'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-firmly-authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Bearer YOUR_TOKEN'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` consents`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`10`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.firmly.work/api/v2/domains/staging.luma.gift/cart/consents'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-firmly-authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Bearer YOUR_TOKEN'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`consents `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`PHP`,numberOfLines:`10`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` curl_init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CURLOPT_URL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.firmly.work/api/v2/domains/staging.luma.gift/cart/consents'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CURLOPT_HTTPHEADER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-firmly-authorization: Bearer YOUR_TOKEN'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_setopt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`CURLOPT_RETURNTRANSFER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` curl_exec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$consents`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` json_decode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`curl_close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`response-example`,children:`Response Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`24`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`24`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f47ac10b-58cc-4372-a567-0e02b2c3d479\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ui_slot\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"UNDER_EMAIL_INPUT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"I would like to receive marketing emails about special offers and new products.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"html\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"I would like to receive marketing emails about special offers and new products.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"marketing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"explicit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"revokable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"signed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ui_slot\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ABOVE_PLACE_ORDER_BUTTON\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"I agree to the Terms of Service and Privacy Policy.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"html\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"I agree to the \u003ca href='/terms'>Terms of Service\u003c/a> and \u003ca href='/privacy'>Privacy Policy\u003c/a>.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"terms\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"explicit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"revokable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"signed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`default-consent-states`,children:`Default Consent States`}),`\n`,_jsx(_components.p,{children:`When no consents have been configured by the merchant:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A default marketing consent is provided if `,_jsx(_components.code,{children:`marketing_consent_text`}),` is configured`]}),`\n`,_jsx(_components.li,{children:`The default marketing consent is optional and revokable`}),`\n`,_jsx(_components.li,{children:`No other consents are created by default`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error Responses`}),`\n`,`\n`,_jsx(Heading,{level:`3`,id:`common-errors`,children:`Common Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error Code`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Resolution`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ErrorCartNotFound`})}),_jsx(_components.td,{children:`Cart does not exist`}),_jsx(_components.td,{children:`Verify cart ID and domain`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ErrorStoreUnavailable`})}),_jsx(_components.td,{children:`Store service unavailable`}),_jsx(_components.td,{children:`Retry request`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`MissingAuthHeader`})}),_jsx(_components.td,{children:`Missing authorization header`}),_jsx(_components.td,{children:`Include x-firmly-authorization header`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`InvalidToken`})}),_jsx(_components.td,{children:`Invalid JWT token`}),_jsx(_components.td,{children:`Refresh authentication token`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get Consents","api":"GET https://api.firmly.work/api/v2/domains/{domain}/cart/consents","description":"Retrieves consent settings for the current cart session","href":"/api-reference/checkout/get-consents"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[406,410,"Example,ResponseFiel"],[653,668,"Example)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingM"],[27240,27257,"_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`404`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ErrorCartNotFound\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Cart does not exist for the specified domain\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,"]]},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"How Consent Management Works","slug":"how-consent-management-works","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Code Examples","slug":"code-examples","depth":2,"children":[]},{"title":"Response Example","slug":"response-example","depth":2,"children":[]},{"title":"Default Consent States","slug":"default-consent-states","depth":2,"children":[]},{"title":"Error Responses","slug":"error-responses","depth":2,"children":[{"title":"Common Errors","slug":"common-errors","depth":3,"children":[]}]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">404\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ErrorCartNotFound\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Cart does not exist for the specified domain\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Get Consents","path":"/api/v2/domains/{domain}/cart/consents","servers":[{"url":"https://api.firmly.work"}],"method":"get","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"consents":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"Unique identifier for the consent","required":true}],"ui_slot":[{"type":"string","description":"UI placement hint for the consent Possible values: `UNDER_EMAIL_INPUT` - Display under email field `ABOVE_PLACE_ORDER_BUTTON` - Display above order button `AFTER_SHIPPING_INFO` - Display after shipping form","required":true}],"text":[{"type":"string","description":"Plain text version of the consent for accessibility","required":true}],"html":[{"type":"string","description":"HTML version with rich formatting and links","required":true}],"type":[{"type":"string","description":"Type of consent Possible values: `marketing` - Marketing communications `terms` - Terms of service `privacy` - Privacy policy `custom` - Custom consent type","required":true}],"explicit":[{"type":"boolean","description":"Whether explicit consent action is required","required":true}],"required":[{"type":"boolean","description":"Whether this consent must be signed to complete checkout","required":true}],"revokable":[{"type":"boolean","description":"Whether the consent can be revoked after being signed","required":true}],"signed":[{"type":"boolean","description":"Whether the customer has signed this consent","required":true}]}}],"description":"Array of consent objects","required":true}]}}],"examples":{"example":{"value":{"consents":[{"id":"\u003cstring>","ui_slot":"\u003cstring>","text":"\u003cstring>","html":"\u003cstring>","type":"\u003cstring>","explicit":true,"required":true,"revokable":true,"signed":true}]}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"firmly","siteName":"Firmly API","title":"Get Consents - Firmly API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-24T19:10:18.187Z","originalFileLocation":"api-reference/checkout/get-consents.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=\"Retrieves consent settings for the current cart session\">\u003cmeta data-mint-head name=\"application-name\" content=\"Firmly API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/firmly/omMJ0Oh207ksDHxO/_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/firmly/omMJ0Oh207ksDHxO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/firmly/omMJ0Oh207ksDHxO/_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/firmly/omMJ0Oh207ksDHxO/_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/firmly/omMJ0Oh207ksDHxO/_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/firmly/omMJ0Oh207ksDHxO/_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/firmly/omMJ0Oh207ksDHxO/_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/firmly/omMJ0Oh207ksDHxO/_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/firmly/omMJ0Oh207ksDHxO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Consents - Firmly API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieves consent settings for the current cart session\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Firmly API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://firmly.mintlify.app/api-reference/checkout/get-consents\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://firmly.mintlify.site/_mintlify/api/og/v2?division=Checkout\u0026amp;title=Get+Consents\u0026amp;description=Retrieves+consent+settings+for+the+current+cart+session\u0026amp;theme=80ac6b3e4d0c807596fd275f\u0026amp;signature=0880790759d214fa2052a65d166bacc1648e05d1e82aea5b80499e8bb1a3bb46\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get Consents - Firmly API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieves consent settings for the current cart session\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://firmly.mintlify.site/_mintlify/api/og/v2?division=Checkout\u0026amp;title=Get+Consents\u0026amp;description=Retrieves+consent+settings+for+the+current+cart+session\u0026amp;theme=80ac6b3e4d0c807596fd275f\u0026amp;signature=0880790759d214fa2052a65d166bacc1648e05d1e82aea5b80499e8bb1a3bb46\">\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/firmly/omMJ0Oh207ksDHxO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Firmly API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0066FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://firmly.mintlify.app/api-reference/checkout/get-consents\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/checkout/get-consents.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://firmly.mintlify.app/#organization\",\"name\":\"Firmly API\",\"url\":\"https://firmly.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/firmly/r7dgvkipd3R1MD5w/logo/firmly-l.svg?fit=max\u0026auto=format\u0026n=r7dgvkipd3R1MD5w\u0026q=85\u0026s=8965271ce86f1ebdc22ec1c6cf6a2efb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://firmly.mintlify.app#website\",\"name\":\"Firmly API\",\"url\":\"https://firmly.mintlify.app\",\"publisher\":{\"@id\":\"https://firmly.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://firmly.mintlify.app/api-reference/checkout/get-consents#webpage\",\"url\":\"https://firmly.mintlify.app/api-reference/checkout/get-consents\",\"name\":\"Get Consents\",\"description\":\"Retrieves consent settings for the current cart session\",\"dateModified\":\"2026-01-24T19:10:18.187Z\",\"isPartOf\":{\"@id\":\"https://firmly.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://firmly.mintlify.app/api-reference/checkout/get-consents#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://firmly.mintlify.app/api-reference/checkout/get-consents#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://firmly.mintlify.app/api-reference/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Checkout\",\"item\":\"https://firmly.mintlify.app/api-reference/checkout/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get Consents\",\"item\":\"https://firmly.mintlify.app/api-reference/checkout/get-consents\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://firmly.mintlify.app/api-reference/checkout/get-consents#apireference\",\"headline\":\"Get Consents\",\"name\":\"Get Consents\",\"description\":\"Retrieves consent settings for the current cart session\",\"url\":\"https://firmly.mintlify.app/api-reference/checkout/get-consents\",\"mainEntityOfPage\":{\"@id\":\"https://firmly.mintlify.app/api-reference/checkout/get-consents#webpage\"},\"dateModified\":\"2026-01-24T19:10:18.187Z\",\"publisher\":{\"@id\":\"https://firmly.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://firmly.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Firmly API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Firmly API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/checkout/get-consents.md","siteName":"Firmly API","nav":{"global":null,"groups":[{"group":"Home","pages":[{"title":"Firmly API","href":"/introduction"}]},{"group":"Core Concepts","pages":[{"title":"How Firmly Works","href":"/concepts/how-firmly-works"},{"title":"Cart Lifecycle","href":"/concepts/cart-lifecycle"},{"title":"Multi-Shipment Structure","href":"/concepts/multi-shipment"}]},{"group":"Implementation Guides","pages":[{"title":"1-Step Checkout","icon":"bolt","href":"/guides/one-step-checkout"},{"title":"Choosing Your API","href":"/guides/choosing-your-api"},{"title":"Simple Cart API Implementation","href":"/guides/simple-cart-api-guide"},{"title":"Full Cart API Implementation","href":"/guides/full-cart-api-guide"}]},{"group":"Ask Agent SDK","pages":[{"title":"Ask Agent SDK","icon":"robot","href":"/ask-agent/overview"},{"title":"Quickstart","icon":"bolt","href":"/ask-agent/quickstart"},{"title":"SDK Reference","icon":"code","href":"/ask-agent/reference"}]},{"group":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"},{"group":"Authentication","pages":[{"title":"Browser Session","api":"POST https://api.firmly.work/api/v1/browser-session","href":"/api-reference/authentication/browser-session"},{"title":"Server-to-Server Authentication","sidebarTitle":"Server-to-Server","href":"/api-reference/authentication/server-to-server"}]},{"group":"Discovery","pages":[{"title":"Discovery API Overview","href":"/api-reference/discovery/overview"},{"title":"Search Products","api":"POST https://api.firmly.work/api/v1/discovery/search","href":"/api-reference/discovery/search"}]},{"group":"Catalog","pages":[{"title":"Catalog API Overview","href":"/api-reference/catalog/overview"},{"title":"Get a Product","api":"GET https://api.firmly.work/api/v1/domains-products/{merchant-domain}/{product-handle}","href":"/api-reference/catalog/get-product"},{"title":"Get All Products","api":"GET https://api.firmly.work/api/v1/domains-products/{merchant-domain}","href":"/api-reference/catalog/get-all-products"},{"title":"Get Product from URL","api":"GET https://api.firmly.work/api/v1/domains-pdp","href":"/api-reference/catalog/get-product-from-url"}]},{"group":"Simple Cart API (v1)","pages":[{"group":"Cart Operations","pages":[{"title":"Get Cart","api":"GET https://api.firmly.work/api/v1/domains/{domain}/cart","href":"/api-reference/simple-cart-api/cart/get-cart"},{"title":"Add Item to Cart","api":"POST https://api.firmly.work/api/v1/domains/{domain}/cart/line-items/{sku}/quantity/{quantity}","href":"/api-reference/simple-cart-api/cart/add-item"},{"title":"Update Item Quantity","api":"PUT https://api.firmly.work/api/v1/domains/{domain}/cart/line-items/{sku}","href":"/api-reference/simple-cart-api/cart/update-item"},{"title":"Clear Cart","api":"DELETE https://api.firmly.work/api/v1/domains/{domain}/cart/line-items","href":"/api-reference/simple-cart-api/cart/clear-cart"}]},{"group":"Checkout","pages":[{"title":"Set Shipping Info","api":"POST https://api.firmly.work/api/v1/domains/{domain}/cart/shipping-info","href":"/api-reference/simple-cart-api/checkout/set-shipping-info"},{"title":"Set Shipping Method","api":"POST https://api.firmly.work/api/v1/domains/{domain}/cart/shipping-method","href":"/api-reference/simple-cart-api/checkout/set-shipping-method"}]}]},{"group":"Cart Management","pages":[{"title":"Overview","href":"/api-reference/cart-management/overview"},{"title":"Get Cart","api":"GET https://api.firmly.work/api/v2/domains/{domain}/cart","href":"/api-reference/cart-management/get-cart"},{"title":"Add Line Item","api":"POST https://api.firmly.work/api/v2/domains/{domain}/cart/line-items","href":"/api-reference/cart-management/add-line-item"},{"title":"Update Line Item","api":"PUT https://api.firmly.work/api/v2/domains/{domain}/cart/line-items/{lineItemId}","href":"/api-reference/cart-management/update-line-item"},{"title":"Clear Cart","api":"DELETE https://api.firmly.work/api/v2/domains/{domain}/cart/line-items","href":"/api-reference/cart-management/clear-cart"}]},{"group":"Checkout","pages":[{"title":"Overview","href":"/api-reference/checkout/overview"},{"title":"Set Shipping Info","api":"POST https://api.firmly.work/api/v2/domains/{domain}/cart/shipping-info","href":"/api-reference/checkout/set-shipping-info"},{"title":"Set Billing Info","api":"POST https://api.firmly.work/api/v2/domains/{domain}/cart/billing-info","description":"Sets customer billing information for payment processing","href":"/api-reference/checkout/set-billing-info"},{"title":"Get Consents","api":"GET https://api.firmly.work/api/v2/domains/{domain}/cart/consents","href":"/api-reference/checkout/get-consents"},{"title":"Set Consents","api":"POST https://api.firmly.work/api/v2/domains/{domain}/cart/consents","description":"Updates consent preferences for the current cart session","href":"/api-reference/checkout/set-consents"}]},{"group":"Shipment Configuration","pages":[{"title":"Overview","href":"/api-reference/shipment-configuration/overview"},{"title":"Set Fulfillment Type","api":"POST https://api.firmly.work/api/v2/domains/{domain}/cart/shipments/fulfillment-type","href":"/api-reference/shipment-configuration/set-fulfillment-type"},{"title":"Set Shipping Method","api":"POST https://api.firmly.work/api/v2/domains/{domain}/cart/shipment/methods","href":"/api-reference/shipment-configuration/set-shipping-method"},{"title":"Get Availability","api":"POST https://api.firmly.work/api/v2/domains/{domain}/cart/shipments/get-availability","href":"/api-reference/shipment-configuration/get-availability"}]},{"group":"Promotions","pages":[{"title":"Overview","href":"/api-reference/promotions/overview"},{"title":"Add Promo Codes","api":"POST https://api.firmly.work/api/v2/domains/{domain}/cart/promo-codes","href":"/api-reference/promotions/add-promo-codes"},{"title":"Clear Promo Codes","api":"DELETE https://api.firmly.work/api/v2/domains/{domain}/cart/promo-codes","href":"/api-reference/promotions/clear-promo-codes"}]},{"group":"Addon Management","pages":[{"title":"Overview","href":"/api-reference/addon-management/overview"},{"title":"Add Addon","api":"POST https://api.firmly.work/api/v2/domains/{domain}/cart/addons","href":"/api-reference/addon-management/add-addon"},{"title":"Remove Addon","api":"POST https://api.firmly.work/api/v2/domains/{domain}/cart/addons/_remove","href":"/api-reference/addon-management/remove-addon"}]},{"group":"Payment Processing","pages":[{"title":"Get Public Key","api":"GET https://cc.firmly.work/api/v1/payment/key","href":"/api-reference/payment/get-public-key"},{"group":"Simple Cart API (v1)","pages":[{"title":"Complete Order","api":"POST https://cc.firmly.work/api/v1/payment/domains/{domain}/complete-order","href":"/api-reference/payment/complete-order-v1"},{"title":"Place Order","api":"POST https://cc.firmly.work/api/v1/payment/domains/{domain}/place-order","href":"/api-reference/payment/place-order-v1"}]},{"group":"Full Cart API","pages":[{"title":"Complete Order","api":"POST https://cc.firmly.work/api/v2/payment/domains/{domain}/complete-order","href":"/api-reference/payment/complete-order-v2"},{"title":"Place Order","api":"POST https://cc.firmly.work/api/v2/payment/domains/{domain}/place-order","href":"/api-reference/payment/place-order-v2"}]},{"group":"Express Checkout","pages":[{"title":"Express Checkout","href":"/api-reference/payment/express-checkout/overview"},{"group":"Klarna","pages":[{"title":"Start Klarna Checkout","api":"POST https://api.firmly.work/api/v1/domains/{domain}/express/klarna/start","href":"/api-reference/payment/express-checkout/start-klarna"},{"title":"Authorize Klarna Checkout","api":"POST https://api.firmly.work/api/v1/domains/{domain}/express/klarna/authorize","href":"/api-reference/payment/express-checkout/authorize-klarna"},{"title":"Complete Klarna Order","api":"POST https://api.firmly.work/api/v1/domains/{domain}/express/klarna/complete-order","href":"/api-reference/payment/express-checkout/complete-order-klarna"}]},{"group":"PayPal","pages":[{"title":"Start PayPal Checkout","api":"POST https://api.firmly.work/api/v1/domains/{domain}/express/paypal/start","href":"/api-reference/payment/express-checkout/start-paypal"},{"title":"Authorize PayPal Checkout","api":"POST https://api.firmly.work/api/v1/domains/{domain}/express/paypal/authorize","href":"/api-reference/payment/express-checkout/authorize-paypal"},{"title":"Complete PayPal Order","api":"POST https://api.firmly.work/api/v1/domains/{domain}/express/paypal/complete-order","href":"/api-reference/payment/express-checkout/complete-order-paypal"}]},{"group":"Google Pay","pages":[{"title":"Integrate Google Pay","href":"/api-reference/payment/express-checkout/google-pay-integration"},{"title":"Complete Google Pay Order","api":"POST https://api.firmly.work/api/v1/domains/{domain}/express/google-pay/complete-order","href":"/api-reference/payment/express-checkout/complete-order-google-pay"}]},{"group":"Apple Pay","pages":[{"title":"Validate Apple Pay Merchant","api":"POST https://api.firmly.work/api/v1/wallets/apple-pay/validate-merchant","href":"/api-reference/payment/express-checkout/validate-merchant-apple-pay"},{"title":"Complete Apple Pay Order","api":"POST https://api.firmly.work/api/v1/domains/{domain}/express/apple-pay/complete-order","href":"/api-reference/payment/express-checkout/complete-order-apple-pay"}]}]}]},{"group":"Orders","pages":[{"title":"Get Order Status","api":"GET https://api.firmly.work/api/v1/orders/domains/{domain}/order/{orderId}/status","href":"/api-reference/orders/get-order-status"}]},{"group":"Session","pages":[{"title":"Overview","href":"/api-reference/session/overview"},{"title":"Set Postal Code","api":"POST https://api.firmly.work/carts/postal-code","href":"/api-reference/session/set-postal-code"},{"title":"Get Postal Code","api":"GET https://api.firmly.work/carts/postal-code","href":"/api-reference/session/get-postal-code"},{"title":"Get Active Domains","api":"GET https://api.firmly.work/carts/active-domains","href":"/api-reference/session/get-active-domains"},{"title":"Get Active Carts","api":"GET https://api.firmly.work/carts/active","href":"/api-reference/session/get-active-carts"},{"title":"Session Transfer","api":"POST https://api.firmly.work/api/v2/domains/{domain}/session/transfer","href":"/api-reference/session/session-transfer"}]}]},{"group":"firmly Connect","pages":[{"group":"Merchant onboarding","pages":[{"title":"Merchant onboarding requirements","icon":"clipboard-check","href":"/firmly-connect/merchant-onboarding/requirements"},{"title":"Network access and allowlisting","icon":"shield-check","href":"/firmly-connect/merchant-onboarding/network-access"}]},{"group":"Single Sign-On (SSO)","pages":[{"title":"Overview","href":"/firmly-connect/sso/overview"},{"title":"Verify a Domain","icon":"at","href":"/firmly-connect/sso/domain-verification"},{"title":"Generic OIDC","icon":"fingerprint","href":"/firmly-connect/sso/generic-oidc"},{"title":"Generic SAML 2.0","icon":"shield","href":"/firmly-connect/sso/generic-saml"}]}]},{"group":"Resources","pages":[{"title":"Error Codes","href":"/resources/error-codes"}]}]},"basePath":"","title":"Get Consents - Firmly API","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":["c2aa737661","b0f84f53ff","2b790eda92"],"chunks":["OpenApiReferenceProvider-B8kPdtB2.js","snippetPresets-C-p1aFQ1.js","utils-B9NnUZSZ.js","style-to-object-BY3JEAdk.js","utils-DFxl7cW2.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-bSr9h7OB.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Bw4Gcy_r.js","_Uint8Array-C68x8Gny.js","isObject-FP1Yky1u.js","Page-CeZ_ZB5X.js","api-description-markdown-DiOdv5rp.js","DynamicMarkdown-B_9ywLDq.js","CodeSnippet-6Cemznl-.js","use-playground-group-access-Cyy8SXp5.js","SectionHeading-Cc2r-uqU.js","ApiExamples-BXsp8PHs.js","usePlaygroundInputsStore-BlAOLmIF.js","shallow-C2F02mqa.js","isEqual-C8iG4q2G.js","CodeSnippets-45lHR04X.js","MethodPill-Df3Tcu4c.js","getPastedJson-B3vrV0wE.js","Check2Icon-YQhSFafd.js","axios-CsQoIw0U.js"]}