Creates a shipment in pending / awaiting_payment. The workspace must have PayChangu connected, and the route must be covered. API creates do not set created_by.If the customer name and email already exist on the workspace, Kasiye links that customer. Otherwise it creates a customer record.
Connect PayChangu on the workspace first. Otherwise the API returns 422 on paychangu. Uncovered routes return 422 on coverage or weight_kg.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Kasiye","description":"Quote, create, and manage shipments with the Kasiye workspace API.","colors":{"primary":"#E05A1B","light":"#EA580C","dark":"#FB923C"},"logo":{"light":"https://mintcdn.com/kasiye/qha5jz8BGYkeFbVr/logo/light.svg?fit=max\u0026auto=format\u0026n=qha5jz8BGYkeFbVr\u0026q=85\u0026s=5f460b4f56e75a569d8f86e795ee1da2","dark":"https://mintcdn.com/kasiye/qha5jz8BGYkeFbVr/logo/dark.svg?fit=max\u0026auto=format\u0026n=qha5jz8BGYkeFbVr\u0026q=85\u0026s=5c3c2bb25cabe0c25c9b78f8c5a1ebdf"},"favicon":"https://mintcdn.com/kasiye/qha5jz8BGYkeFbVr/favicon.svg?fit=max\u0026auto=format\u0026n=qha5jz8BGYkeFbVr\u0026q=85\u0026s=9843a43a2846eb72b8b3da244e92f059","api":{"playground":{"display":"interactive"},"examples":{"languages":["bash","javascript","python"]},"url":"full","mdx":{"auth":{"method":"bearer"},"server":["https://api.kasiye.com/v1","http://api.localhost:8000/v1"]}},"navbar":{"links":[{"href":"https://kasiye.com","label":"Dashboard"}],"primary":{"type":"button","label":"Get started","href":"https://app.kasiye.com/register"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kasiye","hasAudioNarration":false,"actualSubdomain":"kasiye","customDomains":["docs.kasiye.com"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-paychangu-3b44c321","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aea221fe5156d044f1adf74:success","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API reference","count":7},{"language":"default","tag":"Shipments","count":7},{"language":"default","tag":"Documentation","count":6},{"language":"default","tag":"Getting started","count":3},{"language":"default","tag":"Guides","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/create-shipment","slug":"/api-reference/create-shipment","pageMetadata":{"title":"Create a shipment","description":"Book a covered shipment for the authenticated workspace.","api":"POST /shipments","icon":"plus","keywords":["create","shipment","paychangu"],"href":"/api-reference/create-shipment"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Book a covered shipment for the authenticated workspace.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{ParamField,Warning}=_components;if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates a shipment in `,_jsx(_components.code,{children:`pending`}),` / `,_jsx(_components.code,{children:`awaiting_payment`}),`. The workspace must have PayChangu connected, and the route must be covered. API creates do not set `,_jsx(_components.code,{children:`created_by`}),`.`]}),`\n`,_jsx(_components.p,{children:`If the customer name and email already exist on the workspace, Kasiye links that customer. Otherwise it creates a customer record.`}),`\n`,_jsx(ParamField,{body:`customer_name`,type:`string`,required:true,id:`param-customer-name`,children:_jsx(_components.p,{children:`Customer display name.`})}),`\n`,_jsx(ParamField,{body:`customer_email`,type:`string`,required:true,id:`param-customer-email`,children:_jsx(_components.p,{children:`Customer email.`})}),`\n`,_jsx(ParamField,{body:`customer_id`,type:`number`,id:`param-customer-id`,children:_jsx(_components.p,{children:`Existing customer id on this workspace. Ignored if it belongs to another team.`})}),`\n`,_jsx(ParamField,{body:`customer_id_number`,type:`string`,id:`param-customer-id-number`,children:_jsx(_components.p,{children:`Optional national id or similar identifier.`})}),`\n`,_jsx(ParamField,{body:`pickup_address`,type:`string`,required:true,id:`param-pickup-address`,children:_jsx(_components.p,{children:`Human-readable pickup address.`})}),`\n`,_jsx(ParamField,{body:`pickup_lat`,default:`-13.9626`,type:`number`,required:true,id:`param-pickup-lat`,children:_jsxs(_components.p,{children:[`Pickup latitude (`,_jsx(_components.code,{children:`-90`}),` to `,_jsx(_components.code,{children:`90`}),`).`]})}),`\n`,_jsx(ParamField,{body:`pickup_lng`,default:`33.7741`,type:`number`,required:true,id:`param-pickup-lng`,children:_jsxs(_components.p,{children:[`Pickup longitude (`,_jsx(_components.code,{children:`-180`}),` to `,_jsx(_components.code,{children:`180`}),`).`]})}),`\n`,_jsx(ParamField,{body:`dropoff_address`,type:`string`,required:true,id:`param-dropoff-address`,children:_jsx(_components.p,{children:`Human-readable dropoff address.`})}),`\n`,_jsx(ParamField,{body:`dropoff_lat`,default:`-13.9833`,type:`number`,required:true,id:`param-dropoff-lat`,children:_jsxs(_components.p,{children:[`Dropoff latitude (`,_jsx(_components.code,{children:`-90`}),` to `,_jsx(_components.code,{children:`90`}),`).`]})}),`\n`,_jsx(ParamField,{body:`dropoff_lng`,default:`33.7689`,type:`number`,required:true,id:`param-dropoff-lng`,children:_jsxs(_components.p,{children:[`Dropoff longitude (`,_jsx(_components.code,{children:`-180`}),` to `,_jsx(_components.code,{children:`180`}),`).`]})}),`\n`,_jsx(ParamField,{body:`weight_kg`,default:`5`,type:`number`,required:true,id:`param-weight-kg`,children:_jsxs(_components.p,{children:[`Package weight in kilograms. Must be at least `,_jsx(_components.code,{children:`0.01`}),`.`]})}),`\n`,`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`201`}),` with the shipment wrapped in `,_jsx(_components.code,{children:`data`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Connect PayChangu on the workspace first. Otherwise the API returns `,_jsx(_components.code,{children:`422`}),` on `,_jsx(_components.code,{children:`paychangu`}),`. Uncovered routes return `,_jsx(_components.code,{children:`422`}),` on `,_jsx(_components.code,{children:`coverage`}),` or `,_jsx(_components.code,{children:`weight_kg`}),`.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a shipment","description":"Book a covered shipment for the authenticated workspace.","api":"POST /shipments","icon":"plus","keywords":["create","shipment","paychangu"],"href":"/api-reference/create-shipment"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,ParamField,RequestExample,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates a shipment in `,_jsx(_components.code,{children:`pending`}),` / `,_jsx(_components.code,{children:`awaiting_payment`}),`. The workspace must have PayChangu connected, and the route must be covered. API creates do not set `,_jsx(_components.code,{children:`created_by`}),`.`]}),`\n`,_jsx(_components.p,{children:`If the customer name and email already exist on the workspace, Kasiye links that customer. Otherwise it creates a customer record.`}),`\n`,_jsx(ParamField,{body:`customer_name`,type:`string`,required:true,id:`param-customer-name`,children:_jsx(_components.p,{children:`Customer display name.`})}),`\n`,_jsx(ParamField,{body:`customer_email`,type:`string`,required:true,id:`param-customer-email`,children:_jsx(_components.p,{children:`Customer email.`})}),`\n`,_jsx(ParamField,{body:`customer_id`,type:`number`,id:`param-customer-id`,children:_jsx(_components.p,{children:`Existing customer id on this workspace. Ignored if it belongs to another team.`})}),`\n`,_jsx(ParamField,{body:`customer_id_number`,type:`string`,id:`param-customer-id-number`,children:_jsx(_components.p,{children:`Optional national id or similar identifier.`})}),`\n`,_jsx(ParamField,{body:`pickup_address`,type:`string`,required:true,id:`param-pickup-address`,children:_jsx(_components.p,{children:`Human-readable pickup address.`})}),`\n`,_jsx(ParamField,{body:`pickup_lat`,default:`-13.9626`,type:`number`,required:true,id:`param-pickup-lat`,children:_jsxs(_components.p,{children:[`Pickup latitude (`,_jsx(_components.code,{children:`-90`}),` to `,_jsx(_components.code,{children:`90`}),`).`]})}),`\n`,_jsx(ParamField,{body:`pickup_lng`,default:`33.7741`,type:`number`,required:true,id:`param-pickup-lng`,children:_jsxs(_components.p,{children:[`Pickup longitude (`,_jsx(_components.code,{children:`-180`}),` to `,_jsx(_components.code,{children:`180`}),`).`]})}),`\n`,_jsx(ParamField,{body:`dropoff_address`,type:`string`,required:true,id:`param-dropoff-address`,children:_jsx(_components.p,{children:`Human-readable dropoff address.`})}),`\n`,_jsx(ParamField,{body:`dropoff_lat`,default:`-13.9833`,type:`number`,required:true,id:`param-dropoff-lat`,children:_jsxs(_components.p,{children:[`Dropoff latitude (`,_jsx(_components.code,{children:`-90`}),` to `,_jsx(_components.code,{children:`90`}),`).`]})}),`\n`,_jsx(ParamField,{body:`dropoff_lng`,default:`33.7689`,type:`number`,required:true,id:`param-dropoff-lng`,children:_jsxs(_components.p,{children:[`Dropoff longitude (`,_jsx(_components.code,{children:`-180`}),` to `,_jsx(_components.code,{children:`180`}),`).`]})}),`\n`,_jsx(ParamField,{body:`weight_kg`,default:`5`,type:`number`,required:true,id:`param-weight-kg`,children:_jsxs(_components.p,{children:[`Package weight in kilograms. Must be at least `,_jsx(_components.code,{children:`0.01`}),`.`]})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.kasiye.com/v1/shipments`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer shp_your_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customer_name\": \"Acme Corp\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customer_email\": \"logistics@acme.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pickup_address\": \"Area 47, Lilongwe\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pickup_lat\": -13.9626,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pickup_lng\": 33.7741,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dropoff_address\": \"City Centre, Lilongwe\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dropoff_lat\": -13.9833,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dropoff_lng\": 33.7689,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"weight_kg\": 5`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`201`}),` with the shipment wrapped in `,_jsx(_components.code,{children:`data`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Connect PayChangu on the workspace first. Otherwise the API returns `,_jsx(_components.code,{children:`422`}),` on `,_jsx(_components.code,{children:`paychangu`}),`. Uncovered routes return `,_jsx(_components.code,{children:`422`}),` on `,_jsx(_components.code,{children:`coverage`}),` or `,_jsx(_components.code,{children:`weight_kg`}),`.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a shipment","description":"Book a covered shipment for the authenticated workspace.","api":"POST /shipments","icon":"plus","keywords":["create","shipment","paychangu"],"href":"/api-reference/create-shipment"}}}},"mdxExtracts":{"tableOfContents":[],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"14\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.kasiye.com/v1/shipments\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer shp_your_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"customer_name\": \"Acme Corp\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"customer_email\": \"logistics@acme.com\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"pickup_address\": \"Area 47, Lilongwe\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"pickup_lat\": -13.9626,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"pickup_lng\": 33.7741,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"dropoff_address\": \"City Centre, Lilongwe\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"dropoff_lat\": -13.9833,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"dropoff_lng\": 33.7689,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"weight_kg\": 5\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Create a shipment","path":"/shipments","servers":[{"url":"https://api.kasiye.com/v1"},{"url":"http://api.localhost:8000/v1"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"customer_name":[{"type":"string","description":"Customer display name.","required":true}],"customer_email":[{"type":"string","description":"Customer email.","required":true}],"customer_id":[{"type":"number","description":"Existing customer id on this workspace. Ignored if it belongs to another team."}],"customer_id_number":[{"type":"string","description":"Optional national id or similar identifier."}],"pickup_address":[{"type":"string","description":"Human-readable pickup address.","required":true}],"pickup_lat":[{"type":"number","description":"Pickup latitude ( `-90` to `90` ).","required":true}],"pickup_lng":[{"type":"number","description":"Pickup longitude ( `-180` to `180` ).","required":true}],"dropoff_address":[{"type":"string","description":"Human-readable dropoff address.","required":true}],"dropoff_lat":[{"type":"number","description":"Dropoff latitude ( `-90` to `90` ).","required":true}],"dropoff_lng":[{"type":"number","description":"Dropoff longitude ( `-180` to `180` ).","required":true}],"weight_kg":[{"type":"number","description":"Package weight in kilograms. Must be at least `0.01` .","required":true}]}}],"examples":{"example":{"value":{"customer_name":"\u003cstring>","customer_email":"\u003cstring>","customer_id":123,"customer_id_number":"\u003cstring>","pickup_address":"\u003cstring>","pickup_lat":123,"pickup_lng":123,"dropoff_address":"\u003cstring>","dropoff_lat":123,"dropoff_lng":123,"weight_kg":123}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"kasiye","siteName":"Kasiye","title":"Create a shipment - Kasiye","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-13T10:51:22.797Z","originalFileLocation":"api-reference/create-shipment.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=\"Book a covered shipment for the authenticated workspace.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kasiye\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a shipment - Kasiye\">\u003cmeta data-mint-head property=\"og:description\" content=\"Book a covered shipment for the authenticated workspace.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kasiye\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kasiye.com/api-reference/create-shipment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kasiye.mintlify.site/_mintlify/api/og/v2?division=Shipments\u0026amp;title=Create+a+shipment\u0026amp;description=Book+a+covered+shipment+for+the+authenticated+workspace.\u0026amp;theme=17b12ddd23548fc387d67bba\u0026amp;signature=f2f54769c20dad8f5f013401be40acc4b3b8e5450a7c764194b033825514101b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a shipment - Kasiye\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Book a covered shipment for the authenticated workspace.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kasiye.mintlify.site/_mintlify/api/og/v2?division=Shipments\u0026amp;title=Create+a+shipment\u0026amp;description=Book+a+covered+shipment+for+the+authenticated+workspace.\u0026amp;theme=17b12ddd23548fc387d67bba\u0026amp;signature=f2f54769c20dad8f5f013401be40acc4b3b8e5450a7c764194b033825514101b\">\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/kasiye/Qo2-dNWDS3LCCoaX/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kasiye\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#E05A1B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kasiye.com/api-reference/create-shipment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/create-shipment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kasiye.com/#organization\",\"name\":\"Kasiye\",\"url\":\"https://docs.kasiye.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kasiye/qha5jz8BGYkeFbVr/logo/light.svg?fit=max\u0026auto=format\u0026n=qha5jz8BGYkeFbVr\u0026q=85\u0026s=5f460b4f56e75a569d8f86e795ee1da2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kasiye.com#website\",\"name\":\"Kasiye\",\"url\":\"https://docs.kasiye.com\",\"publisher\":{\"@id\":\"https://docs.kasiye.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kasiye.com/api-reference/create-shipment#webpage\",\"url\":\"https://docs.kasiye.com/api-reference/create-shipment\",\"name\":\"Create a shipment\",\"description\":\"Book a covered shipment for the authenticated workspace.\",\"dateModified\":\"2026-08-13T10:51:22.797Z\",\"isPartOf\":{\"@id\":\"https://docs.kasiye.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kasiye.com/api-reference/create-shipment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kasiye.com/api-reference/create-shipment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Shipments\",\"item\":\"https://docs.kasiye.com/api-reference/list-shipments\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a shipment\",\"item\":\"https://docs.kasiye.com/api-reference/create-shipment\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.kasiye.com/api-reference/create-shipment#apireference\",\"headline\":\"Create a shipment\",\"name\":\"Create a shipment\",\"description\":\"Book a covered shipment for the authenticated workspace.\",\"url\":\"https://docs.kasiye.com/api-reference/create-shipment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kasiye.com/api-reference/create-shipment#webpage\"},\"dateModified\":\"2026-08-13T10:51:22.797Z\",\"keywords\":\"create, shipment, paychangu\",\"publisher\":{\"@id\":\"https://docs.kasiye.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kasiye.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kasiye\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Kasiye","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"Shipments","icon":"box","pages":[{"title":"List shipments","api":"GET /shipments","icon":"list","href":"/api-reference/list-shipments"},{"title":"Quote a shipment","description":"Calculate coverage and fees for a pickup, dropoff, and weight.","api":"POST /shipments/quote","icon":"calculator","href":"/api-reference/quote-shipment"},{"title":"Create a shipment","api":"POST /shipments","icon":"plus","href":"/api-reference/create-shipment"},{"title":"Retrieve a shipment","description":"Get one shipment by reference for the authenticated workspace.","api":"GET /shipments/{shipment}","icon":"box","href":"/api-reference/retrieve-shipment"},{"title":"Update a shipment","api":"PATCH /shipments/{shipment}","icon":"pen","href":"/api-reference/update-shipment"},{"title":"Update shipment status","api":"PATCH /shipments/{shipment}/status","icon":"truck","href":"/api-reference/update-shipment-status"},{"title":"Cancel a shipment","api":"POST /shipments/{shipment}/cancel","icon":"ban","href":"/api-reference/cancel-shipment"}]}]}]},"basePath":"","title":"Create a shipment - Kasiye","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js"]}