Generates an e-way bill for an existing document, identified by its hash_id. Requires the transport details: supply type, transport mode, dispatch addresses, and transporter document date. Your account must be connected to the e-way bill portal; portal rejections are returned as PORTAL_ERROR_{code}. By default this points to the government sandbox portal.
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.
{"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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/ewaybill/create-eway-bill","slug":"/api-reference/ewaybill/create-eway-bill","pageMetadata":{"openapi":"post /v2/ewaybill/{doc_hash_id}","title":"Create e-way bill","description":"Generates an e-way bill for an existing document, identified by its `hash_id`. Requires the transport details: supply type, transport mode, dispatch addresses, and transporter document date. Your account must be connected to the e-way bill portal; portal rejections are returned as `PORTAL_ERROR_{code}`. By default this points to the government sandbox portal.","href":"/api-reference/ewaybill/create-eway-bill"},"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: [\"Generates an e-way bill for an existing document, identified by its \", _jsx(_components.code, {\n children: \"hash_id\"\n }), \". Requires the transport details: supply type, transport mode, dispatch addresses, and transporter document date. Your account must be connected to the e-way bill portal; portal rejections are returned as \", _jsx(_components.code, {\n children: \"PORTAL_ERROR_{code}\"\n }), \". By default this points to the government sandbox portal.\"]\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={a:`a`,p:`p`,..._provideComponents(),...props.components},{Note}=_components;if(!Note)_missingMdxReference(`Note`,true);return _jsx(Note,{children:_jsxs(_components.p,{children:[`To create an EwayBill first connect to `,_jsx(_components.a,{href:`https://app.getswipe.in/ewaybills`,children:`EwayBill Portal`}),`.`]})})}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":"post /v2/ewaybill/{doc_hash_id}","title":"Create e-way bill","description":"Generates an e-way bill for an existing document, identified by its `hash_id`. Requires the transport details: supply type, transport mode, dispatch addresses, and transporter document date. Your account must be connected to the e-way bill portal; portal rejections are returned as `PORTAL_ERROR_{code}`. By default this points to the government sandbox portal.","href":"/api-reference/ewaybill/create-eway-bill"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create e-way bill","operationId":"post_eway_bill","tags":["EwayBill"],"requestBody":"0157111a-7873-4f2c-8195-8c51b6ca24e0","responses":{"200":"b6c2186b-80b4-4414-935e-de9099ed2f05","400":"ad409512-cd06-4e16-875f-12d15d0d5028","401":"46cc07d5-4a89-4db3-bccb-1667d1804ac1","500":"769fefe6-c552-47c8-9b70-a21494b78d10"},"description":"Generates an e-way bill for an existing document, identified by its `hash_id`. Requires the transport details: supply type, transport mode, dispatch addresses, and transporter document date. Your account must be connected to the e-way bill portal; portal rejections are returned as `PORTAL_ERROR_{code}`. By default this points to the government sandbox portal.","method":"post","type":"path","servers":["82b38fec-7303-4b6e-86bb-63d990b1e4ef"],"security":["13576f02-530d-4f08-aab7-91987ee153ab"],"path":"/v2/ewaybill/{doc_hash_id}","baseUrlOptions":["https://app.getswipe.in/api/partner"],"title":"Create e-way bill","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"a6146077-bb76-4d30-a3b4-890c107f6485":{"name":"doc_hash_id","in":"path","description":"The hash id of the document","required":true,"schema":{"type":"string","isRequired":true,"description":"The hash id of the document","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"required":["dispatch_from","dispatch_to","sub_supply_type","supply_type","transport_mode","transporter_doc_date"],"properties":{"supply_type":{"type":"string","description":"Supply Type","example":"Outward","enum":["Outward","Inward"],"isRequired":true,"uniqueKey":"supply_type","typeLabel":"enum\u003cstring>"},"sub_supply_type":{"type":"string","description":"Sub Supply Type","example":"Supply","enum":["Supply","Export","Job Work","SKD/CKD/Lots","Recipient Not Known","For Own Use","Job Work Returns","Sales Returns","Exhibition or fairs","Line Sales","Others"],"isRequired":true,"uniqueKey":"sub_supply_type","typeLabel":"enum\u003cstring>"},"transporter_doc_date":{"type":"string","description":"DD-MM-YYYY","example":"05-03-2025","isRequired":true,"uniqueKey":"transporter_doc_date","typeLabel":"string"},"dispatch_from":{"type":"object","description":"Dispatch From Address","required":["addr_id","address_line1","address_line2","city","country","pincode","state"],"properties":{"addr_id":{"type":"integer","description":"Address ID. Value should be n >= 0 and n \u003c= 999999, It will automatically update the existing address if the address ID already exists.\n ","example":-1,"isRequired":true,"uniqueKey":"dispatch_from.addr_id","typeLabel":"integer"},"address_line1":{"type":"string","description":"Address Line 1","example":"123 Street","isRequired":true,"uniqueKey":"dispatch_from.address_line1","typeLabel":"string"},"address_line2":{"type":"string","description":"Address Line 2","example":"Apt 4B","isRequired":true,"uniqueKey":"dispatch_from.address_line2","typeLabel":"string"},"city":{"type":"string","description":"City","example":"City Name","isRequired":true,"uniqueKey":"dispatch_from.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":"dispatch_from.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":"dispatch_from.country","typeLabel":"enum\u003cstring>"},"pincode":{"type":"string","description":"Pincode","example":"123456","isRequired":true,"uniqueKey":"dispatch_from.pincode","typeLabel":"string"}},"isRequired":true,"uniqueKey":"dispatch_from","typeLabel":"object"},"dispatch_to":{"type":"object","description":"Dispatch To Address","required":["addr_id","address_line1","address_line2","city","country","pincode","state"],"properties":{"addr_id":{"type":"integer","description":"Address ID. Value should be n >= 0 and n \u003c= 999999, It will automatically update the existing address if the address ID already exists.\n ","example":-1,"isRequired":true,"uniqueKey":"dispatch_to.addr_id","typeLabel":"integer"},"address_line1":{"type":"string","description":"Address Line 1","example":"123 Street","isRequired":true,"uniqueKey":"dispatch_to.address_line1","typeLabel":"string"},"address_line2":{"type":"string","description":"Address Line 2","example":"Apt 4B","isRequired":true,"uniqueKey":"dispatch_to.address_line2","typeLabel":"string"},"city":{"type":"string","description":"City","example":"City Name","isRequired":true,"uniqueKey":"dispatch_to.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":"dispatch_to.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":"dispatch_to.country","typeLabel":"enum\u003cstring>"},"pincode":{"type":"string","description":"Pincode","example":"123456","isRequired":true,"uniqueKey":"dispatch_to.pincode","typeLabel":"string"}},"isRequired":true,"uniqueKey":"dispatch_to","typeLabel":"object"},"transport_mode":{"type":"string","description":"Transport Mode","example":"Road","enum":["Road","Rail","Air","Ship or Ship Cum Road/Rail"],"isRequired":true,"uniqueKey":"transport_mode","typeLabel":"enum\u003cstring>"},"vehicle_type":{"type":"string","description":"Vehicle Type","example":"Regular","enum":["Regular","Over Dimensional Cargo"],"uniqueKey":"vehicle_type","typeLabel":"enum\u003cstring>"},"transaction_type":{"type":"string","description":"Transaction Type","example":"Regular","enum":["Regular","Bill To - Ship To","Bill From - Dispatch From","Combination of 2 and 3"],"uniqueKey":"transaction_type","typeLabel":"enum\u003cstring>"},"ship_to_gstin":{"type":"string","description":"Ship To GSTIN of the consignee, or 'URP' if unregistered. Required for 'Bill To - Ship To' and 'Combination of 2 and 3' transaction types.","example":"29ABCDE1234F1Z5","uniqueKey":"ship_to_gstin","typeLabel":"string"},"sub_supply_type_description":{"type":"string","description":"Sub Supply Type Description","example":"Supply of goods","uniqueKey":"sub_supply_type_description","typeLabel":"string"},"transporter_id":{"type":"string","description":"Transporter ID","example":"123456","uniqueKey":"transporter_id","typeLabel":"string"},"transporter_name":{"type":"string","description":"Transporter Name","example":"Transporter Name","uniqueKey":"transporter_name","typeLabel":"string"},"vehicle_number":{"type":"string","description":"Vehicle Number","example":"KA01AB1234","uniqueKey":"vehicle_number","typeLabel":"string"},"transporter_doc_number":{"type":"string","description":"Transporter Document Number","example":"123456","uniqueKey":"transporter_doc_number","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"supply_type":"Outward","sub_supply_type":"Supply","transporter_doc_date":"05-03-2025","dispatch_from":{"addr_id":-1,"address_line1":"123 Street","address_line2":"Apt 4B","city":"City Name","state":"State Name","country":"Country Name","pincode":"123456"},"dispatch_to":{"addr_id":-1,"address_line1":"123 Street","address_line2":"Apt 4B","city":"City Name","state":"State Name","country":"Country Name","pincode":"123456"},"transport_mode":"Road","vehicle_type":"Regular","transaction_type":"Regular","ship_to_gstin":"29ABCDE1234F1Z5","sub_supply_type_description":"Supply of goods","transporter_id":"123456","transporter_name":"Transporter Name","vehicle_number":"KA01AB1234","transporter_doc_number":"123456"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"b6c2186b-80b4-4414-935e-de9099ed2f05":{"description":"Success","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean","description":"Success","example":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Message","example":"Eway Bill created successfully","uniqueKey":"message","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"message":"Eway Bill created successfully"}}},"exampleType":"generated"}},"exampleType":"generated"},"ad409512-cd06-4e16-875f-12d15d0d5028":{"description":"Bad Request","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean","default":false,"example":false,"uniqueKey":"success","typeLabel":"boolean"},"error_code":{"type":"string","description":"Error Code unique for a specific error. For ewaybill portal errors, error_code will be PORTAL_ERROR_[ewaybill_portal_errorcode] ex: PORTAL_ERROR_2247, we can refer description for error code from here https://einvoice1.gst.gov.in/others/geterrorcodes/EWB","example":"INVALID_HASH_ID","uniqueKey":"error_code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"Some error occurred","uniqueKey":"message","typeLabel":"string"},"errors":{"type":"object","description":"Error details","uniqueKey":"errors","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error_code":"INVALID_HASH_ID","message":"Some error occurred","errors":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"46cc07d5-4a89-4db3-bccb-1667d1804ac1":{"description":"Unauthorized","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean","default":false,"example":false,"uniqueKey":"success","typeLabel":"boolean"},"error_code":{"type":"string","description":"Error Code unique for a specific error. For ewaybill portal errors, error_code will be PORTAL_ERROR_[ewaybill_portal_errorcode] ex: PORTAL_ERROR_2247, we can refer description for error code from here https://einvoice1.gst.gov.in/others/geterrorcodes/EWB","example":"INVALID_HASH_ID","uniqueKey":"error_code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"Some error occurred","uniqueKey":"message","typeLabel":"string"},"errors":{"type":"object","description":"Error details","uniqueKey":"errors","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error_code":"INVALID_HASH_ID","message":"Some error occurred","errors":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"769fefe6-c552-47c8-9b70-a21494b78d10":{"description":"Server Error","content":{"application/json":{"schema":{"properties":{"success":{"type":"boolean","default":false,"example":false,"uniqueKey":"success","typeLabel":"boolean"},"error_code":{"type":"string","description":"Error Code unique for a specific error. For ewaybill portal errors, error_code will be PORTAL_ERROR_[ewaybill_portal_errorcode] ex: PORTAL_ERROR_2247, we can refer description for error code from here https://einvoice1.gst.gov.in/others/geterrorcodes/EWB","example":"INVALID_HASH_ID","uniqueKey":"error_code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"Some error occurred","uniqueKey":"message","typeLabel":"string"},"errors":{"type":"object","description":"Error details","uniqueKey":"errors","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error_code":"INVALID_HASH_ID","message":"Some error occurred","errors":{}}}},"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":"Create e-way bill - Swipe","navMaps":{"firstHrefInVersion":{"v2":{"href":"/api-reference/ewaybill/create-eway-bill","matchLevel":0},"v1 (Deprecated)":{"href":"/api-reference/ewaybill/create-eway-bill","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-08-27T07:51:51.981Z","originalFileLocation":"api-reference/ewaybill/create-eway-bill.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=\"Generates an e-way bill for an existing document, identified by its hash_id. Requires the transport details: supply type, transport mode, dispatch addresses, and transporter document date. Your account must be connected to the e-way bill portal; portal rejections are returned as PORTAL_ERROR_{code}. By default this points to the government sandbox portal.\">\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=\"Create e-way bill - Swipe\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generates an e-way bill for an existing document, identified by its hash_id. Requires the transport details: supply type, transport mode, dispatch addresses, and transporter document date. Your account must be connected to the e-way bill portal; portal rejections are returned as PORTAL_ERROR_{code}. By default this points to the government sandbox portal.\">\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/ewaybill/create-eway-bill\">\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=E-Way+Bills\u0026amp;title=Create+e-way+bill\u0026amp;description=Generates+an+e-way+bill+for+an+existing+document%2C+identified+by+its+%60hash_id%60.+Requires+the+transport+details%3A+supply+type%2C+transport+mode%2C+dispatch+addresses%2C+\u0026amp;theme=d92d74ff6d74cfcc3f2c1ceb\u0026amp;signature=39c1040b69d7b6d6edb94fbd417a1ea947a2694f006150255cd601fc412150bb\">\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 e-way bill - Swipe\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generates an e-way bill for an existing document, identified by its hash_id. Requires the transport details: supply type, transport mode, dispatch addresses, and transporter document date. Your account must be connected to the e-way bill portal; portal rejections are returned as PORTAL_ERROR_{code}. By default this points to the government sandbox portal.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://swipe.mintlify.site/_mintlify/api/og/v2?division=E-Way+Bills\u0026amp;title=Create+e-way+bill\u0026amp;description=Generates+an+e-way+bill+for+an+existing+document%2C+identified+by+its+%60hash_id%60.+Requires+the+transport+details%3A+supply+type%2C+transport+mode%2C+dispatch+addresses%2C+\u0026amp;theme=d92d74ff6d74cfcc3f2c1ceb\u0026amp;signature=39c1040b69d7b6d6edb94fbd417a1ea947a2694f006150255cd601fc412150bb\">\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/ewaybill/create-eway-bill\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/ewaybill/create-eway-bill.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/ewaybill/create-eway-bill#webpage\",\"url\":\"https://developers.getswipe.in/api-reference/ewaybill/create-eway-bill\",\"name\":\"Create e-way bill\",\"description\":\"Generates an e-way bill for an existing document, identified by its hash_id. Requires the transport details: supply type, transport mode, dispatch addresses, and transporter document date. Your account must be connected to the e-way bill portal; portal rejections are returned as PORTAL_ERROR_{code}. By default this points to the government sandbox portal.\",\"dateModified\":\"2026-08-27T07:51:51.981Z\",\"isPartOf\":{\"@id\":\"https://developers.getswipe.in#website\"},\"breadcrumb\":{\"@id\":\"https://developers.getswipe.in/api-reference/ewaybill/create-eway-bill#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.getswipe.in/api-reference/ewaybill/create-eway-bill#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Swipe\",\"item\":\"https://developers.getswipe.in\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create e-way bill\",\"item\":\"https://developers.getswipe.in/api-reference/ewaybill/create-eway-bill\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.getswipe.in/api-reference/ewaybill/create-eway-bill#apireference\",\"headline\":\"Create e-way bill\",\"name\":\"Create e-way bill\",\"description\":\"Generates an e-way bill for an existing document, identified by its hash_id. Requires the transport details: supply type, transport mode, dispatch addresses, and transporter document date. Your account must be connected to the e-way bill portal; portal rejections are returned as PORTAL_ERROR_{code}. By default this points to the government sandbox portal.\",\"url\":\"https://developers.getswipe.in/api-reference/ewaybill/create-eway-bill\",\"mainEntityOfPage\":{\"@id\":\"https://developers.getswipe.in/api-reference/ewaybill/create-eway-bill#webpage\"},\"dateModified\":\"2026-08-27T07:51:51.981Z\",\"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/ewaybill/create-eway-bill.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","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","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","description":"Lists payments recorded within a required date range.","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","description":"Returns the e-way bill PDF for a document whose e-way bill has already been generated.","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)","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":"Document","pages":[{"openapi":"post /v1/doc","title":"Create a document","href":"/api-reference/document/create-a-document"},{"openapi":"get /v1/doc/pdf/{doc_hash_id}","title":"Get document PDF","href":"/api-reference/document/get-document-pdf"},{"openapi":"delete /v1/doc/{doc_hash_id}","title":"Cancel a document","href":"/api-reference/document/cancel-a-document"}]},{"group":"Payment","pages":[{"openapi":"post /v1/payment","title":"Record payment","href":"/api-reference/payment/record-payment"}]},{"group":"Customer","pages":[{"openapi":"post /v1/customer","title":"Add a customer","href":"/api-reference/customer/add-a-customer"},{"openapi":"get /v1/customer/{customer_id}","title":"Get a customer","href":"/api-reference/customer/get-a-customer"},{"openapi":"put /v1/customer","title":"Update a customer","href":"/api-reference/customer/update-a-customer"},{"openapi":"delete /v1/customer/{customer_id}","title":"Delete a customer","href":"/api-reference/customer/delete-a-customer"},{"openapi":"get /v1/customer/ledger","title":"Get payment ledger","href":"/api-reference/customer/get-payment-ledger"},{"openapi":"get /v1/customer/list","title":"Get list of customers","href":"/api-reference/customer/get-list-of-customers"},{"openapi":"post /v1/customer/list","title":"Update customer mapping","href":"/api-reference/customer/update-customer-mapping"}]},{"group":"Product","pages":[{"openapi":"post /v1/product","title":"Add an item","href":"/api-reference/product/add-an-item"},{"openapi":"get /v1/product/{item_id}","title":"Get item details","href":"/api-reference/product/get-item-details"},{"openapi":"put /v1/product","title":"Update an item","href":"/api-reference/product/update-an-item"},{"openapi":"delete /v1/product/{item_id}","title":"Delete an item","href":"/api-reference/product/delete-an-item"},{"openapi":"get /v1/product/list","title":"Get list of items","href":"/api-reference/product/get-list-of-items"},{"openapi":"post /v1/product/list","title":"Update items mapping","href":"/api-reference/product/update-items-mapping"}]},{"group":"Subscriptions","pages":[{"openapi":"get /v1/subscriptions/list","title":"List of subscriptions","href":"/api-reference/subscriptions/list-of-subscriptions"},{"openapi":"get /v1/subscriptions/{subscription_hash_id}","title":"Get subscription details","href":"/api-reference/subscriptions/get-subscription-details"}]},{"group":"Utility","pages":[{"openapi":"get /v1/utils/gstin/{gstin}","title":"Get GSTIN details","href":"/api-reference/utility/get-gstin"}]},{"group":"EwayBill","pages":[{"openapi":"get /v2/ewaybill/pdf/{doc_hash_id}","title":"Get e-way bill PDF","description":"Returns the e-way bill PDF for a document whose e-way bill has already been generated.","href":"/api-reference/ewaybill/get-ewaybill-pdf"},{"openapi":"post /v2/ewaybill/{doc_hash_id}","title":"Create e-way bill","href":"/api-reference/ewaybill/create-eway-bill"}]}]}]}]},"basePath":"","title":"Create e-way bill - 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"]}