Replaces the contents of an existing document. Send the complete payload with every field’s updated value — this is a full replacement, not a partial update. The document keeps its hash_id.
To update a document, include the document’s unique doc_hash_id in the request URL and send all the keys with their updated values in the request body, ensuring the document is updated correctly with the provided data.
Bearer authentication header of the form Bearer <token>, where <token> is an API key from the API Integration section of your dashboard. Keys are scoped to the company they are generated in — for testing, add a separate test company and generate the key there, so requests never touch your real books.
Party. If there are any changes made to the party details, we will update those details and any documents linked to this party ID will be updated to reflect the changes.
Controls whether the document is titled Invoice or Bill of Supply. true -> Invoice (tax charged); false -> Bill of Supply (no tax; the document's tax amount and item GST fields are zeroed). Omit to keep the document's current value unchanged. Composition-scheme companies are always forced to false.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Swipe","colors":{"primary":"#2045D1","light":"#538DFF","dark":"#2045D1"},"logo":{"light":"https://mintcdn.com/swipe/DQkaOg10KeYQlKIu/logo/logo_g_light.webp?fit=max\u0026auto=format\u0026n=DQkaOg10KeYQlKIu\u0026q=85\u0026s=44d5e4b626518cb3542e8ef16e85f182","dark":"https://mintcdn.com/swipe/DQkaOg10KeYQlKIu/logo/logo_g_dark.webp?fit=max\u0026auto=format\u0026n=DQkaOg10KeYQlKIu\u0026q=85\u0026s=84cf20e2bc4f85a8fea2938d2f43412e","href":"/"},"favicon":"https://mintcdn.com/swipe/ZOyvFX50eH4DT_Wr/favicon.svg?fit=max\u0026auto=format\u0026n=ZOyvFX50eH4DT_Wr\u0026q=85\u0026s=9f4476cef1667d0c527f72dd6036726b","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript"]}},"navbar":{"links":[{"href":"https://app.getswipe.in/user?tab=api_integration","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.getswipe.in"}},"footer":{"socials":{"x":"https://twitter.com/swipebilling","instagram":"https://www.instagram.com/swipebilling","linkedin":"https://www.linkedin.com/company/swipebilling"}},"search":{"prompt":"Search the Swipe API docs..."},"seo":{"metatags":{"og:site_name":"Swipe API Documentation","og:type":"website"}},"errors":{"404":{"redirect":true}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Run in Postman","icon":{"style":"thin","name":"user-astronaut"},"href":"https://god.gw.postman.com/run-collection/43895811-b7327b9d-1e50-4fed-af6f-660a918aa817?action=collection%2Ffork\u0026source=rip_markdown\u0026collection-url=entityId%3D43895811-b7327b9d-1e50-4fed-af6f-660a918aa817%26entityType%3Dcollection%26workspaceId%3D5d3fc3f0-668c-499e-833b-03222666ba2a"},{"anchor":"Blog","icon":"newspaper","href":"https://getswipe.in/blog"},{"anchor":"Community","icon":"slack","href":"https://community.getswipe.in/c/api-integration/14"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"swipe","hasAudioNarration":false,"actualSubdomain":"swipe","customDomains":["developers.getswipe.in"],"gitSource":{"type":"github","owner":"swipe-yc21","repo":"partner-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6aa158f50379420e6579534a","clientVersion":"0.0.4117","searchFilterCounts":[{"language":"default","tag":"Documentation","count":74},{"language":"default","tag":"Guides","count":10},{"language":"default","tag":"Customers","count":7},{"language":"default","tag":"Customer","count":7},{"language":"default","tag":"Vendors","count":7},{"language":"default","tag":"Documents","count":6},{"language":"default","tag":"Products","count":6},{"language":"default","tag":"Product","count":6},{"language":"default","tag":"Get Started","count":5},{"language":"default","tag":"Resources","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/document-v2/edit-a-document","slug":"/api-reference/document-v2/edit-a-document","pageMetadata":{"openapi":"put /v2/doc/{doc_hash_id}","title":"Edit a document","description":"Replaces the contents of an existing document. Send the complete payload with every field's updated value — this is a full replacement, not a partial update. The document keeps its `hash_id`.","href":"/api-reference/document-v2/edit-a-document"},"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: [\"Replaces the contents of an existing document. Send the complete payload with every field’s updated value — this is a full replacement, not a partial update. The document keeps its \", _jsx(_components.code, {\n children: \"hash_id\"\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{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Note}=_components;if(!Note)_missingMdxReference(`Note`,true);return _jsx(Note,{children:_jsxs(_components.p,{children:[`To update a document, include the document’s unique `,_jsx(_components.code,{children:`doc_hash_id`}),` in the request URL and send all the keys with their updated values in the request body, ensuring the document is updated correctly with the provided data.`]})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"put /v2/doc/{doc_hash_id}","title":"Edit a document","description":"Replaces the contents of an existing document. Send the complete payload with every field's updated value — this is a full replacement, not a partial update. The document keeps its `hash_id`.","href":"/api-reference/document-v2/edit-a-document"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Edit a document","operationId":"put_invoice","tags":["Document V2"],"parameters":["0d1c6807-6d84-4ab9-93ed-41108a744b95"],"requestBody":"42054968-497b-4fe9-9cfb-4862328d59ab","responses":{"200":"bcbc6899-4a04-4f01-ba20-02fe48425ab9","400":"52a21e6a-1f2f-4722-affd-631271f25f14","401":"d46eaa7c-13b8-48df-a17e-191da96d68e2","500":"a001fcd3-8286-444e-ab77-4764834dc683"},"description":"Replaces the contents of an existing document. Send the complete payload with every field's updated value — this is a full replacement, not a partial update. The document keeps its `hash_id`.","method":"put","type":"path","servers":["82b38fec-7303-4b6e-86bb-63d990b1e4ef"],"security":["13576f02-530d-4f08-aab7-91987ee153ab"],"path":"/v2/doc/{doc_hash_id}","baseUrlOptions":["https://app.getswipe.in/api/partner"],"title":"Edit a document","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"0d1c6807-6d84-4ab9-93ed-41108a744b95":{"name":"doc_hash_id","in":"path","description":"The hash ID of the document that needs to be updated.","required":true,"schema":{"type":"string","isRequired":true,"description":"The hash ID of the document that needs to be updated.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"required":["document_date","document_type","items"],"properties":{"document_type":{"type":"string","description":"Type of document to create. One of the enum values listed below; use 'invoice' for a standard GST invoice.","example":"invoice","enum":["invoice","subscription","pro_forma_invoice","estimate","sales_return","purchase_return","delivery_challan"],"isRequired":true,"uniqueKey":"document_type","typeLabel":"enum\u003cstring>"},"document_date":{"type":"string","description":"DD-MM-YYYY","example":"11-06-2024","isRequired":true,"uniqueKey":"document_date","typeLabel":"string"},"items":{"type":"array","description":"Array of Products/Services, refer Item Object below for parameters","items":{"required":["id","item_type","name","net_amount","price_with_tax","quantity","total_amount","unit_price"],"properties":{"id":{"type":"string","description":"Unique id for each item. If a new id is sent, a new Item with the below details will be automatically created. if existing Item id is sent the details will not override the original item details. They will be applicable only to the current documents. Use update item to actually update the item details in swipe","example":"ITEM123","isRequired":true,"uniqueKey":"\\items.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"Name of the Product","example":"Item Name","isRequired":true,"uniqueKey":"\\items.items.[INDEX].name","typeLabel":"string"},"quantity":{"type":"number","description":"Quantity","example":1,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].quantity","typeLabel":"number"},"unit_price":{"type":"number","description":"Price per item without Tax","example":100,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].unit_price","typeLabel":"number"},"price_with_tax":{"type":"number","description":"Price per item with Tax","example":118,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].price_with_tax","typeLabel":"number"},"net_amount":{"type":"number","description":"Net Amount","example":100,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].net_amount","typeLabel":"number"},"total_amount":{"type":"number","description":"Item total amount (Net Amount + Tax).\n We calculate the discount amount by multiplying the item's quantity, unit price, and discount percentage. If a discount amount is provided instead, we reverse-calculate the percentage. If no discount is given, it is set to 0.\n ","example":118,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].total_amount","typeLabel":"number"},"item_type":{"type":"string","description":"Product or Service enum","example":"Product","enum":["Product","Service"],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].item_type","typeLabel":"enum\u003cstring>"},"tax_rate":{"type":"number","description":"Tax percentage for each item . Only valid tax rates are accepted","example":18,"uniqueKey":"\\items.items.[INDEX].tax_rate","typeLabel":"number"},"discount_percent":{"type":"number","description":"Discount Percent","default":0,"example":10,"uniqueKey":"\\items.items.[INDEX].discount_percent","typeLabel":"number"},"discount_amount":{"type":"number","description":"Discount Amount, will be ignored if discount_percent is provided","default":0,"example":10,"uniqueKey":"\\items.items.[INDEX].discount_amount","typeLabel":"number"},"description":{"type":"string","description":"Item Description","example":"Item Description","uniqueKey":"\\items.items.[INDEX].description","typeLabel":"string"},"hsn_code":{"type":"string","description":"HSN Code. HSN Code can only be of length 4,6 \u0026 8","example":"1234","uniqueKey":"\\items.items.[INDEX].hsn_code","typeLabel":"string"},"unit":{"type":"string","description":"Item quantity unit. You can find the GST-approved units in the UQC Codes section at: https://einvoice1.gst.gov.in/Others/MasterCodes.","example":"kg","uniqueKey":"\\items.items.[INDEX].unit","typeLabel":"string"},"category":{"type":"string","description":"Category","example":"Electronics","uniqueKey":"\\items.items.[INDEX].category","typeLabel":"string"},"custom_columns":{"type":"array","description":"Item Custom Fields. Custom fields should already be added in Swipe Portal.","example":[{"label":"Custom Field 1","value":"Value 1"}],"items":{"required":["label","value"],"properties":{"label":{"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].custom_columns.items.[INDEX].label","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].custom_columns.items.[INDEX].value","typeLabel":"string"}},"type":"object","uniqueKey":"\\items.items.[INDEX].custom_columns.items.[INDEX]","typeLabel":"object"},"uniqueKey":"\\items.items.[INDEX].custom_columns","typeLabel":"object[]"}},"type":"object","uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"object[]"},"serial_number":{"type":"string","description":"Serial Number (deprecated, please use New Serial Number)","example":"INV123","uniqueKey":"serial_number","typeLabel":"string"},"serial_number_v2":{"type":"object","example":{"prefix":"INV","doc_number":1,"suffix":"2024"},"properties":{"prefix":{"type":"string","example":"INV-, INV/2024, INV-2024/25, INV/2024-25","uniqueKey":"serial_number_v2.prefix","typeLabel":"string"},"doc_number":{"type":"integer","example":1,"uniqueKey":"serial_number_v2.doc_number","typeLabel":"integer"},"suffix":{"type":"string","example":"-suffix, /-suffix,-/suffix, /suffix","uniqueKey":"serial_number_v2.suffix","typeLabel":"string"}},"uniqueKey":"serial_number_v2","typeLabel":"object"},"party":{"type":"object","description":"Party. If there are any changes made to the party details, we will update those details and any documents linked to this party ID will be updated to reflect the changes.","required":["id","name","type"],"properties":{"id":{"type":"string","description":"Unique id for each party.","example":"CUST123","isRequired":true,"uniqueKey":"party.id","typeLabel":"string"},"type":{"type":"string","description":"Party type, use only specified values.\n Party type customer can be used for creating invoices, sales returns, estimates, pro forma invoices and delivery challans.\n Party type vendor can be used for creating purchases, purchase orders \u0026 purchase returns, .\n ","example":"customer","enum":["customer","vendor"],"isRequired":true,"uniqueKey":"party.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Name of the Party","example":"John Doe","isRequired":true,"uniqueKey":"party.name","typeLabel":"string"},"country_code":{"type":"string","description":"Party Phone Number Country code","example":"91","uniqueKey":"party.country_code","typeLabel":"string"},"phone_number":{"type":"string","description":"Party Phone Number","example":"1234567890","uniqueKey":"party.phone_number","typeLabel":"string"},"company_name":{"type":"string","description":"Company Name","example":"Company Name","uniqueKey":"party.company_name","typeLabel":"string"},"email":{"type":"string","description":"Party Email","example":"johndoe@example.com","uniqueKey":"party.email","typeLabel":"string"},"gstin":{"type":"string","description":"GSTIN","example":"27AARCS7202C1ZD","uniqueKey":"party.gstin","typeLabel":"string"},"shipping_address":{"type":"object","description":"Party shipping to Address, refer Shipping Address Object for parameters","required":["address_line1","address_line2","city","country","pincode","state"],"properties":{"address_line1":{"type":"string","description":"Address Line 1","example":"123 Street","isRequired":true,"uniqueKey":"party.shipping_address.address_line1","typeLabel":"string"},"address_line2":{"type":"string","description":"Address Line 2","example":"Apt 4B","isRequired":true,"uniqueKey":"party.shipping_address.address_line2","typeLabel":"string"},"city":{"type":"string","description":"City","example":"City Name","isRequired":true,"uniqueKey":"party.shipping_address.city","typeLabel":"string"},"state":{"type":"string","description":"State.\n Select OTHER TERRITORY for countries other than India.\n You can copy the state details from https://developers.getswipe.in/api-reference/references#state-details\n ","example":"State Name","enum":["JAMMU AND KASHMIR","HIMACHAL PRADESH","PUNJAB","CHANDIGARH","UTTARAKHAND","HARYANA","DELHI","RAJASTHAN","UTTAR PRADESH","BIHAR","SIKKIM","ARUNACHAL PRADESH","NAGALAND","MANIPUR","MIZORAM","TRIPURA","MEGHALAYA","ASSAM","WEST BENGAL","JHARKHAND","ODISHA","CHHATTISGARH","MADHYA PRADESH","GUJARAT","DADRA \u0026 NAGAR HAVELI \u0026 DAMAN \u0026 DIU","MAHARASHTRA","ANDHRAPRADESH(BEFOREADDED)","KARNATAKA","GOA","LAKSHWADEEP","KERALA","TAMIL NADU","PUDUCHERRY","ANDAMAN \u0026 NICOBAR","TELANGANA","ANDHRA PRADESH","LADAKH(NEWLYADDED)","LADAKH(NEWLY ADDED)","OTHER TERRITORY"],"isRequired":true,"uniqueKey":"party.shipping_address.state","typeLabel":"enum\u003cstring>"},"country":{"type":"string","description":"Country. You can copy the country details from https://developers.getswipe.in/api-reference/references#country-array","example":"Country Name","enum":["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo, Democratic Republic of the","Congo, Republic of the","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Republic of Korea (South Korea)","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],"isRequired":true,"uniqueKey":"party.shipping_address.country","typeLabel":"enum\u003cstring>"},"pincode":{"type":"string","description":"Pincode","example":"123456","isRequired":true,"uniqueKey":"party.shipping_address.pincode","typeLabel":"string"},"addr_id":{"type":"integer","description":"Address ID. Value should be between 0 and 999999.","example":-1,"uniqueKey":"party.shipping_address.addr_id","typeLabel":"integer"},"addr_id_v2":{"type":"string","description":"Address ID. Value should be not be empty, It should be alphanumeric with length upto 16 characters.","example":"addr1","uniqueKey":"party.shipping_address.addr_id_v2","typeLabel":"string"}},"uniqueKey":"party.shipping_address","typeLabel":"object"},"billing_address":{"type":"object","description":"Party billing to Address, refer Shipping Address Object for parameters","required":["address_line1","address_line2","city","country","pincode","state"],"properties":{"address_line1":{"type":"string","description":"Address Line 1","example":"123 Street","isRequired":true,"uniqueKey":"party.billing_address.address_line1","typeLabel":"string"},"address_line2":{"type":"string","description":"Address Line 2","example":"Apt 4B","isRequired":true,"uniqueKey":"party.billing_address.address_line2","typeLabel":"string"},"city":{"type":"string","description":"City","example":"City Name","isRequired":true,"uniqueKey":"party.billing_address.city","typeLabel":"string"},"state":{"type":"string","description":"State.\n Select OTHER TERRITORY for countries other than India.\n You can copy the state details from https://developers.getswipe.in/api-reference/references#state-details\n ","example":"State Name","enum":["JAMMU AND KASHMIR","HIMACHAL PRADESH","PUNJAB","CHANDIGARH","UTTARAKHAND","HARYANA","DELHI","RAJASTHAN","UTTAR PRADESH","BIHAR","SIKKIM","ARUNACHAL PRADESH","NAGALAND","MANIPUR","MIZORAM","TRIPURA","MEGHALAYA","ASSAM","WEST BENGAL","JHARKHAND","ODISHA","CHHATTISGARH","MADHYA PRADESH","GUJARAT","DADRA \u0026 NAGAR HAVELI \u0026 DAMAN \u0026 DIU","MAHARASHTRA","ANDHRAPRADESH(BEFOREADDED)","KARNATAKA","GOA","LAKSHWADEEP","KERALA","TAMIL NADU","PUDUCHERRY","ANDAMAN \u0026 NICOBAR","TELANGANA","ANDHRA PRADESH","LADAKH(NEWLYADDED)","LADAKH(NEWLY ADDED)","OTHER TERRITORY"],"isRequired":true,"uniqueKey":"party.billing_address.state","typeLabel":"enum\u003cstring>"},"country":{"type":"string","description":"Country. You can copy the country details from https://developers.getswipe.in/api-reference/references#country-array","example":"Country Name","enum":["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo, Democratic Republic of the","Congo, Republic of the","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Republic of Korea (South Korea)","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],"isRequired":true,"uniqueKey":"party.billing_address.country","typeLabel":"enum\u003cstring>"},"pincode":{"type":"string","description":"Pincode","example":"123456","isRequired":true,"uniqueKey":"party.billing_address.pincode","typeLabel":"string"},"addr_id":{"type":"integer","description":"Address ID. Value should be between 0 and 999999.","example":-1,"uniqueKey":"party.billing_address.addr_id","typeLabel":"integer"},"addr_id_v2":{"type":"string","description":"Address ID. Value should be not be empty, It should be alphanumeric with length upto 16 characters.","example":"addr1","uniqueKey":"party.billing_address.addr_id_v2","typeLabel":"string"}},"uniqueKey":"party.billing_address","typeLabel":"object"}},"uniqueKey":"party","typeLabel":"object"},"due_date":{"type":"string","description":"DD-MM-YYYY","example":"11-06-2024","uniqueKey":"due_date","typeLabel":"string"},"reference":{"type":"string","description":"Any references you want to add to the doc","example":"Reference Text","uniqueKey":"reference","typeLabel":"string"},"notes":{"type":"string","description":"Notes to show in invoice - please check template in swipe application to see where this is displayed","example":"Notes for the document","uniqueKey":"notes","typeLabel":"string"},"terms":{"type":"string","description":"Terms to show in invoice - please check template in swipe application to see where this is displayed","example":"Terms and Conditions","uniqueKey":"terms","typeLabel":"string"},"extra_discount":{"type":"number","description":"Adjustment on overall invoice, doesn’t effect any tax amounts.","default":0,"example":20,"uniqueKey":"extra_discount","typeLabel":"number"},"round_off":{"type":"boolean","description":"Should Round Off total amount","default":false,"example":true,"uniqueKey":"round_off","typeLabel":"boolean"},"bank_details":{"type":"object","description":"Bank Details, it is used to display bank details in document PDFs. No payments are associated with these bank details.","required":["account_number","bank_name","branch","ifsc"],"properties":{"account_number":{"type":"string","description":"Account Number","example":"1234567890","isRequired":true,"uniqueKey":"bank_details.account_number","typeLabel":"string"},"ifsc":{"type":"string","description":"IFSC Code","example":"SBIN0000001","isRequired":true,"uniqueKey":"bank_details.ifsc","typeLabel":"string"},"bank_name":{"type":"string","description":"Bank Name","example":"State Bank of India","isRequired":true,"uniqueKey":"bank_details.bank_name","typeLabel":"string"},"branch":{"type":"string","description":"Branch","example":"Mumbai","isRequired":true,"uniqueKey":"bank_details.branch","typeLabel":"string"}},"uniqueKey":"bank_details","typeLabel":"object"},"tds_id":{"type":"integer","description":"You can check the tds id and details mapping from https://developers.getswipe.in/api-reference/references#tds-tax-deducted-at-source","uniqueKey":"tds_id","typeLabel":"integer"},"tcs_id":{"type":"integer","description":"You can check the tcs id and details mapping from https://developers.getswipe.in/api-reference/references#tcs-tax-collected-at-source","uniqueKey":"tcs_id","typeLabel":"integer"},"charges_and_deductions":{"type":"array","description":"Array of Charges and Deductions, refer Additional Charges Deductions Object for parameters","items":{"required":["amount","id","name","tax_rate","type"],"properties":{"id":{"type":"integer","description":"Unique ID for the charge/deduction. 0 \u003c id \u003c= 999999","example":1,"isRequired":true,"uniqueKey":"charges_and_deductions.items.[INDEX].id","typeLabel":"integer"},"name":{"type":"string","description":"Name of the charge/deduction.","example":"Delivery Charge","isRequired":true,"uniqueKey":"charges_and_deductions.items.[INDEX].name","typeLabel":"string"},"amount":{"type":"number","description":"Total Amount","example":100,"isRequired":true,"uniqueKey":"charges_and_deductions.items.[INDEX].amount","typeLabel":"number"},"tax_rate":{"type":"number","description":"Tax Rate","example":18,"isRequired":true,"uniqueKey":"charges_and_deductions.items.[INDEX].tax_rate","typeLabel":"number"},"type":{"type":"string","description":"Type","example":"charge","enum":["charge","deduction"],"isRequired":true,"uniqueKey":"charges_and_deductions.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"sac_code":{"type":"string","description":"SAC Code","example":"1234","uniqueKey":"charges_and_deductions.items.[INDEX].sac_code","typeLabel":"string"}},"type":"object","uniqueKey":"charges_and_deductions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"charges_and_deductions","typeLabel":"object[]"},"company_shipping_address":{"type":"object","description":"Company shipping from Address, refer Shipping Address Object for parameters","required":["address_line1","address_line2","city","country","pincode","state"],"properties":{"address_line1":{"type":"string","description":"Address Line 1","example":"123 Street","isRequired":true,"uniqueKey":"company_shipping_address.address_line1","typeLabel":"string"},"address_line2":{"type":"string","description":"Address Line 2","example":"Apt 4B","isRequired":true,"uniqueKey":"company_shipping_address.address_line2","typeLabel":"string"},"city":{"type":"string","description":"City","example":"City Name","isRequired":true,"uniqueKey":"company_shipping_address.city","typeLabel":"string"},"state":{"type":"string","description":"State.\n Select OTHER TERRITORY for countries other than India.\n You can copy the state details from https://developers.getswipe.in/api-reference/references#state-details\n ","example":"State Name","enum":["JAMMU AND KASHMIR","HIMACHAL PRADESH","PUNJAB","CHANDIGARH","UTTARAKHAND","HARYANA","DELHI","RAJASTHAN","UTTAR PRADESH","BIHAR","SIKKIM","ARUNACHAL PRADESH","NAGALAND","MANIPUR","MIZORAM","TRIPURA","MEGHALAYA","ASSAM","WEST BENGAL","JHARKHAND","ODISHA","CHHATTISGARH","MADHYA PRADESH","GUJARAT","DADRA \u0026 NAGAR HAVELI \u0026 DAMAN \u0026 DIU","MAHARASHTRA","ANDHRAPRADESH(BEFOREADDED)","KARNATAKA","GOA","LAKSHWADEEP","KERALA","TAMIL NADU","PUDUCHERRY","ANDAMAN \u0026 NICOBAR","TELANGANA","ANDHRA PRADESH","LADAKH(NEWLYADDED)","LADAKH(NEWLY ADDED)","OTHER TERRITORY"],"isRequired":true,"uniqueKey":"company_shipping_address.state","typeLabel":"enum\u003cstring>"},"country":{"type":"string","description":"Country. You can copy the country details from https://developers.getswipe.in/api-reference/references#country-array","example":"Country Name","enum":["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo, Democratic Republic of the","Congo, Republic of the","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Republic of Korea (South Korea)","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],"isRequired":true,"uniqueKey":"company_shipping_address.country","typeLabel":"enum\u003cstring>"},"pincode":{"type":"string","description":"Pincode","example":"123456","isRequired":true,"uniqueKey":"company_shipping_address.pincode","typeLabel":"string"},"addr_id":{"type":"integer","description":"Address ID. Value should be between 0 and 999999.","example":-1,"uniqueKey":"company_shipping_address.addr_id","typeLabel":"integer"},"addr_id_v2":{"type":"string","description":"Address ID. Value should be not be empty, It should be alphanumeric with length upto 16 characters.","example":"addr1","uniqueKey":"company_shipping_address.addr_id_v2","typeLabel":"string"}},"uniqueKey":"company_shipping_address","typeLabel":"object"},"company_billing_address":{"type":"object","description":"Company billing Address, refer Billing Address Object for parameters","required":["address_line1","address_line2","city","country","pincode","state"],"properties":{"address_line1":{"type":"string","description":"Address Line 1","example":"123 Street","isRequired":true,"uniqueKey":"company_billing_address.address_line1","typeLabel":"string"},"address_line2":{"type":"string","description":"Address Line 2","example":"Apt 4B","isRequired":true,"uniqueKey":"company_billing_address.address_line2","typeLabel":"string"},"city":{"type":"string","description":"City","example":"City Name","isRequired":true,"uniqueKey":"company_billing_address.city","typeLabel":"string"},"state":{"type":"string","description":"State.\n Select OTHER TERRITORY for countries other than India.\n You can copy the state details from https://developers.getswipe.in/api-reference/references#state-details\n ","example":"State Name","enum":["JAMMU AND KASHMIR","HIMACHAL PRADESH","PUNJAB","CHANDIGARH","UTTARAKHAND","HARYANA","DELHI","RAJASTHAN","UTTAR PRADESH","BIHAR","SIKKIM","ARUNACHAL PRADESH","NAGALAND","MANIPUR","MIZORAM","TRIPURA","MEGHALAYA","ASSAM","WEST BENGAL","JHARKHAND","ODISHA","CHHATTISGARH","MADHYA PRADESH","GUJARAT","DADRA \u0026 NAGAR HAVELI \u0026 DAMAN \u0026 DIU","MAHARASHTRA","ANDHRAPRADESH(BEFOREADDED)","KARNATAKA","GOA","LAKSHWADEEP","KERALA","TAMIL NADU","PUDUCHERRY","ANDAMAN \u0026 NICOBAR","TELANGANA","ANDHRA PRADESH","LADAKH(NEWLYADDED)","LADAKH(NEWLY ADDED)","OTHER TERRITORY"],"isRequired":true,"uniqueKey":"company_billing_address.state","typeLabel":"enum\u003cstring>"},"country":{"type":"string","description":"Country. You can copy the country details from https://developers.getswipe.in/api-reference/references#country-array","example":"Country Name","enum":["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo, Democratic Republic of the","Congo, Republic of the","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Republic of Korea (South Korea)","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],"isRequired":true,"uniqueKey":"company_billing_address.country","typeLabel":"enum\u003cstring>"},"pincode":{"type":"string","description":"Pincode","example":"123456","isRequired":true,"uniqueKey":"company_billing_address.pincode","typeLabel":"string"},"addr_id":{"type":"integer","description":"Address ID. Value should be between 0 and 999999.","example":-1,"uniqueKey":"company_billing_address.addr_id","typeLabel":"integer"},"addr_id_v2":{"type":"string","description":"Address ID. Value should be not be empty, It should be alphanumeric with length upto 16 characters.","example":"addr1","uniqueKey":"company_billing_address.addr_id_v2","typeLabel":"string"}},"uniqueKey":"company_billing_address","typeLabel":"object"},"is_export":{"type":"boolean","description":"Is Export","example":false,"uniqueKey":"is_export","typeLabel":"boolean"},"is_multi_currency":{"type":"boolean","description":"Is Multi Currency","example":false,"uniqueKey":"is_multi_currency","typeLabel":"boolean"},"export_invoice_details":{"type":"object","description":"Export Invoice Details","required":["conversion_factor","export_type"],"properties":{"export_type":{"type":"string","description":"Export Type","example":"With Payment of Tax","enum":["Export under bond/LUT","Export with IGST","SEZ with IGST Payment","SEZ without IGST Payment","Deemed Export","Multi Currency"],"isRequired":true,"uniqueKey":"export_invoice_details.export_type","typeLabel":"enum\u003cstring>"},"conversion_factor":{"type":"number","description":"The conversion factor represents the rate used to convert foreign currencies into Indian rupees. For example, if you're invoicing in dollars, and 1 dollar equals 84 rupees, the conversion factor would be 84","isRequired":true,"uniqueKey":"export_invoice_details.conversion_factor","typeLabel":"number"},"shipping_bill_date":{"type":"string","description":"Shipping Bill Date [DD-MM-YYYY]","example":"14-02-2024","uniqueKey":"export_invoice_details.shipping_bill_date","typeLabel":"string"},"shipping_bill_number":{"type":"string","description":"Shipping Bill Number","example":"123456","uniqueKey":"export_invoice_details.shipping_bill_number","typeLabel":"string"},"shipping_port_code":{"type":"string","description":"Shipping Port Code","example":"123456","uniqueKey":"export_invoice_details.shipping_port_code","typeLabel":"string"},"country_id":{"type":"string","description":"Country ID","example":"Afghanistan","enum":["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo, Democratic Republic of the","Congo, Republic of the","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Republic of Korea (South Korea)","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],"uniqueKey":"export_invoice_details.country_id","typeLabel":"enum\u003cstring>"},"currency_id":{"type":"string","description":"Currency ID, if not provided, the default country currency will be used, please refer to the currency list from https://developers.getswipe.in/api-reference/references#currency-details","example":"AED","enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHF","CLP","CNY","COP","CRC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","FOK","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KID","KMF","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SLL","SOS","SRD","SSP","STN","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TVD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VES","VND","VUV","WST","XAF","XCD","XDR","XOF","XPF","YER","ZAR","ZMW","ZWL"],"uniqueKey":"export_invoice_details.currency_id","typeLabel":"enum\u003cstring>"}},"uniqueKey":"export_invoice_details","typeLabel":"object"},"is_subscription":{"type":"boolean","description":"Is Subscription","example":false,"uniqueKey":"is_subscription","typeLabel":"boolean"},"subscription_details":{"type":"object","description":"Subscription Details","properties":{"start_time":{"type":"string","format":"date","description":"Start Time [DD-MM-YYYY]","example":"14-02-2024","uniqueKey":"subscription_details.start_time","typeLabel":"string\u003cdate>"},"end_time":{"type":"string","format":"date","description":"End Time [DD-MM-YYYY]","example":"14-02-2025","uniqueKey":"subscription_details.end_time","typeLabel":"string\u003cdate>"},"repeat":{"type":"integer","description":"Repeat in value, Frequency of the repetition ","example":1,"uniqueKey":"subscription_details.repeat","typeLabel":"integer"},"repeat_type":{"type":"string","description":"Repeat type, Entity of the repetition","example":"days","enum":["days","weeks","months","years"],"uniqueKey":"subscription_details.repeat_type","typeLabel":"enum\u003cstring>"},"send_email":{"type":"boolean","uniqueKey":"subscription_details.send_email","typeLabel":"boolean"},"send_sms":{"type":"boolean","uniqueKey":"subscription_details.send_sms","typeLabel":"boolean"},"send_wtsp":{"type":"boolean","uniqueKey":"subscription_details.send_wtsp","typeLabel":"boolean"}},"uniqueKey":"subscription_details","typeLabel":"object"},"convert":{"type":"object","description":"Convert Document. Needed only when the document is already created and you want to convert it to another document","required":["convert_from","hash_id"],"properties":{"convert_from":{"type":"string","description":"The document type which is being converted","example":"invoice","enum":["invoice","estimate","pro_forma_invoice","sales_return","purchase_return"],"isRequired":true,"uniqueKey":"convert.convert_from","typeLabel":"enum\u003cstring>"},"hash_id":{"type":"string","description":"Hash ID","example":"SL123","isRequired":true,"uniqueKey":"convert.hash_id","typeLabel":"string"}},"uniqueKey":"convert","typeLabel":"object"},"custom_headers":{"type":"array","description":"Document Custom Headers. Custom headers should already be added in Swipe Portal.","example":[{"label":"Custom Header 1","value":"Value 1"}],"items":{"required":["label","value"],"properties":{"label":{"type":"string","isRequired":true,"uniqueKey":"custom_headers.items.[INDEX].label","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"custom_headers.items.[INDEX].value","typeLabel":"string"}},"type":"object","uniqueKey":"custom_headers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"custom_headers","typeLabel":"object[]"},"with_tax":{"type":"boolean","description":"Controls whether the document is titled Invoice or Bill of Supply. `true` -> Invoice (tax charged); `false` -> Bill of Supply (no tax; the document's tax amount and item GST fields are zeroed). Omit to keep the document's current value unchanged. Composition-scheme companies are always forced to `false`.","example":true,"uniqueKey":"with_tax","typeLabel":"boolean"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"document_type":"invoice","document_date":"11-06-2024","items":[{"id":"ITEM123","name":"Item Name","quantity":1,"unit_price":100,"price_with_tax":118,"net_amount":100,"total_amount":118,"item_type":"Product","tax_rate":18,"discount_percent":10,"discount_amount":10,"description":"Item Description","hsn_code":"1234","unit":"kg","category":"Electronics","custom_columns":[{"label":"Custom Field 1","value":"Value 1"}]}],"serial_number":"INV123","serial_number_v2":{"prefix":"INV","doc_number":1,"suffix":"2024"},"due_date":"11-06-2024","reference":"Reference Text","notes":"Notes for the document","terms":"Terms and Conditions","extra_discount":20,"round_off":true,"tds_id":123,"tcs_id":123,"charges_and_deductions":[{"id":1,"name":"Delivery Charge","amount":100,"tax_rate":18,"type":"charge","sac_code":"1234"}],"is_export":false,"is_multi_currency":false,"is_subscription":false,"subscription_details":{"start_time":"14-02-2024","end_time":"14-02-2025","repeat":1,"repeat_type":"days","send_email":true,"send_sms":true,"send_wtsp":true},"custom_headers":[{"label":"Custom Header 1","value":"Value 1"}],"with_tax":true}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"bcbc6899-4a04-4f01-ba20-02fe48425ab9":{"description":"Success","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean","default":true,"example":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Success Message","example":"Message","uniqueKey":"message","typeLabel":"string"},"error_code":{"type":"string","description":"Error Code","example":"","uniqueKey":"error_code","typeLabel":"string"},"errors":{"type":"object","description":"Error details","uniqueKey":"errors","typeLabel":"object"},"data":{"properties":{"hash_id":{"type":"string","description":"Hash ID","example":"SL123","uniqueKey":"data.hash_id","typeLabel":"string"},"serial_number":{"type":"string","description":"Serial Number","example":"SL123","uniqueKey":"data.serial_number","typeLabel":"string"},"irn":{"type":"string","description":"IRN","uniqueKey":"data.irn","typeLabel":"string"},"qr_code":{"type":"string","description":"QR Code","uniqueKey":"data.qr_code","typeLabel":"string"}},"type":"object","uniqueKey":"data","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"message":"Message","error_code":"","errors":{},"data":{"hash_id":"SL123","serial_number":"SL123","irn":"\u003cstring>","qr_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"52a21e6a-1f2f-4722-affd-631271f25f14":{"description":"Error","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean","default":true,"example":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Success Message","example":"Message","uniqueKey":"message","typeLabel":"string"},"error_code":{"type":"string","description":"Error Code","example":"","uniqueKey":"error_code","typeLabel":"string"},"errors":{"type":"object","description":"Error details","uniqueKey":"errors","typeLabel":"object"},"data":{"properties":{"hash_id":{"type":"string","description":"Hash ID","example":"SL123","uniqueKey":"data.hash_id","typeLabel":"string"},"serial_number":{"type":"string","description":"Serial Number","example":"SL123","uniqueKey":"data.serial_number","typeLabel":"string"},"irn":{"type":"string","description":"IRN","uniqueKey":"data.irn","typeLabel":"string"},"qr_code":{"type":"string","description":"QR Code","uniqueKey":"data.qr_code","typeLabel":"string"}},"type":"object","uniqueKey":"data","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"message":"Message","error_code":"","errors":{},"data":{"hash_id":"SL123","serial_number":"SL123","irn":"\u003cstring>","qr_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"d46eaa7c-13b8-48df-a17e-191da96d68e2":{"description":"Unauthorized","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean","default":true,"example":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Success Message","example":"Message","uniqueKey":"message","typeLabel":"string"},"error_code":{"type":"string","description":"Error Code","example":"","uniqueKey":"error_code","typeLabel":"string"},"errors":{"type":"object","description":"Error details","uniqueKey":"errors","typeLabel":"object"},"data":{"properties":{"hash_id":{"type":"string","description":"Hash ID","example":"SL123","uniqueKey":"data.hash_id","typeLabel":"string"},"serial_number":{"type":"string","description":"Serial Number","example":"SL123","uniqueKey":"data.serial_number","typeLabel":"string"},"irn":{"type":"string","description":"IRN","uniqueKey":"data.irn","typeLabel":"string"},"qr_code":{"type":"string","description":"QR Code","uniqueKey":"data.qr_code","typeLabel":"string"}},"type":"object","uniqueKey":"data","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"message":"Message","error_code":"","errors":{},"data":{"hash_id":"SL123","serial_number":"SL123","irn":"\u003cstring>","qr_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"a001fcd3-8286-444e-ab77-4764834dc683":{"description":"Server Error","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean","default":true,"example":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Success Message","example":"Message","uniqueKey":"message","typeLabel":"string"},"error_code":{"type":"string","description":"Error Code","example":"","uniqueKey":"error_code","typeLabel":"string"},"errors":{"type":"object","description":"Error details","uniqueKey":"errors","typeLabel":"object"},"data":{"properties":{"hash_id":{"type":"string","description":"Hash ID","example":"SL123","uniqueKey":"data.hash_id","typeLabel":"string"},"serial_number":{"type":"string","description":"Serial Number","example":"SL123","uniqueKey":"data.serial_number","typeLabel":"string"},"irn":{"type":"string","description":"IRN","uniqueKey":"data.irn","typeLabel":"string"},"qr_code":{"type":"string","description":"QR Code","uniqueKey":"data.qr_code","typeLabel":"string"}},"type":"object","uniqueKey":"data","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"message":"Message","error_code":"","errors":{},"data":{"hash_id":"SL123","serial_number":"SL123","irn":"\u003cstring>","qr_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"13576f02-530d-4f08-aab7-91987ee153ab":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is an API key from the [API Integration](https://app.getswipe.in/user?tab=api_integration) section of your dashboard. Keys are scoped to the company they are generated in — for testing, [add a separate test company](https://community.getswipe.in/t/how-to-add-new-company-on-web/1191) and generate the key there, so requests never touch your real books.","scopes":[]}}},"servers":{"82b38fec-7303-4b6e-86bb-63d990b1e4ef":{"url":"https://app.getswipe.in/api/partner"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is an API key from the [API Integration](https://app.getswipe.in/user?tab=api_integration) section of your dashboard. Keys are scoped to the company they are generated in — for testing, [add a separate test company](https://community.getswipe.in/t/how-to-add-new-company-on-web/1191) and generate the key there, so requests never touch your real books.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is an API key from the [API Integration](https://app.getswipe.in/user?tab=api_integration) section of your dashboard. Keys are scoped to the company they are generated in — for testing, [add a separate test company](https://community.getswipe.in/t/how-to-add-new-company-on-web/1191) and generate the key there, so requests never touch your real books.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"swipe","siteName":"Swipe","title":"Edit a document - Swipe","navMaps":{"firstHrefInVersion":{"v2":{"href":"/api-reference/document-v2/edit-a-document","matchLevel":0},"v1 (Deprecated)":{"href":"/introduction","matchLevel":4}},"firstHrefInLanguage":{}},"lastModified":"2026-08-27T07:51:52.668Z","originalFileLocation":"api-reference/document-v2/edit-a-document.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=\"Replaces the contents of an existing document. Send the complete payload with every field\u0026#x27;s updated value — this is a full replacement, not a partial update. The document keeps its hash_id.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Swipe\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/swipe/c1cYpNBFxkNdbDrf/_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/swipe/c1cYpNBFxkNdbDrf/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/swipe/c1cYpNBFxkNdbDrf/_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/swipe/c1cYpNBFxkNdbDrf/_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/swipe/c1cYpNBFxkNdbDrf/_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/swipe/c1cYpNBFxkNdbDrf/_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/swipe/c1cYpNBFxkNdbDrf/_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/swipe/c1cYpNBFxkNdbDrf/_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/swipe/c1cYpNBFxkNdbDrf/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Edit a document - Swipe\">\u003cmeta data-mint-head property=\"og:description\" content=\"Replaces the contents of an existing document. Send the complete payload with every field\u0026#x27;s updated value — this is a full replacement, not a partial update. The document keeps its hash_id.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Swipe API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.getswipe.in/api-reference/document-v2/edit-a-document\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://swipe.mintlify.site/_mintlify/api/og/v2?division=Documents\u0026amp;title=Edit+a+document\u0026amp;description=Replaces+the+contents+of+an+existing+document.+Send+the+complete+payload+with+every+field%27s+updated+value+%E2%80%94+this+is+a+full+replacement%2C+not+a+partial+update.+Th\u0026amp;theme=d92d74ff6d74cfcc3f2c1ceb\u0026amp;signature=adc3a1c6be7d2b1b090566014fd3a6152b144cbeb1c22f550694079cbef40567\">\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=\"Edit a document - Swipe\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Replaces the contents of an existing document. Send the complete payload with every field\u0026#x27;s updated value — this is a full replacement, not a partial update. The document keeps its hash_id.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://swipe.mintlify.site/_mintlify/api/og/v2?division=Documents\u0026amp;title=Edit+a+document\u0026amp;description=Replaces+the+contents+of+an+existing+document.+Send+the+complete+payload+with+every+field%27s+updated+value+%E2%80%94+this+is+a+full+replacement%2C+not+a+partial+update.+Th\u0026amp;theme=d92d74ff6d74cfcc3f2c1ceb\u0026amp;signature=adc3a1c6be7d2b1b090566014fd3a6152b144cbeb1c22f550694079cbef40567\">\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/swipe/c1cYpNBFxkNdbDrf/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Swipe\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2045D1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.getswipe.in/api-reference/document-v2/edit-a-document\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/document-v2/edit-a-document.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.getswipe.in/#organization\",\"name\":\"Swipe\",\"url\":\"https://developers.getswipe.in\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/swipe/DQkaOg10KeYQlKIu/logo/logo_g_light.webp?fit=max\u0026auto=format\u0026n=DQkaOg10KeYQlKIu\u0026q=85\u0026s=44d5e4b626518cb3542e8ef16e85f182\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.getswipe.in#website\",\"name\":\"Swipe\",\"url\":\"https://developers.getswipe.in\",\"publisher\":{\"@id\":\"https://developers.getswipe.in/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.getswipe.in/api-reference/document-v2/edit-a-document#webpage\",\"url\":\"https://developers.getswipe.in/api-reference/document-v2/edit-a-document\",\"name\":\"Edit a document\",\"description\":\"Replaces the contents of an existing document. Send the complete payload with every field's updated value — this is a full replacement, not a partial update. The document keeps its hash_id.\",\"dateModified\":\"2026-08-27T07:51:52.668Z\",\"isPartOf\":{\"@id\":\"https://developers.getswipe.in#website\"},\"breadcrumb\":{\"@id\":\"https://developers.getswipe.in/api-reference/document-v2/edit-a-document#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.getswipe.in/api-reference/document-v2/edit-a-document#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Documents\",\"item\":\"https://developers.getswipe.in/api-reference/document-v2/create-a-document\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Edit a document\",\"item\":\"https://developers.getswipe.in/api-reference/document-v2/edit-a-document\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.getswipe.in/api-reference/document-v2/edit-a-document#apireference\",\"headline\":\"Edit a document\",\"name\":\"Edit a document\",\"description\":\"Replaces the contents of an existing document. Send the complete payload with every field's updated value — this is a full replacement, not a partial update. The document keeps its hash_id.\",\"url\":\"https://developers.getswipe.in/api-reference/document-v2/edit-a-document\",\"mainEntityOfPage\":{\"@id\":\"https://developers.getswipe.in/api-reference/document-v2/edit-a-document#webpage\"},\"dateModified\":\"2026-08-27T07:51:52.668Z\",\"publisher\":{\"@id\":\"https://developers.getswipe.in/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.getswipe.in#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Swipe\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Swipe\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/document-v2/edit-a-document.md","siteName":"Swipe","nav":{"global":{"anchors":[{"anchor":"Run in Postman","icon":{"style":"thin","name":"user-astronaut"},"href":"https://god.gw.postman.com/run-collection/43895811-b7327b9d-1e50-4fed-af6f-660a918aa817?action=collection%2Ffork\u0026source=rip_markdown\u0026collection-url=entityId%3D43895811-b7327b9d-1e50-4fed-af6f-660a918aa817%26entityType%3Dcollection%26workspaceId%3D5d3fc3f0-668c-499e-833b-03222666ba2a"},{"anchor":"Blog","icon":"newspaper","href":"https://getswipe.in/blog"},{"anchor":"Community","icon":"slack","href":"https://community.getswipe.in/c/api-integration/14"}]},"versions":[{"version":"v2","anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Get Started","pages":[{"title":"Introduction","icon":"rocket","href":"/introduction"},{"title":"Quickstart","icon":"play","href":"/quickstart"},{"title":"Authentication","icon":"key","href":"/authentication"},{"title":"API Conventions","icon":"list-check","href":"/api-conventions"},{"title":"Build with AI","icon":"robot","href":"/build-with-ai"}]},{"group":"Guides","pages":[{"title":"Documents","icon":"file-invoice","href":"/document"},{"title":"Customers","icon":"users","href":"/customer"},{"title":"Vendors","icon":"building","href":"/vendor"},{"title":"Payments","icon":"credit-card","href":"/payment"},{"title":"Products","icon":"boxes-stacked","href":"/product"},{"title":"Inventory","icon":"warehouse","href":"/inventory"},{"title":"Subscriptions","icon":"repeat","href":"/subscriptions"},{"title":"E-Way Bills","icon":"truck-fast","href":"/ewaybills"},{"title":"E-Invoices","icon":"file-circle-check","href":"/einvoices"},{"title":"Webhooks","icon":"bolt","href":"/webhooks"}]},{"group":"Resources","pages":[{"title":"Error Codes","icon":"triangle-exclamation","href":"/api-reference/error-codes"},{"title":"Tax Codes (TDS \u0026 TCS)","icon":"percent","href":"/api-reference/tax-codes"},{"title":"Currencies, States \u0026 Countries","icon":"globe","href":"/api-reference/reference-data"},{"title":"Change Log","icon":"clock-rotate-left","href":"/api-reference/change-log"}]},{"group":"Documents","pages":[{"openapi":"post /v2/doc","title":"Create a document","href":"/api-reference/document-v2/create-a-document"},{"openapi":"get /v2/doc/{doc_hash_id}","title":"Get a document","href":"/api-reference/document-v2/get-a-document"},{"openapi":"get /v2/doc/pdf/{doc_hash_id}","title":"Get document PDF","description":"Returns the rendered PDF file for a document. The PDF uses the invoice templates and document settings configured on your Swipe account. Pass `delivery_challan=1` to get a delivery-challan copy instead.","href":"/api-reference/document-v2/get-document-pdf"},{"openapi":"put /v2/doc/{doc_hash_id}","title":"Edit a document","href":"/api-reference/document-v2/edit-a-document"},{"openapi":"delete /v2/doc/{doc_hash_id}","title":"Cancel a document","description":"Cancels an active document by its `hash_id`. The document remains in your account with a cancelled status.","href":"/api-reference/document-v2/cancel-a-document"},{"openapi":"get /v2/doc/list","title":"List of documents","href":"/api-reference/document-v2/list-of-documents"}]},{"group":"Payments","pages":[{"openapi":"post /v2/payment","title":"Record payment","href":"/api-reference/payment-v2/record-payment"},{"openapi":"get /v2/payment/list","title":"List of payments","href":"/api-reference/payment-v2/list-of-payments"}]},{"group":"E-Way Bills","pages":[{"openapi":"post /v2/ewaybill/{doc_hash_id}","title":"Create e-way bill","href":"/api-reference/ewaybill/create-eway-bill"},{"openapi":"get /v2/ewaybill/pdf/{doc_hash_id}","title":"Get e-way bill PDF","href":"/api-reference/ewaybill/get-ewaybill-pdf"}]},{"group":"Customers","pages":[{"openapi":"post /v2/customer","title":"Add a customer","href":"/api-reference/customer-v2/add-a-customer"},{"openapi":"get /v2/customer/{customer_id}","title":"Get customer details","href":"/api-reference/customer-v2/get-customer-details"},{"openapi":"put /v2/customer","title":"Update a customer","href":"/api-reference/customer-v2/update-a-customer"},{"openapi":"delete /v2/customer/{customer_id}","title":"Delete a customer","href":"/api-reference/customer-v2/delete-a-customer"},{"openapi":"get /v2/customer/ledger","title":"Get payment ledger","href":"/api-reference/customer-v2/get-payment-ledger"},{"openapi":"get /v2/customer/list","title":"Get list of customers","href":"/api-reference/customer-v2/get-list-of-customers"},{"openapi":"post /v2/customer/list","title":"Update customer mapping","href":"/api-reference/customer-v2/update-customer-mapping"}]},{"group":"Vendors","pages":[{"openapi":"post /v2/vendor","title":"Add a vendor","href":"/api-reference/vendor-v2/add-a-vendor"},{"openapi":"get /v2/vendor/{vendor_id}","title":"Get vendor details","href":"/api-reference/vendor-v2/get-vendor-details"},{"openapi":"put /v2/vendor","title":"Update a vendor","href":"/api-reference/vendor-v2/update-a-vendor"},{"openapi":"delete /v2/vendor/{vendor_id}","title":"Delete a vendor","href":"/api-reference/vendor-v2/delete-a-vendor"},{"openapi":"get /v2/vendor/ledger","title":"Get payment ledger","href":"/api-reference/vendor-v2/get-payment-ledger"},{"openapi":"get /v2/vendor/list","title":"Get list of vendors","href":"/api-reference/vendor-v2/get-list-of-vendors"},{"openapi":"post /v2/vendor/list","title":"Update vendor mapping","href":"/api-reference/vendor-v2/update-vendor-mapping"}]},{"group":"Products","pages":[{"openapi":"post /v2/product","title":"Add an item","href":"/api-reference/product-v2/add-an-item"},{"openapi":"get /v2/product/{item_id}","title":"Get item details","href":"/api-reference/product-v2/get-item-details"},{"openapi":"put /v2/product","title":"Update an item","href":"/api-reference/product-v2/update-an-item"},{"openapi":"delete /v2/product/{item_id}","title":"Delete an item","href":"/api-reference/product-v2/delete-an-item"},{"openapi":"get /v2/product/list","title":"Get list of items","href":"/api-reference/product-v2/get-list-of-items"},{"openapi":"post /v2/product/list","title":"Update items mapping","href":"/api-reference/product-v2/update-items-mapping"}]},{"group":"Inventory","pages":[{"openapi":"post /v2/inventory/stock","title":"Update inventory stock","href":"/api-reference/inventory-v2/inventory-stock-in-out"},{"openapi":"get /v2/inventory/warehouses/list","title":"Get all warehouses","href":"/api-reference/inventory-v2/get-all-warehouses"}]},{"group":"Subscriptions","pages":[{"openapi":"get /v2/subscriptions/list","title":"List of subscriptions","href":"/api-reference/subscriptions-v2/list-of-subscriptions"},{"openapi":"get /v2/subscriptions/{subscription_hash_id}","title":"Get subscription details","href":"/api-reference/subscriptions-v2/get-subscription-details"}]},{"group":"Utility","pages":[{"openapi":"get /v2/utils/gstin/{gstin}","title":"Get GSTIN details","href":"/api-reference/utility-v2/get-gstin-v2"}]}]}]},{"version":"v1 (Deprecated)","pages":[{"title":"v1 (Deprecated)","href":"/introduction"}]}]},"basePath":"","title":"Edit a document - Swipe","buildId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","deploymentId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DDP9JXtj.js","utils-8yQyvEtx.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CBCFR8Sn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-rQaXkUHa.js","snippetPresets-J5KpBTgV.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BVxVH4Cj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BxdQ2vIi.js","shallow-BjV2tFiD.js","getApiPlaygroundDisplay-C_55tL4O.js","CodeSnippet-C0JpiCOC.js","CodeSnippets-w9Ps7djG.js","Page-DTNSD-0M.js","getPastedJson-BDfB-H8d.js","icon-g-kUkkO9.js","MethodPill-v4l6fq0h.js","DuplicateIcon-CvLo-CfU.js","createIcon-165clrrV.js","DynamicMarkdown-D3RQ-fEj.js","SectionHeading-vvo-3yLf.js","axios-vUo_bRtp.js","Markdown-CMT1uFWQ.js","clsx-C8f2yC9R.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CI2D8R2Y.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-k78Wrw_e.js"]}