{
"error": {
"code": "invalid_api_key",
"message": "The API key is invalid, revoked, or expired."
}
}
{
"error": {
"code": "insufficient_scope",
"message": "This API key does not have the required scope."
}
}
{
"error": {
"code": "validation_failed",
"message": "The attention field is required.",
"fields": {
"attention": [
"The attention field is required."
]
}
}
}
Quotations
Create a quotation
Creates a draft quotation. The request body is the same as for an invoice, without work_id.
Requires the documents:write scope.
{
"error": {
"code": "invalid_api_key",
"message": "The API key is invalid, revoked, or expired."
}
}
{
"error": {
"code": "insufficient_scope",
"message": "This API key does not have the required scope."
}
}
{
"error": {
"code": "validation_failed",
"message": "The attention field is required.",
"fields": {
"attention": [
"The attention field is required."
]
}
}
}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"BeanRails","colors":{"primary":"#e63946","light":"#f87171","dark":"#e63946"},"logo":{"light":"https://mintcdn.com/bean-rails/aersrqnfsnXWFgKp/logo/beanrails.png?fit=max\u0026auto=format\u0026n=aersrqnfsnXWFgKp\u0026q=85\u0026s=59834d15582b2afc555f9f332844b53c","dark":"https://mintcdn.com/bean-rails/aersrqnfsnXWFgKp/logo/beanrails.png?fit=max\u0026auto=format\u0026n=aersrqnfsnXWFgKp\u0026q=85\u0026s=59834d15582b2afc555f9f332844b53c"},"favicon":"https://mintcdn.com/bean-rails/aersrqnfsnXWFgKp/favicon.png?fit=max\u0026auto=format\u0026n=aersrqnfsnXWFgKp\u0026q=85\u0026s=f3ae0fa7813d867f2ea9c6a3b88d5153","navbar":{"links":[{"href":"mailto:support@beanrails.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.beanrails.com"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bean-rails","hasAudioNarration":false,"actualSubdomain":"bean-rails","customDomains":["api-docs.beanrails.com"],"gitSource":{"type":"github","owner":"alex-shum-cw","repo":"beanrails-public-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae18dc2b52ab2decbda34f9"},"chroma":{"latestBuiltDeploymentHistoryId":"6ae19c7157e72f17a84a914d","collectionId":"1ae7657f-aee0-41b9-ab88-3c6d0a1ef004","liveDeploymentHistoryId":"6ae19c7157e72f17a84a914d","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae19de30ab3938238c89d46","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"API reference","count":26},{"language":"default","tag":"Works","count":6},{"language":"default","tag":"Guides","count":5},{"language":"default","tag":"Contacts","count":4},{"language":"default","tag":"Invoices","count":4},{"language":"default","tag":"Quotations","count":4},{"language":"default","tag":"Essentials","count":3},{"language":"default","tag":"Contact addresses","count":3},{"language":"default","tag":"Invoice payments","count":3},{"language":"default","tag":"Getting started","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"editor-agent-model-picker","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/quotations/create-a-quotation","slug":"/api-reference/quotations/create-a-quotation","pageMetadata":{"title":"Create a quotation","description":"Creates a draft quotation. The request body is the same as for an invoice, without `work_id`.\nRequires the `documents:write` scope.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /quotations","href":"/api-reference/quotations/create-a-quotation","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Creates a draft quotation. The request body is the same as for an invoice, without \", _jsx(_components.code, {\n children: \"work_id\"\n }), \".\\nRequires the \", _jsx(_components.code, {\n children: \"documents:write\"\n }), \" scope.\"]\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":"Create a quotation","description":"Creates a draft quotation. The request body is the same as for an invoice, without `work_id`.\nRequires the `documents:write` scope.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /quotations","href":"/api-reference/quotations/create-a-quotation","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createQuotation","tags":["Quotations"],"summary":"Create a quotation","description":"Creates a draft quotation. The request body is the same as for an invoice, without `work_id`.\nRequires the `documents:write` scope.\n","requestBody":"17054303-0a3b-4aa9-830c-6b194966a031","responses":{"200":"97ce6950-a68a-463c-b4f5-bb4937b8a1dc","401":"bd8f7e34-092f-4707-8ca6-19ed1e4c06cf","403":"208ff850-5a4a-4901-8fae-298c2f5a8d18","422":"4d46538d-6b05-423a-bb1d-e5fbc35e30c7","429":"28de8f89-beef-4f9b-b50f-fb141e673ce9"},"method":"post","type":"path","servers":["154004c9-e4f6-442a-8e2b-c0d42ed2a198"],"security":["0ecb1668-118c-4938-a713-ce130e4d64dd"],"path":"/quotations","baseUrlOptions":["https://{host}/api/public/v1"],"title":"Create a quotation","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["contact_id","document_date","currency","tax_selection","items","addresses"],"properties":{"contact_id":{"type":"integer","isRequired":true,"uniqueKey":"contact_id","typeLabel":"integer"},"document_date":{"type":"string","format":"date","isRequired":true,"uniqueKey":"document_date","typeLabel":"string\u003cdate>"},"currency":{"type":"string","description":"A currency code set up in the workspace, for example `MYR`.","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"tax_selection":{"type":"string","enum":["all","none","custom"],"description":"`all` applies every tax, `none` applies no tax and `custom` applies the taxes in `custom_taxes`.","isRequired":true,"uniqueKey":"tax_selection","typeLabel":"enum\u003cstring>"},"items":{"type":"array","minItems":1,"items":{"type":"object","required":["item_type","quantity","is_enabled"],"properties":{"item_type":{"type":"string","enum":["product","custom"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].item_type","typeLabel":"enum\u003cstring>"},"quantity":{"type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].quantity","typeLabel":"integer"},"is_enabled":{"type":"boolean","isRequired":true,"uniqueKey":"\\items.items.[INDEX].is_enabled","typeLabel":"boolean"},"product_id":{"type":"integer","description":"Required for `product` items.","uniqueKey":"\\items.items.[INDEX].product_id","typeLabel":"integer"},"product_name":{"type":"string","description":"Required for `custom` items.","uniqueKey":"\\items.items.[INDEX].product_name","typeLabel":"string"},"product_description":{"type":"string","uniqueKey":"\\items.items.[INDEX].product_description","typeLabel":"string"},"bundle_name":{"type":"string","uniqueKey":"\\items.items.[INDEX].bundle_name","typeLabel":"string"},"unit_amount":{"type":"number","description":"Price per unit in major currency units. Required for `custom` items.","uniqueKey":"\\items.items.[INDEX].unit_amount","typeLabel":"number"}},"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"object[]"},"addresses":{"type":"object","required":["billing"],"properties":{"billing":{"type":"object","description":"At least one of `attention`, `email` or `company_name` is required.","properties":{"attention":{"type":"string","uniqueKey":"addresses.billing.attention","typeLabel":"string"},"email":{"type":"string","format":"email","uniqueKey":"addresses.billing.email","typeLabel":"string\u003cemail>"},"company_name":{"type":"string","uniqueKey":"addresses.billing.company_name","typeLabel":"string"},"mobile_no":{"type":"string","uniqueKey":"addresses.billing.mobile_no","typeLabel":"string"},"office_no":{"type":"string","uniqueKey":"addresses.billing.office_no","typeLabel":"string"},"address1":{"type":"string","uniqueKey":"addresses.billing.address1","typeLabel":"string"},"address2":{"type":"string","uniqueKey":"addresses.billing.address2","typeLabel":"string"},"city":{"type":"string","uniqueKey":"addresses.billing.city","typeLabel":"string"},"state":{"type":"string","uniqueKey":"addresses.billing.state","typeLabel":"string"},"postcode":{"type":"string","uniqueKey":"addresses.billing.postcode","typeLabel":"string"},"country":{"type":"string","uniqueKey":"addresses.billing.country","typeLabel":"string"}},"isRequired":true,"uniqueKey":"addresses.billing","typeLabel":"object"},"shipping":{"type":"object","description":"At least one of `attention`, `email` or `company_name` is required.","properties":{"attention":{"type":"string","uniqueKey":"addresses.shipping.attention","typeLabel":"string"},"email":{"type":"string","format":"email","uniqueKey":"addresses.shipping.email","typeLabel":"string\u003cemail>"},"company_name":{"type":"string","uniqueKey":"addresses.shipping.company_name","typeLabel":"string"},"mobile_no":{"type":"string","uniqueKey":"addresses.shipping.mobile_no","typeLabel":"string"},"office_no":{"type":"string","uniqueKey":"addresses.shipping.office_no","typeLabel":"string"},"address1":{"type":"string","uniqueKey":"addresses.shipping.address1","typeLabel":"string"},"address2":{"type":"string","uniqueKey":"addresses.shipping.address2","typeLabel":"string"},"city":{"type":"string","uniqueKey":"addresses.shipping.city","typeLabel":"string"},"state":{"type":"string","uniqueKey":"addresses.shipping.state","typeLabel":"string"},"postcode":{"type":"string","uniqueKey":"addresses.shipping.postcode","typeLabel":"string"},"country":{"type":"string","uniqueKey":"addresses.shipping.country","typeLabel":"string"}},"uniqueKey":"addresses.shipping","typeLabel":"object"}},"isRequired":true,"uniqueKey":"addresses","typeLabel":"object"},"document_due_date":{"type":"string","format":"date","uniqueKey":"document_due_date","typeLabel":"string\u003cdate>"},"document_number":{"type":"string","description":"Required only when the workspace does not number documents automatically.","uniqueKey":"document_number","typeLabel":"string"},"custom_taxes":{"type":"array","items":{"type":"integer","uniqueKey":"custom_taxes.items.[INDEX]","typeLabel":"integer"},"description":"Tax IDs. Required when `tax_selection` is `custom`.","uniqueKey":"custom_taxes","typeLabel":"integer[]"},"user_id":{"type":"integer","description":"The user to assign the document to. Defaults to the key owner. Changing it needs the `assign_user` permission.","uniqueKey":"user_id","typeLabel":"integer"},"work_id":{"type":"integer","description":"Invoices only. Links the invoice to a work that has no invoice yet.","uniqueKey":"work_id","typeLabel":"integer"},"discount_code":{"type":"string","uniqueKey":"discount_code","typeLabel":"string"},"custom_discounts":{"type":"array","items":{"type":"object","required":["name","discount_type","amount"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"custom_discounts.items.[INDEX].name","typeLabel":"string"},"discount_type":{"type":"string","isRequired":true,"uniqueKey":"custom_discounts.items.[INDEX].discount_type","typeLabel":"string"},"amount":{"type":"number","isRequired":true,"uniqueKey":"custom_discounts.items.[INDEX].amount","typeLabel":"number"},"description":{"type":"string","uniqueKey":"custom_discounts.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"custom_discounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"custom_discounts","typeLabel":"object[]"},"is_use_shipping":{"type":"boolean","description":"When false, the billing address is also used for shipping.","uniqueKey":"is_use_shipping","typeLabel":"boolean"},"payment_terms":{"type":"string","uniqueKey":"payment_terms","typeLabel":"string"},"remarks":{"type":"string","uniqueKey":"remarks","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"contact_id":123,"document_date":"2023-12-25","currency":"\u003cstring>","items":[{"quantity":123,"is_enabled":true,"product_id":123,"product_name":"\u003cstring>","product_description":"\u003cstring>","bundle_name":"\u003cstring>","unit_amount":123}],"addresses":{"billing":{"attention":"\u003cstring>","email":"jsmith@example.com","company_name":"\u003cstring>","mobile_no":"\u003cstring>","office_no":"\u003cstring>","address1":"\u003cstring>","address2":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","postcode":"\u003cstring>","country":"\u003cstring>"},"shipping":{"attention":"\u003cstring>","email":"jsmith@example.com","company_name":"\u003cstring>","mobile_no":"\u003cstring>","office_no":"\u003cstring>","address1":"\u003cstring>","address2":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","postcode":"\u003cstring>","country":"\u003cstring>"}},"document_due_date":"2023-12-25","document_number":"\u003cstring>","custom_taxes":[123],"user_id":123,"work_id":123,"discount_code":"\u003cstring>","custom_discounts":[{"name":"\u003cstring>","discount_type":"\u003cstring>","amount":123,"description":"\u003cstring>"}],"is_use_shipping":true,"payment_terms":"\u003cstring>","remarks":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"97ce6950-a68a-463c-b4f5-bb4937b8a1dc":{"description":"The created quotation.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"integer","uniqueKey":"data.id","typeLabel":"integer"},"document_type":{"type":"string","enum":["invoice","quotation"],"uniqueKey":"data.document_type","typeLabel":"enum\u003cstring>"},"document_number":{"type":"string","uniqueKey":"data.document_number","typeLabel":"string"},"document_date":{"type":"string","uniqueKey":"data.document_date","typeLabel":"string"},"document_due_date":{"oneOf":[{"type":"string","uniqueKey":"data.document_due_date.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.document_due_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.document_due_date","typeLabel":"string | null"},"status":{"type":"string","description":"Invoices: `draft`, `unpaid`, `partially_paid`, `paid`, `voided`, `refunded`.\nQuotations: `draft`, `pending`, `invoiced`, `completed`, `cancelled`.\nWorkspaces can rename and add statuses.\n","uniqueKey":"data.status","typeLabel":"string"},"status_name":{"oneOf":[{"type":"string","uniqueKey":"data.status_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.status_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.status_name","typeLabel":"string | null"},"currency":{"type":"string","description":"Three letter currency code.","uniqueKey":"data.currency","typeLabel":"string"},"contact":{"oneOf":[{"type":"object","properties":{"id":{"type":"integer","uniqueKey":"data.contact.oneOf.0.id","typeLabel":"integer"},"contact_number":{"type":"string","uniqueKey":"data.contact.oneOf.0.contact_number","typeLabel":"string"},"company_name":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.company_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.company_name","typeLabel":"string | null"},"first_name":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.first_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.first_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.first_name","typeLabel":"string | null"},"last_name":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.last_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.last_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.last_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.email.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.email","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.phone.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.phone","typeLabel":"string | null"},"lifecycle_stage":{"type":"string","enum":["lead","customer"],"uniqueKey":"data.contact.oneOf.0.lifecycle_stage","typeLabel":"enum\u003cstring>"},"status":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.status.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.status","typeLabel":"string | null"},"status_name":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.status_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.status_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.status_name","typeLabel":"string | null"},"user":{"oneOf":[{"type":"object","description":"The assigned user.","properties":{"id":{"type":"integer","uniqueKey":"data.contact.oneOf.0.user.oneOf.0.id","typeLabel":"integer"},"name":{"type":"string","uniqueKey":"data.contact.oneOf.0.user.oneOf.0.name","typeLabel":"string"},"email":{"type":"string","uniqueKey":"data.contact.oneOf.0.user.oneOf.0.email","typeLabel":"string"}},"uniqueKey":"data.contact.oneOf.0.user.oneOf.0","typeLabel":"object"},{"type":"null","description":"The assigned user.","properties":{"id":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"}},"uniqueKey":"data.contact.oneOf.0.user.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.user","typeLabel":"object | null"},"groups":{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"data.contact.oneOf.0.groups.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.contact.oneOf.0.groups","typeLabel":"object[]"},"primary_address":{"oneOf":[{"type":"object","properties":{"id":{"type":"integer","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.id","typeLabel":"integer"},"name":{"type":"string","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.name","typeLabel":"string"},"attention":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.attention.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.attention.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.attention","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.email.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.email","typeLabel":"string | null"},"company_name":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.company_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.company_name","typeLabel":"string | null"},"mobile_no":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.mobile_no.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.mobile_no.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.mobile_no","typeLabel":"string | null"},"office_no":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.office_no.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.office_no.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.office_no","typeLabel":"string | null"},"address1":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.address1.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.address1.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.address1","typeLabel":"string | null"},"address2":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.address2.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.address2.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.address2","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.city","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.state.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.state","typeLabel":"string | null"},"postcode":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.postcode.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.postcode.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.postcode","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","description":"Two letter country code.","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","description":"Two letter country code.","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.country","typeLabel":"string | null"},"country_name":{"oneOf":[{"type":"string","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.country_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.country_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.country_name","typeLabel":"string | null"},"zone_id":{"oneOf":[{"type":"integer","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.zone_id.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.zone_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.zone_id","typeLabel":"integer | null"},"is_primary":{"type":"boolean","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0.is_primary","typeLabel":"boolean"}},"additionalProperties":true,"uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.contact.oneOf.0.primary_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.primary_address","typeLabel":"object | null"},"works_count":{"oneOf":[{"type":"integer","uniqueKey":"data.contact.oneOf.0.works_count.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.contact.oneOf.0.works_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.works_count","typeLabel":"integer | null"},"quotations_count":{"oneOf":[{"type":"integer","uniqueKey":"data.contact.oneOf.0.quotations_count.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.contact.oneOf.0.quotations_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.quotations_count","typeLabel":"integer | null"},"invoices_count":{"oneOf":[{"type":"integer","uniqueKey":"data.contact.oneOf.0.invoices_count.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"data.contact.oneOf.0.invoices_count.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact.oneOf.0.invoices_count","typeLabel":"integer | null"},"created_at":{"type":"string","uniqueKey":"data.contact.oneOf.0.created_at","typeLabel":"string"},"updated_at":{"type":"string","uniqueKey":"data.contact.oneOf.0.updated_at","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"data.contact.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.contact.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.contact","typeLabel":"object | null"},"sub_total":{"type":"number","uniqueKey":"data.sub_total","typeLabel":"number"},"total_discount":{"type":"number","uniqueKey":"data.total_discount","typeLabel":"number"},"total_tax":{"type":"number","uniqueKey":"data.total_tax","typeLabel":"number"},"total_amount":{"type":"number","uniqueKey":"data.total_amount","typeLabel":"number"},"final_amount":{"type":"number","description":"The amount due after adjustments.","uniqueKey":"data.final_amount","typeLabel":"number"},"amount_paid":{"type":"number","uniqueKey":"data.amount_paid","typeLabel":"number"},"remaining_amount":{"type":"number","uniqueKey":"data.remaining_amount","typeLabel":"number"},"pdf_url":{"oneOf":[{"type":"string","uniqueKey":"data.pdf_url.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.pdf_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.pdf_url","typeLabel":"string | null"},"remarks":{"oneOf":[{"type":"string","uniqueKey":"data.remarks.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.remarks.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.remarks","typeLabel":"string | null"},"items":{"type":"array","description":"Only on the retrieve endpoints.","items":{"type":"object","additionalProperties":true,"uniqueKey":"data.\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.\\items","typeLabel":"object[]"},"taxes":{"type":"array","description":"Only on the retrieve endpoints.","items":{"type":"object","additionalProperties":true,"uniqueKey":"data.taxes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.taxes","typeLabel":"object[]"},"discounts":{"type":"array","description":"Only on the retrieve endpoints.","items":{"type":"object","additionalProperties":true,"uniqueKey":"data.discounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.discounts","typeLabel":"object[]"},"addresses":{"type":"object","description":"Only on the retrieve endpoints.","properties":{"billing":{"oneOf":[{"type":"object","additionalProperties":true,"uniqueKey":"data.addresses.billing.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"uniqueKey":"data.addresses.billing.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.addresses.billing","typeLabel":"object | null"},"shipping":{"oneOf":[{"type":"object","additionalProperties":true,"uniqueKey":"data.addresses.shipping.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"uniqueKey":"data.addresses.shipping.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.addresses.shipping","typeLabel":"object | null"}},"uniqueKey":"data.addresses","typeLabel":"object"},"created_at":{"type":"string","uniqueKey":"data.created_at","typeLabel":"string"},"updated_at":{"type":"string","uniqueKey":"data.updated_at","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":123,"document_type":"invoice","document_number":"\u003cstring>","document_date":"\u003cstring>","document_due_date":"\u003cstring>","status":"\u003cstring>","status_name":"\u003cstring>","currency":"\u003cstring>","contact":{"id":123,"contact_number":"\u003cstring>","company_name":"\u003cstring>","first_name":"\u003cstring>","last_name":"\u003cstring>","email":"\u003cstring>","phone":"\u003cstring>","lifecycle_stage":"lead","status":"\u003cstring>","status_name":"\u003cstring>","user":{"id":123,"name":"\u003cstring>","email":"\u003cstring>"},"groups":[{}],"primary_address":{"id":123,"name":"\u003cstring>","attention":"\u003cstring>","email":"\u003cstring>","company_name":"\u003cstring>","mobile_no":"\u003cstring>","office_no":"\u003cstring>","address1":"\u003cstring>","address2":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","postcode":"\u003cstring>","country":"\u003cstring>","country_name":"\u003cstring>","zone_id":123,"is_primary":true},"works_count":123,"quotations_count":123,"invoices_count":123,"created_at":"\u003cstring>","updated_at":"\u003cstring>"},"sub_total":123,"total_discount":123,"total_tax":123,"total_amount":123,"final_amount":123,"amount_paid":123,"remaining_amount":123,"pdf_url":"\u003cstring>","remarks":"\u003cstring>","items":[{}],"taxes":[{}],"discounts":[{}],"addresses":{"billing":{},"shipping":{}},"created_at":"\u003cstring>","updated_at":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"bd8f7e34-092f-4707-8ca6-19ed1e4c06cf":{"description":"The API key is missing, invalid, revoked or expired.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A stable, machine readable code.","examples":["not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human readable explanation.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"invalid_api_key","message":"The API key is invalid, revoked, or expired."}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_api_key","message":"The API key is invalid, revoked, or expired."}}}},"exampleType":"examples"}},"exampleType":"examples"},"208ff850-5a4a-4901-8fae-298c2f5a8d18":{"description":"The key lacks the required scope, the key owner's role no longer allows it, or the owner's account is suspended.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A stable, machine readable code.","examples":["not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human readable explanation.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"insufficient_scope","message":"This API key does not have the required scope."}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"insufficient_scope","message":"This API key does not have the required scope."}}}},"exampleType":"examples"}},"exampleType":"examples"},"4d46538d-6b05-423a-bb1d-e5fbc35e30c7":{"description":"The request body failed validation. `error.fields` lists the problems per field.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","fields"],"properties":{"code":{"type":"string","enum":["validation_failed"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"fields":{"type":"object","description":"Field names mapped to a list of messages.","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"error.fields.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"error.fields.additionalProperties","typeLabel":"string[]"},"isRequired":true,"uniqueKey":"error.fields","typeLabel":"object"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"validation_failed","message":"The attention field is required.","fields":{"attention":["The attention field is required."]}}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"validation_failed","message":"The attention field is required.","fields":{"attention":["The attention field is required."]}}}}},"exampleType":"examples"}},"exampleType":"examples"},"28de8f89-beef-4f9b-b50f-fb141e673ce9":{"description":"You exceeded the key's requests per minute. Wait for the number of seconds in the `Retry-After` header.","headers":{"Retry-After":{"description":"Seconds until you can retry.","schema":{"type":"integer"}}},"content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"0ecb1668-118c-4938-a713-ce130e4d64dd":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key created in BeanRails, for example `brk_live_...`.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"154004c9-e4f6-442a-8e2b-c0d42ed2a198":{"url":"https://{host}/api/public/v1","description":"Public API v1","variables":{"host":{"default":"app.beanrails.com","description":"The host your BeanRails workspace is served from."}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key created in BeanRails, for example `brk_live_...`.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key created in BeanRails, for example `brk_live_...`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"bean-rails","siteName":"BeanRails","title":"Create a quotation - BeanRails","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T06:42:45.436Z","originalFileLocation":"api-reference/quotations/create-a-quotation.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=\"Creates a draft quotation. The request body is the same as for an invoice, without work_id. Requires the documents:write scope.\">\u003cmeta data-mint-head name=\"application-name\" content=\"BeanRails\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_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/bean-rails/zIzNo9L5TTMgVXBM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a quotation - BeanRails\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a draft quotation. The request body is the same as for an invoice, without work_id. Requires the documents:write scope.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"BeanRails\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://api-docs.beanrails.com/api-reference/quotations/create-a-quotation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://bean-rails.mintlify.app/_mintlify/api/og/v2?division=Quotations\u0026amp;title=Create+a+quotation\u0026amp;description=Creates+a+draft+quotation.+The+request+body+is+the+same+as+for+an+invoice%2C+without+%60work_id%60.%0ARequires+the+%60documents%3Awrite%60+scope.%0A\u0026amp;theme=984b51d104ebf20e438c23c4\u0026amp;signature=0ad6fc86ef65c378397eb65b7e5b51556268699e6ee53d3335454621ad60a96e\">\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=\"Create a quotation - BeanRails\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a draft quotation. The request body is the same as for an invoice, without work_id. Requires the documents:write scope.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bean-rails.mintlify.app/_mintlify/api/og/v2?division=Quotations\u0026amp;title=Create+a+quotation\u0026amp;description=Creates+a+draft+quotation.+The+request+body+is+the+same+as+for+an+invoice%2C+without+%60work_id%60.%0ARequires+the+%60documents%3Awrite%60+scope.%0A\u0026amp;theme=984b51d104ebf20e438c23c4\u0026amp;signature=0ad6fc86ef65c378397eb65b7e5b51556268699e6ee53d3335454621ad60a96e\">\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/bean-rails/zIzNo9L5TTMgVXBM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"BeanRails\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#e63946\">\u003clink data-mint-head rel=\"canonical\" href=\"https://api-docs.beanrails.com/api-reference/quotations/create-a-quotation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/quotations/create-a-quotation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://api-docs.beanrails.com/#organization\",\"name\":\"BeanRails\",\"url\":\"https://api-docs.beanrails.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/bean-rails/aersrqnfsnXWFgKp/logo/beanrails.png?fit=max\u0026auto=format\u0026n=aersrqnfsnXWFgKp\u0026q=85\u0026s=59834d15582b2afc555f9f332844b53c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://api-docs.beanrails.com#website\",\"name\":\"BeanRails\",\"url\":\"https://api-docs.beanrails.com\",\"publisher\":{\"@id\":\"https://api-docs.beanrails.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://api-docs.beanrails.com/api-reference/quotations/create-a-quotation#webpage\",\"url\":\"https://api-docs.beanrails.com/api-reference/quotations/create-a-quotation\",\"name\":\"Create a quotation\",\"description\":\"Creates a draft quotation. The request body is the same as for an invoice, without work_id. Requires the documents:write scope.\",\"dateModified\":\"2026-10-28T06:42:45.436Z\",\"isPartOf\":{\"@id\":\"https://api-docs.beanrails.com#website\"},\"breadcrumb\":{\"@id\":\"https://api-docs.beanrails.com/api-reference/quotations/create-a-quotation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://api-docs.beanrails.com/api-reference/quotations/create-a-quotation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Quotations\",\"item\":\"https://api-docs.beanrails.com/api-reference/quotations/list-quotations\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a quotation\",\"item\":\"https://api-docs.beanrails.com/api-reference/quotations/create-a-quotation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://api-docs.beanrails.com/api-reference/quotations/create-a-quotation#apireference\",\"headline\":\"Create a quotation\",\"name\":\"Create a quotation\",\"description\":\"Creates a draft quotation. The request body is the same as for an invoice, without work_id. Requires the documents:write scope.\",\"url\":\"https://api-docs.beanrails.com/api-reference/quotations/create-a-quotation\",\"mainEntityOfPage\":{\"@id\":\"https://api-docs.beanrails.com/api-reference/quotations/create-a-quotation#webpage\"},\"dateModified\":\"2026-10-28T06:42:45.436Z\",\"publisher\":{\"@id\":\"https://api-docs.beanrails.com/#organization\"},\"isPartOf\":{\"@id\":\"https://api-docs.beanrails.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"BeanRails\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"BeanRails","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","groups":[{"group":"Contacts","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /contacts","href":"/api-reference/contacts/list-contacts"},{"title":"Create a contact","deprecated":null,"version":null,"openapi":"/openapi.yaml post /contacts","href":"/api-reference/contacts/create-a-contact"},{"title":"Retrieve a contact","deprecated":null,"version":null,"openapi":"/openapi.yaml get /contacts/{id}","href":"/api-reference/contacts/retrieve-a-contact"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"/openapi.yaml put /contacts/{id}","href":"/api-reference/contacts/update-a-contact"}]},{"group":"Contact addresses","pages":[{"title":"List a contact's addresses","deprecated":null,"version":null,"openapi":"/openapi.yaml get /contacts/{contactId}/addresses","href":"/api-reference/contact-addresses/list-a-contacts-addresses"},{"title":"Add an address to a contact","deprecated":null,"version":null,"openapi":"/openapi.yaml post /contacts/{contactId}/addresses","href":"/api-reference/contact-addresses/add-an-address-to-a-contact"},{"title":"Update a contact address","deprecated":null,"version":null,"openapi":"/openapi.yaml put /contacts/{contactId}/addresses/{id}","href":"/api-reference/contact-addresses/update-a-contact-address"}]},{"group":"Works","pages":[{"title":"List works","deprecated":null,"version":null,"openapi":"/openapi.yaml get /works","href":"/api-reference/works/list-works"},{"title":"Create a work","deprecated":null,"version":null,"openapi":"/openapi.yaml post /works","href":"/api-reference/works/create-a-work"},{"title":"Retrieve a work","deprecated":null,"version":null,"openapi":"/openapi.yaml get /works/{id}","href":"/api-reference/works/retrieve-a-work"},{"title":"Update a work","deprecated":null,"version":null,"openapi":"/openapi.yaml put /works/{id}","href":"/api-reference/works/update-a-work"},{"title":"Cancel or reopen a work","deprecated":null,"version":null,"openapi":"/openapi.yaml put /works/{id}/status","href":"/api-reference/works/cancel-or-reopen-a-work"},{"title":"Reschedule a work","deprecated":null,"version":null,"openapi":"/openapi.yaml put /works/{id}/schedule","href":"/api-reference/works/reschedule-a-work"}]},{"group":"Work PODs","pages":[{"title":"List proof of delivery records of a work","deprecated":null,"version":null,"openapi":"/openapi.yaml get /works/{id}/pods","href":"/api-reference/work-pods/list-proof-of-delivery-records-of-a-work"},{"title":"Retrieve a proof of delivery record","deprecated":null,"version":null,"openapi":"/openapi.yaml get /works/{id}/pods/{podId}","href":"/api-reference/work-pods/retrieve-a-proof-of-delivery-record"}]},{"group":"Invoices","pages":[{"title":"List invoices","deprecated":null,"version":null,"openapi":"/openapi.yaml get /invoices","href":"/api-reference/invoices/list-invoices"},{"title":"Create an invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoices","href":"/api-reference/invoices/create-an-invoice"},{"title":"Retrieve an invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml get /invoices/{id}","href":"/api-reference/invoices/retrieve-an-invoice"},{"title":"Change an invoice status","deprecated":null,"version":null,"openapi":"/openapi.yaml put /invoices/{id}/status","href":"/api-reference/invoices/change-an-invoice-status"}]},{"group":"Invoice payments","pages":[{"title":"List payments of an invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml get /invoices/{id}/payments","href":"/api-reference/invoice-payments/list-payments-of-an-invoice"},{"title":"Record a payment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /invoices/{id}/payments","href":"/api-reference/invoice-payments/record-a-payment"},{"title":"Retrieve a payment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /invoices/{id}/payments/{paymentId}","href":"/api-reference/invoice-payments/retrieve-a-payment"}]},{"group":"Quotations","pages":[{"title":"List quotations","description":"Returns the quotations your key can see, newest first. Requires the `documents:read` scope.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /quotations","href":"/api-reference/quotations/list-quotations"},{"title":"Create a quotation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /quotations","href":"/api-reference/quotations/create-a-quotation"},{"title":"Retrieve a quotation","description":"Requires the `documents:read` scope.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /quotations/{id}","href":"/api-reference/quotations/retrieve-a-quotation"},{"title":"Change a quotation status","deprecated":null,"version":null,"openapi":"/openapi.yaml put /quotations/{id}/status","href":"/api-reference/quotations/change-a-quotation-status"}]}]}]},"title":"Create a quotation - BeanRails","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-WRhTSUDL.js","utils-ChMov4Kr.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-_REmC2bI.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp6nVRCu.js","snippetPresets-DZadmXoU.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CY2WdoTl.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DwYG-Q4l.js","shallow-BXQIGwv4.js","getApiPlaygroundDisplay-CK5nK5B9.js","CodeSnippet-TH4a2aGW.js","CodeSnippets-DwsQiOFS.js","Page-R3M_BF4L.js","getPastedJson-DD7kUzi_.js","icon-holE3QoJ.js","MethodPill-DUW0T8us.js","DuplicateIcon-CI_p4be-.js","createIcon-BdbRvavb.js","DynamicMarkdown-DN96a4Ur.js","SectionHeading-SCu36A9d.js","axios-vUo_bRtp.js","Markdown-CCeGv-zI.js","clsx-BGBGWFTt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-Cv_O2fky.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-2C5OB2eV.js"]}