When cancelling an order that has been fulfilled, a credit for the price of the order will be applied to the current invoice. This means that it is possible for the credit for a cancellation to appear on the invoice of the following billing period. For example, if a billing period ends between when the order was placed and when it is cancelled, then the credit will be applied to the latter billing period rather than the one during which the order was placed
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"c-mass","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/c-mass/O0x3glhuV_D-fMqD/logo/nz-logo.png?fit=max\u0026auto=format\u0026n=O0x3glhuV_D-fMqD\u0026q=85\u0026s=53cd611803e1a046a834f997ceb67cae","dark":"https://mintcdn.com/c-mass/O0x3glhuV_D-fMqD/logo/nz-logo.png?fit=max\u0026auto=format\u0026n=O0x3glhuV_D-fMqD\u0026q=85\u0026s=53cd611803e1a046a834f997ceb67cae","href":"https://c-mass.co"},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://www.linkedin.com/company/mintsearch"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"c-mass","hasAudioNarration":false,"actualSubdomain":"c-mass","customDomains":[],"gitSource":{"type":"github","owner":"abdul88canada","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9223dfe09c0a3f9d3120e:success","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"API Reference","count":14},{"language":"default","tag":"Quotes","count":6},{"language":"default","tag":"Orders","count":4},{"language":"default","tag":"Portfolios","count":2},{"language":"default","tag":"Documentation","count":2},{"language":"default","tag":"Get Started","count":2},{"language":"default","tag":"Projects","count":1},{"language":"default","tag":"API Docs","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/orders/postCancelOrder","slug":"/api-reference/endpoint/orders/postCancelOrder","pageMetadata":{"title":"Cancel Order","description":"When cancelling an order that has been fulfilled, a credit for the price of the order will be applied to the current invoice. This means that it is possible for the credit for a cancellation to appear on the invoice of the following billing period. For example, if a billing period ends between when the order was placed and when it is cancelled, then the credit will be applied to the latter billing period rather than the one during which the order was placed","openapi":"POST /v1/orders/{id}/cancel","href":"/api-reference/endpoint/orders/postCancelOrder","hidden":false},"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: \"When cancelling an order that has been fulfilled, a credit for the price of the order will be applied to the current invoice. This means that it is possible for the credit for a cancellation to appear on the invoice of the following billing period. For example, if a billing period ends between when the order was placed and when it is cancelled, then the credit will be applied to the latter billing period rather than the one during which the order was placed\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cancel Order","description":"When cancelling an order that has been fulfilled, a credit for the price of the order will be applied to the current invoice. This means that it is possible for the credit for a cancellation to appear on the invoice of the following billing period. For example, if a billing period ends between when the order was placed and when it is cancelled, then the credit will be applied to the latter billing period rather than the one during which the order was placed","openapi":"POST /v1/orders/{id}/cancel","href":"/api-reference/endpoint/orders/postCancelOrder","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Cancel an order by ID","tags":["Orders"],"security":["f30460e0-150f-4c1f-b96d-512b59b51e9b"],"parameters":["831c943b-d5de-4860-b6f0-05986e3751a5"],"responses":{"200":"96bc8128-4589-407d-a265-66e41df66dc1","400":"7cc6b07f-ea75-45b0-a66c-61e31e3b4487","404":"361e7a63-0ad5-415c-8185-65b83466b035","500":"4dbbdde2-8792-4594-ac32-eba87fc26e53"},"method":"post","type":"path","servers":["41dfec91-d2c7-425c-9809-d70a493d7846"],"path":"/v1/orders/{id}/cancel","baseUrlOptions":["https://carbon-engine.onrender.com"],"title":"Cancel an order by ID","description":"When cancelling an order that has been fulfilled, a credit for the price of the order will be applied to the current invoice. This means that it is possible for the credit for a cancellation to appear on the invoice of the following billing period. For example, if a billing period ends between when the order was placed and when it is cancelled, then the credit will be applied to the latter billing period rather than the one during which the order was placed","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"831c943b-d5de-4860-b6f0-05986e3751a5":{"name":"id","in":"path","schema":{"type":"string","isRequired":true,"description":"The order ID","uniqueKey":"","typeLabel":"string"},"required":true,"description":"The order ID"}},"responses":{"96bc8128-4589-407d-a265-66e41df66dc1":{"description":"Order cancelled successfully","content":{"application/json":{"schema":{"type":"object","properties":{"_id":{"description":"The unique order id","type":"string","uniqueKey":"_id","typeLabel":"string"},"orderNumber":{"description":"The unique order number","type":"string","uniqueKey":"orderNumber","typeLabel":"string"},"customer":{"description":"If purchased by customer","type":"string","uniqueKey":"customer","typeLabel":"string"},"description":{"oneOf":[{"description":"Description of the order","type":"string","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"description":"Description of the order","type":"null","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"price_sar_halalas":{"description":"Total price of the credits purchased in SAR halalas","type":"number","uniqueKey":"price_sar_halalas","typeLabel":"number"},"amount_kg":{"description":"Number of carbon credits requested, in kilograms","type":"number","uniqueKey":"amount_kg","typeLabel":"number"},"creditsPurchased":{"description":"Number of carbon credits fulfilled, in kilograms","type":"number","uniqueKey":"creditsPurchased","typeLabel":"number"},"callbackUrl":{"oneOf":[{"description":"Callback URL for order updates (if any)","type":"string","uniqueKey":"callbackUrl.oneOf.0","typeLabel":"string"},{"description":"Callback URL for order updates (if any)","type":"null","uniqueKey":"callbackUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"callbackUrl","typeLabel":"string | null"},"state":{"description":"Current status of the order, e.g., `fulfilled`, `placed`, or `cancelled`","type":"string","uniqueKey":"state","typeLabel":"string"},"portfolio":{"description":"The portfolio ID related to the order","type":"string","uniqueKey":"portfolio","typeLabel":"string"},"certificateUrl":{"description":"URL to the order page with the certificate of the carbon credits","type":"string","uniqueKey":"certificateUrl","typeLabel":"string"},"projectRecords":{"description":"List of project records for this order","type":"array","items":{"type":"object","properties":{"project_id":{"description":"The ID of the project","type":"string","uniqueKey":"projectRecords.items.[INDEX].project_id","typeLabel":"string"},"project_category_id":{"description":"The category ID of the project","type":"string","uniqueKey":"projectRecords.items.[INDEX].project_category_id","typeLabel":"string"},"credit_batch_id":{"description":"The batch ID for the credits in this project","type":"string","uniqueKey":"projectRecords.items.[INDEX].credit_batch_id","typeLabel":"string"},"delta":{"description":"Amount of credits allocated to this project","type":"number","uniqueKey":"projectRecords.items.[INDEX].delta","typeLabel":"number"},"recorded_on":{"description":"Date when this allocation was recorded","type":"string","format":"date-time","uniqueKey":"projectRecords.items.[INDEX].recorded_on","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"projectRecords.items.[INDEX]","typeLabel":"object"},"uniqueKey":"projectRecords","typeLabel":"object[]"},"invoice":{"type":"object","properties":{"amountDueSarHalalas":{"description":"The total amount due in SAR halalas","type":"number","uniqueKey":"invoice.amountDueSarHalalas","typeLabel":"number"},"balanceAppliedSarHalalas":{"description":"The balance applied to the invoice in SAR halalas","type":"number","uniqueKey":"invoice.balanceAppliedSarHalalas","typeLabel":"number"},"receiptUrl":{"oneOf":[{"description":"URL to the receipt for this order","type":"string","uniqueKey":"invoice.receiptUrl.oneOf.0","typeLabel":"string"},{"description":"URL to the receipt for this order","type":"null","uniqueKey":"invoice.receiptUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoice.receiptUrl","typeLabel":"string | null"}},"uniqueKey":"invoice","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"_id":"\u003cstring>","orderNumber":"\u003cstring>","customer":"\u003cstring>","description":"\u003cstring>","price_sar_halalas":123,"amount_kg":123,"creditsPurchased":123,"callbackUrl":"\u003cstring>","state":"\u003cstring>","portfolio":"\u003cstring>","certificateUrl":"\u003cstring>","projectRecords":[{"project_id":"\u003cstring>","project_category_id":"\u003cstring>","credit_batch_id":"\u003cstring>","delta":123,"recorded_on":"2023-11-07T05:31:56Z"}],"invoice":{"amountDueSarHalalas":123,"balanceAppliedSarHalalas":123,"receiptUrl":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"7cc6b07f-ea75-45b0-a66c-61e31e3b4487":{"description":"Order is already cancelled","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"361e7a63-0ad5-415c-8185-65b83466b035":{"description":"Order not found","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"4dbbdde2-8792-4594-ac32-eba87fc26e53":{"description":"Server error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"f30460e0-150f-4c1f-b96d-512b59b51e9b":{"bearerAuth":{"type":"http","scheme":"bearer","scopes":[]}}},"servers":{"41dfec91-d2c7-425c-9809-d70a493d7846":{"url":"https://carbon-engine.onrender.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"c-mass","siteName":"c-mass","title":"Cancel Order - c-mass","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/endpoint/orders/postCancelOrder.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=\"When cancelling an order that has been fulfilled, a credit for the price of the order will be applied to the current invoice. This means that it is possible for the credit for a cancellation to appear on the invoice of the following billing period. For example, if a billing period ends between when the order was placed and when it is cancelled, then the credit will be applied to the latter billing period rather than the one during which the order was placed\">\u003cmeta data-mint-head name=\"application-name\" content=\"c-mass\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/c-mass/HNsjA1JfA90jjkDn/_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/c-mass/HNsjA1JfA90jjkDn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/c-mass/HNsjA1JfA90jjkDn/_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/c-mass/HNsjA1JfA90jjkDn/_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/c-mass/HNsjA1JfA90jjkDn/_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/c-mass/HNsjA1JfA90jjkDn/_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/c-mass/HNsjA1JfA90jjkDn/_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/c-mass/HNsjA1JfA90jjkDn/_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/c-mass/HNsjA1JfA90jjkDn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cancel Order - c-mass\">\u003cmeta data-mint-head property=\"og:description\" content=\"When cancelling an order that has been fulfilled, a credit for the price of the order will be applied to the current invoice. This means that it is possible for the credit for a cancellation to appear on the invoice of the following billing period. For example, if a billing period ends between when the order was placed and when it is cancelled, then the credit will be applied to the latter billing period rather than the one during which the order was placed\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"c-mass\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://c-mass.mintlify.app/api-reference/endpoint/orders/postCancelOrder\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://c-mass.mintlify.site/_mintlify/api/og/v2?division=Orders\u0026amp;title=Cancel+Order\u0026amp;description=When+cancelling+an+order+that+has+been+fulfilled%2C+a+credit+for+the+price+of+the+order+will+be+applied+to+the+current+invoice.+This+means+that+it+is+possible+for\u0026amp;theme=9a7a05e51a44b8d2bd82fa6e\u0026amp;signature=6c5bf7214b8be8e00956bc90ee54da55c1e6ce24e7d40ce8b6c834ab4b999cd8\">\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=\"Cancel Order - c-mass\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"When cancelling an order that has been fulfilled, a credit for the price of the order will be applied to the current invoice. This means that it is possible for the credit for a cancellation to appear on the invoice of the following billing period. For example, if a billing period ends between when the order was placed and when it is cancelled, then the credit will be applied to the latter billing period rather than the one during which the order was placed\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://c-mass.mintlify.site/_mintlify/api/og/v2?division=Orders\u0026amp;title=Cancel+Order\u0026amp;description=When+cancelling+an+order+that+has+been+fulfilled%2C+a+credit+for+the+price+of+the+order+will+be+applied+to+the+current+invoice.+This+means+that+it+is+possible+for\u0026amp;theme=9a7a05e51a44b8d2bd82fa6e\u0026amp;signature=6c5bf7214b8be8e00956bc90ee54da55c1e6ce24e7d40ce8b6c834ab4b999cd8\">\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/c-mass/HNsjA1JfA90jjkDn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"c-mass\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://c-mass.mintlify.app/api-reference/endpoint/orders/postCancelOrder\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/orders/postCancelOrder.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://c-mass.mintlify.app/#organization\",\"name\":\"c-mass\",\"url\":\"https://c-mass.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/c-mass/O0x3glhuV_D-fMqD/logo/nz-logo.png?fit=max\u0026auto=format\u0026n=O0x3glhuV_D-fMqD\u0026q=85\u0026s=53cd611803e1a046a834f997ceb67cae\"}},{\"@type\":\"WebSite\",\"@id\":\"https://c-mass.mintlify.app#website\",\"name\":\"c-mass\",\"url\":\"https://c-mass.mintlify.app\",\"publisher\":{\"@id\":\"https://c-mass.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://c-mass.mintlify.app/api-reference/endpoint/orders/postCancelOrder#webpage\",\"url\":\"https://c-mass.mintlify.app/api-reference/endpoint/orders/postCancelOrder\",\"name\":\"Cancel Order\",\"description\":\"When cancelling an order that has been fulfilled, a credit for the price of the order will be applied to the current invoice. This means that it is possible for the credit for a cancellation to appear on the invoice of the following billing period. For example, if a billing period ends between when the order was placed and when it is cancelled, then the credit will be applied to the latter billing period rather than the one during which the order was placed\",\"isPartOf\":{\"@id\":\"https://c-mass.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://c-mass.mintlify.app/api-reference/endpoint/orders/postCancelOrder#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://c-mass.mintlify.app/api-reference/endpoint/orders/postCancelOrder#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Orders\",\"item\":\"https://c-mass.mintlify.app/api-reference/endpoint/orders/postOrder\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cancel Order\",\"item\":\"https://c-mass.mintlify.app/api-reference/endpoint/orders/postCancelOrder\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://c-mass.mintlify.app/api-reference/endpoint/orders/postCancelOrder#apireference\",\"headline\":\"Cancel Order\",\"name\":\"Cancel Order\",\"description\":\"When cancelling an order that has been fulfilled, a credit for the price of the order will be applied to the current invoice. This means that it is possible for the credit for a cancellation to appear on the invoice of the following billing period. For example, if a billing period ends between when the order was placed and when it is cancelled, then the credit will be applied to the latter billing period rather than the one during which the order was placed\",\"url\":\"https://c-mass.mintlify.app/api-reference/endpoint/orders/postCancelOrder\",\"mainEntityOfPage\":{\"@id\":\"https://c-mass.mintlify.app/api-reference/endpoint/orders/postCancelOrder#webpage\"},\"publisher\":{\"@id\":\"https://c-mass.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://c-mass.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"c-mass\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"c-mass","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Docs","pages":[{"title":"Overview","href":"/api-reference/introduction"}]},{"group":"Quotes","pages":[{"title":"Get Quote for Electricity Consumption","openapi":"POST /v1/quotes/electricity","href":"/api-reference/endpoint/quotes/getQuoteForElectricityConsumption"},{"title":"Get Quote for Ground Freight Emissions","openapi":"POST /v1/quotes/ground-freight","href":"/api-reference/endpoint/quotes/getQuoteForGroundFreightEmissions"},{"title":"Get Quote for Air Freight Emissions","openapi":"POST /v1/quotes/air-freight","href":"/api-reference/endpoint/quotes/getQuoteForAirFreightEmissions"},{"title":"Get Quote by Emissions Mass","openapi":"POST /v1/quotes","href":"/api-reference/endpoint/quotes/getQuoteByMass"},{"title":"Get Quote for Flight Emissions","openapi":"POST /v1/quotes/flight","href":"/api-reference/endpoint/quotes/getQuoteForFlightEmissions"},{"title":"Get Quote for Ground Transport Emissions","openapi":"POST /v1/quotes/ground-transport","href":"/api-reference/endpoint/quotes/getQuoteForGroundTransportEmissions"}]},{"group":"Orders","pages":[{"title":"Create Carbon Credits Order","openapi":"POST /v1/orders","description":"Submits an order for a specified amount of carbon credits (in kilograms) or a designated total price (in SAR halalas). The order remains in the `placed` state until it is matched with available credits, at which point it transitions to the `fulfilled` state. If a total price is specified, the system calculates the corresponding amount of carbon credits based on the unit price of the selected portfolio. Since carbon credits must be purchased in whole kilograms, the final total price may vary slightly from the initially specified amount.","href":"/api-reference/endpoint/orders/postOrder"},{"title":"Cancel Order","openapi":"POST /v1/orders/{id}/cancel","href":"/api-reference/endpoint/orders/postCancelOrder"},{"title":"Get List of Orders","openapi":"GET /v1/orders","description":"Gets a list of orders in reverse chronological order up to the provided `limit` number of orders per call.","href":"/api-reference/endpoint/orders/getListOfOrders"},{"title":"Get Order By Id","openapi":"GET /v1/orders/{id}","href":"/api-reference/endpoint/orders/getOrderById"}]},{"group":"Projects","pages":[{"title":"Get Project By Id","openapi":"GET /v1/projects/{id}","href":"/api-reference/endpoint/projects/getProjectById"}]},{"group":"Portfolios","pages":[{"title":"Get Portfolio By Id","openapi":"GET /v1/portfolios/{id}","href":"/api-reference/endpoint/portfolios/getPortfolioById"},{"title":"Get List of Portfolios","openapi":"GET /v1/portfolios","href":"/api-reference/endpoint/portfolios/getListOfPortfolios"}]}]}]},"basePath":"","title":"Cancel Order - c-mass","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}