{
"status": 403,
"success": false,
"message": "Please log in to see your library",
"code": "login_required",
"data": {}
}
{
"status": 500,
"success": false,
"message": "Could not load your library",
"code": "library_error",
"data": {}
}
Request
GET /libraryAuthorization: Bearer {{token}}x-shop-id: {{shopId}}
Headers
Header
Type
Description
Authorization
string
Provide the customer token as Bearer <jwt>. Must be a real, signed-in account.
x-shop-id
string
Identify the shop context.
A guest session (the anonymous user from POST /auth/ghost) or a request with no token gets 403 with code: "login_required". Send the shopper through the login flow, then call this again. Buying a digital item also needs a real account, because access is tied to the buyer’s email. The response is sent with Cache-Control: no-store because every downloadUrl carries a credential.
Response fields
data.items has one row per title. When several purchases reach the same title (for example a lifetime copy and the all-access pass), the best one is shown.
purchase (bought outright), pass (a 30-day pass for this title), all_access (the store pass) or granted (given by the seller).
kind
string
lifetime or pass.
status
string
active or expired. Revoked access is not listed.
accessUntil
string | null
End of a pass. null for lifetime access.
daysLeft
number | null
Whole days left. null for lifetime access, 0 once expired.
autoRenew
boolean
Whether the pass renews automatically.
autoRenewCard
object | null
{ brand, last4 } of the saved card while auto-renew is on.
renewMode
string | null
What buying again would buy: pass (this title for 30 days) or all_access. null when the row cannot be renewed.
downloadUrl
string | null
Opens the file, see Download a purchased file. null once the access has expired, and always null for a 30-day pass or the all-access pass, which are read online.
canDownload
boolean
true only for active titles bought outright whose seller allows downloads.
A pass is renewed by buying it again: add { "digitalId": "<productId>", "mode": "pass" } (or { "allAccess": true } when renewMode is all_access) with Add item to cart and check out as usual. The new purchase extends the same access record, adding 30 days to whatever is left.
Error response
{ "status": 403, "success": false, "message": "Please log in to see your library", "code": "login_required", "data": {}}
Other codes: 400 shop_required (no store context) and 500 library_error.
Authorizations
Authorization
string
header
required
JWT issued by the Salesive Store API for authenticated shoppers.
x-shop-id
string
header
required
Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.
Headers
x-shop-id
string
Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Salesive Docs","colors":{"primary":"#0d65d9","light":"#0d65d9","dark":"#0d65d9"},"logo":{"light":"https://mintcdn.com/salesive/VvY6MQ7U6lHdcwJv/logo/black.png?fit=max\u0026auto=format\u0026n=VvY6MQ7U6lHdcwJv\u0026q=85\u0026s=5f950e29e4cd7ea06abc0929a6f665d9","dark":"https://mintcdn.com/salesive/VvY6MQ7U6lHdcwJv/logo/white.png?fit=max\u0026auto=format\u0026n=VvY6MQ7U6lHdcwJv\u0026q=85\u0026s=8ce4d52ad1712569cc11546be4cae9a6"},"favicon":"https://mintcdn.com/salesive/VvY6MQ7U6lHdcwJv/favicon.png?fit=max\u0026auto=format\u0026n=VvY6MQ7U6lHdcwJv\u0026q=85\u0026s=77d5b117821d218cce4ef3b09cefe83b","api":{"openapi":["api-reference/openapi.json","apps-api/specs/account.json","apps-api/specs/billing.json","apps-api/specs/catalog.json","apps-api/specs/customers-categories.json","apps-api/specs/digital.json","apps-api/specs/discounts-blogs.json","apps-api/specs/messaging.json","apps-api/specs/orders.json","apps-api/specs/pos.json","apps-api/specs/productivity.json","apps-api/specs/shipping-fulfillment.json","apps-api/specs/social.json"],"playground":{"proxy":false}},"navbar":{"links":[{"href":"mailto:sales@salesive.com","label":"Contact Sales"}],"primary":{"type":"button","label":"Create your store","href":"https://salesive.com"}},"footer":{"socials":{"x":"https://x.com/salesivehq","github":"https://github.com/salesivehq","linkedin":"https://linkedin.com/company/salesivehq","youtube":"https://youtube.com/@salesivehq","instagram":"https://instagram.com/salesivehq","website":"https://salesive.com"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Salesive website","icon":"globe","href":"https://salesive.com"},{"anchor":"Support","icon":"envelope","href":"mailto:support@salesive.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"salesive","hasAudioNarration":false,"actualSubdomain":"salesive","customDomains":["docs.salesive.com"],"gitSource":{"type":"github","owner":"eoion","repo":"salesive-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6b010a5e37a00f1ec5680f78","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"Apps API","count":206},{"language":"default","tag":"API reference","count":81},{"language":"default","tag":"Building apps","count":49},{"language":"default","tag":"Social planner","count":33},{"language":"default","tag":"Shipping","count":22},{"language":"default","tag":"Products","count":21},{"language":"default","tag":"Orders","count":13},{"language":"default","tag":"Overview","count":12},{"language":"default","tag":"Billing","count":11},{"language":"default","tag":"Digital products","count":10}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"site-roles","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoint/library/get-library","slug":"/api-reference/endpoint/library/get-library","pageMetadata":{"title":"Get the shopper's library","description":"Return every digital title the signed-in shopper holds in this store, with download links.","openapi":"api-reference/openapi.json GET /library","href":"/api-reference/endpoint/library/get-library"},"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: \"Return every digital title the signed-in shopper holds in this store, with download links.\"\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`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /library`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer {{token}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-shop-id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {{shopId}}`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`headers`,children:`Headers`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Header`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Authorization`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Provide the customer token as `,_jsx(_components.code,{children:`Bearer \u003cjwt>`}),`. Must be a real, signed-in account.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`x-shop-id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Identify the shop context.`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`A guest session (the anonymous user from `,_jsx(_components.code,{children:`POST /auth/ghost`}),`) or a request with no token gets `,_jsx(_components.code,{children:`403`}),` with `,_jsx(_components.code,{children:`code: \"login_required\"`}),`. Send the shopper through the login flow, then call this again. Buying a digital item also needs a real account, because access is tied to the buyer’s email. The response is sent with `,_jsx(_components.code,{children:`Cache-Control: no-store`}),` because every `,_jsx(_components.code,{children:`downloadUrl`}),` carries a credential.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response-fields`,children:`Response fields`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`data.items`}),` has one row per title. When several purchases reach the same title (for example a lifetime copy and the all-access pass), the best one is shown.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`entitlementId`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`The access record id. Pass it to `,_jsx(_components.a,{href:`/api-reference/endpoint/library/set-auto-renew`,children:`Turn auto-renew on or off`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`productId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`The digital product id.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`author`}),`, `,_jsx(_components.code,{children:`images`})]}),_jsx(_components.td,{children:`mixed`}),_jsx(_components.td,{children:`Title details for display.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`format`}),`, `,_jsx(_components.code,{children:`size`})]}),_jsx(_components.td,{children:`string, number`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`pdf`}),`, `,_jsx(_components.code,{children:`epub`}),`, `,_jsx(_components.code,{children:`mobi`}),` or `,_jsx(_components.code,{children:`zip`}),`, and the size in bytes.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`source`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`purchase`}),` (bought outright), `,_jsx(_components.code,{children:`pass`}),` (a 30-day pass for this title), `,_jsx(_components.code,{children:`all_access`}),` (the store pass) or `,_jsx(_components.code,{children:`granted`}),` (given by the seller).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`kind`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`lifetime`}),` or `,_jsx(_components.code,{children:`pass`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`active`}),` or `,_jsx(_components.code,{children:`expired`}),`. Revoked access is not listed.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`accessUntil`})}),_jsx(_components.td,{children:`string | null`}),_jsxs(_components.td,{children:[`End of a pass. `,_jsx(_components.code,{children:`null`}),` for lifetime access.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`daysLeft`})}),_jsx(_components.td,{children:`number | null`}),_jsxs(_components.td,{children:[`Whole days left. `,_jsx(_components.code,{children:`null`}),` for lifetime access, `,_jsx(_components.code,{children:`0`}),` once expired.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`autoRenew`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Whether the pass renews automatically.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`autoRenewCard`})}),_jsx(_components.td,{children:`object | null`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`{ brand, last4 }`}),` of the saved card while auto-renew is on.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`renewMode`})}),_jsx(_components.td,{children:`string | null`}),_jsxs(_components.td,{children:[`What buying again would buy: `,_jsx(_components.code,{children:`pass`}),` (this title for 30 days) or `,_jsx(_components.code,{children:`all_access`}),`. `,_jsx(_components.code,{children:`null`}),` when the row cannot be renewed.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`downloadUrl`})}),_jsx(_components.td,{children:`string | null`}),_jsxs(_components.td,{children:[`Opens the file, see `,_jsx(_components.a,{href:`/api-reference/endpoint/downloads/download`,children:`Download a purchased file`}),`. `,_jsx(_components.code,{children:`null`}),` once the access has expired, and always `,_jsx(_components.code,{children:`null`}),` for a 30-day pass or the all-access pass, which are read online.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`canDownload`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),` only for active titles bought outright whose seller allows downloads.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`canRead`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),` for active PDFs: open them with `,_jsx(_components.a,{href:`/api-reference/endpoint/library/read-book`,children:`Read a title online`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`readOnly`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),` for a 30-day pass or the all-access pass, and for a title bought outright when the seller turned downloads off.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`data.pass`}),` is the store’s current `,_jsx(_components.a,{href:`/api-reference/endpoint/digital/get-pass`,children:`all-access pass`}),`, or `,_jsx(_components.code,{children:`null`}),`, so the library page can offer a renewal without a second call.`]}),`\n`,_jsx(Heading,{level:`2`,id:`successful-response`,children:`Successful response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`37`,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:`37`,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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_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:` \"success\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Library retrieved\"`}),_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:` \"items\"`}),_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:` \"entitlementId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6702d3f0e1b3a40012cd3001\"`}),_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:` \"productId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6702c1a4e1b3a40012cd2001\"`}),_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:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The Lagos Cookbook\"`}),_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:` \"author\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ngozi Okafor\"`}),_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:` \"images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.salesive.com/d/lagos-cookbook-cover.jpg\"`}),_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:` \"format\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pdf\"`}),_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:` \"size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8421376`}),_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:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pass\"`}),_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:` \"kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pass\"`}),_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:`\"active\"`}),_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:` \"accessUntil\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-11T08:00:00.000Z\"`}),_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:` \"daysLeft\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_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:` \"autoRenew\"`}),_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:` \"autoRenewCard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"brand\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"visa\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"last4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4081\"`}),_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:` \"renewMode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pass\"`}),_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:` \"readOnly\"`}),_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:` \"canDownload\"`}),_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:` \"canRead\"`}),_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:` \"downloadUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\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:` \"pass\"`}),_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:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"All-access pass\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Every book in the store for 30 days.\"`}),_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:` \"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7500`}),_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:` \"periodDays\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_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:` \"productCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12`})]}),`\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`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`renewing`,children:`Renewing`}),`\n`,_jsxs(_components.p,{children:[`A pass is renewed by buying it again: add `,_jsx(_components.code,{children:`{ \"digitalId\": \"\u003cproductId>\", \"mode\": \"pass\" }`}),` (or `,_jsx(_components.code,{children:`{ \"allAccess\": true }`}),` when `,_jsx(_components.code,{children:`renewMode`}),` is `,_jsx(_components.code,{children:`all_access`}),`) with `,_jsx(_components.a,{href:`/api-reference/endpoint/cart/add-item`,children:`Add item to cart`}),` and check out as usual. The new purchase extends the same access record, adding 30 days to whatever is left.`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-response`,children:`Error response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,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:`7`,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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`403`}),_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:` \"success\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Please log in to see your library\"`}),_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:`\"login_required\"`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Other codes: `,_jsx(_components.code,{children:`400 shop_required`}),` (no store context) and `,_jsx(_components.code,{children:`500 library_error`}),`.`]})]})}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 the shopper's library","description":"Return every digital title the signed-in shopper holds in this store, with download links.","openapi":"api-reference/openapi.json GET /library","href":"/api-reference/endpoint/library/get-library"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Headers","slug":"headers","depth":2,"children":[]},{"title":"Response fields","slug":"response-fields","depth":2,"children":[]},{"title":"Successful response","slug":"successful-response","depth":2,"children":[]},{"title":"Renewing","slug":"renewing","depth":2,"children":[]},{"title":"Error response","slug":"error-response","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Get the shopper's library","description":"Return every digital title the signed-in shopper holds in this store, with download links.","parameters":["000b2eb5-23a3-4846-8ba3-ff53bcdfa3d8"],"security":["c588e323-4ba3-40fa-8a96-6f48e5092f95"],"responses":{"200":"8a815c9e-514d-46d0-a2da-a70c38790880","400":"8c7f26d6-9d65-4998-85bd-b45f1b14ce63","403":"94a81440-0952-4711-93d2-e6e34e3c64e3","500":"b5daba74-7e9f-4b1f-900d-2894eb14b65d"},"method":"get","type":"path","servers":["2eb8cb51-0d06-40eb-a1ca-4c7417a1a9e5"],"path":"/library","baseUrlOptions":["https://store.salesive.com/api/v1"],"title":"Get the shopper's library","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"000b2eb5-23a3-4846-8ba3-ff53bcdfa3d8":{"name":"x-shop-id","in":"header","description":"Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.","required":false,"schema":{"type":"string","isRequired":false,"description":"Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.","uniqueKey":"","typeLabel":"string"}}},"responses":{"8a815c9e-514d-46d0-a2da-a70c38790880":{"description":"The shopper's library.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","example":200,"uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","example":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","example":"Library retrieved","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","description":"One title the shopper can (or could) download. One row per title: when several purchases reach the same title (say a lifetime copy and the all-access pass) the best one is shown.","properties":{"entitlementId":{"type":"string","description":"The access record id. Use it for the auto-renew toggle.","uniqueKey":"data.\\items.items.[INDEX].entitlementId","typeLabel":"string"},"productId":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].productId","typeLabel":"string"},"name":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].name","typeLabel":"string"},"author":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].author","typeLabel":"string"},"images":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"data.\\items.items.[INDEX].images.items.[INDEX]","typeLabel":"string\u003curi>"},"uniqueKey":"data.\\items.items.[INDEX].images","typeLabel":"string\u003curi>[]"},"format":{"oneOf":[{"type":"string","enum":["pdf","epub","mobi","zip",null],"uniqueKey":"data.\\items.items.[INDEX].format.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["pdf","epub","mobi","zip",null],"uniqueKey":"data.\\items.items.[INDEX].format.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].format","typeLabel":"enum\u003cstring> | null"},"size":{"type":"integer","description":"File size in bytes.","uniqueKey":"data.\\items.items.[INDEX].size","typeLabel":"integer"},"source":{"type":"string","enum":["purchase","pass","all_access","granted"],"description":"How the shopper got it: bought outright, a 30-day pass for this title, the all-access pass, or granted by the seller.","uniqueKey":"data.\\items.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"kind":{"type":"string","enum":["lifetime","pass"],"uniqueKey":"data.\\items.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["active","expired"],"uniqueKey":"data.\\items.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"accessUntil":{"oneOf":[{"type":"string","format":"date-time","description":"End of the pass. `null` for lifetime access.","uniqueKey":"data.\\items.items.[INDEX].accessUntil.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"End of the pass. `null` for lifetime access.","uniqueKey":"data.\\items.items.[INDEX].accessUntil.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].accessUntil","typeLabel":"string\u003cdate-time> | null"},"daysLeft":{"oneOf":[{"type":"integer","description":"Whole days left. `null` for lifetime access, `0` once expired.","uniqueKey":"data.\\items.items.[INDEX].daysLeft.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Whole days left. `null` for lifetime access, `0` once expired.","uniqueKey":"data.\\items.items.[INDEX].daysLeft.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].daysLeft","typeLabel":"integer | null"},"autoRenew":{"type":"boolean","uniqueKey":"data.\\items.items.[INDEX].autoRenew","typeLabel":"boolean"},"autoRenewCard":{"oneOf":[{"type":"object","properties":{"brand":{"oneOf":[{"type":"string","uniqueKey":"data.\\items.items.[INDEX].autoRenewCard.oneOf.0.brand.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.\\items.items.[INDEX].autoRenewCard.oneOf.0.brand.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].autoRenewCard.oneOf.0.brand","typeLabel":"string | null"},"last4":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].autoRenewCard.oneOf.0.last4","typeLabel":"string"}},"uniqueKey":"data.\\items.items.[INDEX].autoRenewCard.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"brand":{"oneOf":[{"type":"string"},{"type":"null"}]},"last4":{"type":"string"}},"uniqueKey":"data.\\items.items.[INDEX].autoRenewCard.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].autoRenewCard","typeLabel":"object | null"},"renewMode":{"oneOf":[{"type":"string","enum":["pass","all_access",null],"description":"What buying again would buy: a 30-day pass for the title, or the all-access pass. `null` when the row cannot be renewed (lifetime access).","uniqueKey":"data.\\items.items.[INDEX].renewMode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["pass","all_access",null],"description":"What buying again would buy: a 30-day pass for the title, or the all-access pass. `null` when the row cannot be renewed (lifetime access).","uniqueKey":"data.\\items.items.[INDEX].renewMode.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].renewMode","typeLabel":"enum\u003cstring> | null"},"downloadUrl":{"oneOf":[{"type":"string","format":"uri","description":"Opens the file. `null` once the access has expired. The link carries the credential, so do not log or share it.","uniqueKey":"data.\\items.items.[INDEX].downloadUrl.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"Opens the file. `null` once the access has expired. The link carries the credential, so do not log or share it.","uniqueKey":"data.\\items.items.[INDEX].downloadUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].downloadUrl","typeLabel":"string\u003curi> | null"}},"uniqueKey":"data.\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.\\items","typeLabel":"object[]"},"pass":{"oneOf":[{"type":"object","description":"The store's all-access pass, or `null` when none is on sale.","properties":{"name":{"type":"string","uniqueKey":"data.pass.oneOf.0.name","typeLabel":"string"},"description":{"type":"string","uniqueKey":"data.pass.oneOf.0.description","typeLabel":"string"},"price":{"type":"number","uniqueKey":"data.pass.oneOf.0.price","typeLabel":"number"},"periodDays":{"type":"integer","description":"Length of one purchase in days (30).","uniqueKey":"data.pass.oneOf.0.periodDays","typeLabel":"integer"},"productCount":{"type":"integer","description":"Listed products the pass covers.","uniqueKey":"data.pass.oneOf.0.productCount","typeLabel":"integer"}},"uniqueKey":"data.pass.oneOf.0","typeLabel":"object"},{"type":"null","description":"The store's all-access pass, or `null` when none is on sale.","properties":{"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"periodDays":{"type":"integer","description":"Length of one purchase in days (30)."},"productCount":{"type":"integer","description":"Listed products the pass covers."}},"uniqueKey":"data.pass.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.pass","typeLabel":"object | null"}},"example":{"items":[{"entitlementId":"6702d3f0e1b3a40012cd3001","productId":"6702c1a4e1b3a40012cd2001","name":"The Lagos Cookbook","author":"Ngozi Okafor","images":["https://cdn.salesive.com/d/lagos-cookbook-cover.jpg"],"format":"pdf","size":8421376,"source":"pass","kind":"pass","status":"active","accessUntil":"2026-11-11T08:00:00.000Z","daysLeft":30,"autoRenew":true,"autoRenewCard":{"brand":"visa","last4":"4081"},"renewMode":"pass","downloadUrl":"https://store.salesive.com/api/v1/downloads/9f2c1b7e4a6d8035c1e2f4a7b9d0c3e5a8b1d4f6c7e90123"}],"pass":{"name":"All-access pass","description":"Every book in the store for 30 days.","price":7500,"periodDays":30,"productCount":12}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":200,"success":true,"message":"Library retrieved","data":{"items":[{"entitlementId":"6702d3f0e1b3a40012cd3001","productId":"6702c1a4e1b3a40012cd2001","name":"The Lagos Cookbook","author":"Ngozi Okafor","images":["https://cdn.salesive.com/d/lagos-cookbook-cover.jpg"],"format":"pdf","size":8421376,"source":"pass","kind":"pass","status":"active","accessUntil":"2026-11-11T08:00:00.000Z","daysLeft":30,"autoRenew":true,"autoRenewCard":{"brand":"visa","last4":"4081"},"renewMode":"pass","downloadUrl":"https://store.salesive.com/api/v1/downloads/9f2c1b7e4a6d8035c1e2f4a7b9d0c3e5a8b1d4f6c7e90123"}],"pass":{"name":"All-access pass","description":"Every book in the store for 30 days.","price":7500,"periodDays":30,"productCount":12}}}}},"exampleType":"generated"}},"exampleType":"generated"},"8c7f26d6-9d65-4998-85bd-b45f1b14ce63":{"description":"No store context.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","uniqueKey":"data","typeLabel":"object"},"code":{"type":"string","description":"Machine-readable reason.","uniqueKey":"code","typeLabel":"string"}},"example":{"status":400,"success":false,"message":"Store context is required","code":"shop_required","data":{}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":400,"success":false,"message":"Store context is required","code":"shop_required","data":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"94a81440-0952-4711-93d2-e6e34e3c64e3":{"description":"The request is anonymous or a guest session.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","uniqueKey":"data","typeLabel":"object"},"code":{"type":"string","description":"Machine-readable reason.","uniqueKey":"code","typeLabel":"string"}},"example":{"status":403,"success":false,"message":"Please log in to see your library","code":"login_required","data":{}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":403,"success":false,"message":"Please log in to see your library","code":"login_required","data":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"b5daba74-7e9f-4b1f-900d-2894eb14b65d":{"description":"The library could not be built.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"integer","uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","uniqueKey":"data","typeLabel":"object"},"code":{"type":"string","description":"Machine-readable reason.","uniqueKey":"code","typeLabel":"string"}},"example":{"status":500,"success":false,"message":"Could not load your library","code":"library_error","data":{}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":500,"success":false,"message":"Could not load your library","code":"library_error","data":{}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"c588e323-4ba3-40fa-8a96-6f48e5092f95":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT issued by the Salesive Store API for authenticated shoppers.","scopes":[],"schemeName":"BearerAuth"},"ShopIdHeader":{"type":"apiKey","in":"header","name":"x-shop-id","description":"Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.","scopes":[],"schemeName":"ShopIdHeader"}}},"servers":{"2eb8cb51-0d06-40eb-a1ca-4c7417a1a9e5":{"description":"Production","url":"https://store.salesive.com/api/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT issued by the Salesive Store API for authenticated shoppers.","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"JWT issued by the Salesive Store API for authenticated shoppers.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"},{"scheme":{"type":"apiKey","in":"header","name":"x-shop-id","description":"Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.","scopes":[],"schemeName":"ShopIdHeader"},"schema":{"title":"x-shop-id","type":"string","description":"Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ShopIdHeader","name":"x-shop-id"}],"title":"BearerAuth \u0026 ShopIdHeader"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"salesive","siteName":"Salesive Docs","title":"Get the shopper's library - Salesive Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T04:36:45.834Z","originalFileLocation":"api-reference/endpoint/library/get-library.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Return every digital title the signed-in shopper holds in this store, with download links.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Salesive Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get the shopper\u0026#x27;s library - Salesive Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Return every digital title the signed-in shopper holds in this store, with download links.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Salesive Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.salesive.com/api-reference/endpoint/library/get-library\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://salesive.mintlify.site/_mintlify/api/og/v2?division=Library\u0026amp;title=Get+the+shopper%27s+library\u0026amp;description=Return+every+digital+title+the+signed-in+shopper+holds+in+this+store%2C+with+download+links.\u0026amp;theme=c5f7ecfd8c87f81f8b06b930\u0026amp;signature=11807f0a22d3738bd068feb0ecc343ca5d828dd3cd9147406bf70f234a7de4e3\">\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 the shopper\u0026#x27;s library - Salesive Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Return every digital title the signed-in shopper holds in this store, with download links.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://salesive.mintlify.site/_mintlify/api/og/v2?division=Library\u0026amp;title=Get+the+shopper%27s+library\u0026amp;description=Return+every+digital+title+the+signed-in+shopper+holds+in+this+store%2C+with+download+links.\u0026amp;theme=c5f7ecfd8c87f81f8b06b930\u0026amp;signature=11807f0a22d3738bd068feb0ecc343ca5d828dd3cd9147406bf70f234a7de4e3\">\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/salesive/YvWX5_GKzhKJt0DJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Salesive Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0d65d9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.salesive.com/api-reference/endpoint/library/get-library\">\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/library/get-library.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.salesive.com/#organization\",\"name\":\"Salesive Docs\",\"url\":\"https://docs.salesive.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/salesive/VvY6MQ7U6lHdcwJv/logo/black.png?fit=max\u0026auto=format\u0026n=VvY6MQ7U6lHdcwJv\u0026q=85\u0026s=5f950e29e4cd7ea06abc0929a6f665d9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.salesive.com#website\",\"name\":\"Salesive Docs\",\"url\":\"https://docs.salesive.com\",\"publisher\":{\"@id\":\"https://docs.salesive.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.salesive.com/api-reference/endpoint/library/get-library#webpage\",\"url\":\"https://docs.salesive.com/api-reference/endpoint/library/get-library\",\"name\":\"Get the shopper's library\",\"description\":\"Return every digital title the signed-in shopper holds in this store, with download links.\",\"dateModified\":\"2026-11-13T04:36:45.834Z\",\"isPartOf\":{\"@id\":\"https://docs.salesive.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.salesive.com/api-reference/endpoint/library/get-library#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.salesive.com/api-reference/endpoint/library/get-library#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Salesive Docs\",\"item\":\"https://docs.salesive.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get the shopper's library\",\"item\":\"https://docs.salesive.com/api-reference/endpoint/library/get-library\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.salesive.com/api-reference/endpoint/library/get-library#apireference\",\"headline\":\"Get the shopper's library\",\"name\":\"Get the shopper's library\",\"description\":\"Return every digital title the signed-in shopper holds in this store, with download links.\",\"url\":\"https://docs.salesive.com/api-reference/endpoint/library/get-library\",\"mainEntityOfPage\":{\"@id\":\"https://docs.salesive.com/api-reference/endpoint/library/get-library#webpage\"},\"dateModified\":\"2026-11-13T04:36:45.834Z\",\"publisher\":{\"@id\":\"https://docs.salesive.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.salesive.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Salesive Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Salesive Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/library/get-library.md","siteName":"Salesive Docs","nav":{"global":{"anchors":[{"anchor":"Salesive website","icon":"globe","href":"https://salesive.com"},{"anchor":"Support","icon":"envelope","href":"mailto:support@salesive.com"}]},"tabs":[{"tab":"Platform guides","pages":[{"title":"Platform guides","href":""}]},{"tab":"Building apps","pages":[{"title":"Building apps","href":"/apps/overview"}]},{"tab":"Apps API","pages":[{"title":"Apps API","href":"/apps-api/introduction"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Salesive Store API overview","href":"/api-reference/introduction"}]},{"group":"Authentication","pages":[{"title":"Create ghost user","openapi":"POST /auth/ghost","href":"/api-reference/endpoint/auth/create-ghost"},{"title":"Authenticate shopper","openapi":"POST /auth/authenticate","href":"/api-reference/endpoint/auth/authenticate"},{"title":"Resend verification code","openapi":"POST /auth/resend-otp","href":"/api-reference/endpoint/auth/resend-otp"},{"title":"Verify email","openapi":"POST /auth/verify","href":"/api-reference/endpoint/auth/verify"},{"title":"Check user exists","openapi":"POST /auth/check-user","href":"/api-reference/endpoint/auth/check-user"},{"title":"Get authenticated user","openapi":"GET /auth/me","href":"/api-reference/endpoint/auth/me"}]},{"group":"Banners","pages":[{"title":"List banners","openapi":"GET /banner","href":"/api-reference/endpoint/banners/get-all"}]},{"group":"Blogs","pages":[{"title":"List blogs","openapi":"GET /blogs","href":"/api-reference/endpoint/blogs/get-all"},{"title":"Get blog by ID or slug","openapi":"GET /blogs/{id}","href":"/api-reference/endpoint/blogs/get-by-id"}]},{"group":"Cart","pages":[{"title":"Get cart","openapi":"GET /cart","href":"/api-reference/endpoint/cart/get-cart"},{"title":"Add item to cart","openapi":"POST /cart","href":"/api-reference/endpoint/cart/add-item"},{"title":"Update cart item","openapi":"PATCH /cart/{productId}","href":"/api-reference/endpoint/cart/update-item"},{"title":"Update cart variant","openapi":"PATCH /cart/{productId}/{variantId}","href":"/api-reference/endpoint/cart/update-variant"},{"title":"Remove cart item","openapi":"DELETE /cart/{productId}","href":"/api-reference/endpoint/cart/remove-item"},{"title":"Remove cart variant","openapi":"DELETE /cart/{productId}/{variantId}","href":"/api-reference/endpoint/cart/remove-variant"},{"title":"Clear cart","openapi":"DELETE /cart","href":"/api-reference/endpoint/cart/clear-cart"}]},{"group":"Comments","pages":[{"title":"Create comment","openapi":"POST /comments","href":"/api-reference/endpoint/comments/create-comment"},{"title":"Reply to comment","openapi":"POST /comments","href":"/api-reference/endpoint/comments/reply-to-comment"},{"title":"Get product comments","openapi":"GET /comments/product/{productId}","href":"/api-reference/endpoint/comments/get-product-comments"},{"title":"Get replies","openapi":"GET /comments/replies/{commentId}","href":"/api-reference/endpoint/comments/get-replies"},{"title":"Like comment","openapi":"POST /comments/{commentId}/like","href":"/api-reference/endpoint/comments/like-comment"},{"title":"Dislike comment","openapi":"POST /comments/{commentId}/dislike","href":"/api-reference/endpoint/comments/dislike-comment"}]},{"group":"Country","pages":[{"title":"Get states by country","openapi":"GET /country/states","href":"/api-reference/endpoint/country/get-states"},{"title":"Get country by short name","openapi":"GET /country","href":"/api-reference/endpoint/country/get-country"},{"title":"Get cities by state","openapi":"GET /country/cities","href":"/api-reference/endpoint/country/get-cities"},{"title":"List countries","openapi":"GET /country/countries","href":"/api-reference/endpoint/country/get-countries"}]},{"group":"Coupons","pages":[{"title":"Verify coupon","openapi":"POST /coupons/verify","href":"/api-reference/endpoint/coupons/verify"},{"title":"Apply coupon to order","openapi":"POST /coupons/apply","href":"/api-reference/endpoint/coupons/apply"}]},{"group":"Digital","pages":[{"title":"Get the all-access pass","openapi":"api-reference/openapi.json GET /digital/pass","href":"/api-reference/endpoint/digital/get-pass"},{"title":"Get a free preview","openapi":"api-reference/openapi.json GET /digital-products/{id}/preview","href":"/api-reference/endpoint/digital/get-preview"}]},{"group":"Downloads","pages":[{"title":"Download a purchased file","openapi":"api-reference/openapi.json GET /downloads/{token}","href":"/api-reference/endpoint/downloads/download"},{"title":"Download a title with an all-access link","description":"Open one title of the all-access pass. One token covers the whole pass, so the title is named in the path.","openapi":"api-reference/openapi.json GET /downloads/{token}/{productId}","href":"/api-reference/endpoint/downloads/download-all-access"}]},{"group":"Library","pages":[{"title":"Get the shopper's library","openapi":"api-reference/openapi.json GET /library","href":"/api-reference/endpoint/library/get-library"},{"title":"Read a title online","description":"Get the page pictures of a PDF the signed-in shopper holds, to show in an in-page reader. This is how a 30-day pass is read, since it cannot be downloaded.","href":"/api-reference/endpoint/library/read-book"},{"title":"Turn auto-renew on or off","openapi":"api-reference/openapi.json POST /library/{entitlementId}/auto-renew","href":"/api-reference/endpoint/library/set-auto-renew"}]},{"group":"Newsletter","pages":[{"title":"Subscribe to newsletter","openapi":"POST /newsletter/subscribe","href":"/api-reference/endpoint/newsletter/subscribe"},{"title":"Check subscription","openapi":"GET /newsletter/check","href":"/api-reference/endpoint/newsletter/check-subscription"},{"title":"Update email","openapi":"PUT /newsletter/update-email","href":"/api-reference/endpoint/newsletter/update-email"},{"title":"Unsubscribe","openapi":"POST /newsletter/unsubscribe","href":"/api-reference/endpoint/newsletter/unsubscribe"}]},{"group":"Orders","pages":[{"title":"Create order from cart","openapi":"POST /orders/from-cart","href":"/api-reference/endpoint/orders/create-from-cart"},{"title":"List orders","openapi":"GET /orders","href":"/api-reference/endpoint/orders/list-orders"},{"title":"Get order by ID","openapi":"GET /orders/{id}","href":"/api-reference/endpoint/orders/get-order"},{"title":"Update an order","openapi":"PATCH /orders/{id}","href":"/api-reference/endpoint/orders/update-order"},{"title":"Add shipment to order","openapi":"POST /orders/add-shipment","href":"/api-reference/endpoint/orders/add-shipment"}]},{"group":"Payments","pages":[{"title":"Get shop payments","openapi":"GET /payments","href":"/api-reference/endpoint/payments/get-payments"},{"title":"Get payment config","openapi":"GET /payments/config/{provider}","href":"/api-reference/endpoint/payments/get-config"}]},{"group":"Products","pages":[{"title":"List products","openapi":"GET /products","href":"/api-reference/endpoint/products/get-all"},{"title":"Get product","openapi":"GET /products/{id}","href":"/api-reference/endpoint/products/get-by-id"},{"title":"Get add-ons","openapi":"GET /products/{id}/addons","href":"/api-reference/endpoint/products/get-addons"},{"title":"List categories","openapi":"GET /products/category","href":"/api-reference/endpoint/products/list-categories"},{"title":"Get category","openapi":"GET /products/categories/{category}","href":"/api-reference/endpoint/products/get-category"},{"title":"List products by category","openapi":"GET /products/category/{category}","href":"/api-reference/endpoint/products/list-by-category"}]},{"group":"Push Subscriptions","pages":[{"title":"Get VAPID public key","openapi":"GET /push-subscriptions/public-key","href":"/api-reference/endpoint/push-subscriptions/get-vapid-public-key"},{"title":"List subscriptions","openapi":"GET /push-subscriptions","href":"/api-reference/endpoint/push-subscriptions/list-subscriptions"},{"title":"Delete all subscriptions","openapi":"DELETE /push-subscriptions","href":"/api-reference/endpoint/push-subscriptions/delete-all-subscriptions"},{"title":"Delete subscription","openapi":"DELETE /push-subscriptions/{subscriptionId}","href":"/api-reference/endpoint/push-subscriptions/delete-subscription"},{"title":"Create/update subscription","openapi":"POST /push-subscriptions","href":"/api-reference/endpoint/push-subscriptions/create-update-subscription"}]},{"group":"Reviews","pages":[{"title":"Create review","openapi":"POST /reviews","href":"/api-reference/endpoint/reviews/create-review"},{"title":"Get product reviews","openapi":"GET /reviews/product/{productId}","href":"/api-reference/endpoint/reviews/get-product-reviews"},{"title":"Get shop reviews","openapi":"GET /reviews","href":"/api-reference/endpoint/reviews/get-shop-reviews"},{"title":"Get pending reviews","openapi":"GET /reviews/pending","href":"/api-reference/endpoint/reviews/get-pending-reviews"}]},{"group":"Shipping","pages":[{"title":"Get shipping options","openapi":"GET /shipping/options","href":"/api-reference/endpoint/shipping/get-options"},{"title":"Get shipments by order","openapi":"GET /shipping/shipments","href":"/api-reference/endpoint/shipping/get-shipments"}]},{"group":"Shipping address","pages":[{"title":"List shipping addresses","openapi":"GET /shipping-address","href":"/api-reference/endpoint/shipping-address/get-all"},{"title":"Get default shipping address","openapi":"GET /shipping-address/default","href":"/api-reference/endpoint/shipping-address/get-default"},{"title":"Create shipping address","openapi":"POST /shipping-address","href":"/api-reference/endpoint/shipping-address/create"},{"title":"Convert coordinates to address","openapi":"GET /shipping-address/coords-to-address","href":"/api-reference/endpoint/shipping-address/coords-to-address"},{"title":"Autocomplete address","openapi":"GET /shipping-address/autocomplete","href":"/api-reference/endpoint/shipping-address/autocomplete"}]},{"group":"Shop","pages":[{"title":"Get shop","openapi":"GET /shops","href":"/api-reference/endpoint/shop/get-shop"},{"title":"Get shop brand","openapi":"GET /shops/{shopId}/brand","href":"/api-reference/endpoint/shop/get-brand"}]},{"group":"User","pages":[{"title":"Get user profile","openapi":"GET /user","href":"/api-reference/endpoint/user/get-profile"},{"title":"Update user profile","openapi":"PATCH /user","href":"/api-reference/endpoint/user/update-profile"},{"title":"Add shipping address","openapi":"POST /user/address","href":"/api-reference/endpoint/user/add-address"},{"title":"Update shipping address","openapi":"PATCH /user/address/{addressId}","href":"/api-reference/endpoint/user/update-address"},{"title":"Delete shipping address","openapi":"DELETE /user/address/{addressId}","href":"/api-reference/endpoint/user/delete-address"},{"title":"Set default address","openapi":"PATCH /user/address/{addressId}/default","href":"/api-reference/endpoint/user/set-default-address"}]},{"group":"Wishlist","pages":[{"title":"Get wishlist","openapi":"GET /wishlist","href":"/api-reference/endpoint/wishlist/get-wishlist"},{"title":"Add item to wishlist","openapi":"POST /wishlist","href":"/api-reference/endpoint/wishlist/add-item"},{"title":"Remove item from wishlist","openapi":"DELETE /wishlist/{productId}","href":"/api-reference/endpoint/wishlist/remove-item"},{"title":"Clear wishlist","openapi":"DELETE /wishlist","href":"/api-reference/endpoint/wishlist/clear-wishlist"}]}]},{"tab":"Form Builder","pages":[{"title":"Form Builder","href":"/form-builder/introduction"}]}]},"basePath":"","title":"Get the shopper's library - Salesive Docs","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-D4yvBxwa.js","snippetPresets-CkhhQaIQ.js","utils-XnMGX2lF.js","style-to-object-BY3JEAdk.js","utils-CRXL1dwr.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DvwRKZnA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DYtgUc7n.js","_Uint8Array-D8z7zjjJ.js","isObject-FP1Yky1u.js","ApiExamples-RYQSJVS4.js","usePlaygroundInputsStore-k_R_BTDL.js","shallow-BwVhzryZ.js","isEqual-Cx5TQjMc.js","CodeSnippets-BDe2dS5N.js","CodeSnippet-C1QlaNYl.js","use-playground-group-access-DyQ_1IIe.js","Page-DQd9HN9r.js","api-description-markdown-BpDftTKT.js","DynamicMarkdown-CZT_WAnN.js","SectionHeading-K1iuDm9j.js","MethodPill-Dx3JIwHJ.js","getPastedJson-buPTdYs_.js","Check2Icon-DmMrzBYX.js","axios-CsQoIw0U.js","Markdown-erv2ryQz.js","AssistantPageLink-DJ01X1Sn.js","dist-D9mz3EIS.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}