Sessão temporária de checkout por QR Code antes da criação do Checkout
CheckoutSession registra o handshake de checkout por QR Code antes da criação do checkout. A sessão nasce sem Customer, expõe um QR Code temporário, é vinculada quando o cliente autenticado escaneia o código e só então pode confirmar uma venda por dinheiro ou crédito corporativo.
A sessão é criada por um canal autenticado de venda usando o User autenticado.
O app do cliente deve autenticar o Customer e vincular a sessão antes de qualquer confirmação de compra.
O canal que inicia a venda seleciona a Trip e paymentMethod; o app do cliente prepara o contexto necessário para emitir Ticket, como passageiro, itinerário, assento e crédito.
tripItineraryId, seatId, passengerDraft, requestedCreditAmount e preparedAt só são preenchidos depois que o Customer envia o contexto do ticket pelo app.
A Trip deve estar elegível para venda pelo fluxo de QR Code e o usuário autenticado deve estar autorizado para operá-la.
A sessão deve expirar em expiresAt; sessões expiradas ou canceladas não podem criar Checkout.
Apenas sessões vinculadas, preparadas, não expiradas, não canceladas e ainda não confirmadas podem ser confirmadas.
Quando paymentMethod = CREDIT_GRANT, a autorização e a validação de saldo acontecem no app do cliente. O canal de venda não seleciona crédito do Customer manualmente.
requestedCreditAmount é solicitação do Customer; o valor definitivo usado no checkout fica em Checkout, Order, Ticket e CreditLedgerEntry.
Quando paymentMethod = CASH, a confirmação significa que o dinheiro foi aceito e cria automaticamente um CashSettlementPENDING, já declarado e enviado.
A criação do CashSettlement é idempotente por checkoutSessionId; a mesma sessão não pode originar duas prestações.
A confirmação cria Checkout, Order, Ticket e as reservas de assento necessárias.
Depois da confirmação, confirmedAt é preenchido e o Checkout criado é retornado pelo fluxo de confirmação.
O QR Code não é estado do Checkout; o estado temporário do QR vive somente na CheckoutSession.
O status da sessão é calculado a partir dos timestamps e não deve ser persistido.
paymentMethod = CREDIT_GRANT aqui não adiciona CREDIT_GRANT em PaymentMethod. Crédito corporativo continua sendo modelado por CreditGrant e CreditLedgerEntry.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Documentação DEVMOB","colors":{"primary":"#16A34A","light":"#16A34A","dark":"#16A34A"},"logo":{"light":"https://mintcdn.com/oabus/6WNNfaMniuAzaFky/logo/light.svg?fit=max\u0026auto=format\u0026n=6WNNfaMniuAzaFky\u0026q=85\u0026s=5a95e5d31ed3b82367ec4bc217a2634b","dark":"https://mintcdn.com/oabus/6WNNfaMniuAzaFky/logo/dark.svg?fit=max\u0026auto=format\u0026n=6WNNfaMniuAzaFky\u0026q=85\u0026s=21c5b6705365ecd1374200b9592a7a52"},"favicon":"https://mintcdn.com/oabus/6WNNfaMniuAzaFky/favicon.svg?fit=max\u0026auto=format\u0026n=6WNNfaMniuAzaFky\u0026q=85\u0026s=ddc65954b132e2e652e6e0547311f5f1","navbar":{"links":[]},"contextual":{"options":["copy","view","claude","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"oabus","hasAudioNarration":false,"actualSubdomain":"oabus","customDomains":["docs.devmob.app.br"],"gitSource":{"type":"github","owner":"oabus-tech","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a53fb443fa2eb468be051ec","collectionId":"8800afe6-73b1-41e5-86ec-2700b4895783","schemaVersion":"v3"},"entitlements":{},"buildId":"6a53fb443fa2eb468be051ec:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":406},{"language":"default","tag":"OPS","count":185},{"language":"default","tag":"BKO","count":102},{"language":"default","tag":"Data Modelling","count":77},{"language":"default","tag":"Customer","count":75},{"language":"default","tag":"Events","count":68},{"language":"default","tag":"Domains","count":54},{"language":"default","tag":"Driver","count":47},{"language":"default","tag":"Operations","count":42},{"language":"default","tag":"Billing","count":32}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"data-modelling/sales/checkout-session","slug":"/data-modelling/sales/checkout-session","pageMetadata":{"title":"CheckoutSession","description":"Sessão temporária de checkout por QR Code antes da criação do Checkout","href":"/data-modelling/sales/checkout-session"},"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: \"Sessão temporária de checkout por QR Code antes da criação do Checkout\"\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`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`CheckoutSession`}),` registra o handshake de checkout por QR Code antes da criação do checkout. A sessão nasce sem Customer, expõe um QR Code temporário, é vinculada quando o cliente autenticado escaneia o código e só então pode confirmar uma venda por dinheiro ou crédito corporativo.`]}),`\n`,_jsx(Heading,{level:`2`,id:`campos`,children:`Campos`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Descrição`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`checkoutSessionId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UUID`})}),_jsx(_components.td,{children:`Identificador único`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tripId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UUID`})}),_jsx(_components.td,{children:`Trip selecionada para a venda`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tripItineraryId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UUID?`})}),_jsx(_components.td,{children:`Itinerário escolhido pelo Customer antes da confirmação`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`seatId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UUID?`})}),_jsx(_components.td,{children:`Assento escolhido pelo Customer antes da confirmação`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`paymentMethod`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CheckoutSessionPaymentMethod`})}),_jsx(_components.td,{children:`Forma escolhida para o checkout`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`qrTokenHash`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`String`})}),_jsx(_components.td,{children:`Hash do token usado no QR Code; o token bruto não é persistido`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`passengerDraft`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Json?`})}),_jsx(_components.td,{children:`Passageiro informado pelo Customer antes da criação do Passenger definitivo`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`requestedCreditAmount`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Int?`})}),_jsx(_components.td,{children:`Valor de crédito solicitado pelo Customer para esta sessão`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expiresAt`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DateTime`})}),_jsx(_components.td,{children:`Data limite de validade do QR Code`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`linkedAt`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DateTime?`})}),_jsx(_components.td,{children:`Data em que o Customer foi vinculado`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`preparedAt`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DateTime?`})}),_jsx(_components.td,{children:`Data em que o Customer preparou o contexto do ticket`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`confirmedAt`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DateTime?`})}),_jsx(_components.td,{children:`Data em que a venda foi confirmada`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`canceledBy`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UUID?`})}),_jsx(_components.td,{children:`Usuário que cancelou a sessão, quando aplicável`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`canceledAt`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DateTime?`})}),_jsx(_components.td,{children:`Data de cancelamento`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`createdBy`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UUID?`})}),_jsx(_components.td,{children:`Usuário que criou o registro, quando aplicável`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`createdAt`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DateTime`})}),_jsx(_components.td,{children:`Data de criação`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updatedBy`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UUID?`})}),_jsx(_components.td,{children:`Usuário que fez a última atualização, quando aplicável`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`updatedAt`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DateTime`})}),_jsx(_components.td,{children:`Data da última atualização`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`relacionamentos`,children:`Relacionamentos`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Relaciona-se com `,_jsx(_components.a,{href:`/data-modelling/operations/trip`,children:`Trip`}),` por `,_jsx(_components.code,{children:`tripId`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Relaciona-se com `,_jsx(_components.a,{href:`/data-modelling/operations/trip-itinerary`,children:`TripItinerary`}),` por `,_jsx(_components.code,{children:`tripItineraryId`}),`, depois da preparação pelo app do cliente.`]}),`\n`,_jsxs(_components.li,{children:[`Relaciona-se com `,_jsx(_components.a,{href:`/data-modelling/fleet/seat`,children:`Seat`}),` por `,_jsx(_components.code,{children:`seatId`}),`, depois da preparação pelo app do cliente.`]}),`\n`,_jsxs(_components.li,{children:[`Relaciona-se 1:1 com `,_jsx(_components.a,{href:`/data-modelling/billing/cash-settlement`,children:`CashSettlement`}),` quando a sessão é confirmada com `,_jsx(_components.code,{children:`paymentMethod = CASH`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A sessão não persiste `,_jsx(_components.code,{children:`driverId`}),`, `,_jsx(_components.code,{children:`customerId`}),` ou `,_jsx(_components.code,{children:`checkoutId`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`O usuário que cria ou cancela a sessão é auditado por `,_jsx(_components.code,{children:`createdBy`}),` e `,_jsx(_components.code,{children:`canceledBy`}),`, sem transformar a sessão em entidade de Driver.`]}),`\n`,_jsx(_components.li,{children:`O Customer é resolvido pelo User autenticado no Customer API.`}),`\n`,_jsx(_components.li,{children:`O Checkout criado pela confirmação é retorno do fluxo de confirmação.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`regras-de-negócio`,children:`Regras de Negócio`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A sessão é criada por um canal autenticado de venda usando o User autenticado.`}),`\n`,_jsx(_components.li,{children:`O app do cliente deve autenticar o Customer e vincular a sessão antes de qualquer confirmação de compra.`}),`\n`,_jsxs(_components.li,{children:[`O canal que inicia a venda seleciona a Trip e `,_jsx(_components.code,{children:`paymentMethod`}),`; o app do cliente prepara o contexto necessário para emitir Ticket, como passageiro, itinerário, assento e crédito.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`tripItineraryId`}),`, `,_jsx(_components.code,{children:`seatId`}),`, `,_jsx(_components.code,{children:`passengerDraft`}),`, `,_jsx(_components.code,{children:`requestedCreditAmount`}),` e `,_jsx(_components.code,{children:`preparedAt`}),` só são preenchidos depois que o Customer envia o contexto do ticket pelo app.`]}),`\n`,_jsx(_components.li,{children:`A Trip deve estar elegível para venda pelo fluxo de QR Code e o usuário autenticado deve estar autorizado para operá-la.`}),`\n`,_jsxs(_components.li,{children:[`A sessão deve expirar em `,_jsx(_components.code,{children:`expiresAt`}),`; sessões expiradas ou canceladas não podem criar Checkout.`]}),`\n`,_jsx(_components.li,{children:`Apenas sessões vinculadas, preparadas, não expiradas, não canceladas e ainda não confirmadas podem ser confirmadas.`}),`\n`,_jsxs(_components.li,{children:[`Quando `,_jsx(_components.code,{children:`paymentMethod = CREDIT_GRANT`}),`, a autorização e a validação de saldo acontecem no app do cliente. O canal de venda não seleciona crédito do Customer manualmente.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`requestedCreditAmount`}),` é solicitação do Customer; o valor definitivo usado no checkout fica em Checkout, Order, Ticket e CreditLedgerEntry.`]}),`\n`,_jsxs(_components.li,{children:[`Quando `,_jsx(_components.code,{children:`paymentMethod = CASH`}),`, a confirmação significa que o dinheiro foi aceito e cria automaticamente um `,_jsx(_components.a,{href:`/data-modelling/billing/cash-settlement`,children:`CashSettlement`}),` `,_jsx(_components.code,{children:`PENDING`}),`, já declarado e enviado.`]}),`\n`,_jsxs(_components.li,{children:[`A criação do CashSettlement é idempotente por `,_jsx(_components.code,{children:`checkoutSessionId`}),`; a mesma sessão não pode originar duas prestações.`]}),`\n`,_jsxs(_components.li,{children:[`A confirmação cria `,_jsx(_components.a,{href:`/data-modelling/sales/checkout`,children:`Checkout`}),`, `,_jsx(_components.a,{href:`/data-modelling/sales/order`,children:`Order`}),`, `,_jsx(_components.a,{href:`/data-modelling/sales/ticket`,children:`Ticket`}),` e as reservas de assento necessárias.`]}),`\n`,_jsxs(_components.li,{children:[`Depois da confirmação, `,_jsx(_components.code,{children:`confirmedAt`}),` é preenchido e o Checkout criado é retornado pelo fluxo de confirmação.`]}),`\n`,_jsx(_components.li,{children:`O QR Code não é estado do Checkout; o estado temporário do QR vive somente na CheckoutSession.`}),`\n`,_jsx(_components.li,{children:`O status da sessão é calculado a partir dos timestamps e não deve ser persistido.`}),`\n`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`paymentMethod = CREDIT_GRANT`}),` aqui não adiciona `,_jsx(_components.code,{children:`CREDIT_GRANT`}),` em PaymentMethod. Crédito corporativo continua sendo modelado por CreditGrant e CreditLedgerEntry.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`enums`,children:`Enums`}),`\n`,_jsx(Heading,{level:`3`,id:`checkoutsessionpaymentmethod`,children:`CheckoutSessionPaymentMethod`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Valor`}),_jsx(_components.th,{children:`Descrição`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CASH`})}),_jsx(_components.td,{children:`Venda em dinheiro`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CREDIT_GRANT`})}),_jsx(_components.td,{children:`Venda paga com crédito corporativo autorizado pelo Customer`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`checkoutsessioncomputedstatus`,children:`CheckoutSessionComputedStatus`}),`\n`,_jsx(_components.p,{children:`Status virtual calculado em repository/query, sem campo persistido.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Valor`}),_jsx(_components.th,{children:`Descrição`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CREATED`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`linkedAt`}),`, `,_jsx(_components.code,{children:`preparedAt`}),`, `,_jsx(_components.code,{children:`confirmedAt`}),` e `,_jsx(_components.code,{children:`canceledAt`}),` vazios, com `,_jsx(_components.code,{children:`expiresAt`}),` futuro`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`LINKED`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`linkedAt`}),` preenchido, sem preparação/confirmação/cancelamento e com `,_jsx(_components.code,{children:`expiresAt`}),` futuro`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PREPARED`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`preparedAt`}),` preenchido, sem confirmação/cancelamento e com `,_jsx(_components.code,{children:`expiresAt`}),` futuro`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CONFIRMED`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`confirmedAt`}),` preenchido`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXPIRED`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`expiresAt`}),` no passado antes da confirmação`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CANCELED`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`canceledAt`}),` preenchido antes da confirmação`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,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:`25`,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:` \"checkoutSessionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01981255-3c7a-7bd4-bb5f-8b47bc4dce91\"`}),_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:` \"tripId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0197a80f-2d8f-7710-b243-b67fb477a1c0\"`}),_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:` \"tripItineraryId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0197a810-87ce-7b60-9d80-660d0ee1c413\"`}),_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:` \"seatId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0197a80a-bc30-70c3-954f-657c74277162\"`}),_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:` \"paymentMethod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CASH\"`}),_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:` \"qrTokenHash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sha256:8f34d4b7c7b3a331a7e3f7c6f8fdb9e2637a7d94e95d2f7c22b8c411d4815c4f\"`}),_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:` \"passengerDraft\"`}),_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:`\"Mariana Costa\"`}),_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:` \"document\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"12345678909\"`}),_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:` \"documentType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CPF\"`}),_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:` \"birthDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1992-04-18\"`})]}),`\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:` \"requestedCreditAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`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:` \"expiresAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-07-08T12:15: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:` \"linkedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-07-08T12:10:21.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:` \"preparedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-07-08T12:10:45.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:` \"confirmedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-07-08T12:11:08.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:` \"canceledBy\"`}),_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:` \"canceledAt\"`}),_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:` \"createdBy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0197a805-0910-7eb2-bae7-90a13df2a9b2\"`}),_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:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-07-08T12:10: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:` \"updatedBy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0197a805-0910-7eb2-bae7-90a13df2a9b2\"`}),_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:` \"updatedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-07-08T12:11:08.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}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":"CheckoutSession","description":"Sessão temporária de checkout por QR Code antes da criação do Checkout","href":"/data-modelling/sales/checkout-session"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Campos","slug":"campos","depth":2,"children":[]},{"title":"Relacionamentos","slug":"relacionamentos","depth":2,"children":[]},{"title":"Regras de Negócio","slug":"regras-de-negócio","depth":2,"children":[]},{"title":"Enums","slug":"enums","depth":2,"children":[{"title":"CheckoutSessionPaymentMethod","slug":"checkoutsessionpaymentmethod","depth":3,"children":[]},{"title":"CheckoutSessionComputedStatus","slug":"checkoutsessioncomputedstatus","depth":3,"children":[]}]},{"title":"Example","slug":"example","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"oabus","siteName":"Documentação DEVMOB","title":"CheckoutSession - Documentação DEVMOB","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-10T02:11:14.964Z","originalFileLocation":"data-modelling/sales/checkout-session.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=\"Sessão temporária de checkout por QR Code antes da criação do Checkout\">\u003cmeta data-mint-head name=\"application-name\" content=\"Documentação DEVMOB\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/oabus/AztXEd71ATDiAZjZ/_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/oabus/AztXEd71ATDiAZjZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/oabus/AztXEd71ATDiAZjZ/_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/oabus/AztXEd71ATDiAZjZ/_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/oabus/AztXEd71ATDiAZjZ/_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/oabus/AztXEd71ATDiAZjZ/_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/oabus/AztXEd71ATDiAZjZ/_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/oabus/AztXEd71ATDiAZjZ/_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/oabus/AztXEd71ATDiAZjZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"CheckoutSession - Documentação DEVMOB\">\u003cmeta data-mint-head property=\"og:description\" content=\"Sessão temporária de checkout por QR Code antes da criação do Checkout\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Documentação DEVMOB\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.devmob.app.br/data-modelling/sales/checkout-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://oabus.mintlify.app/_mintlify/api/og/v2?division=Sales\u0026amp;title=CheckoutSession\u0026amp;description=Sess%C3%A3o+tempor%C3%A1ria+de+checkout+por+QR+Code+antes+da+cria%C3%A7%C3%A3o+do+Checkout\u0026amp;theme=c5b83a977d32855ea1281647\u0026amp;signature=01b7e24419af72a29deb0048b3e9aaa5e2c87af5b48c7f1334810ee0956277db\">\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=\"CheckoutSession - Documentação DEVMOB\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Sessão temporária de checkout por QR Code antes da criação do Checkout\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://oabus.mintlify.app/_mintlify/api/og/v2?division=Sales\u0026amp;title=CheckoutSession\u0026amp;description=Sess%C3%A3o+tempor%C3%A1ria+de+checkout+por+QR+Code+antes+da+cria%C3%A7%C3%A3o+do+Checkout\u0026amp;theme=c5b83a977d32855ea1281647\u0026amp;signature=01b7e24419af72a29deb0048b3e9aaa5e2c87af5b48c7f1334810ee0956277db\">\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/oabus/AztXEd71ATDiAZjZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Documentação DEVMOB\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.devmob.app.br/data-modelling/sales/checkout-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/data-modelling/sales/checkout-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.devmob.app.br/#organization\",\"name\":\"Documentação DEVMOB\",\"url\":\"https://docs.devmob.app.br\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/oabus/6WNNfaMniuAzaFky/logo/light.svg?fit=max\u0026auto=format\u0026n=6WNNfaMniuAzaFky\u0026q=85\u0026s=5a95e5d31ed3b82367ec4bc217a2634b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.devmob.app.br#website\",\"name\":\"Documentação DEVMOB\",\"url\":\"https://docs.devmob.app.br\",\"publisher\":{\"@id\":\"https://docs.devmob.app.br/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.devmob.app.br/data-modelling/sales/checkout-session#webpage\",\"url\":\"https://docs.devmob.app.br/data-modelling/sales/checkout-session\",\"name\":\"CheckoutSession\",\"description\":\"Sessão temporária de checkout por QR Code antes da criação do Checkout\",\"dateModified\":\"2026-07-10T02:11:14.964Z\",\"isPartOf\":{\"@id\":\"https://docs.devmob.app.br#website\"},\"breadcrumb\":{\"@id\":\"https://docs.devmob.app.br/data-modelling/sales/checkout-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.devmob.app.br/data-modelling/sales/checkout-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sales\",\"item\":\"https://docs.devmob.app.br/data-modelling/sales/checkout\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CheckoutSession\",\"item\":\"https://docs.devmob.app.br/data-modelling/sales/checkout-session\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.devmob.app.br/data-modelling/sales/checkout-session#article\",\"headline\":\"CheckoutSession\",\"name\":\"CheckoutSession\",\"description\":\"Sessão temporária de checkout por QR Code antes da criação do Checkout\",\"url\":\"https://docs.devmob.app.br/data-modelling/sales/checkout-session\",\"mainEntityOfPage\":{\"@id\":\"https://docs.devmob.app.br/data-modelling/sales/checkout-session#webpage\"},\"dateModified\":\"2026-07-10T02:11:14.964Z\",\"publisher\":{\"@id\":\"https://docs.devmob.app.br/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.devmob.app.br#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Documentação DEVMOB\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Documentação DEVMOB","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/overview"}]},{"tab":"Domains","pages":[{"title":"Domains","href":"/domain/overview"}]},{"tab":"Data Modelling","groups":[{"group":"Data Modelling","pages":[{"title":"Overview","href":"/data-modelling/overview"},{"title":"ERD","href":"/data-modelling/erd"}]},{"group":"Authorization","pages":[{"title":"Role","href":"/data-modelling/authorization/role"},{"title":"RolePermission","href":"/data-modelling/authorization/role-permission"}]},{"group":"Benefits","pages":[{"title":"BenefitDocumentValidation","href":"/data-modelling/benefits/benefit-document-validation"},{"title":"BenefitUsageHistory","href":"/data-modelling/benefits/benefit-usage-history"},{"title":"FareBenefitCategory","href":"/data-modelling/benefits/fare-benefit-category"},{"title":"PassengerBenefitRequest","href":"/data-modelling/benefits/passenger-benefit-request"}]},{"group":"Billing","pages":[{"title":"CooperativePaymentSettings","href":"/data-modelling/billing/cooperative-payment-settings"},{"title":"CashSettlement","href":"/data-modelling/billing/cash-settlement"},{"title":"Payment","href":"/data-modelling/billing/payment"},{"title":"PaymentMethod","href":"/data-modelling/billing/payment-method"},{"title":"Receivable","href":"/data-modelling/billing/receivable"},{"title":"Transfer","href":"/data-modelling/billing/transfer"},{"title":"TransportOperatorSubsidySettlement","href":"/data-modelling/billing/transport-operator-subsidy-settlement"}]},{"group":"Communication","pages":[{"title":"Notification","href":"/data-modelling/communication/notification"},{"title":"NotificationRecipient","href":"/data-modelling/communication/notification-recipient"}]},{"group":"Credit Grant","pages":[{"title":"CompanyCreditAccount","href":"/data-modelling/credit-grant/company-credit-account"},{"title":"CompanyCreditPurchase","href":"/data-modelling/credit-grant/company-credit-purchase"},{"title":"CreditGrant","href":"/data-modelling/credit-grant/credit-grant"},{"title":"CreditLedgerEntry","href":"/data-modelling/credit-grant/credit-ledger-entry"}]},{"group":"Export","pages":[{"title":"ExportJob","href":"/data-modelling/data-transfer/export-job"},{"title":"ExportResource","href":"/data-modelling/data-transfer/export-resource"},{"title":"ExportScheduled","href":"/data-modelling/data-transfer/export-scheduled"}]},{"group":"Fleet","pages":[{"title":"Driver","href":"/data-modelling/fleet/driver"},{"title":"DriverTransportOperator","href":"/data-modelling/fleet/driver-transport-operator"},{"title":"Seat","href":"/data-modelling/fleet/seat"},{"title":"SeatType","href":"/data-modelling/fleet/seat-type"},{"title":"Vehicle","href":"/data-modelling/fleet/vehicle"},{"title":"VehicleTransportOperator","href":"/data-modelling/fleet/vehicle-transport-operator"}]},{"group":"Identity","pages":[{"title":"Customer","href":"/data-modelling/identity/customer"},{"title":"CustomerAddress","href":"/data-modelling/identity/customer-address"},{"title":"OTP","href":"/data-modelling/identity/otp"},{"title":"Profile","href":"/data-modelling/identity/profile"},{"title":"User","href":"/data-modelling/identity/user"},{"title":"UserSession","href":"/data-modelling/identity/user-session"}]},{"group":"Observability","pages":[{"title":"AuditLog","href":"/data-modelling/observability/audit-log"}]},{"group":"Operations","pages":[{"title":"Point","href":"/data-modelling/operations/point"},{"title":"Route","href":"/data-modelling/operations/route"},{"title":"RouteApproval","href":"/data-modelling/operations/route-approval"},{"title":"TransportOperatorQuotaUsage","href":"/data-modelling/operations/transport-operator-quota-usage"},{"title":"TransportOperatorRoute","href":"/data-modelling/operations/transport-operator-route"},{"title":"TransportOperatorRoutePolicy","href":"/data-modelling/operations/transport-operator-route-policy"},{"title":"Trip","href":"/data-modelling/operations/trip"},{"title":"TripEvent","href":"/data-modelling/operations/trip-event"},{"title":"TripItinerary","href":"/data-modelling/operations/trip-itinerary"},{"title":"TripReview","href":"/data-modelling/operations/trip-review"},{"title":"TripSchedule","href":"/data-modelling/operations/trip-schedule"},{"title":"TripScheduleItinerary","href":"/data-modelling/operations/trip-schedule-itinerary"},{"title":"TripScheduleStop","href":"/data-modelling/operations/trip-schedule-stop"},{"title":"TripSeatSegment","href":"/data-modelling/operations/trip-seat-segment"},{"title":"TripStop","href":"/data-modelling/operations/trip-stop"},{"title":"TripTracking","href":"/data-modelling/operations/trip-tracking"},{"title":"TripTrackingPoint","href":"/data-modelling/operations/trip-tracking-point"}]},{"group":"Sales","pages":[{"title":"Checkout","description":"Agrupador comercial de uma compra que pode gerar pedidos por cooperativa","href":"/data-modelling/sales/checkout"},{"title":"CheckoutSession","href":"/data-modelling/sales/checkout-session"},{"title":"Order","description":"Pedido de uma cooperativa dentro de um checkout","href":"/data-modelling/sales/order"},{"title":"Passenger","href":"/data-modelling/sales/passenger"},{"title":"Ticket","href":"/data-modelling/sales/ticket"},{"title":"TicketActivity","href":"/data-modelling/sales/ticket-activity"}]},{"group":"Support","pages":[{"title":"SupportCase","href":"/data-modelling/support/support-case"},{"title":"SupportCaseAssignment","href":"/data-modelling/support/support-case-assignment"},{"title":"SupportCaseAttachment","href":"/data-modelling/support/support-case-attachment"},{"title":"SupportCaseCategory","href":"/data-modelling/support/support-case-category"},{"title":"SupportCaseMessage","href":"/data-modelling/support/support-case-message"},{"title":"SupportCaseSatisfactionRating","href":"/data-modelling/support/support-case-satisfaction-rating"}]},{"group":"Tenant","pages":[{"title":"Company","href":"/data-modelling/tenant/company"},{"title":"Cooperative","href":"/data-modelling/tenant/cooperative"},{"title":"Employee","href":"/data-modelling/tenant/employee"},{"title":"Invite","href":"/data-modelling/tenant/invite"},{"title":"Membership","href":"/data-modelling/tenant/membership"},{"title":"Organization","href":"/data-modelling/tenant/organization"},{"title":"OrganizationAddress","href":"/data-modelling/tenant/organization-address"},{"title":"TransportOperator","href":"/data-modelling/tenant/transport-operator"}]},{"group":"Webhooks","pages":[{"title":"Webhook","href":"/data-modelling/webhooks/webhook"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/customer/overview"}]},{"tab":"Events","pages":[{"title":"Events","href":"/events/overview"}]},{"tab":"Scheduler","pages":[{"title":"Scheduler","href":"/scheduler/overview"}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks/overview"}]}]},"basePath":"","title":"CheckoutSession - Documentação DEVMOB","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":[],"chunks":[]}