Checkout
Get Consents
Retrieves consent settings for the current cart session
GET
Get Consents
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_slothint for proper placement in your checkout UI - Audit Trail: Signed consents include timestamp, IP address, and user agent for compliance
Response
Array of consent objects
Code Examples
Response Example
Default Consent States
When no consents have been configured by the merchant:- A default marketing consent is provided if
marketing_consent_textis configured - The default marketing consent is optional and revokable
- No other consents are created by default
Error Responses
Common Errors
| Error Code | Description | Resolution |
|---|---|---|
ErrorCartNotFound | Cart does not exist | Verify cart ID and domain |
ErrorStoreUnavailable | Store service unavailable | Retry request |
MissingAuthHeader | Missing authorization header | Include x-firmly-authorization header |
InvalidToken | Invalid JWT token | Refresh authentication token |
Get Consents