Create Order: First create an order using POST /orders (status: placed)
Submit Payment: Call this endpoint with payment details (card or bank account)
Payment Processing: The payment is processed with status processing
Payment Result:
Success: Payment status becomes succeeded, order status updates to approved
Failure: Payment status becomes failed, order remains placed and can be retried
Receipt: After successful payment, retrieve the receipt from the order details
Security Note: Sensitive payment data (like CVC codes) are writeOnly and never returned in responses. Card numbers and account numbers are masked when read.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Modern PetstoreAPI Docs","colors":{"primary":"#9333EA","light":"#C084FC","dark":"#7C3AED"},"logo":{"light":"https://assets.apidog.com/app/project-icon/custom/20251217/66161baa-c10c-4c41-9146-fbaddf93bd86.png","dark":"https://assets.apidog.com/app/project-icon/custom/20251217/66161baa-c10c-4c41-9146-fbaddf93bd86.png"},"favicon":"https://assets.apidog.com/app/project-icon/custom/20251217/66161baa-c10c-4c41-9146-fbaddf93bd86.png","navbar":{"links":[{"label":"Support","href":"mailto:hi@mintlify.com"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.mintlify.com"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"]},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Home","icon":"book-open-cover","href":"https://petstoreapi.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"anakinlabs","hasAudioNarration":false,"actualSubdomain":"anakinlabs","customDomains":["docs2.petstoreapi.com"],"gitSource":{"type":"github","owner":"petstoreapi","repo":"petstoreapi-docs-mintilify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9456100312e79e6151590:success","clientVersion":"0.0.4124","searchFilterCounts":[{"language":"default","tag":"Modern PetstoreAPI","count":19},{"language":"default","tag":"Classic PetstoreAPI","count":19},{"language":"default","tag":"Guides","count":15},{"language":"default","tag":"Protocol Guides","count":12},{"language":"default","tag":"pet","count":8},{"language":"default","tag":"user","count":7},{"language":"default","tag":"Pet","count":6},{"language":"default","tag":"Store","count":5},{"language":"default","tag":"store","count":4},{"language":"default","tag":"User","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":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":"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":"workos-onboarding","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":"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":"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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/payments/pay-order","slug":"/api-reference/payments/pay-order","pageMetadata":{"title":"Pay Order","description":"Process payment for an existing order.\n\n## Payment Workflow\n\nPayment processing follows this workflow:\n\n1. **Create Order**: First create an order using `POST /orders` (status: `placed`)\n2. **Submit Payment**: Call this endpoint with payment details (card or bank account)\n3. **Payment Processing**: The payment is processed with status `processing`\n4. **Payment Result**:\n - **Success**: Payment status becomes `succeeded`, order status updates to `approved`\n - **Failure**: Payment status becomes `failed`, order remains `placed` and can be retried\n5. **Receipt**: After successful payment, retrieve the receipt from the order details\n\n**Security Note**: Sensitive payment data (like CVC codes) are `writeOnly` and never returned in responses. Card numbers and account numbers are masked when read.","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json post /orders/{id}/payment","href":"/api-reference/payments/pay-order","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n h2: \"h2\",\n li: \"li\",\n ol: \"ol\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Process payment for an existing order.\"\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Payment Workflow\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Payment processing follows this workflow:\"\n }), \"\\n\", _jsxs(_components.ol, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Create Order\"\n }), \": First create an order using \", _jsx(_components.code, {\n children: \"POST /orders\"\n }), \" (status: \", _jsx(_components.code, {\n children: \"placed\"\n }), \")\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Submit Payment\"\n }), \": Call this endpoint with payment details (card or bank account)\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Payment Processing\"\n }), \": The payment is processed with status \", _jsx(_components.code, {\n children: \"processing\"\n })]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Payment Result\"\n }), \":\", \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Success\"\n }), \": Payment status becomes \", _jsx(_components.code, {\n children: \"succeeded\"\n }), \", order status updates to \", _jsx(_components.code, {\n children: \"approved\"\n })]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Failure\"\n }), \": Payment status becomes \", _jsx(_components.code, {\n children: \"failed\"\n }), \", order remains \", _jsx(_components.code, {\n children: \"placed\"\n }), \" and can be retried\"]\n }), \"\\n\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Receipt\"\n }), \": After successful payment, retrieve the receipt from the order details\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Security Note\"\n }), \": Sensitive payment data (like CVC codes) are \", _jsx(_components.code, {\n children: \"writeOnly\"\n }), \" and never returned in responses. Card numbers and account numbers are masked when read.\"]\n })]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Pay Order","description":"Process payment for an existing order.\n\n## Payment Workflow\n\nPayment processing follows this workflow:\n\n1. **Create Order**: First create an order using `POST /orders` (status: `placed`)\n2. **Submit Payment**: Call this endpoint with payment details (card or bank account)\n3. **Payment Processing**: The payment is processed with status `processing`\n4. **Payment Result**:\n - **Success**: Payment status becomes `succeeded`, order status updates to `approved`\n - **Failure**: Payment status becomes `failed`, order remains `placed` and can be retried\n5. **Receipt**: After successful payment, retrieve the receipt from the order details\n\n**Security Note**: Sensitive payment data (like CVC codes) are `writeOnly` and never returned in responses. Card numbers and account numbers are masked when read.","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json post /orders/{id}/payment","href":"/api-reference/payments/pay-order","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Pay Order","deprecated":false,"description":"Process payment for an existing order.\n\n## Payment Workflow\n\nPayment processing follows this workflow:\n\n1. **Create Order**: First create an order using `POST /orders` (status: `placed`)\n2. **Submit Payment**: Call this endpoint with payment details (card or bank account)\n3. **Payment Processing**: The payment is processed with status `processing`\n4. **Payment Result**:\n - **Success**: Payment status becomes `succeeded`, order status updates to `approved`\n - **Failure**: Payment status becomes `failed`, order remains `placed` and can be retried\n5. **Receipt**: After successful payment, retrieve the receipt from the order details\n\n**Security Note**: Sensitive payment data (like CVC codes) are `writeOnly` and never returned in responses. Card numbers and account numbers are masked when read.","operationId":"createOrderPayment","tags":["Payments"],"parameters":["fc0f1bc8-c926-48ca-98f2-d1e350305780"],"requestBody":"5cca2350-b42a-416b-bfd7-81b4dd650f89","responses":{"201":"f48c5cd6-207b-41cb-b09e-1d93af6ba733","400":"17bb1236-e26a-4c5e-9fde-a1f5c49e3b49","404":"73ecd2d6-1f89-4382-8516-fc017b9f2c82","422":"1ff72347-278a-4656-863c-11f1407df9df"},"security":[],"method":"post","type":"path","servers":["24cc1bfc-2570-42c6-9ff0-a085d7467e2a"],"path":"/orders/{id}/payment","baseUrlOptions":["https://api.petstoreapi.com/v1"],"title":"Pay Order","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"fc0f1bc8-c926-48ca-98f2-d1e350305780":{"name":"id","in":"path","description":"Unique identifier for the order","required":true,"example":"019b4139-1234-7abc-8def-123456789abc","schema":{"type":"string","format":"uuid","isRequired":true,"description":"Unique identifier for the order","uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"requestBody":{"content":{"application/json":{"schema":{"description":"Order payment information with polymorphic payment sources","type":"object","required":["id","amount","currency","source","status"],"properties":{"amount":{"description":"Payment amount (positive decimal)","type":"string","examples":["49.99","100.50"],"isRequired":true,"uniqueKey":"amount","typeLabel":"string"},"currency":{"description":"Three-letter ISO 4217 currency code (uppercase)","type":"string","enum":["USD","EUR","GBP","CAD","AUD"],"default":"USD","isRequired":true,"uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"source":{"oneOf":[{"type":"object","title":"Bank Card","description":"Payment source (card or bank account)","required":["object","name","number","expMonth","expYear"],"properties":{"object":{"type":"string","const":"card","description":"Discriminator value for card payments","isRequired":true,"uniqueKey":"source.oneOf.0.object","typeLabel":"string"},"name":{"type":"string","description":"Cardholder name","examples":["Jane Doe","John Smith"],"isRequired":true,"uniqueKey":"source.oneOf.0.name","typeLabel":"string"},"number":{"type":"string","description":"Card number (masked when reading)","pattern":"^[0-9*]{13,19}$","examples":["4242424242424242","************4242"],"isRequired":true,"uniqueKey":"source.oneOf.0.number","typeLabel":"string"},"expMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Expiration month (1-12)","isRequired":true,"uniqueKey":"source.oneOf.0.expMonth","typeLabel":"integer"},"expYear":{"type":"integer","minimum":2024,"description":"Expiration year (4 digits)","isRequired":true,"uniqueKey":"source.oneOf.0.expYear","typeLabel":"integer"},"cvc":{"type":"string","description":"Card security code","pattern":"^[0-9]{3,4}$","writeOnly":true,"uniqueKey":"source.oneOf.0.cvc","typeLabel":"string"},"billingAddress":{"type":"object","properties":{"line1":{"type":"string","writeOnly":true,"uniqueKey":"source.oneOf.0.billingAddress.line1","typeLabel":"string"},"line2":{"type":"string","writeOnly":true,"uniqueKey":"source.oneOf.0.billingAddress.line2","typeLabel":"string"},"city":{"type":"string","uniqueKey":"source.oneOf.0.billingAddress.city","typeLabel":"string"},"state":{"type":"string","uniqueKey":"source.oneOf.0.billingAddress.state","typeLabel":"string"},"postalCode":{"type":"string","uniqueKey":"source.oneOf.0.billingAddress.postalCode","typeLabel":"string"},"country":{"type":"string","pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2 country code","uniqueKey":"source.oneOf.0.billingAddress.country","typeLabel":"string"}},"unevaluatedProperties":false,"uniqueKey":"source.oneOf.0.billingAddress","typeLabel":"object"}},"isRequired":true,"uniqueKey":"source.oneOf.0","typeLabel":"Bank Card · object"},{"type":"object","title":"Bank Account","description":"Payment source (card or bank account)","required":["object","accountHolderName","accountNumber","routingNumber","accountType"],"properties":{"object":{"type":"string","const":"bank_account","description":"Discriminator value for bank account payments","isRequired":true,"uniqueKey":"source.oneOf.1.object","typeLabel":"string"},"accountHolderName":{"type":"string","description":"Name of account holder","isRequired":true,"uniqueKey":"source.oneOf.1.accountHolderName","typeLabel":"string"},"accountNumber":{"type":"string","description":"Bank account number (masked when reading)","pattern":"^[0-9*]{4,17}$","isRequired":true,"uniqueKey":"source.oneOf.1.accountNumber","typeLabel":"string"},"routingNumber":{"type":"string","description":"Bank routing number","pattern":"^[0-9]{9}$","isRequired":true,"uniqueKey":"source.oneOf.1.routingNumber","typeLabel":"string"},"accountType":{"type":"string","enum":["CHECKING","SAVINGS"],"description":"Type of bank account","isRequired":true,"uniqueKey":"source.oneOf.1.accountType","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"source.oneOf.1","typeLabel":"Bank Account · object"}],"isRequired":true,"uniqueKey":"source","typeLabel":"Bank Card · object | Bank Account · object"}},"unevaluatedProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Card":{"title":"Card","value":{"amount":"49.99","currency":"GBP","source":{"object":"card","name":"J. Doe","number":"4242424242424242","cvc":"123","expMonth":12,"expYear":2025,"addressLine1":"123 Fake Street","addressLine2":"4th Floor","addressCity":"London","addressCountry":"gb","addressPostCode":"N12 9XX"}}},"Bank":{"title":"Bank","value":{"amount":"100.50","currency":"GBP","source":{"object":"bank_account","name":"J. Doe","number":"00012345","sortCode":"000123","accountType":"individual","bankName":"Starling Bank","country":"gb"}}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"f48c5cd6-207b-41cb-b09e-1d93af6ba733":{"description":"Payment successful","content":{"application/json":{"schema":{"description":"Order payment information with polymorphic payment sources","type":"object","required":["id","amount","currency","source","status"],"properties":{"id":{"description":"Unique payment identifier","type":"string","format":"uuid","readOnly":true,"examples":["2e3b4f5a-6b7c-8d9e-0f1a-2b3c4d5e6f7a"],"isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"amount":{"description":"Payment amount (positive decimal)","type":"string","examples":["49.99","100.50"],"isRequired":true,"uniqueKey":"amount","typeLabel":"string"},"currency":{"description":"Three-letter ISO 4217 currency code (uppercase)","type":"string","enum":["USD","EUR","GBP","CAD","AUD"],"default":"USD","isRequired":true,"uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"source":{"oneOf":[{"type":"object","title":"Bank Card","description":"Payment source (card or bank account)","required":["object","name","number","expMonth","expYear"],"properties":{"object":{"type":"string","const":"card","description":"Discriminator value for card payments","isRequired":true,"uniqueKey":"source.oneOf.0.object","typeLabel":"string"},"name":{"type":"string","description":"Cardholder name","examples":["Jane Doe","John Smith"],"isRequired":true,"uniqueKey":"source.oneOf.0.name","typeLabel":"string"},"number":{"type":"string","description":"Card number (masked when reading)","pattern":"^[0-9*]{13,19}$","examples":["4242424242424242","************4242"],"isRequired":true,"uniqueKey":"source.oneOf.0.number","typeLabel":"string"},"expMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Expiration month (1-12)","isRequired":true,"uniqueKey":"source.oneOf.0.expMonth","typeLabel":"integer"},"expYear":{"type":"integer","minimum":2024,"description":"Expiration year (4 digits)","isRequired":true,"uniqueKey":"source.oneOf.0.expYear","typeLabel":"integer"},"brand":{"type":"string","enum":["VISA","MASTERCARD","AMEX","DISCOVER","DINERS","JCB","UNIONPAY"],"readOnly":true,"description":"Card brand","uniqueKey":"source.oneOf.0.brand","typeLabel":"enum\u003cstring>"},"last4":{"type":"string","pattern":"^[0-9]{4}$","readOnly":true,"description":"Last 4 digits","uniqueKey":"source.oneOf.0.last4","typeLabel":"string"},"billingAddress":{"type":"object","properties":{"city":{"type":"string","uniqueKey":"source.oneOf.0.billingAddress.city","typeLabel":"string"},"state":{"type":"string","uniqueKey":"source.oneOf.0.billingAddress.state","typeLabel":"string"},"postalCode":{"type":"string","uniqueKey":"source.oneOf.0.billingAddress.postalCode","typeLabel":"string"},"country":{"type":"string","pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2 country code","uniqueKey":"source.oneOf.0.billingAddress.country","typeLabel":"string"}},"unevaluatedProperties":false,"uniqueKey":"source.oneOf.0.billingAddress","typeLabel":"object"}},"isRequired":true,"uniqueKey":"source.oneOf.0","typeLabel":"Bank Card · object"},{"type":"object","title":"Bank Account","description":"Payment source (card or bank account)","required":["object","accountHolderName","accountNumber","routingNumber","accountType"],"properties":{"object":{"type":"string","const":"bank_account","description":"Discriminator value for bank account payments","isRequired":true,"uniqueKey":"source.oneOf.1.object","typeLabel":"string"},"accountHolderName":{"type":"string","description":"Name of account holder","isRequired":true,"uniqueKey":"source.oneOf.1.accountHolderName","typeLabel":"string"},"accountNumber":{"type":"string","description":"Bank account number (masked when reading)","pattern":"^[0-9*]{4,17}$","isRequired":true,"uniqueKey":"source.oneOf.1.accountNumber","typeLabel":"string"},"routingNumber":{"type":"string","description":"Bank routing number","pattern":"^[0-9]{9}$","isRequired":true,"uniqueKey":"source.oneOf.1.routingNumber","typeLabel":"string"},"accountType":{"type":"string","enum":["CHECKING","SAVINGS"],"description":"Type of bank account","isRequired":true,"uniqueKey":"source.oneOf.1.accountType","typeLabel":"enum\u003cstring>"},"bankName":{"type":"string","readOnly":true,"description":"Name of the bank","uniqueKey":"source.oneOf.1.bankName","typeLabel":"string"},"last4":{"type":"string","pattern":"^[0-9]{4}$","readOnly":true,"description":"Last 4 digits of account number","uniqueKey":"source.oneOf.1.last4","typeLabel":"string"}},"isRequired":true,"uniqueKey":"source.oneOf.1","typeLabel":"Bank Account · object"}],"isRequired":true,"uniqueKey":"source","typeLabel":"Bank Card · object | Bank Account · object"},"status":{"description":"Payment status","type":"string","enum":["PENDING","PROCESSING","SUCCEEDED","FAILED","CANCELLED"],"readOnly":true,"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Payment creation timestamp","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"}},"unevaluatedProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"1":{"title":"1","value":{"id":"2e3b4f5a-6b7c-8d9e-0f1a-2b3c4d5e6f7a","amount":"49.99","currency":"GBP","source":{"object":"card","name":"J. Doe","number":"************4242","cvc":"123","expMonth":12,"expYear":2025,"addressCountry":"gb","addressPostCode":"N12 9XX"},"status":"succeeded"}},"2":{"title":"2","value":{"id":"2e3b4f5a-6b7c-8d9e-0f1a-2b3c4d5e6f7a","amount":"100.50","currency":"GBP","source":{"object":"bank_account","name":"J. Doe","accountType":"individual","number":"*********2345","sortCode":"000123","bankName":"Starling Bank","country":"gb"},"status":"succeeded"}}},"exampleType":"examples"}},"exampleType":"examples"},"17bb1236-e26a-4c5e-9fde-a1f5c49e3b49":{"description":"Bad request - Invalid parameters","headers":{"RateLimit-Limit":{"description":"The maximum number of requests allowed in the current time window","schema":{"type":"integer"},"example":100},"RateLimit-Remaining":{"description":"The number of requests remaining in the current time window","schema":{"type":"integer"},"example":95},"RateLimit-Reset":{"description":"The time at which the current rate limit window resets (Unix timestamp)","schema":{"type":"integer"},"example":1702648800}},"content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 Problem Details for HTTP APIs","required":["type","title","status"],"properties":{"type":{"type":"string","format":"uri","description":"A URI reference that identifies the problem type","examples":["https://petstoreapi.com/errors/not-found","https://petstoreapi.com/errors/validation-error"],"isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short, human-readable summary of the problem","examples":["Resource Not Found","Validation Error"],"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code","examples":[404,400,422],"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"A human-readable explanation specific to this occurrence","examples":["The requested pet with ID '123' was not found"],"uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","format":"uri","description":"A URI reference that identifies the specific occurrence","examples":["/v1/pets/123"],"uniqueKey":"instance","typeLabel":"string\u003curi>"},"errors":{"type":"array","description":"Detailed validation errors (for 422 responses)","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","description":"The field that failed validation","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","description":"Description of the validation error","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"}},"unevaluatedProperties":false,"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"unevaluatedProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"invalid-parameter":{"title":"invalid-parameter","value":{"type":"https://petstoreapi.com/errors/bad-request","title":"Bad Request","status":400,"detail":"Invalid value for parameter 'status'. Must be one of: available, pending, sold.","instance":"/pets"}}},"exampleType":"examples"}},"exampleType":"examples"},"73ecd2d6-1f89-4382-8516-fc017b9f2c82":{"description":"Resource not found","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 Problem Details for HTTP APIs","required":["type","title","status"],"properties":{"type":{"type":"string","format":"uri","description":"A URI reference that identifies the problem type","examples":["https://petstoreapi.com/errors/not-found","https://petstoreapi.com/errors/validation-error"],"isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short, human-readable summary of the problem","examples":["Resource Not Found","Validation Error"],"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code","examples":[404,400,422],"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"A human-readable explanation specific to this occurrence","examples":["The requested pet with ID '123' was not found"],"uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","format":"uri","description":"A URI reference that identifies the specific occurrence","examples":["/v1/pets/123"],"uniqueKey":"instance","typeLabel":"string\u003curi>"},"errors":{"type":"array","description":"Detailed validation errors (for 422 responses)","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","description":"The field that failed validation","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","description":"Description of the validation error","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"}},"unevaluatedProperties":false,"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"unevaluatedProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"pet-not-found":{"title":"pet-not-found","value":{"type":"https://petstoreapi.com/errors/not-found","title":"Not Found","status":404,"detail":"The requested pet with ID '123' was not found.","instance":"/pets/123"}}},"exampleType":"examples"}},"exampleType":"examples"},"1ff72347-278a-4656-863c-11f1407df9df":{"description":"Unprocessable entity - Validation errors","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 Problem Details for HTTP APIs","required":["type","title","status"],"properties":{"type":{"type":"string","format":"uri","description":"A URI reference that identifies the problem type","examples":["https://petstoreapi.com/errors/not-found","https://petstoreapi.com/errors/validation-error"],"isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short, human-readable summary of the problem","examples":["Resource Not Found","Validation Error"],"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code","examples":[404,400,422],"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"detail":{"type":"string","description":"A human-readable explanation specific to this occurrence","examples":["The requested pet with ID '123' was not found"],"uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","format":"uri","description":"A URI reference that identifies the specific occurrence","examples":["/v1/pets/123"],"uniqueKey":"instance","typeLabel":"string\u003curi>"},"errors":{"type":"array","description":"Detailed validation errors (for 422 responses)","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","description":"The field that failed validation","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","description":"Description of the validation error","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code","uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"}},"unevaluatedProperties":false,"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"unevaluatedProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"validation-errors":{"title":"validation-errors","value":{"type":"https://petstoreapi.com/errors/validation-error","title":"Validation Error","status":422,"detail":"The request body contains validation errors.","instance":"/pets","errors":[{"field":"name","message":"Pet name is required","code":"required_field"},{"field":"status","message":"Invalid status value","code":"invalid_format"}]}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{},"servers":{"24cc1bfc-2570-42c6-9ff0-a085d7467e2a":{"url":"https://api.petstoreapi.com/v1","description":"Production server"}}},"originalFileLocation":"api-reference/modern-petstore-3.1.openapi.json"},"subdomain":"anakinlabs","siteName":"Modern PetstoreAPI Docs","title":"Pay Order - Modern PetstoreAPI Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T09:42:09.693Z","originalFileLocation":"api-reference/payments/pay-order.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=\"Process payment for an existing order. ## Payment Workflow Payment processing follows this workflow: 1. Create Order: First create an order using POST /orders (status: placed) 2. Submit Payment: Call this endpoint with payment details (card or bank account) 3. Payment Processing: The payment is processed with status processing 4. Payment Result: - Success: Payment status becomes succeeded, order status updates to approved - Failure: Payment status becomes failed, order remains placed and can be retried 5. Receipt: After successful payment, retrieve the receipt from the order details Security Note: Sensitive payment data (like CVC codes) are writeOnly and never returned in responses. Card numbers and account numbers are masked when read.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Modern PetstoreAPI Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://assets.apidog.com/app/project-icon/custom/20251217/66161baa-c10c-4c41-9146-fbaddf93bd86.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://assets.apidog.com/app/project-icon/custom/20251217/66161baa-c10c-4c41-9146-fbaddf93bd86.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://assets.apidog.com/app/project-icon/custom/20251217/66161baa-c10c-4c41-9146-fbaddf93bd86.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://assets.apidog.com/app/project-icon/custom/20251217/66161baa-c10c-4c41-9146-fbaddf93bd86.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"Pay Order - Modern PetstoreAPI Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Process payment for an existing order. ## Payment Workflow Payment processing follows this workflow: 1. Create Order: First create an order using POST /orders (status: placed) 2. Submit Payment: Call this endpoint with payment details (card or bank account) 3. Payment Processing: The payment is processed with status processing 4. Payment Result: - Success: Payment status becomes succeeded, order status updates to approved - Failure: Payment status becomes failed, order remains placed and can be retried 5. Receipt: After successful payment, retrieve the receipt from the order details Security Note: Sensitive payment data (like CVC codes) are writeOnly and never returned in responses. Card numbers and account numbers are masked when read.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Modern PetstoreAPI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs2.petstoreapi.com/api-reference/payments/pay-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://anakinlabs.mintlify.site/_mintlify/api/og/v2?division=Payments\u0026amp;title=Pay+Order\u0026amp;description=Process+payment+for+an+existing+order.%0A%0A%23%23+Payment+Workflow%0A%0APayment+processing+follows+this+workflow%3A%0A%0A1.+**Create+Order**%3A+First+create+an+order+using+%60POST+%2F\u0026amp;theme=04240fbb63cd3deb54f01e13\u0026amp;signature=0ad9120ff7d3d788a3e3e311da1c2b7aa4ad729fa85ab334b4267451a8e624e6\">\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=\"Pay Order - Modern PetstoreAPI Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Process payment for an existing order. ## Payment Workflow Payment processing follows this workflow: 1. Create Order: First create an order using POST /orders (status: placed) 2. Submit Payment: Call this endpoint with payment details (card or bank account) 3. Payment Processing: The payment is processed with status processing 4. Payment Result: - Success: Payment status becomes succeeded, order status updates to approved - Failure: Payment status becomes failed, order remains placed and can be retried 5. Receipt: After successful payment, retrieve the receipt from the order details Security Note: Sensitive payment data (like CVC codes) are writeOnly and never returned in responses. Card numbers and account numbers are masked when read.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://anakinlabs.mintlify.site/_mintlify/api/og/v2?division=Payments\u0026amp;title=Pay+Order\u0026amp;description=Process+payment+for+an+existing+order.%0A%0A%23%23+Payment+Workflow%0A%0APayment+processing+follows+this+workflow%3A%0A%0A1.+**Create+Order**%3A+First+create+an+order+using+%60POST+%2F\u0026amp;theme=04240fbb63cd3deb54f01e13\u0026amp;signature=0ad9120ff7d3d788a3e3e311da1c2b7aa4ad729fa85ab334b4267451a8e624e6\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/anakinlabs/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Modern PetstoreAPI Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9333EA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs2.petstoreapi.com/api-reference/payments/pay-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/payments/pay-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs2.petstoreapi.com/#organization\",\"name\":\"Modern PetstoreAPI Docs\",\"url\":\"https://docs2.petstoreapi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://assets.apidog.com/app/project-icon/custom/20251217/66161baa-c10c-4c41-9146-fbaddf93bd86.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs2.petstoreapi.com#website\",\"name\":\"Modern PetstoreAPI Docs\",\"url\":\"https://docs2.petstoreapi.com\",\"publisher\":{\"@id\":\"https://docs2.petstoreapi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs2.petstoreapi.com/api-reference/payments/pay-order#webpage\",\"url\":\"https://docs2.petstoreapi.com/api-reference/payments/pay-order\",\"name\":\"Pay Order\",\"description\":\"Process payment for an existing order. ## Payment Workflow Payment processing follows this workflow: 1. Create Order: First create an order using POST /orders (status: placed) 2. Submit Payment: Call this endpoint with payment details (card or bank account) 3. Payment Processing: The payment is processed with status processing 4. Payment Result: - Success: Payment status becomes succeeded, order status updates to approved - Failure: Payment status becomes failed, order remains placed and can be retried 5. Receipt: After successful payment, retrieve the receipt from the order details Security Note: Sensitive payment data (like CVC codes) are writeOnly and never returned in responses. Card numbers and account numbers are masked when read.\",\"dateModified\":\"2026-01-06T09:42:09.693Z\",\"isPartOf\":{\"@id\":\"https://docs2.petstoreapi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs2.petstoreapi.com/api-reference/payments/pay-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs2.petstoreapi.com/api-reference/payments/pay-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Modern PetstoreAPI Docs\",\"item\":\"https://docs2.petstoreapi.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pay Order\",\"item\":\"https://docs2.petstoreapi.com/api-reference/payments/pay-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs2.petstoreapi.com/api-reference/payments/pay-order#apireference\",\"headline\":\"Pay Order\",\"name\":\"Pay Order\",\"description\":\"Process payment for an existing order. ## Payment Workflow Payment processing follows this workflow: 1. Create Order: First create an order using POST /orders (status: placed) 2. Submit Payment: Call this endpoint with payment details (card or bank account) 3. Payment Processing: The payment is processed with status processing 4. Payment Result: - Success: Payment status becomes succeeded, order status updates to approved - Failure: Payment status becomes failed, order remains placed and can be retried 5. Receipt: After successful payment, retrieve the receipt from the order details Security Note: Sensitive payment data (like CVC codes) are writeOnly and never returned in responses. Card numbers and account numbers are masked when read.\",\"url\":\"https://docs2.petstoreapi.com/api-reference/payments/pay-order\",\"mainEntityOfPage\":{\"@id\":\"https://docs2.petstoreapi.com/api-reference/payments/pay-order#webpage\"},\"dateModified\":\"2026-01-06T09:42:09.693Z\",\"publisher\":{\"@id\":\"https://docs2.petstoreapi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs2.petstoreapi.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Modern PetstoreAPI Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Modern PetstoreAPI Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/payments/pay-order.md","siteName":"Modern PetstoreAPI Docs","nav":{"global":{"anchors":[{"anchor":"Home","icon":"book-open-cover","href":"https://petstoreapi.com/"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"Modern PetstoreAPI","groups":[{"group":"Pet","pages":[{"title":"Get Pet","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json get /pets/{id}","href":"/api-reference/pet/get-pet"},{"title":"Update Pet","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json put /pets/{id}","href":"/api-reference/pet/update-pet"},{"title":"Delete Pet","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json delete /pets/{id}","href":"/api-reference/pet/delete-pet"},{"title":"List Pets","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json get /pets","href":"/api-reference/pet/list-pets"},{"title":"Create Pet","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json post /pets","href":"/api-reference/pet/create-pet"},{"title":"Upload Pet Image","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json post /pets/{id}/images","href":"/api-reference/pet/upload-pet-image"}]},{"group":"Chat","pages":[{"title":"Create Chat Completion","description":"Creates a model response for a chat conversation with the Pet Adoption Advisor AI. Supports streaming responses using Server-Sent Events (SSE).\n\n## Pet Adoption Advisor\n\nOur AI assistant helps users:\n- Get personalized pet recommendations\n- Learn about pet care and adoption process\n- Answer questions about specific pets\n- Provide breed information and compatibility advice\n\n## Streaming Mode\n\nWhen `stream: true`, the response is sent as Server-Sent Events (SSE), with each token delivered incrementally. This provides a better user experience for longer responses.\n\n### Stream Format\n\nEach chunk is sent as:\n```\ndata: {\"id\":\"chatcmpl_abc\",\"object\":\"chat.completion.chunk\",\"choices\":[{\"delta\":{\"content\":\"Hello\"},\"index\":0}]}\n\n```\n\nThe stream ends with:\n```\ndata: [DONE]\n\n```\n\n## Non-Streaming Mode\n\nWhen `stream: false` or omitted, returns a complete response object.","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json post /chat/completions","href":"/api-reference/chat/create-chat-completion"}]},{"group":"Payments","pages":[{"title":"Pay Order","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json post /orders/{id}/payment","href":"/api-reference/payments/pay-order"}]},{"group":"Store","pages":[{"title":"List Inventory","description":"Returns a mapping of status codes to quantities.","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json get /inventories","href":"/api-reference/store/list-inventory"},{"title":"Create Order","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json post /orders","href":"/api-reference/store/create-order"},{"title":"Get Order","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json get /orders/{id}","href":"/api-reference/store/get-order"},{"title":"Callback Example","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json post /orders/{id}","href":"/api-reference/store/callback-example"},{"title":"Delete Order","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json delete /orders/{id}","href":"/api-reference/store/delete-order"}]},{"group":"User","pages":[{"title":"Create user.","deprecated":null,"version":null,"openapi":"api-reference/classic-petstore-3.0.openapi.json post /user","href":"/api-reference/user/create-user"},{"title":"Get User","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json get /users/{id}","href":"/api-reference/user/get-user"},{"title":"Update User","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json put /users/{id}","href":"/api-reference/user/update-user"},{"title":"Delete User","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json delete /users/{id}","href":"/api-reference/user/delete-user"},{"title":"Create Token (Login)","deprecated":false,"version":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json post /auth/tokens","href":"/api-reference/user/create-token-login"}]},{"group":"Webhooks","pages":[{"title":"Order status changed event","version":null,"deprecated":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json webhook orderStatusChanged","href":"/api-reference/webhooks/order-status-changed-event"},{"title":"Payment succeeded event","version":null,"deprecated":null,"openapi":"api-reference/modern-petstore-3.1.openapi.json webhook paymentSucceeded","href":"/api-reference/webhooks/payment-succeeded-event"}]}]},{"tab":"Classic PetstoreAPI","pages":[{"title":"Classic PetstoreAPI","href":"/api-reference/pet/update-an-existing-pet"}]}]},"basePath":"","title":"Pay Order - Modern PetstoreAPI Docs","buildId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","deploymentId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CDiBsYGW.js","utils-KF9rPlmF.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C26urKTX.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BdjmJAC1.js","snippetPresets-3IpDBjt3.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-D4x_2vvo.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BIWdc5Pa.js","shallow-LQqfiMNd.js","getApiPlaygroundDisplay-DryzlOZG.js","CodeSnippet-tcJujU4r.js","CodeSnippets-BHp0nVLL.js","Page-1CZdsdAn.js","getPastedJson-DU-1ayUv.js","icon-CZK2hPr4.js","MethodPill-DOaqmTFC.js","DuplicateIcon-B5-nUxxl.js","createIcon-CDP_U77G.js","DynamicMarkdown-GHvayGOn.js","SectionHeading-BYvpkmUD.js","axios-vUo_bRtp.js","Markdown-uxhlayGT.js","clsx-B35qUV0p.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BvrGG8gU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CAf0yVYe.js"]}