{ "code": 422, "status": "Unprocessable Entity", "errors": { "json": { "user_id": ["Missing data for required field."] } }}
{ "code": "user_eligibility_data_unavailable", "message": "Unable to load eligibility data for user 155."}
This endpoint requires both your partner API key in the x-api-key header and a Bearer token in the Authorization header. The Bearer token is the user access token obtained after a successful Benji Connect SDKonSuccess callback. See Exchange Token and API Authentication. Partner API keys can be generated through the dashboard.
string
required
Your partner API key, generated through the dashboard. Required together with Authorization.
string
required
A Bearer user access token obtained after the Benji Connect SDKonSuccess callback. Required together with x-api-key. See Exchange Token.
string
required
The UUID of the partnership to evaluate. Only active campaigns that belong to this partnership are considered.
integer
required
The Benji Platform identifier of the user to evaluate eligibility for.
integer
Restricts the evaluation to one campaign type. If omitted, campaigns of every type are evaluated.
Show possible campaign type values
EARN (1) : Campaigns that reward users with points
REDEEM (2) : Campaigns that let users spend points on a perk or discount
CONNECT_ONLY (3) : Campaigns that only require connecting an account
TRANSFER (4) : Campaigns that transfer points between programs
object
Additional context used to evaluate the campaign conditions. For REDEEM perk flows, include the offers you want to evaluate.
Hide properties
array
Non-empty list of unique offer IDs (strings) to evaluate, for example ["sku-1"]. Required to evaluate REDEEM perk offers.
array
Optional list of campaign flow IDs. When set, only these flows are evaluated. Use this when more than one active flow could match the same offer.
string
Optional coupon code to validate against the evaluated REDEEM perk offers. The result of the check is returned in coupon_valid.
integer
Restricts the evaluation to campaign flows that use this trigger.
integer
The ID of an existing trigger event. When sent together with trigger_id, the evaluation uses the transaction context stored on that trigger event.
object
Optional user payload, in the same shape as the Get User response. When provided, Benji does not look the user up again before evaluating eligibility.
Response
array
required
One entry per evaluated campaign flow (or per offer, for REDEEM perk flows). An empty array is returned when the partnership does not exist or has no live campaign flows that match the request.
Hide properties
integer
required
The ID of the campaign that was evaluated.
integer
required
The ID of the campaign flow that was evaluated.
boolean
required
Whether the user is eligible for this campaign flow.
array
required
Human-readable messages explaining why the user is not eligible. Empty when is_eligible is true.
integer
Integer representing the reason the user is not eligible. null when the user is eligible.
Show possible failure reason values
INCOMPLETE_TRANSACTION_CONTEXT (1)
TRANSACTION_AMOUNT_CONDITION_FAILED (2)
ITEM_PRICE_CONDITION_FAILED (3)
PRODUCT_CONDITION_FAILED (4)
STATUS_TIER_CONDITION_FAILED (5)
CUSTOM_ATTRIBUTE_CONDITION_FAILED (6)
TRANSACTION_SESSION_INCOMPLETE (7)
USER_LIMIT_EXCEEDED (8)
USER_LIMIT_MINIMUM_NOT_MET (9)
OUT_OF_STOCK (10)
INSUFFICIENT_FUNDS (11)
REQUIRES_LOGIN (12)
USER_BLOCKED (13)
number
required
The reward amount of the flow before multipliers and discounts are applied. For REDEEM perk offers this is the points price.
number
required
The reward amount after multipliers and discounts are applied. For REDEEM perk offers this is the points the user pays.
integer
The ID of the multiplier applied to the reward, if any.
integer
The ID of the trigger event used for the evaluation, if any.
integer
The ID of the partner that owns the eligible action.
string
The ID of the evaluated offer. Only returned for REDEEM perk flows.
string
A single-use token that authorizes the redemption of this offer. Only returned when is_eligible is true for a REDEEM perk offer, and expires after 600 seconds (10 minutes). Pass this token to Add Item to Cart or Redeem by Token. It is not the token used by Redeem Cart by Token.
number
The points price of the offer after discounts, if a discount applies.
boolean
required
Whether the coupon_code sent in the request is valid for this offer. false when no coupon code was sent.
string
The ID of the coupon applied to the offer, if any.
string
The name of the coupon group the applied coupon belongs to, if any.
integer
The number of units of this offer the user can still redeem.
integer
The number of units of this offer the user can still redeem for themselves.
integer
The number of units of this offer the user can still redeem as gifts.
integer
The number of units of this offer currently in stock. null when the offer has no stock limit.
integer
The ID of the product the offer belongs to. Only returned when the offer belongs to a product with a limit.
integer
The number of units of the product the user can still redeem. Only returned when the offer belongs to a product with a limit.
integer
The number of units of the product the user can still redeem for themselves. Only returned when the offer belongs to a product with a limit.
integer
The number of units of the product the user can still redeem as gifts. Only returned when the offer belongs to a product with a limit.
object
The limit configuration of the product the offer belongs to. Only returned when the offer belongs to a product with a limit.
Show product limit properties
integer
required
The ID of the product.
string
The name of the product.
array
required
The IDs of the offers (variants) that belong to the product.
integer
The maximum number of units of the product a user can redeem in the limit window.
integer
The maximum number of units of the product a user can redeem for themselves in the limit window.
integer
Integer representing the time range the limit applies to.
Show possible time range values
PER_DAY (1)
PER_WEEK (2)
PER_MONTH (3)
PER_QUARTER (4)
PER_YEAR (5)
CAMPAIGN_LIFETIME (6)
PER_SIX_MONTHS (7)
integer
Integer representing how the limit window is measured.
Show possible time window mode values
CALENDAR (1) : The window follows calendar boundaries (default)
ELAPSED (2) : A rolling window anchored on the time of the request
{ "code": 422, "status": "Unprocessable Entity", "errors": { "json": { "user_id": ["Missing data for required field."] } }}
{ "code": "user_eligibility_data_unavailable", "message": "Unable to load eligibility data for user 155."}
Evaluating eligibility for a REDEEM perk offer issues a new redemption_token for every eligible offer. Each token is single-use and lasts 600 seconds (10 minutes). Use it with Add Item to Cart or Redeem by Token. Request eligibility again if a token expires or has already been consumed.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Benji","colors":{"primary":"#9900ff","light":"#07C983","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/benji/E3tFqos-Cc64Y5MH/logo/benji-docs-logo.svg?fit=max\u0026auto=format\u0026n=E3tFqos-Cc64Y5MH\u0026q=85\u0026s=60b7d848ffe4ab0c66efcfcbf573e3be","dark":"https://mintcdn.com/benji/E3tFqos-Cc64Y5MH/logo/benji-docs-logo.svg?fit=max\u0026auto=format\u0026n=E3tFqos-Cc64Y5MH\u0026q=85\u0026s=60b7d848ffe4ab0c66efcfcbf573e3be"},"favicon":"https://mintcdn.com/benji/E3tFqos-Cc64Y5MH/favicon.svg?fit=max\u0026auto=format\u0026n=E3tFqos-Cc64Y5MH\u0026q=85\u0026s=0d4db635c5349274277a1e3f4575d6c3","api":{"mdx":{"auth":{"method":"key","name":"x-api-key"},"server":["https://mintlify.com/api","https://mintlify.com/api2"]}},"appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"mailto:support@withbenji.com","label":"Support"}],"primary":{"type":"button","label":"Go to Pilot","href":"https://pilot-staging.withbenji.com/login"}},"footer":{"socials":{"website":"https://withbenji.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"benji","hasAudioNarration":false,"actualSubdomain":"benji","customDomains":["docs.withbenji.com"],"gitSource":{"type":"github","owner":"benji-money","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10a94d9ffae5051c3fba7c"},"feedback":{"thumbs":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b10b591ed8c0be4809f64b4","clientVersion":"0.0.4424","searchFilterCounts":[{"language":"default","tag":"API Reference","count":15},{"language":"default","tag":"Platform","count":12},{"language":"default","tag":"Benji Integrations","count":12},{"language":"default","tag":"Pilot","count":10},{"language":"default","tag":"Benji Connect","count":8},{"language":"default","tag":"Partnerships","count":7},{"language":"default","tag":"Benji Connect SDK","count":4},{"language":"default","tag":"Square","count":4},{"language":"default","tag":"Reward API","count":3},{"language":"default","tag":"Member API","count":3}]},"assistantConfig":{},"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":"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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/endpoint/campaigns/eligibility","slug":"/api-reference/endpoint/campaigns/eligibility","pageMetadata":{"title":"Get Campaign Eligibility","description":"Evaluate which campaigns and offers a user is eligible for within a partnership","sidebarTitle":"Campaign Eligibility","api":"POST https://api-staging.withbenji.com/partnerships/{partnership_id}/campaigns/eligibility","href":"/api-reference/endpoint/campaigns/eligibility"},"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: \"Evaluate which campaigns and offers a user is eligible for within a partnership\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField,Tip}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`This endpoint requires both your `,_jsx(_components.strong,{children:`partner API key`}),` in the `,_jsx(_components.code,{children:`x-api-key`}),` header and a Bearer token in the `,_jsx(_components.code,{children:`Authorization`}),` header. The Bearer token is the user access token obtained after a successful `,_jsx(_components.a,{href:`/connect/methods#onsuccess`,children:`Benji Connect SDK`}),` `,_jsx(_components.code,{children:`onSuccess`}),` callback. See `,_jsx(_components.a,{href:`/connect/exchange_token`,children:`Exchange Token`}),` and `,_jsx(_components.a,{href:`/api-reference/authentication`,children:`API Authentication`}),`. Partner API keys can be generated through the dashboard.`]})}),`\n`,_jsx(ParamField,{header:`x-api-key`,type:`string`,required:true,id:`param-x-api-key`,children:_jsxs(_components.p,{children:[`Your partner API key, generated through the dashboard. Required together with `,_jsx(_components.code,{children:`Authorization`}),`.`]})}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`Bearer`}),` user access token obtained after the `,_jsx(_components.a,{href:`/connect/methods#onsuccess`,children:`Benji Connect SDK`}),` `,_jsx(_components.code,{children:`onSuccess`}),` callback. Required together with `,_jsx(_components.code,{children:`x-api-key`}),`. See `,_jsx(_components.a,{href:`/connect/exchange_token`,children:`Exchange Token`}),`.`]})}),`\n`,_jsx(ParamField,{path:`partnership_id`,type:`string`,required:true,id:`param-partnership-id`,children:_jsx(_components.p,{children:`The UUID of the partnership to evaluate. Only active campaigns that belong to this partnership are considered.`})}),`\n`,_jsx(ParamField,{body:`user_id`,type:`integer`,required:true,id:`param-user-id`,children:_jsx(_components.p,{children:`The Benji Platform identifier of the user to evaluate eligibility for.`})}),`\n`,_jsxs(ParamField,{body:`campaign_type`,type:`integer`,id:`param-campaign-type`,children:[_jsx(_components.p,{children:`Restricts the evaluation to one campaign type. If omitted, campaigns of every type are evaluated.`}),_jsx(Expandable,{title:`possible campaign type values`,type:`enum`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`EARN (1)`}),` : Campaigns that reward users with points `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`REDEEM (2)`}),` : Campaigns that let users spend points on a perk or discount `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CONNECT_ONLY (3)`}),` : Campaigns that only require connecting an account `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`TRANSFER (4)`}),` : Campaigns that transfer points between programs`]}),`\n`]})})]}),`\n`,_jsxs(ParamField,{body:`transaction_context`,type:`object`,id:`param-transaction-context`,children:[_jsxs(_components.p,{children:[`Additional context used to evaluate the campaign conditions. For `,_jsx(_components.code,{children:`REDEEM`}),` perk flows, include the offers you want to evaluate.`]}),_jsxs(Expandable,{title:`properties`,defaultOpen:`true`,children:[_jsx(ParamField,{body:`offer_ids`,type:`array`,id:`param-offer-ids`,children:_jsxs(_components.p,{children:[`Non-empty list of unique offer IDs (strings) to evaluate, for example `,_jsx(_components.code,{children:`[\"sku-1\"]`}),`. Required to evaluate `,_jsx(_components.code,{children:`REDEEM`}),` perk offers.`]})}),_jsx(ParamField,{body:`campaign_flow_ids`,type:`array`,id:`param-campaign-flow-ids`,children:_jsx(_components.p,{children:`Optional list of campaign flow IDs. When set, only these flows are evaluated. Use this when more than one active flow could match the same offer.`})})]})]}),`\n`,_jsx(ParamField,{body:`coupon_code`,type:`string`,id:`param-coupon-code`,children:_jsxs(_components.p,{children:[`Optional coupon code to validate against the evaluated `,_jsx(_components.code,{children:`REDEEM`}),` perk offers. The result of the check is returned in `,_jsx(_components.code,{children:`coupon_valid`}),`.`]})}),`\n`,_jsx(ParamField,{body:`trigger_id`,type:`integer`,id:`param-trigger-id`,children:_jsx(_components.p,{children:`Restricts the evaluation to campaign flows that use this trigger.`})}),`\n`,_jsx(ParamField,{body:`trigger_event_id`,type:`integer`,id:`param-trigger-event-id`,children:_jsxs(_components.p,{children:[`The ID of an existing trigger event. When sent together with `,_jsx(_components.code,{children:`trigger_id`}),`, the evaluation uses the transaction context stored on that trigger event.`]})}),`\n`,_jsx(ParamField,{body:`extra_data`,type:`object`,id:`param-extra-data`,children:_jsxs(_components.p,{children:[`Optional user payload, in the same shape as the `,_jsx(_components.a,{href:`/api-reference/endpoint/users/get`,children:`Get User`}),` response. When provided, Benji does not look the user up again before evaluating eligibility.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`campaigns_eligibility`,type:`array`,required:true,id:`param-campaigns-eligibility`,children:[_jsxs(_components.p,{children:[`One entry per evaluated campaign flow (or per offer, for `,_jsx(_components.code,{children:`REDEEM`}),` perk flows). An empty array is returned when the partnership does not exist or has no live campaign flows that match the request.`]}),_jsxs(Expandable,{title:`properties`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`campaign_id`,type:`integer`,required:true,id:`param-campaign-id`,children:_jsx(_components.p,{children:`The ID of the campaign that was evaluated.`})}),_jsx(ResponseField,{name:`campaign_flow_id`,type:`integer`,required:true,id:`param-campaign-flow-id`,children:_jsx(_components.p,{children:`The ID of the campaign flow that was evaluated.`})}),_jsx(ResponseField,{name:`is_eligible`,type:`boolean`,required:true,id:`param-is-eligible`,children:_jsx(_components.p,{children:`Whether the user is eligible for this campaign flow.`})}),_jsx(ResponseField,{name:`failure_reasons`,type:`array`,required:true,id:`param-failure-reasons`,children:_jsxs(_components.p,{children:[`Human-readable messages explaining why the user is not eligible. Empty when `,_jsx(_components.code,{children:`is_eligible`}),` is `,_jsx(_components.code,{children:`true`}),`.`]})}),_jsxs(ResponseField,{name:`failure_reason_id`,type:`integer`,id:`param-failure-reason-id`,children:[_jsxs(_components.p,{children:[`Integer representing the reason the user is not eligible. `,_jsx(_components.code,{children:`null`}),` when the user is eligible.`]}),_jsx(Expandable,{title:`possible failure reason values`,type:`enum`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`INCOMPLETE_TRANSACTION_CONTEXT (1)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`TRANSACTION_AMOUNT_CONDITION_FAILED (2)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`ITEM_PRICE_CONDITION_FAILED (3)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PRODUCT_CONDITION_FAILED (4)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`STATUS_TIER_CONDITION_FAILED (5)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CUSTOM_ATTRIBUTE_CONDITION_FAILED (6)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`TRANSACTION_SESSION_INCOMPLETE (7)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`USER_LIMIT_EXCEEDED (8)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`USER_LIMIT_MINIMUM_NOT_MET (9)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`OUT_OF_STOCK (10)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`INSUFFICIENT_FUNDS (11)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`REQUIRES_LOGIN (12)`}),` `,_jsx(`br`,{})]}),`\n`,_jsx(_components.li,{children:_jsx(_components.strong,{children:`USER_BLOCKED (13)`})}),`\n`]})})]}),_jsx(ResponseField,{name:`base_reward_amount`,type:`number`,required:true,id:`param-base-reward-amount`,children:_jsxs(_components.p,{children:[`The reward amount of the flow before multipliers and discounts are applied. For `,_jsx(_components.code,{children:`REDEEM`}),` perk offers this is the points price.`]})}),_jsx(ResponseField,{name:`reward_amount`,type:`number`,required:true,id:`param-reward-amount`,children:_jsxs(_components.p,{children:[`The reward amount after multipliers and discounts are applied. For `,_jsx(_components.code,{children:`REDEEM`}),` perk offers this is the points the user pays.`]})}),_jsx(ResponseField,{name:`multiplier_id`,type:`integer`,id:`param-multiplier-id`,children:_jsx(_components.p,{children:`The ID of the multiplier applied to the reward, if any.`})}),_jsx(ResponseField,{name:`trigger_event_id`,type:`integer`,id:`param-trigger-event-id-1`,children:_jsx(_components.p,{children:`The ID of the trigger event used for the evaluation, if any.`})}),_jsx(ResponseField,{name:`action_partner_id`,type:`integer`,id:`param-action-partner-id`,children:_jsx(_components.p,{children:`The ID of the partner that owns the eligible action.`})}),_jsx(ResponseField,{name:`offer_id`,type:`string`,id:`param-offer-id`,children:_jsxs(_components.p,{children:[`The ID of the evaluated offer. Only returned for `,_jsx(_components.code,{children:`REDEEM`}),` perk flows.`]})}),_jsx(ResponseField,{name:`redemption_token`,type:`string`,id:`param-redemption-token`,children:_jsxs(_components.p,{children:[`A single-use token that authorizes the redemption of this offer. Only returned when `,_jsx(_components.code,{children:`is_eligible`}),` is `,_jsx(_components.code,{children:`true`}),` for a `,_jsx(_components.code,{children:`REDEEM`}),` perk offer, and expires after 600 seconds (10 minutes). Pass this token to `,_jsx(_components.a,{href:`/api-reference/endpoint/users/add-cart-item`,children:`Add Item to Cart`}),` or `,_jsx(_components.a,{href:`/api-reference/endpoint/transactions/redeem`,children:`Redeem by Token`}),`. It is not the token used by `,_jsx(_components.a,{href:`/api-reference/endpoint/transactions/redeem-cart-by-token`,children:`Redeem Cart by Token`}),`.`]})}),_jsx(ResponseField,{name:`points_price_after_discount`,type:`number`,id:`param-points-price-after-discount`,children:_jsx(_components.p,{children:`The points price of the offer after discounts, if a discount applies.`})}),_jsx(ResponseField,{name:`coupon_valid`,type:`boolean`,required:true,id:`param-coupon-valid`,children:_jsxs(_components.p,{children:[`Whether the `,_jsx(_components.code,{children:`coupon_code`}),` sent in the request is valid for this offer. `,_jsx(_components.code,{children:`false`}),` when no coupon code was sent.`]})}),_jsx(ResponseField,{name:`coupon_id`,type:`string`,id:`param-coupon-id`,children:_jsx(_components.p,{children:`The ID of the coupon applied to the offer, if any.`})}),_jsx(ResponseField,{name:`coupon_group_name`,type:`string`,id:`param-coupon-group-name`,children:_jsx(_components.p,{children:`The name of the coupon group the applied coupon belongs to, if any.`})}),_jsx(ResponseField,{name:`user_max_limit`,type:`integer`,id:`param-user-max-limit`,children:_jsx(_components.p,{children:`The number of units of this offer the user can still redeem.`})}),_jsx(ResponseField,{name:`user_personal_max_limit`,type:`integer`,id:`param-user-personal-max-limit`,children:_jsx(_components.p,{children:`The number of units of this offer the user can still redeem for themselves.`})}),_jsx(ResponseField,{name:`user_gift_max_limit`,type:`integer`,id:`param-user-gift-max-limit`,children:_jsx(_components.p,{children:`The number of units of this offer the user can still redeem as gifts.`})}),_jsx(ResponseField,{name:`available_count`,type:`integer`,id:`param-available-count`,children:_jsxs(_components.p,{children:[`The number of units of this offer currently in stock. `,_jsx(_components.code,{children:`null`}),` when the offer has no stock limit.`]})}),_jsx(ResponseField,{name:`product_id`,type:`integer`,id:`param-product-id`,children:_jsx(_components.p,{children:`The ID of the product the offer belongs to. Only returned when the offer belongs to a product with a limit.`})}),_jsx(ResponseField,{name:`product_max_limit`,type:`integer`,id:`param-product-max-limit`,children:_jsx(_components.p,{children:`The number of units of the product the user can still redeem. Only returned when the offer belongs to a product with a limit.`})}),_jsx(ResponseField,{name:`product_personal_max_limit`,type:`integer`,id:`param-product-personal-max-limit`,children:_jsx(_components.p,{children:`The number of units of the product the user can still redeem for themselves. Only returned when the offer belongs to a product with a limit.`})}),_jsx(ResponseField,{name:`product_gift_max_limit`,type:`integer`,id:`param-product-gift-max-limit`,children:_jsx(_components.p,{children:`The number of units of the product the user can still redeem as gifts. Only returned when the offer belongs to a product with a limit.`})}),_jsxs(ResponseField,{name:`product_limit`,type:`object`,id:`param-product-limit`,children:[_jsx(_components.p,{children:`The limit configuration of the product the offer belongs to. Only returned when the offer belongs to a product with a limit.`}),_jsxs(Expandable,{title:`product limit properties`,children:[_jsx(ResponseField,{name:`product_category_id`,type:`integer`,required:true,id:`param-product-category-id`,children:_jsx(_components.p,{children:`The ID of the product.`})}),_jsx(ResponseField,{name:`product_name`,type:`string`,id:`param-product-name`,children:_jsx(_components.p,{children:`The name of the product.`})}),_jsx(ResponseField,{name:`variant_ids`,type:`array`,required:true,id:`param-variant-ids`,children:_jsx(_components.p,{children:`The IDs of the offers (variants) that belong to the product.`})}),_jsx(ResponseField,{name:`limit_value`,type:`integer`,id:`param-limit-value`,children:_jsx(_components.p,{children:`The maximum number of units of the product a user can redeem in the limit window.`})}),_jsx(ResponseField,{name:`personal_limit_value`,type:`integer`,id:`param-personal-limit-value`,children:_jsx(_components.p,{children:`The maximum number of units of the product a user can redeem for themselves in the limit window.`})}),_jsxs(ResponseField,{name:`trigger_time_range`,type:`integer`,id:`param-trigger-time-range`,children:[_jsx(_components.p,{children:`Integer representing the time range the limit applies to.`}),_jsx(Expandable,{title:`possible time range values`,type:`enum`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PER_DAY (1)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PER_WEEK (2)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PER_MONTH (3)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PER_QUARTER (4)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PER_YEAR (5)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CAMPAIGN_LIFETIME (6)`}),` `,_jsx(`br`,{})]}),`\n`,_jsx(_components.li,{children:_jsx(_components.strong,{children:`PER_SIX_MONTHS (7)`})}),`\n`]})})]}),_jsxs(ResponseField,{name:`time_window_mode`,type:`integer`,id:`param-time-window-mode`,children:[_jsx(_components.p,{children:`Integer representing how the limit window is measured.`}),_jsx(Expandable,{title:`possible time window mode values`,type:`enum`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CALENDAR (1)`}),` : The window follows calendar boundaries (default) `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`ELAPSED (2)`}),` : A rolling window anchored on the time of the request`]}),`\n`]})})]})]})]})]})]}),`\n`,`\n`,`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Evaluating eligibility for a `,_jsx(_components.code,{children:`REDEEM`}),` perk offer issues a new `,_jsx(_components.code,{children:`redemption_token`}),` for every eligible offer. Each token is single-use and lasts 600 seconds (10 minutes). Use it with `,_jsx(_components.a,{href:`/api-reference/endpoint/users/add-cart-item`,children:`Add Item to Cart`}),` or `,_jsx(_components.a,{href:`/api-reference/endpoint/transactions/redeem`,children:`Redeem by Token`}),`. Request eligibility again if a token expires or has already been consumed.`]})})]})}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 Campaign Eligibility","description":"Evaluate which campaigns and offers a user is eligible for within a partnership","sidebarTitle":"Campaign Eligibility","api":"POST https://api-staging.withbenji.com/partnerships/{partnership_id}/campaigns/eligibility","href":"/api-reference/endpoint/campaigns/eligibility"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`This endpoint requires both your `,_jsx(_components.strong,{children:`partner API key`}),` in the `,_jsx(_components.code,{children:`x-api-key`}),` header and a Bearer token in the `,_jsx(_components.code,{children:`Authorization`}),` header. The Bearer token is the user access token obtained after a successful `,_jsx(_components.a,{href:`/connect/methods#onsuccess`,children:`Benji Connect SDK`}),` `,_jsx(_components.code,{children:`onSuccess`}),` callback. See `,_jsx(_components.a,{href:`/connect/exchange_token`,children:`Exchange Token`}),` and `,_jsx(_components.a,{href:`/api-reference/authentication`,children:`API Authentication`}),`. Partner API keys can be generated through the dashboard.`]})}),`\n`,_jsx(ParamField,{header:`x-api-key`,type:`string`,required:true,id:`param-x-api-key`,children:_jsxs(_components.p,{children:[`Your partner API key, generated through the dashboard. Required together with `,_jsx(_components.code,{children:`Authorization`}),`.`]})}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`Bearer`}),` user access token obtained after the `,_jsx(_components.a,{href:`/connect/methods#onsuccess`,children:`Benji Connect SDK`}),` `,_jsx(_components.code,{children:`onSuccess`}),` callback. Required together with `,_jsx(_components.code,{children:`x-api-key`}),`. See `,_jsx(_components.a,{href:`/connect/exchange_token`,children:`Exchange Token`}),`.`]})}),`\n`,_jsx(ParamField,{path:`partnership_id`,type:`string`,required:true,id:`param-partnership-id`,children:_jsx(_components.p,{children:`The UUID of the partnership to evaluate. Only active campaigns that belong to this partnership are considered.`})}),`\n`,_jsx(ParamField,{body:`user_id`,type:`integer`,required:true,id:`param-user-id`,children:_jsx(_components.p,{children:`The Benji Platform identifier of the user to evaluate eligibility for.`})}),`\n`,_jsxs(ParamField,{body:`campaign_type`,type:`integer`,id:`param-campaign-type`,children:[_jsx(_components.p,{children:`Restricts the evaluation to one campaign type. If omitted, campaigns of every type are evaluated.`}),_jsx(Expandable,{title:`possible campaign type values`,type:`enum`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`EARN (1)`}),` : Campaigns that reward users with points `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`REDEEM (2)`}),` : Campaigns that let users spend points on a perk or discount `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CONNECT_ONLY (3)`}),` : Campaigns that only require connecting an account `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`TRANSFER (4)`}),` : Campaigns that transfer points between programs`]}),`\n`]})})]}),`\n`,_jsxs(ParamField,{body:`transaction_context`,type:`object`,id:`param-transaction-context`,children:[_jsxs(_components.p,{children:[`Additional context used to evaluate the campaign conditions. For `,_jsx(_components.code,{children:`REDEEM`}),` perk flows, include the offers you want to evaluate.`]}),_jsxs(Expandable,{title:`properties`,defaultOpen:`true`,children:[_jsx(ParamField,{body:`offer_ids`,type:`array`,id:`param-offer-ids`,children:_jsxs(_components.p,{children:[`Non-empty list of unique offer IDs (strings) to evaluate, for example `,_jsx(_components.code,{children:`[\"sku-1\"]`}),`. Required to evaluate `,_jsx(_components.code,{children:`REDEEM`}),` perk offers.`]})}),_jsx(ParamField,{body:`campaign_flow_ids`,type:`array`,id:`param-campaign-flow-ids`,children:_jsx(_components.p,{children:`Optional list of campaign flow IDs. When set, only these flows are evaluated. Use this when more than one active flow could match the same offer.`})})]})]}),`\n`,_jsx(ParamField,{body:`coupon_code`,type:`string`,id:`param-coupon-code`,children:_jsxs(_components.p,{children:[`Optional coupon code to validate against the evaluated `,_jsx(_components.code,{children:`REDEEM`}),` perk offers. The result of the check is returned in `,_jsx(_components.code,{children:`coupon_valid`}),`.`]})}),`\n`,_jsx(ParamField,{body:`trigger_id`,type:`integer`,id:`param-trigger-id`,children:_jsx(_components.p,{children:`Restricts the evaluation to campaign flows that use this trigger.`})}),`\n`,_jsx(ParamField,{body:`trigger_event_id`,type:`integer`,id:`param-trigger-event-id`,children:_jsxs(_components.p,{children:[`The ID of an existing trigger event. When sent together with `,_jsx(_components.code,{children:`trigger_id`}),`, the evaluation uses the transaction context stored on that trigger event.`]})}),`\n`,_jsx(ParamField,{body:`extra_data`,type:`object`,id:`param-extra-data`,children:_jsxs(_components.p,{children:[`Optional user payload, in the same shape as the `,_jsx(_components.a,{href:`/api-reference/endpoint/users/get`,children:`Get User`}),` response. When provided, Benji does not look the user up again before evaluating eligibility.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`campaigns_eligibility`,type:`array`,required:true,id:`param-campaigns-eligibility`,children:[_jsxs(_components.p,{children:[`One entry per evaluated campaign flow (or per offer, for `,_jsx(_components.code,{children:`REDEEM`}),` perk flows). An empty array is returned when the partnership does not exist or has no live campaign flows that match the request.`]}),_jsxs(Expandable,{title:`properties`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`campaign_id`,type:`integer`,required:true,id:`param-campaign-id`,children:_jsx(_components.p,{children:`The ID of the campaign that was evaluated.`})}),_jsx(ResponseField,{name:`campaign_flow_id`,type:`integer`,required:true,id:`param-campaign-flow-id`,children:_jsx(_components.p,{children:`The ID of the campaign flow that was evaluated.`})}),_jsx(ResponseField,{name:`is_eligible`,type:`boolean`,required:true,id:`param-is-eligible`,children:_jsx(_components.p,{children:`Whether the user is eligible for this campaign flow.`})}),_jsx(ResponseField,{name:`failure_reasons`,type:`array`,required:true,id:`param-failure-reasons`,children:_jsxs(_components.p,{children:[`Human-readable messages explaining why the user is not eligible. Empty when `,_jsx(_components.code,{children:`is_eligible`}),` is `,_jsx(_components.code,{children:`true`}),`.`]})}),_jsxs(ResponseField,{name:`failure_reason_id`,type:`integer`,id:`param-failure-reason-id`,children:[_jsxs(_components.p,{children:[`Integer representing the reason the user is not eligible. `,_jsx(_components.code,{children:`null`}),` when the user is eligible.`]}),_jsx(Expandable,{title:`possible failure reason values`,type:`enum`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`INCOMPLETE_TRANSACTION_CONTEXT (1)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`TRANSACTION_AMOUNT_CONDITION_FAILED (2)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`ITEM_PRICE_CONDITION_FAILED (3)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PRODUCT_CONDITION_FAILED (4)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`STATUS_TIER_CONDITION_FAILED (5)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CUSTOM_ATTRIBUTE_CONDITION_FAILED (6)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`TRANSACTION_SESSION_INCOMPLETE (7)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`USER_LIMIT_EXCEEDED (8)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`USER_LIMIT_MINIMUM_NOT_MET (9)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`OUT_OF_STOCK (10)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`INSUFFICIENT_FUNDS (11)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`REQUIRES_LOGIN (12)`}),` `,_jsx(`br`,{})]}),`\n`,_jsx(_components.li,{children:_jsx(_components.strong,{children:`USER_BLOCKED (13)`})}),`\n`]})})]}),_jsx(ResponseField,{name:`base_reward_amount`,type:`number`,required:true,id:`param-base-reward-amount`,children:_jsxs(_components.p,{children:[`The reward amount of the flow before multipliers and discounts are applied. For `,_jsx(_components.code,{children:`REDEEM`}),` perk offers this is the points price.`]})}),_jsx(ResponseField,{name:`reward_amount`,type:`number`,required:true,id:`param-reward-amount`,children:_jsxs(_components.p,{children:[`The reward amount after multipliers and discounts are applied. For `,_jsx(_components.code,{children:`REDEEM`}),` perk offers this is the points the user pays.`]})}),_jsx(ResponseField,{name:`multiplier_id`,type:`integer`,id:`param-multiplier-id`,children:_jsx(_components.p,{children:`The ID of the multiplier applied to the reward, if any.`})}),_jsx(ResponseField,{name:`trigger_event_id`,type:`integer`,id:`param-trigger-event-id-1`,children:_jsx(_components.p,{children:`The ID of the trigger event used for the evaluation, if any.`})}),_jsx(ResponseField,{name:`action_partner_id`,type:`integer`,id:`param-action-partner-id`,children:_jsx(_components.p,{children:`The ID of the partner that owns the eligible action.`})}),_jsx(ResponseField,{name:`offer_id`,type:`string`,id:`param-offer-id`,children:_jsxs(_components.p,{children:[`The ID of the evaluated offer. Only returned for `,_jsx(_components.code,{children:`REDEEM`}),` perk flows.`]})}),_jsx(ResponseField,{name:`redemption_token`,type:`string`,id:`param-redemption-token`,children:_jsxs(_components.p,{children:[`A single-use token that authorizes the redemption of this offer. Only returned when `,_jsx(_components.code,{children:`is_eligible`}),` is `,_jsx(_components.code,{children:`true`}),` for a `,_jsx(_components.code,{children:`REDEEM`}),` perk offer, and expires after 600 seconds (10 minutes). Pass this token to `,_jsx(_components.a,{href:`/api-reference/endpoint/users/add-cart-item`,children:`Add Item to Cart`}),` or `,_jsx(_components.a,{href:`/api-reference/endpoint/transactions/redeem`,children:`Redeem by Token`}),`. It is not the token used by `,_jsx(_components.a,{href:`/api-reference/endpoint/transactions/redeem-cart-by-token`,children:`Redeem Cart by Token`}),`.`]})}),_jsx(ResponseField,{name:`points_price_after_discount`,type:`number`,id:`param-points-price-after-discount`,children:_jsx(_components.p,{children:`The points price of the offer after discounts, if a discount applies.`})}),_jsx(ResponseField,{name:`coupon_valid`,type:`boolean`,required:true,id:`param-coupon-valid`,children:_jsxs(_components.p,{children:[`Whether the `,_jsx(_components.code,{children:`coupon_code`}),` sent in the request is valid for this offer. `,_jsx(_components.code,{children:`false`}),` when no coupon code was sent.`]})}),_jsx(ResponseField,{name:`coupon_id`,type:`string`,id:`param-coupon-id`,children:_jsx(_components.p,{children:`The ID of the coupon applied to the offer, if any.`})}),_jsx(ResponseField,{name:`coupon_group_name`,type:`string`,id:`param-coupon-group-name`,children:_jsx(_components.p,{children:`The name of the coupon group the applied coupon belongs to, if any.`})}),_jsx(ResponseField,{name:`user_max_limit`,type:`integer`,id:`param-user-max-limit`,children:_jsx(_components.p,{children:`The number of units of this offer the user can still redeem.`})}),_jsx(ResponseField,{name:`user_personal_max_limit`,type:`integer`,id:`param-user-personal-max-limit`,children:_jsx(_components.p,{children:`The number of units of this offer the user can still redeem for themselves.`})}),_jsx(ResponseField,{name:`user_gift_max_limit`,type:`integer`,id:`param-user-gift-max-limit`,children:_jsx(_components.p,{children:`The number of units of this offer the user can still redeem as gifts.`})}),_jsx(ResponseField,{name:`available_count`,type:`integer`,id:`param-available-count`,children:_jsxs(_components.p,{children:[`The number of units of this offer currently in stock. `,_jsx(_components.code,{children:`null`}),` when the offer has no stock limit.`]})}),_jsx(ResponseField,{name:`product_id`,type:`integer`,id:`param-product-id`,children:_jsx(_components.p,{children:`The ID of the product the offer belongs to. Only returned when the offer belongs to a product with a limit.`})}),_jsx(ResponseField,{name:`product_max_limit`,type:`integer`,id:`param-product-max-limit`,children:_jsx(_components.p,{children:`The number of units of the product the user can still redeem. Only returned when the offer belongs to a product with a limit.`})}),_jsx(ResponseField,{name:`product_personal_max_limit`,type:`integer`,id:`param-product-personal-max-limit`,children:_jsx(_components.p,{children:`The number of units of the product the user can still redeem for themselves. Only returned when the offer belongs to a product with a limit.`})}),_jsx(ResponseField,{name:`product_gift_max_limit`,type:`integer`,id:`param-product-gift-max-limit`,children:_jsx(_components.p,{children:`The number of units of the product the user can still redeem as gifts. Only returned when the offer belongs to a product with a limit.`})}),_jsxs(ResponseField,{name:`product_limit`,type:`object`,id:`param-product-limit`,children:[_jsx(_components.p,{children:`The limit configuration of the product the offer belongs to. Only returned when the offer belongs to a product with a limit.`}),_jsxs(Expandable,{title:`product limit properties`,children:[_jsx(ResponseField,{name:`product_category_id`,type:`integer`,required:true,id:`param-product-category-id`,children:_jsx(_components.p,{children:`The ID of the product.`})}),_jsx(ResponseField,{name:`product_name`,type:`string`,id:`param-product-name`,children:_jsx(_components.p,{children:`The name of the product.`})}),_jsx(ResponseField,{name:`variant_ids`,type:`array`,required:true,id:`param-variant-ids`,children:_jsx(_components.p,{children:`The IDs of the offers (variants) that belong to the product.`})}),_jsx(ResponseField,{name:`limit_value`,type:`integer`,id:`param-limit-value`,children:_jsx(_components.p,{children:`The maximum number of units of the product a user can redeem in the limit window.`})}),_jsx(ResponseField,{name:`personal_limit_value`,type:`integer`,id:`param-personal-limit-value`,children:_jsx(_components.p,{children:`The maximum number of units of the product a user can redeem for themselves in the limit window.`})}),_jsxs(ResponseField,{name:`trigger_time_range`,type:`integer`,id:`param-trigger-time-range`,children:[_jsx(_components.p,{children:`Integer representing the time range the limit applies to.`}),_jsx(Expandable,{title:`possible time range values`,type:`enum`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PER_DAY (1)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PER_WEEK (2)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PER_MONTH (3)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PER_QUARTER (4)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PER_YEAR (5)`}),` `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CAMPAIGN_LIFETIME (6)`}),` `,_jsx(`br`,{})]}),`\n`,_jsx(_components.li,{children:_jsx(_components.strong,{children:`PER_SIX_MONTHS (7)`})}),`\n`]})})]}),_jsxs(ResponseField,{name:`time_window_mode`,type:`integer`,id:`param-time-window-mode`,children:[_jsx(_components.p,{children:`Integer representing how the limit window is measured.`}),_jsx(Expandable,{title:`possible time window mode values`,type:`enum`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CALENDAR (1)`}),` : The window follows calendar boundaries (default) `,_jsx(`br`,{})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`ELAPSED (2)`}),` : A rolling window anchored on the time of the request`]}),`\n`]})})]})]})]})]})]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`12`,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:`12`,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:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_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:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api-staging.withbenji.com/partnerships/550e8400-e29b-41d4-a716-446655440000/campaigns/eligibility`}),_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:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-api-key: \u003cyour-partner-api-key>'`}),_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:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003cuser-access-token>'`}),_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:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_id\": 155,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"campaign_type\": 2,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"transaction_context\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"offer_ids\": [\"sku-1\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`53`,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:`53`,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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ok\"`}),_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:` \"data\"`}),_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:` \"campaigns_eligibility\"`}),_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:` \"campaign_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`118`}),_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:` \"campaign_flow_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`305`}),_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:` \"is_eligible\"`}),_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:` \"failure_reasons\"`}),_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:` \"failure_reason_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"base_reward_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reward_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`450.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"multiplier_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trigger_event_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action_partner_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`61`}),_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:` \"offer_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sku-1\"`}),_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:` \"redemption_token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f6c0a52-8d1e-4f0b-9a57-0b6f2f7a7c11\"`}),_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:` \"points_price_after_discount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`450.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"coupon_valid\"`}),_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:` \"coupon_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"coupon_group_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user_max_limit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_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:` \"user_personal_max_limit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user_gift_max_limit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"available_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`25`})]}),`\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:` \"campaign_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`118`}),_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:` \"campaign_flow_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`306`}),_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:` \"is_eligible\"`}),_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:` \"failure_reasons\"`}),_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:` \"Loyalty points balance 120 is too low for cost 800\"`})}),`\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:` \"failure_reason_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`11`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"base_reward_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`800.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reward_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`800.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"multiplier_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trigger_event_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action_partner_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`61`}),_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:` \"offer_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sku-2\"`}),_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:` \"redemption_token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"points_price_after_discount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"coupon_valid\"`}),_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:` \"coupon_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"coupon_group_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user_max_limit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user_personal_max_limit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user_gift_max_limit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"available_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`25`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400`,numberOfLines:`4`,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:`4`,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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"partnership_trigger_event_reward_transaction_already_exists_error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Partnership trigger event reward transaction already exists\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`401`,numberOfLines:`4`,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:`4`,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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unauthorized_error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Unauthorized.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`422`,numberOfLines:`9`,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:`9`,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:`422`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Unprocessable Entity\"`}),_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:` \"errors\"`}),_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:` \"json\"`}),_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:` \"user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Missing data for required field.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`500`,numberOfLines:`4`,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:`4`,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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_eligibility_data_unavailable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Unable to load eligibility data for user 155.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Evaluating eligibility for a `,_jsx(_components.code,{children:`REDEEM`}),` perk offer issues a new `,_jsx(_components.code,{children:`redemption_token`}),` for every eligible offer. Each token is single-use and lasts 600 seconds (10 minutes). Use it with `,_jsx(_components.a,{href:`/api-reference/endpoint/users/add-cart-item`,children:`Add Item to Cart`}),` or `,_jsx(_components.a,{href:`/api-reference/endpoint/transactions/redeem`,children:`Redeem by Token`}),`. Request eligibility again if a token expires or has already been consumed.`]})})]})}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 Campaign Eligibility","description":"Evaluate which campaigns and offers a user is eligible for within a partnership","sidebarTitle":"Campaign Eligibility","api":"POST https://api-staging.withbenji.com/partnerships/{partnership_id}/campaigns/eligibility","href":"/api-reference/endpoint/campaigns/eligibility"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Response","slug":"response","depth":3,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api-staging.withbenji.com/partnerships/550e8400-e29b-41d4-a716-446655440000/campaigns/eligibility\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'x-api-key: \u0026#x3C;your-partner-api-key>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer \u0026#x3C;user-access-token>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"user_id\": 155,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"campaign_type\": 2,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"transaction_context\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"offer_ids\": [\"sku-1\"]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","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=\"53\">\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:#0A3069;--shiki-dark:#CE9178\">\"ok\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"campaigns_eligibility\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"campaign_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">118\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"campaign_flow_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">305\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"is_eligible\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"failure_reasons\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"failure_reason_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"base_reward_amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">500.0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"reward_amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">450.0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"multiplier_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"trigger_event_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"action_partner_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">61\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"offer_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"sku-1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"redemption_token\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3f6c0a52-8d1e-4f0b-9a57-0b6f2f7a7c11\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"points_price_after_discount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">450.0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"coupon_valid\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"coupon_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"coupon_group_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"user_max_limit\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">3\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"user_personal_max_limit\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"user_gift_max_limit\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"available_count\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">25\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"campaign_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">118\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"campaign_flow_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">306\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"is_eligible\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"failure_reasons\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Loyalty points balance 120 is too low for cost 800\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"failure_reason_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">11\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"base_reward_amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">800.0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"reward_amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">800.0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"multiplier_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"trigger_event_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"action_partner_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">61\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"offer_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"sku-2\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"redemption_token\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"points_price_after_discount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"coupon_valid\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"coupon_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"coupon_group_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"user_max_limit\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"user_personal_max_limit\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"user_gift_max_limit\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"available_count\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">25\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400","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=\"4\">\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:#0A3069;--shiki-dark:#CE9178\">\"partnership_trigger_event_reward_transaction_already_exists_error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Partnership trigger event reward transaction already exists\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"401","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=\"4\">\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:#0A3069;--shiki-dark:#CE9178\">\"unauthorized_error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Unauthorized.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"422","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=\"9\">\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\">422\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Unprocessable Entity\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"errors\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"user_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Missing data for required field.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"500","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=\"4\">\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:#0A3069;--shiki-dark:#CE9178\">\"user_eligibility_data_unavailable\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Unable to load eligibility data for user 155.\"\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 Campaign Eligibility","path":"/partnerships/{partnership_id}/campaigns/eligibility","servers":[{"url":"https://api-staging.withbenji.com"}],"method":"post","request":{"security":[{"title":"API Key Auth","parameters":{"header":{"x-api-key":{"type":"apiKey"}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{"x-api-key":{"schema":[{"type":"string","description":"Your partner API key, generated through the dashboard. Required together with `Authorization` .","required":true}]},"Authorization":{"schema":[{"type":"string","description":"A `Bearer` user access token obtained after the Benji Connect SDK `onSuccess` callback. Required together with `x-api-key` . See Exchange Token .","required":true}]}},"cookie":{},"path":{"partnership_id":{"schema":[{"type":"string","description":"The UUID of the partnership to evaluate. Only active campaigns that belong to this partnership are considered.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"user_id":[{"type":"integer","description":"The Benji Platform identifier of the user to evaluate eligibility for.","required":true}],"campaign_type":[{"type":"integer","description":"Restricts the evaluation to one campaign type. If omitted, campaigns of every type are evaluated."}],"transaction_context":[{"type":"object","properties":{"offer_ids":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Non-empty list of unique offer IDs (strings) to evaluate, for example `[\"sku-1\"]` . Required to evaluate `REDEEM` perk offers."}],"campaign_flow_ids":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Optional list of campaign flow IDs. When set, only these flows are evaluated. Use this when more than one active flow could match the same offer."}]},"description":"Additional context used to evaluate the campaign conditions. For `REDEEM` perk flows, include the offers you want to evaluate."}],"coupon_code":[{"type":"string","description":"Optional coupon code to validate against the evaluated `REDEEM` perk offers. The result of the check is returned in `coupon_valid` ."}],"trigger_id":[{"type":"integer","description":"Restricts the evaluation to campaign flows that use this trigger."}],"trigger_event_id":[{"type":"integer","description":"The ID of an existing trigger event. When sent together with `trigger_id` , the evaluation uses the transaction context stored on that trigger event."}],"extra_data":[{"type":"object","properties":{},"description":"Optional user payload, in the same shape as the Get User response. When provided, Benji does not look the user up again before evaluating eligibility."}]}}],"examples":{"example":{"value":{"user_id":123,"campaign_type":123,"transaction_context":{"offer_ids":[{}],"campaign_flow_ids":[{}]},"coupon_code":"\u003cstring>","trigger_id":123,"trigger_event_id":123,"extra_data":{}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"campaigns_eligibility":[{"type":"array","items":[{"type":"object","properties":{"campaign_id":[{"type":"integer","description":"The ID of the campaign that was evaluated.","required":true}],"campaign_flow_id":[{"type":"integer","description":"The ID of the campaign flow that was evaluated.","required":true}],"is_eligible":[{"type":"boolean","description":"Whether the user is eligible for this campaign flow.","required":true}],"failure_reasons":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Human-readable messages explaining why the user is not eligible. Empty when `is_eligible` is `true` .","required":true}],"failure_reason_id":[{"type":"integer","description":"Integer representing the reason the user is not eligible. `null` when the user is eligible."}],"base_reward_amount":[{"type":"number","description":"The reward amount of the flow before multipliers and discounts are applied. For `REDEEM` perk offers this is the points price.","required":true}],"reward_amount":[{"type":"number","description":"The reward amount after multipliers and discounts are applied. For `REDEEM` perk offers this is the points the user pays.","required":true}],"multiplier_id":[{"type":"integer","description":"The ID of the multiplier applied to the reward, if any."}],"trigger_event_id":[{"type":"integer","description":"The ID of the trigger event used for the evaluation, if any."}],"action_partner_id":[{"type":"integer","description":"The ID of the partner that owns the eligible action."}],"offer_id":[{"type":"string","description":"The ID of the evaluated offer. Only returned for `REDEEM` perk flows."}],"redemption_token":[{"type":"string","description":"A single-use token that authorizes the redemption of this offer. Only returned when `is_eligible` is `true` for a `REDEEM` perk offer, and expires after 600 seconds (10 minutes). Pass this token to Add Item to Cart or Redeem by Token . It is not the token used by Redeem Cart by Token ."}],"points_price_after_discount":[{"type":"number","description":"The points price of the offer after discounts, if a discount applies."}],"coupon_valid":[{"type":"boolean","description":"Whether the `coupon_code` sent in the request is valid for this offer. `false` when no coupon code was sent.","required":true}],"coupon_id":[{"type":"string","description":"The ID of the coupon applied to the offer, if any."}],"coupon_group_name":[{"type":"string","description":"The name of the coupon group the applied coupon belongs to, if any."}],"user_max_limit":[{"type":"integer","description":"The number of units of this offer the user can still redeem."}],"user_personal_max_limit":[{"type":"integer","description":"The number of units of this offer the user can still redeem for themselves."}],"user_gift_max_limit":[{"type":"integer","description":"The number of units of this offer the user can still redeem as gifts."}],"available_count":[{"type":"integer","description":"The number of units of this offer currently in stock. `null` when the offer has no stock limit."}],"product_id":[{"type":"integer","description":"The ID of the product the offer belongs to. Only returned when the offer belongs to a product with a limit."}],"product_max_limit":[{"type":"integer","description":"The number of units of the product the user can still redeem. Only returned when the offer belongs to a product with a limit."}],"product_personal_max_limit":[{"type":"integer","description":"The number of units of the product the user can still redeem for themselves. Only returned when the offer belongs to a product with a limit."}],"product_gift_max_limit":[{"type":"integer","description":"The number of units of the product the user can still redeem as gifts. Only returned when the offer belongs to a product with a limit."}],"product_limit":[{"type":"object","properties":{"product_category_id":[{"type":"integer","description":"The ID of the product.","required":true}],"product_name":[{"type":"string","description":"The name of the product."}],"variant_ids":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"The IDs of the offers (variants) that belong to the product.","required":true}],"limit_value":[{"type":"integer","description":"The maximum number of units of the product a user can redeem in the limit window."}],"personal_limit_value":[{"type":"integer","description":"The maximum number of units of the product a user can redeem for themselves in the limit window."}],"trigger_time_range":[{"type":"integer","description":"Integer representing the time range the limit applies to."}],"time_window_mode":[{"type":"integer","description":"Integer representing how the limit window is measured."}]},"description":"The limit configuration of the product the offer belongs to. Only returned when the offer belongs to a product with a limit."}]}}],"description":"One entry per evaluated campaign flow (or per offer, for `REDEEM` perk flows). An empty array is returned when the partnership does not exist or has no live campaign flows that match the request.","required":true}]}}],"examples":{"example":{"value":{"campaigns_eligibility":[{"campaign_id":123,"campaign_flow_id":123,"is_eligible":true,"failure_reasons":[{}],"failure_reason_id":123,"base_reward_amount":123,"reward_amount":123,"multiplier_id":123,"trigger_event_id":123,"action_partner_id":123,"offer_id":"\u003cstring>","redemption_token":"\u003cstring>","points_price_after_discount":123,"coupon_valid":true,"coupon_id":"\u003cstring>","coupon_group_name":"\u003cstring>","user_max_limit":123,"user_personal_max_limit":123,"user_gift_max_limit":123,"available_count":123,"product_id":123,"product_max_limit":123,"product_personal_max_limit":123,"product_gift_max_limit":123,"product_limit":{"product_category_id":123,"product_name":"\u003cstring>","variant_ids":[{}],"limit_value":123,"personal_limit_value":123,"trigger_time_range":123,"time_window_mode":123}}]}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"benji","siteName":"Benji","title":"Get Campaign Eligibility - Benji","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-03T00:19:36.401Z","originalFileLocation":"api-reference/endpoint/campaigns/eligibility.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"Evaluate which campaigns and offers a user is eligible for within a partnership\">\u003cmeta data-mint-head name=\"application-name\" content=\"Benji\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_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/benji/dbMCKxLdMt2ho1P-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Campaign Eligibility - Benji\">\u003cmeta data-mint-head property=\"og:description\" content=\"Evaluate which campaigns and offers a user is eligible for within a partnership\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Benji\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.withbenji.com/api-reference/endpoint/campaigns/eligibility\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://benji.mintlify.site/_mintlify/api/og/v2?division=Partnerships\u0026amp;title=Get+Campaign+Eligibility\u0026amp;description=Evaluate+which+campaigns+and+offers+a+user+is+eligible+for+within+a+partnership\u0026amp;theme=c6069e65afe5566508648c56\u0026amp;signature=3a68ac747c73ada0993c0e8d15c392337bde43cb6ea072089ae345175acd4247\">\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 Campaign Eligibility - Benji\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Evaluate which campaigns and offers a user is eligible for within a partnership\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://benji.mintlify.site/_mintlify/api/og/v2?division=Partnerships\u0026amp;title=Get+Campaign+Eligibility\u0026amp;description=Evaluate+which+campaigns+and+offers+a+user+is+eligible+for+within+a+partnership\u0026amp;theme=c6069e65afe5566508648c56\u0026amp;signature=3a68ac747c73ada0993c0e8d15c392337bde43cb6ea072089ae345175acd4247\">\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/benji/dbMCKxLdMt2ho1P-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Benji\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9900ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.withbenji.com/api-reference/endpoint/campaigns/eligibility\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/campaigns/eligibility.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.withbenji.com/#organization\",\"name\":\"Benji\",\"url\":\"https://docs.withbenji.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/benji/E3tFqos-Cc64Y5MH/logo/benji-docs-logo.svg?fit=max\u0026auto=format\u0026n=E3tFqos-Cc64Y5MH\u0026q=85\u0026s=60b7d848ffe4ab0c66efcfcbf573e3be\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.withbenji.com#website\",\"name\":\"Benji\",\"url\":\"https://docs.withbenji.com\",\"publisher\":{\"@id\":\"https://docs.withbenji.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.withbenji.com/api-reference/endpoint/campaigns/eligibility#webpage\",\"url\":\"https://docs.withbenji.com/api-reference/endpoint/campaigns/eligibility\",\"name\":\"Get Campaign Eligibility\",\"description\":\"Evaluate which campaigns and offers a user is eligible for within a partnership\",\"dateModified\":\"2026-12-03T00:19:36.401Z\",\"isPartOf\":{\"@id\":\"https://docs.withbenji.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.withbenji.com/api-reference/endpoint/campaigns/eligibility#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.withbenji.com/api-reference/endpoint/campaigns/eligibility#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Partnerships\",\"item\":\"https://docs.withbenji.com/api-reference/endpoint/partnerships/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Campaign Eligibility\",\"item\":\"https://docs.withbenji.com/api-reference/endpoint/campaigns/eligibility\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.withbenji.com/api-reference/endpoint/campaigns/eligibility#apireference\",\"headline\":\"Get Campaign Eligibility\",\"name\":\"Get Campaign Eligibility\",\"description\":\"Evaluate which campaigns and offers a user is eligible for within a partnership\",\"url\":\"https://docs.withbenji.com/api-reference/endpoint/campaigns/eligibility\",\"mainEntityOfPage\":{\"@id\":\"https://docs.withbenji.com/api-reference/endpoint/campaigns/eligibility#webpage\"},\"dateModified\":\"2026-12-03T00:19:36.401Z\",\"publisher\":{\"@id\":\"https://docs.withbenji.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.withbenji.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Benji\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Benji\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/campaigns/eligibility.md","siteName":"Benji","nav":{"global":null,"tabs":[{"tab":"Platform","pages":[{"title":"Platform","href":"/pilot/overview"}]},{"tab":"Benji Connect","pages":[{"title":"Benji Connect","href":"/connect/overview"}]},{"tab":"Benji Integrations","pages":[{"title":"Benji Integrations","href":"/integrations/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"API Authentication","sidebarTitle":"Authentication","href":"/api-reference/authentication"}]},{"group":"Member API","pages":[{"title":"Get User","sidebarTitle":"Get User","api":"GET https://api-staging.withbenji.com/users/{id}","href":"/api-reference/endpoint/users/get"},{"title":"Add Item to Cart","sidebarTitle":"Add Item to Cart","api":"POST https://api-staging.withbenji.com/users/{user_id}/partners/{partner_id}/cart/items","href":"/api-reference/endpoint/users/add-cart-item"},{"title":"Validate Cart","sidebarTitle":"Validate Cart","api":"POST https://api-staging.withbenji.com/users/{user_id}/partners/{partner_id}/cart/validate","href":"/api-reference/endpoint/users/validate-cart"}]},{"group":"Reward API","pages":[{"title":"Get Reward Transaction","sidebarTitle":"Get Transaction","api":"GET https://api-staging.withbenji.com/transactions/{id}","href":"/api-reference/endpoint/transactions/get"},{"title":"Redeem by Token","sidebarTitle":"Redeem by Token","api":"POST https://api-staging.withbenji.com/transactions/redeem","href":"/api-reference/endpoint/transactions/redeem"},{"title":"Redeem Cart by Token","sidebarTitle":"Redeem Cart by Token","api":"POST https://api-staging.withbenji.com/transactions/redeem_cart_by_token","href":"/api-reference/endpoint/transactions/redeem-cart-by-token"}]},{"group":"Partnerships","pages":[{"title":"List Partnerships","sidebarTitle":"List Partnerships","api":"GET https://api-staging.withbenji.com/partnerships","href":"/api-reference/endpoint/partnerships/list"},{"title":"Get Partnership","sidebarTitle":"Get Partnership","api":"GET https://api-staging.withbenji.com/partnerships/{id}","href":"/api-reference/endpoint/partnerships/get"},{"title":"Send Trigger Event","description":"Process a trigger event for a partnership to initiate campaign reward evaluation","sidebarTitle":"Send Trigger","api":"POST https://api-staging.withbenji.com/partnerships/{partnership_id}/triggers","href":"/api-reference/endpoint/triggers/send"},{"title":"Get Campaign Eligibility","sidebarTitle":"Campaign Eligibility","api":"POST https://api-staging.withbenji.com/partnerships/{partnership_id}/campaigns/eligibility","href":"/api-reference/endpoint/campaigns/eligibility"}]},{"group":"Webhooks","pages":[{"title":"Benji Platform Webhooks Overview","description":"An overview of the Benji Platform webhooks, allowing you to receive real-time updates on users, campaigns, reward transactions, carts, and fraud alerts.","sidebarTitle":"Overview","href":"/api-reference/webhooks/overview"},{"title":"Subscribe to a webhook event","sidebarTitle":"Subscribe","api":"POST https://notificationservice-staging.withbenji.com/webhooks/subscribe","href":"/api-reference/webhooks/subscribe"},{"title":"Update a webhook subscription","sidebarTitle":"Update","api":"PUT https://notificationservice-staging.withbenji.com/webhooks/subscribe","href":"/api-reference/webhooks/update"}]}]}]},"basePath":"","title":"Get Campaign Eligibility - Benji","deploymentId":"dpl_4yZxV19iA4iQbQLKpiEbDRZbaukJ","buildId":"dpl_4yZxV19iA4iQbQLKpiEbDRZbaukJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-rrEjMEj9.js","snippetPresets-BAwajHq0.js","utils-Dk5Rw1j7.js","style-to-object-BY3JEAdk.js","utils-DEa5s7HT.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DklRggtM.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Dmd8Dtl3.js","_Uint8Array-DJOdfMxL.js","isObject-FP1Yky1u.js","ApiExamples-D_AaxPsu.js","usePlaygroundInputsStore-Cma-50-F.js","shallow-BkbikJPT.js","isEqual-ChmK1oW2.js","CodeSnippets-RshC0qEa.js","CodeSnippet-C4HlRD7L.js","use-playground-group-access-BA-Tl_RI.js","Page-QqDMRMNz.js","api-description-markdown-BZgYMOP-.js","DynamicMarkdown-Bud--1w4.js","SectionHeading-oXLyPZnT.js","MethodPill-CqC02MRb.js","getPastedJson-C90_9vhn.js","Check2Icon-DqC8Aq9w.js","axios-CsQoIw0U.js"]}