{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}
{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}
{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}
Changes a return’s fee lines one change at a time: pick a saved fee rule, add a one-off fee or credit with its reason, set a line’s amount or decide its tax, waive a line, or remove one. Every change runs the return’s one fee plan (its rules, caps, waivers and tax), and the plan’s lines are what is stored, with one activity row per change naming the key’s creator. Send expected_updated_at, the return’s updated_at as you read it: a save made from an older copy is refused 409 rma_changed and nothing is written. A refusal the save causes refuses the whole save (nothing is written) and lists every refusal with what can be done about it in meta.offers; a refusal that stood before is answered in refusals and refuses nothing. A closed, voided or cancelled return takes no fee change (409). Nothing posts and no money moves: the fees post when the return closes. Requires the returns:write scope and the returns.edit permission for the key’s creator (a tax decision also takes returns.override_condition). Preview the same save with POST /returns/{id}/fee-intents/preview.
{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}
{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}
{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}
API key issued per entity via Settings > Developers > API Keys.
Each key carries scopes (e.g. orders:read, products:write).
Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity via Settings > Developers > API Keys.
Client-generated unique key for idempotent POST/PATCH/DELETE operations.
Alias for the Idempotency parameter. Max 255 chars. On retry with the
same key, the original response is returned without re-executing the
operation. Keys expire after 24 hours. A second request with the same
key sent while the first is still running waits for it and returns its
answer; if the first is still running after 20 seconds the second
answers 409 idempotency_key_in_use (retryable, nothing done). An
answer carrying retryable: true is not cached. Reusing a key with a
different request body answers 409 idempotency_key_collision (nothing
done; send the new request with a fresh key). The replay, the wait and
these two 409 codes come from the idempotency layer, so they apply to
the operations that run it, each of which can answer the two codes
whether or not its own 409 response lists them. The handlers of these
operations take the header but do not run the layer, so on them the key
neither replays nor answers either code: createPaymentPlan,
chargePaymentPlanInstallment, setProductLocations, updateOrder,
emailOrder, updateOrderItem, confirmPickup, markOrderNoShow,
applyExistingPaymentToInvoices, updatePackage, movePackageItem,
changePackageBox, changePackageCarrier, voidPackageLabel,
printPackageLabel, emailPackage, setProNumberV1, setPackageProNumber,
sendPurchaseOrderToVendorV1, notifyRevisionPurchaseOrderV1,
addMaintenanceLog, generateBOLV1,
createReportJobV1 and customerAcknowledgeRevision; recordVendorPrepaymentV1
and recordCustomerDepositV1 hand the key to their own write instead.
The changes, applied in order; told apart by op. A key no intent's op takes is refused 422 intent_invalid (or client_field_forbidden for a field only the server sets, such as source, final_amount or waived).
Required array length: 1 - 50 elements
Adds a saved return fee rule to the return (Settings > Adjustments & Coupons); the rule's own calculation, caps, tax and waiver apply.
The return's updated_at as you read it (on GET /returns/{id}, or the updated_at of the last fee change's answer). A save made from an older copy is refused 409 rma_changed; nothing is written.
Response
The changes were saved. The answer is the return's fee plan after them, read inside the save.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Arcus ERP Docs","colors":{"primary":"#0466EE","light":"#4C94FF","dark":"#0355C6"},"logo":{"light":"https://mintcdn.com/arcuserp/pTLxSU3S7vcf6riI/logo/light.png?fit=max\u0026auto=format\u0026n=pTLxSU3S7vcf6riI\u0026q=85\u0026s=89c11f2d6e4a30803fc92eaf61b26656","dark":"https://mintcdn.com/arcuserp/pTLxSU3S7vcf6riI/logo/dark.png?fit=max\u0026auto=format\u0026n=pTLxSU3S7vcf6riI\u0026q=85\u0026s=63cf21bd9efa729f5eefd1e9a958cb2e"},"favicon":"https://mintcdn.com/arcuserp/pTLxSU3S7vcf6riI/logo/favicon.png?fit=max\u0026auto=format\u0026n=pTLxSU3S7vcf6riI\u0026q=85\u0026s=7c5ab5af10e264f583a7c5a27691de80","api":{"openapi":"openapi.yaml","playground":{"display":"interactive"},"mdx":{"auth":{"method":"bearer","name":"Authorization"},"server":["https://api.arcuserp.com/v1"]}},"appearance":{"default":"light","strict":true},"background":{"color":{"light":"#FFFFFF","dark":"#0F172A"}},"navbar":{"links":[{"href":"/support","label":"Support"},{"href":"/introduction","label":"API Docs"},{"href":"https://statuspage.incident.io/arcuserp","label":"Status"}],"primary":{"type":"button","label":"Sign In","href":"https://app.arcuserp.com"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/arcuserp"}},"search":{"prompt":"Ask anything about Arcus workflows, setup, and the API..."},"integrations":{"ga4":{"measurementId":"G-XXXXXXXXXX"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"arcuserp","hasAudioNarration":false,"actualSubdomain":"arcuserp","customDomains":["docs.arcuserp.com"],"gitSource":{"type":"github","owner":"reubenbroussard","repo":"arcus-erp-aws","deployBranch":"main","contentDirectory":"mintlify-docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aea7641ee46bb8a1bb09a22","collectionId":"e94b71dc-c4a4-40a5-bdc0-af4d9d41ca5c","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aea7641ee46bb8a1bb09a22"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aebf6d69c1b96b344a8b882","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"API Reference","count":706},{"language":"default","tag":"All Endpoints","count":705},{"language":"default","tag":"Help Center","count":262},{"language":"default","tag":"Accounting","count":138},{"language":"default","tag":"Purchasing","count":86},{"language":"default","tag":"Orders","count":67},{"language":"default","tag":"Products","count":66},{"language":"default","tag":"Settings and Administration","count":58},{"language":"default","tag":"Masters","count":55},{"language":"default","tag":"Returns","count":42}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"vite-origin","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":"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}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".is-center~[class*=\"max-w-3xl\"]{max-width:76rem!important}"}],"page":{"pagePath":"api-reference/returns/change-a-returns-fees","slug":"/api-reference/returns/change-a-returns-fees","pageMetadata":{"title":"Change a return's fees","description":"Changes a return's fee lines one change at a time: pick a saved fee rule, add a one-off fee or credit with its reason, set a line's amount or decide its tax, waive a line, or remove one. Every change runs the return's one fee plan (its rules, caps, waivers and tax), and the plan's lines are what is stored, with one activity row per change naming the key's creator. Send `expected_updated_at`, the return's `updated_at` as you read it: a save made from an older copy is refused 409 `rma_changed` and nothing is written. A refusal the save causes refuses the whole save (nothing is written) and lists every refusal with what can be done about it in `meta.offers`; a refusal that stood before is answered in `refusals` and refuses nothing. A closed, voided or cancelled return takes no fee change (409). Nothing posts and no money moves: the fees post when the return closes. Requires the `returns:write` scope and the `returns.edit` permission for the key's creator (a tax decision also takes `returns.override_condition`). Preview the same save with `POST /returns/{id}/fee-intents/preview`.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/fee-intents","href":"/api-reference/returns/change-a-returns-fees","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Changes a return’s fee lines one change at a time: pick a saved fee rule, add a one-off fee or credit with its reason, set a line’s amount or decide its tax, waive a line, or remove one. Every change runs the return’s one fee plan (its rules, caps, waivers and tax), and the plan’s lines are what is stored, with one activity row per change naming the key’s creator. Send \", _jsx(_components.code, {\n children: \"expected_updated_at\"\n }), \", the return’s \", _jsx(_components.code, {\n children: \"updated_at\"\n }), \" as you read it: a save made from an older copy is refused 409 \", _jsx(_components.code, {\n children: \"rma_changed\"\n }), \" and nothing is written. A refusal the save causes refuses the whole save (nothing is written) and lists every refusal with what can be done about it in \", _jsx(_components.code, {\n children: \"meta.offers\"\n }), \"; a refusal that stood before is answered in \", _jsx(_components.code, {\n children: \"refusals\"\n }), \" and refuses nothing. A closed, voided or cancelled return takes no fee change (409). Nothing posts and no money moves: the fees post when the return closes. Requires the \", _jsx(_components.code, {\n children: \"returns:write\"\n }), \" scope and the \", _jsx(_components.code, {\n children: \"returns.edit\"\n }), \" permission for the key’s creator (a tax decision also takes \", _jsx(_components.code, {\n children: \"returns.override_condition\"\n }), \"). Preview the same save with \", _jsx(_components.code, {\n children: \"POST /returns/{id}/fee-intents/preview\"\n }), \".\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{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":"Change a return's fees","description":"Changes a return's fee lines one change at a time: pick a saved fee rule, add a one-off fee or credit with its reason, set a line's amount or decide its tax, waive a line, or remove one. Every change runs the return's one fee plan (its rules, caps, waivers and tax), and the plan's lines are what is stored, with one activity row per change naming the key's creator. Send `expected_updated_at`, the return's `updated_at` as you read it: a save made from an older copy is refused 409 `rma_changed` and nothing is written. A refusal the save causes refuses the whole save (nothing is written) and lists every refusal with what can be done about it in `meta.offers`; a refusal that stood before is answered in `refusals` and refuses nothing. A closed, voided or cancelled return takes no fee change (409). Nothing posts and no money moves: the fees post when the return closes. Requires the `returns:write` scope and the `returns.edit` permission for the key's creator (a tax decision also takes `returns.override_condition`). Preview the same save with `POST /returns/{id}/fee-intents/preview`.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/fee-intents","href":"/api-reference/returns/change-a-returns-fees","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"applyReturnFeeIntentsV1","summary":"Change a return's fees","description":"Changes a return's fee lines one change at a time: pick a saved fee rule, add a one-off fee or credit with its reason, set a line's amount or decide its tax, waive a line, or remove one. Every change runs the return's one fee plan (its rules, caps, waivers and tax), and the plan's lines are what is stored, with one activity row per change naming the key's creator. Send `expected_updated_at`, the return's `updated_at` as you read it: a save made from an older copy is refused 409 `rma_changed` and nothing is written. A refusal the save causes refuses the whole save (nothing is written) and lists every refusal with what can be done about it in `meta.offers`; a refusal that stood before is answered in `refusals` and refuses nothing. A closed, voided or cancelled return takes no fee change (409). Nothing posts and no money moves: the fees post when the return closes. Requires the `returns:write` scope and the `returns.edit` permission for the key's creator (a tax decision also takes `returns.override_condition`). Preview the same save with `POST /returns/{id}/fee-intents/preview`.","tags":["Returns"],"security":["23339a99-a12b-4f3a-9ce2-976b3dafab1a"],"parameters":["58e186b6-289a-4702-afaa-414d6f4d831b"],"requestBody":"5ec97fa3-cd2f-47ec-952a-fe371c6683da","responses":{"200":"9ea80b8b-42d1-46bc-8466-a9db64e3f3bb","400":"aa0b88e0-bb03-4b77-bb42-de501daf47be","401":"e6bbe0c4-4f68-4b33-be55-4922ba426fee","403":"b2528f14-2c3b-4f80-ba45-4d8ee5369ba9","404":"ff3d9d3f-7943-45a8-b053-057cac20855e","409":"6b1c8b5f-dba7-4602-9cfc-b6e5fcfeb80b","422":"693afc7e-d007-4bfd-8199-f3260cbb0f5a","503":"7b954c45-9fa9-42d9-8868-6ab6d0816893"},"method":"post","type":"path","servers":["a1679c08-ff5b-4302-aafc-0c4a86ded15b","93951de2-cf61-4825-894e-575e5e7d3163"],"path":"/returns/{id}/fee-intents","baseUrlOptions":["https://api.arcuserp.com/v1","https://dev-api.arcuserp.com/v1"],"title":"Change a return's fees","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"58e186b6-289a-4702-afaa-414d6f4d831b":{"name":"Idempotency-Key","in":"header","required":false,"description":"Client-generated unique key for idempotent POST/PATCH/DELETE operations.\nAlias for the Idempotency parameter. Max 255 chars. On retry with the\nsame key, the original response is returned without re-executing the\noperation. Keys expire after 24 hours. A second request with the same\nkey sent while the first is still running waits for it and returns its\nanswer; if the first is still running after 20 seconds the second\nanswers 409 `idempotency_key_in_use` (retryable, nothing done). An\nanswer carrying `retryable: true` is not cached. Reusing a key with a\ndifferent request body answers 409 `idempotency_key_collision` (nothing\ndone; send the new request with a fresh key). The replay, the wait and\nthese two 409 codes come from the idempotency layer, so they apply to\nthe operations that run it, each of which can answer the two codes\nwhether or not its own 409 response lists them. The handlers of these\noperations take the header but do not run the layer, so on them the key\nneither replays nor answers either code: createPaymentPlan,\nchargePaymentPlanInstallment, setProductLocations, updateOrder,\nemailOrder, updateOrderItem, confirmPickup, markOrderNoShow,\napplyExistingPaymentToInvoices, updatePackage, movePackageItem,\nchangePackageBox, changePackageCarrier, voidPackageLabel,\nprintPackageLabel, emailPackage, setProNumberV1, setPackageProNumber,\nsendPurchaseOrderToVendorV1, notifyRevisionPurchaseOrderV1,\naddMaintenanceLog, generateBOLV1,\ncreateReportJobV1 and customerAcknowledgeRevision; recordVendorPrepaymentV1\nand recordCustomerDepositV1 hand the key to their own write instead.\n","schema":{"type":"string","maxLength":255,"isRequired":false,"description":"Client-generated unique key for idempotent POST/PATCH/DELETE operations.\nAlias for the Idempotency parameter. Max 255 chars. On retry with the\nsame key, the original response is returned without re-executing the\noperation. Keys expire after 24 hours. A second request with the same\nkey sent while the first is still running waits for it and returns its\nanswer; if the first is still running after 20 seconds the second\nanswers 409 `idempotency_key_in_use` (retryable, nothing done). An\nanswer carrying `retryable: true` is not cached. Reusing a key with a\ndifferent request body answers 409 `idempotency_key_collision` (nothing\ndone; send the new request with a fresh key). The replay, the wait and\nthese two 409 codes come from the idempotency layer, so they apply to\nthe operations that run it, each of which can answer the two codes\nwhether or not its own 409 response lists them. The handlers of these\noperations take the header but do not run the layer, so on them the key\nneither replays nor answers either code: createPaymentPlan,\nchargePaymentPlanInstallment, setProductLocations, updateOrder,\nemailOrder, updateOrderItem, confirmPickup, markOrderNoShow,\napplyExistingPaymentToInvoices, updatePackage, movePackageItem,\nchangePackageBox, changePackageCarrier, voidPackageLabel,\nprintPackageLabel, emailPackage, setProNumberV1, setPackageProNumber,\nsendPurchaseOrderToVendorV1, notifyRevisionPurchaseOrderV1,\naddMaintenanceLog, generateBOLV1,\ncreateReportJobV1 and customerAcknowledgeRevision; recordVendorPrepaymentV1\nand recordCustomerDepositV1 hand the key to their own write instead.\n","uniqueKey":"","typeLabel":"string"}},"98963e25-3a87-45d9-bbbb-8c5726e40a61":{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"One save: the changes to make, one intent each, and the copy of the return they were made from.","required":["intents","expected_updated_at"],"properties":{"intents":{"type":"array","minItems":1,"maxItems":50,"description":"The changes, applied in order; told apart by `op`. A key no intent's `op` takes is refused 422 `intent_invalid` (or `client_field_forbidden` for a field only the server sets, such as `source`, `final_amount` or `waived`).","items":{"oneOf":[{"type":"object","description":"Adds a saved return fee rule to the return (Settings > Adjustments \u0026 Coupons); the rule's own calculation, caps, tax and waiver apply.","required":["op","coupon_id"],"properties":{"op":{"type":"string","enum":["pick_rule"],"isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.0.op","typeLabel":"enum\u003cstring>"},"coupon_id":{"type":"string","format":"uuid","description":"The return fee rule to add.","isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.0.coupon_id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"intents.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"Adds a one-off fee (or credit) of a fee type, with its reason. Refused 422 `ad_hoc_fees_not_allowed` while Settings > Returns turns one-off fees off.","required":["op","value","reason_code"],"properties":{"op":{"type":"string","enum":["add_ad_hoc"],"isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.1.op","typeLabel":"enum\u003cstring>"},"value":{"type":"number","minimum":0,"description":"Dollars for `flat`; from 0 to 100 for `percentage` and `label_cost`.","isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.1.value","typeLabel":"number"},"reason_code":{"type":"string","enum":["original_shipping_recovery","return_shipping","repackaging","missing_parts","damage_found","late_return","goodwill","other"],"isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.1.reason_code","typeLabel":"enum\u003cstring>"},"direction":{"type":"string","enum":["fee","credit"],"default":"fee","uniqueKey":"intents.items.[INDEX].oneOf.1.direction","typeLabel":"enum\u003cstring>"},"fee_class":{"type":"string","enum":["restocking","handling","return_shipping","processing","other"],"description":"Required for a fee; a credit takes none.","uniqueKey":"intents.items.[INDEX].oneOf.1.fee_class","typeLabel":"enum\u003cstring>"},"label":{"type":"string","description":"The line's words (the first 80 characters are kept); the fee type's own label when absent.","uniqueKey":"intents.items.[INDEX].oneOf.1.label","typeLabel":"string"},"mode":{"type":"string","enum":["flat","percentage","label_cost"],"default":"flat","description":"`flat`: `value` is dollars; `percentage`: a percentage of the goods the return credits; `label_cost`: a percentage of the return label's cost (a fee only).","uniqueKey":"intents.items.[INDEX].oneOf.1.mode","typeLabel":"enum\u003cstring>"},"note":{"type":"string","description":"Required (at least 10 characters) when `reason_code` is `other`.","uniqueKey":"intents.items.[INDEX].oneOf.1.note","typeLabel":"string"}},"uniqueKey":"intents.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Sets one line's amount, or decides its tax, or both; each with a reason. A tax decision takes the `returns.override_condition` permission for the key's creator (403 `fee_tax_override_not_permitted` otherwise); a credit line and the restocking fee take none.","required":["op","key","reason"],"properties":{"op":{"type":"string","enum":["override"],"isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.2.op","typeLabel":"enum\u003cstring>"},"key":{"type":"string","description":"The line's `key`, as `lines[]` answers it.","isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.2.key","typeLabel":"string"},"reason":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.2.reason","typeLabel":"string"},"amount":{"oneOf":[{"type":"number","minimum":0,"description":"The line's amount in dollars. Send `amount`, `taxable` or both.","uniqueKey":"intents.items.[INDEX].oneOf.2.amount.oneOf.0","typeLabel":"number"},{"type":"null","minimum":0,"description":"The line's amount in dollars. Send `amount`, `taxable` or both.","uniqueKey":"intents.items.[INDEX].oneOf.2.amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"intents.items.[INDEX].oneOf.2.amount","typeLabel":"number | null"},"taxable":{"type":"boolean","description":"Whether the fee is taxed.","uniqueKey":"intents.items.[INDEX].oneOf.2.taxable","typeLabel":"boolean"}},"uniqueKey":"intents.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"Waives one fee line (its amount becomes 0.00) with a reason. A credit line cannot be waived.","required":["op","key","reason"],"properties":{"op":{"type":"string","enum":["waive"],"isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.3.op","typeLabel":"enum\u003cstring>"},"key":{"type":"string","isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.3.key","typeLabel":"string"},"reason":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.3.reason","typeLabel":"string"}},"uniqueKey":"intents.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"Removes one line with a reason. An automatic rule's line and a line the return builds from its own restocking fee or label come back on every save: waive them instead (422 `auto_rule_line_use_waive`, `header_line_use_waive`).","required":["op","key","reason"],"properties":{"op":{"type":"string","enum":["remove"],"isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.4.op","typeLabel":"enum\u003cstring>"},"key":{"type":"string","isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.4.key","typeLabel":"string"},"reason":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"intents.items.[INDEX].oneOf.4.reason","typeLabel":"string"}},"uniqueKey":"intents.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"intents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"intents","typeLabel":"object[]"},"expected_updated_at":{"type":"string","format":"date-time","description":"The return's `updated_at` as you read it (on `GET /returns/{id}`, or the `updated_at` of the last fee change's answer). A save made from an older copy is refused 409 `rma_changed`; nothing is written.","isRequired":true,"uniqueKey":"expected_updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"intents":[{"op":"pick_rule","coupon_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}],"expected_updated_at":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"9ea80b8b-42d1-46bc-8466-a9db64e3f3bb":{"description":"The changes were saved. The answer is the return's fee plan after them, read inside the save.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["return_id","return_number","preview","updated_at","lines","totals","restocking_fee","refusals","offers","notices","allow_ad_hoc_fees","books"],"properties":{"return_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"data.return_id","typeLabel":"string\u003cuuid>"},"return_number":{"type":"string","isRequired":true,"uniqueKey":"data.return_number","typeLabel":"string"},"preview":{"type":"boolean","description":"True on the preview (nothing was written).","isRequired":true,"uniqueKey":"data.preview","typeLabel":"boolean"},"updated_at":{"type":"string","format":"date-time","description":"The return's `updated_at` after the save (the preview: as read). Send it as `expected_updated_at` with the next change.","isRequired":true,"uniqueKey":"data.updated_at","typeLabel":"string\u003cdate-time>"},"lines":{"type":"array","items":{"type":"object","description":"One fee or credit line of the return as the fee plan reads it after the changes. `final_amount` is what the line charges (a fee) or credits (a credit) on the return's goods today; the amounts post when the return closes. A line the return already stored also carries the keys its stored copy holds for every reader of the stored lines (`fee_type`, `mode`, `value`, `calculated_amount`, `gl_account_key`, and on a rule's or a waived line its markers); a line this change made carries the plan's keys only.","required":["key","direction","source","fee_class","label","gl_account_id","calc","computed_amount","override","final_amount","taxable","taxable_source","waived","waiver_source","by","at","disclosed_at"],"properties":{"key":{"type":"string","description":"The line's name on this return: what `override`, `waive` and `remove` take.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].key","typeLabel":"string"},"direction":{"type":"string","enum":["fee","credit"],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].direction","typeLabel":"enum\u003cstring>"},"source":{"type":"object","description":"Where the line comes from.","required":["kind"],"properties":{"kind":{"type":"string","enum":["rule","ad_hoc","legacy"],"description":"rule: a saved fee rule; ad_hoc: a one-off fee with its reason; legacy: a line not made by a saved rule or a one-off fee: typed by hand on the return, or built from the return's restocking fee or its return label's cost policy (see `from`).","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].source.kind","typeLabel":"enum\u003cstring>"},"coupon_id":{"type":"string","format":"uuid","description":"On a rule's line: the rule.","uniqueKey":"data.lines.items.[INDEX].source.coupon_id","typeLabel":"string\u003cuuid>"},"applied":{"type":"string","enum":["auto","picked"],"description":"On a rule's line: applied by the rule itself, or picked by a person.","uniqueKey":"data.lines.items.[INDEX].source.applied","typeLabel":"enum\u003cstring>"},"snapshot":{"type":"object","additionalProperties":true,"description":"On a rule's line: the rule as it stood when the line took it (name, fee type, calculation, caps, tax, waiver).","uniqueKey":"data.lines.items.[INDEX].source.snapshot","typeLabel":"object"},"reason_code":{"type":"string","description":"On a one-off line: its reason.","uniqueKey":"data.lines.items.[INDEX].source.reason_code","typeLabel":"string"},"note":{"oneOf":[{"type":"string","description":"On a one-off line: its note.","uniqueKey":"data.lines.items.[INDEX].source.note.oneOf.0","typeLabel":"string"},{"type":"null","description":"On a one-off line: its note.","uniqueKey":"data.lines.items.[INDEX].source.note.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lines.items.[INDEX].source.note","typeLabel":"string | null"},"from":{"type":"string","enum":["typed_line","restocking_box","label_policy"],"description":"On a legacy line: what it was built from.","uniqueKey":"data.lines.items.[INDEX].source.from","typeLabel":"enum\u003cstring>"},"original":{"type":"object","additionalProperties":true,"description":"On a line read from what the return stored before: that stored line as it was.","uniqueKey":"data.lines.items.[INDEX].source.original","typeLabel":"object"},"carried_from":{"type":"string","description":"On the return label's line carried over a reopened settlement: where it came from.","uniqueKey":"data.lines.items.[INDEX].source.carried_from","typeLabel":"string"},"label_id":{"type":"string","description":"On the return label's line: the label.","uniqueKey":"data.lines.items.[INDEX].source.label_id","typeLabel":"string"},"folded_rule":{"type":"object","additionalProperties":true,"description":"On the restocking fee's line: the automatic restocking rule it holds.","uniqueKey":"data.lines.items.[INDEX].source.folded_rule","typeLabel":"object"},"taken_typed_line":{"type":"object","additionalProperties":true,"description":"On a rule's line: the typed line of its fee type it holds.","uniqueKey":"data.lines.items.[INDEX].source.taken_typed_line","typeLabel":"object"},"absent_from_stored":{"type":"boolean","description":"On an automatic rule's line: the return's stored lines do not carry it yet.","uniqueKey":"data.lines.items.[INDEX].source.absent_from_stored","typeLabel":"boolean"},"legacy_claim_waiver":{"type":"boolean","description":"On a picked rule's line: the return stored the line as waived when the rule was picked, on the customer's claim (not on the goods' grade).","uniqueKey":"data.lines.items.[INDEX].source.legacy_claim_waiver","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].source","typeLabel":"object"},"fee_class":{"oneOf":[{"type":"string","enum":["restocking","handling","return_shipping","processing","other"],"description":"A fee's type; null on a credit.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].fee_class.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["restocking","handling","return_shipping","processing","other"],"description":"A fee's type; null on a credit.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].fee_class.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].fee_class","typeLabel":"enum\u003cstring> | null"},"label":{"type":"string","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].label","typeLabel":"string"},"gl_account_id":{"oneOf":[{"type":"string","format":"uuid","description":"The account a rule names for the fee, else null (the fee type's account).","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].gl_account_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The account a rule names for the fee, else null (the fee type's account).","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].gl_account_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].gl_account_id","typeLabel":"string\u003cuuid> | null"},"calc":{"type":"object","required":["mode","value","deferred"],"properties":{"mode":{"type":"string","enum":["flat","percentage","label_cost"],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].calc.mode","typeLabel":"enum\u003cstring>"},"value":{"type":"number","description":"Dollars for flat; a percentage otherwise.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].calc.value","typeLabel":"number"},"deferred":{"type":"boolean","description":"A percentage the goods do not settle yet: computed again when they do.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].calc.deferred","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].calc","typeLabel":"object"},"computed_amount":{"type":"number","description":"What the calculation gives on the goods today, before a person's amount and the cap.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].computed_amount","typeLabel":"number"},"override":{"oneOf":[{"type":"object","description":"A person's amount (or waiver) on the line, with its reason, who made it and when.","properties":{"amount":{"oneOf":[{"type":"number","uniqueKey":"data.lines.items.[INDEX].override.oneOf.0.amount.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"data.lines.items.[INDEX].override.oneOf.0.amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lines.items.[INDEX].override.oneOf.0.amount","typeLabel":"number | null"},"waive":{"type":"boolean","description":"True when the decision is a waiver.","uniqueKey":"data.lines.items.[INDEX].override.oneOf.0.waive","typeLabel":"boolean"},"reason":{"type":"string","uniqueKey":"data.lines.items.[INDEX].override.oneOf.0.reason","typeLabel":"string"},"by":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.lines.items.[INDEX].override.oneOf.0.by.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.lines.items.[INDEX].override.oneOf.0.by.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lines.items.[INDEX].override.oneOf.0.by","typeLabel":"string\u003cuuid> | null"},"at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.lines.items.[INDEX].override.oneOf.0.at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.lines.items.[INDEX].override.oneOf.0.at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lines.items.[INDEX].override.oneOf.0.at","typeLabel":"string\u003cdate-time> | null"}},"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].override.oneOf.0","typeLabel":"object"},{"type":"null","description":"A person's amount (or waiver) on the line, with its reason, who made it and when.","properties":{"amount":{"oneOf":[{"type":"number"},{"type":"null"}]},"waive":{"type":"boolean","description":"True when the decision is a waiver."},"reason":{"type":"string"},"by":{"oneOf":[{"type":"string","format":"uuid"},{"type":"null","format":"uuid"}]},"at":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null","format":"date-time"}]}},"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].override.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].override","typeLabel":"object | null"},"final_amount":{"type":"number","description":"What the line charges or credits.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].final_amount","typeLabel":"number"},"taxable":{"type":"boolean","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].taxable","typeLabel":"boolean"},"taxable_source":{"oneOf":[{"type":"string","enum":["rule","entity_default","exempt_order","override"],"description":"What decided `taxable`; null on a credit.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].taxable_source.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["rule","entity_default","exempt_order","override"],"description":"What decided `taxable`; null on a credit.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].taxable_source.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].taxable_source","typeLabel":"enum\u003cstring> | null"},"waived":{"type":"boolean","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].waived","typeLabel":"boolean"},"waiver_source":{"oneOf":[{"type":"string","enum":["rule_merchant_fault","override"],"description":"Who waived it: the rule (a merchant-fault reason) or a person.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].waiver_source.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["rule_merchant_fault","override"],"description":"Who waived it: the rule (a merchant-fault reason) or a person.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].waiver_source.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].waiver_source","typeLabel":"enum\u003cstring> | null"},"by":{"oneOf":[{"type":"string","format":"uuid","description":"The user who added the line, when a person did.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].by.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The user who added the line, when a person did.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].by.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].by","typeLabel":"string\u003cuuid> | null"},"at":{"oneOf":[{"type":"string","format":"date-time","description":"When the line was added.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the line was added.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].at","typeLabel":"string\u003cdate-time> | null"},"disclosed_at":{"oneOf":[{"type":"string","format":"date-time","description":"The instant of the fee schedule the return took when it was authorized, when that schedule carries the line (its rule, or a line added before it); null otherwise.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].disclosed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The instant of the fee schedule the return took when it was authorized, when that schedule carries the line (its rule, or a line added before it); null otherwise.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].disclosed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].disclosed_at","typeLabel":"string\u003cdate-time> | null"},"tax_override":{"oneOf":[{"type":"object","description":"A person's tax decision on the line, with its reason, who made it and when.","properties":{"taxable":{"type":"boolean","uniqueKey":"data.lines.items.[INDEX].tax_override.oneOf.0.taxable","typeLabel":"boolean"},"reason":{"type":"string","uniqueKey":"data.lines.items.[INDEX].tax_override.oneOf.0.reason","typeLabel":"string"},"by":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"data.lines.items.[INDEX].tax_override.oneOf.0.by.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"data.lines.items.[INDEX].tax_override.oneOf.0.by.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lines.items.[INDEX].tax_override.oneOf.0.by","typeLabel":"string\u003cuuid> | null"},"at":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"data.lines.items.[INDEX].tax_override.oneOf.0.at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"data.lines.items.[INDEX].tax_override.oneOf.0.at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lines.items.[INDEX].tax_override.oneOf.0.at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"data.lines.items.[INDEX].tax_override.oneOf.0","typeLabel":"object"},{"type":"null","description":"A person's tax decision on the line, with its reason, who made it and when.","properties":{"taxable":{"type":"boolean"},"reason":{"type":"string"},"by":{"oneOf":[{"type":"string","format":"uuid"},{"type":"null","format":"uuid"}]},"at":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null","format":"date-time"}]}},"uniqueKey":"data.lines.items.[INDEX].tax_override.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lines.items.[INDEX].tax_override","typeLabel":"object | null"},"cap_reduction":{"type":"number","description":"How much the cap (the fees never exceed the goods) took off the line.","uniqueKey":"data.lines.items.[INDEX].cap_reduction","typeLabel":"number"},"exemption":{"type":"object","additionalProperties":true,"description":"On a fee of a tax-exempt order: the exemption that keeps it untaxed.","uniqueKey":"data.lines.items.[INDEX].exemption","typeLabel":"object"},"superseded_by":{"type":"string","description":"On a restocking line the return stored beside its restocking fee: the restocking fee's line, which charges it once (this line then charges 0.00).","uniqueKey":"data.lines.items.[INDEX].superseded_by","typeLabel":"string"},"restocking_bound":{"type":"object","description":"What the entity's restocking fee bounds (Settings > Returns) held of a computed restocking fee, and why: the fee is held to the minimum or the maximum, never refused. On a return (`GET /returns/{id}`, and each operation that answers the return as it reads), it is the bound of the return's restocking fee (`restocking_fee`): present while the bounds hold that fee on a return that is not closed (or is closed with its restocking fee still a percentage to settle); absent when they hold nothing, and on a closed return whose fee its close posted. On a fee line (`POST /returns/{id}/fee-intents` and its preview), it is present on a line the bounds hold. Show `words` as it is; compose no sentence of your own from the figures.","required":["code","entity_fee_min","entity_fee_max","outcome","from","to","source","words"],"properties":{"code":{"type":"string","enum":["restocking_fee_above_entity_max","restocking_fee_below_entity_min"],"description":"Which bound holds the fee: `restocking_fee_above_entity_max`, the fee is limited to the maximum; `restocking_fee_below_entity_min`, the fee is raised to the minimum.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].restocking_bound.code","typeLabel":"enum\u003cstring>"},"entity_fee_min":{"oneOf":[{"type":"number","description":"The minimum restocking fee, in dollars; null when none is set.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].restocking_bound.entity_fee_min.oneOf.0","typeLabel":"number"},{"type":"null","description":"The minimum restocking fee, in dollars; null when none is set.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].restocking_bound.entity_fee_min.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].restocking_bound.entity_fee_min","typeLabel":"number | null"},"entity_fee_max":{"oneOf":[{"type":"number","description":"The maximum restocking fee, in dollars; null when none is set.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].restocking_bound.entity_fee_max.oneOf.0","typeLabel":"number"},{"type":"null","description":"The maximum restocking fee, in dollars; null when none is set.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].restocking_bound.entity_fee_max.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lines.items.[INDEX].restocking_bound.entity_fee_max","typeLabel":"number | null"},"outcome":{"type":"string","enum":["clamped"],"description":"What the bound did: the fee is held to it, never refused.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].restocking_bound.outcome","typeLabel":"enum\u003cstring>"},"from":{"type":"number","description":"The fee the calculation gives on the goods, in dollars, before the bound.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].restocking_bound.from","typeLabel":"number"},"to":{"type":"number","description":"The fee the bound holds it to, in dollars: the figure charged.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].restocking_bound.to","typeLabel":"number"},"source":{"type":"string","enum":["stamp","live"],"description":"Where the bounds were read: `stamp`, the bounds in force when the return was authorized; `live`, the current bounds (the return carries no record of the bounds it was authorized under).","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].restocking_bound.source","typeLabel":"enum\u003cstring>"},"words":{"type":"string","description":"The sentence to show, for example \"Restocking fee $15.00, limited to the entity maximum of $10.00 (Settings > Returns).\" A minimum reads \"raised to the entity minimum of\" the figure.","isRequired":true,"uniqueKey":"data.lines.items.[INDEX].restocking_bound.words","typeLabel":"string"}},"uniqueKey":"data.lines.items.[INDEX].restocking_bound","typeLabel":"object"},"fee_type":{"oneOf":[{"type":"string","description":"On a line the return already stores (as `GET /returns/{id}` answers it in `adjustment_lines`): the fee type, the same as `fee_class`; null on a credit.","uniqueKey":"data.lines.items.[INDEX].fee_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"On a line the return already stores (as `GET /returns/{id}` answers it in `adjustment_lines`): the fee type, the same as `fee_class`; null on a credit.","uniqueKey":"data.lines.items.[INDEX].fee_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lines.items.[INDEX].fee_type","typeLabel":"string | null"},"mode":{"type":"string","enum":["flat","percentage","label_cost"],"description":"On a stored line: the calculation's mode, or `flat` once a person set the line's amount.","uniqueKey":"data.lines.items.[INDEX].mode","typeLabel":"enum\u003cstring>"},"value":{"type":"number","description":"On a stored line: the calculation's value, or the amount a person set.","uniqueKey":"data.lines.items.[INDEX].value","typeLabel":"number"},"calculated_amount":{"type":"number","description":"On a stored line: its figure on the goods when it was stored.","uniqueKey":"data.lines.items.[INDEX].calculated_amount","typeLabel":"number"},"gl_account_key":{"oneOf":[{"type":"string","description":"On a stored line: the account the fee type posts to.","uniqueKey":"data.lines.items.[INDEX].gl_account_key.oneOf.0","typeLabel":"string"},{"type":"null","description":"On a stored line: the account the fee type posts to.","uniqueKey":"data.lines.items.[INDEX].gl_account_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.lines.items.[INDEX].gl_account_key","typeLabel":"string | null"},"coupon_id":{"type":"string","format":"uuid","description":"On a stored line a person picked from a fee rule: the rule.","uniqueKey":"data.lines.items.[INDEX].coupon_id","typeLabel":"string\u003cuuid>"},"_auto_rule":{"type":"string","format":"uuid","description":"On a stored line an automatic fee rule charges: the rule.","uniqueKey":"data.lines.items.[INDEX]._auto_rule","typeLabel":"string\u003cuuid>"},"rule_fee_min":{"type":"number","description":"On a stored rule's line: the rule's minimum fee.","uniqueKey":"data.lines.items.[INDEX].rule_fee_min","typeLabel":"number"},"rule_fee_max":{"type":"number","description":"On a stored rule's line: the rule's maximum fee.","uniqueKey":"data.lines.items.[INDEX].rule_fee_max","typeLabel":"number"},"deferred_pct":{"type":"number","description":"On a stored line whose percentage the goods do not settle yet: that percentage.","uniqueKey":"data.lines.items.[INDEX].deferred_pct","typeLabel":"number"},"_waived":{"type":"boolean","description":"On a stored line that is waived: true.","uniqueKey":"data.lines.items.[INDEX]._waived","typeLabel":"boolean"}},"uniqueKey":"data.lines.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.lines","typeLabel":"object[]"},"totals":{"type":"object","required":["fees","credits","net_fee_income","uncapped_fees","taxable_fees","fee_tax","by_class"],"properties":{"fees":{"type":"number","description":"The fees the lines charge.","isRequired":true,"uniqueKey":"data.totals.fees","typeLabel":"number"},"credits":{"type":"number","description":"The credits the lines give.","isRequired":true,"uniqueKey":"data.totals.credits","typeLabel":"number"},"net_fee_income":{"type":"number","description":"`fees` less `credits`.","isRequired":true,"uniqueKey":"data.totals.net_fee_income","typeLabel":"number"},"uncapped_fees":{"type":"number","description":"The fees before the cap (the fees never exceed the goods).","isRequired":true,"uniqueKey":"data.totals.uncapped_fees","typeLabel":"number"},"taxable_fees":{"type":"number","description":"The fees sent for tax.","isRequired":true,"uniqueKey":"data.totals.taxable_fees","typeLabel":"number"},"fee_tax":{"type":"number","description":"Always 0 here: the tax on the fees is computed when the refund is filed.","isRequired":true,"uniqueKey":"data.totals.fee_tax","typeLabel":"number"},"by_class":{"type":"object","additionalProperties":{"type":"number","uniqueKey":"data.totals.by_class.additionalProperties","typeLabel":"number"},"description":"The fees by fee type.","isRequired":true,"uniqueKey":"data.totals.by_class","typeLabel":"object"}},"isRequired":true,"uniqueKey":"data.totals","typeLabel":"object"},"restocking_fee":{"type":"number","description":"The return's restocking fee after the change.","isRequired":true,"uniqueKey":"data.restocking_fee","typeLabel":"number"},"refusals":{"type":"array","items":{"type":"object","description":"One refusal of the fee plan: what it is, and which intent or line it names.","required":["code"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"data.refusals.items.[INDEX].code","typeLabel":"string"},"intent_index":{"type":"integer","description":"The intent's place in `intents`, from 0, when an intent caused it.","uniqueKey":"data.refusals.items.[INDEX].intent_index","typeLabel":"integer"},"field":{"type":"string","description":"The intent's field at fault.","uniqueKey":"data.refusals.items.[INDEX].field","typeLabel":"string"},"errors":{"type":"array","description":"Every problem of the intent's shape (the first is `code`).","items":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"data.refusals.items.[INDEX].errors.items.[INDEX].code","typeLabel":"string"},"field":{"type":"string","uniqueKey":"data.refusals.items.[INDEX].errors.items.[INDEX].field","typeLabel":"string"}},"uniqueKey":"data.refusals.items.[INDEX].errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.refusals.items.[INDEX].errors","typeLabel":"object[]"},"key":{"type":"string","description":"The line it names.","uniqueKey":"data.refusals.items.[INDEX].key","typeLabel":"string"},"keys":{"type":"array","items":{"type":"string","uniqueKey":"data.refusals.items.[INDEX].keys.items.[INDEX]","typeLabel":"string"},"description":"The lines it names (a rule charged on two lines; a handling line beside a handling rule's line).","uniqueKey":"data.refusals.items.[INDEX].keys","typeLabel":"string[]"},"box_key":{"type":"string","description":"On `restocking_fee_beside_restocking_box`: the restocking fee's line.","uniqueKey":"data.refusals.items.[INDEX].box_key","typeLabel":"string"},"coupon_id":{"type":"string","format":"uuid","description":"The rule it names.","uniqueKey":"data.refusals.items.[INDEX].coupon_id","typeLabel":"string\u003cuuid>"},"goods":{"type":"number","description":"On `fees_exceed_goods`: the goods the return credits.","uniqueKey":"data.refusals.items.[INDEX].goods","typeLabel":"number"},"uncapped_total":{"type":"number","description":"On `fees_exceed_goods`: the fees before the cap.","uniqueKey":"data.refusals.items.[INDEX].uncapped_total","typeLabel":"number"},"why":{"type":"string","description":"On `handling_line_may_be_rule_line`: why the line may be the rule's own charge.","uniqueKey":"data.refusals.items.[INDEX].why","typeLabel":"string"}},"uniqueKey":"data.refusals.items.[INDEX]","typeLabel":"object"},"description":"Refusals that stood before this save and still stand (a save is refused only for one it causes). A step that commits the return (Decide, the close) refuses while one stands.","isRequired":true,"uniqueKey":"data.refusals","typeLabel":"object[]"},"offers":{"type":"array","items":{"type":"object","description":"What can be done about one refusal, on the line it names.","required":["code","key","actions"],"properties":{"code":{"type":"string","description":"The refusal it answers.","isRequired":true,"uniqueKey":"data.offers.items.[INDEX].code","typeLabel":"string"},"key":{"oneOf":[{"type":"string","description":"The line to act on; null when the act is the return's (a lower fee, or No refund).","isRequired":true,"uniqueKey":"data.offers.items.[INDEX].key.oneOf.0","typeLabel":"string"},{"type":"null","description":"The line to act on; null when the act is the return's (a lower fee, or No refund).","isRequired":true,"uniqueKey":"data.offers.items.[INDEX].key.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.offers.items.[INDEX].key","typeLabel":"string | null"},"actions":{"type":"array","items":{"type":"string","enum":["waive","change_amount","remove","enter_separate_charge","waive_box","remove_line","decide_no_refund"],"uniqueKey":"data.offers.items.[INDEX].actions.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"data.offers.items.[INDEX].actions","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"data.offers.items.[INDEX]","typeLabel":"object"},"description":"What can be done about each of `refusals`.","isRequired":true,"uniqueKey":"data.offers","typeLabel":"object[]"},"notices":{"type":"array","items":{"type":"object","description":"Something the fee plan tells about the return's fees that refuses nothing (a rule waived by a merchant-fault reason, a fee schedule the return never carried, a restocking fee held to the entity's bounds); its other keys name the line or rule.","required":["code"],"additionalProperties":true,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"data.notices.items.[INDEX].code","typeLabel":"string"}},"uniqueKey":"data.notices.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.notices","typeLabel":"object[]"},"allow_ad_hoc_fees":{"type":"boolean","description":"Whether one-off fees are allowed (Settings > Returns).","isRequired":true,"uniqueKey":"data.allow_ad_hoc_fees","typeLabel":"boolean"},"books":{"type":"object","required":["lines","books_nothing"],"description":"What this change books, in words.","properties":{"lines":{"type":"array","items":{"type":"object","required":["kind","text"],"properties":{"kind":{"type":"string","enum":["note","books_nothing"],"isRequired":true,"uniqueKey":"data.books.lines.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"text":{"type":"string","isRequired":true,"uniqueKey":"data.books.lines.items.[INDEX].text","typeLabel":"string"},"amount":{"type":"number","description":"On the totals sentence: the fees less the credits.","uniqueKey":"data.books.lines.items.[INDEX].amount","typeLabel":"number"}},"uniqueKey":"data.books.lines.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.books.lines","typeLabel":"object[]"},"books_nothing":{"type":"boolean","description":"Always true: a fee change posts no journal entry and moves no money; the fees post when the return closes.","isRequired":true,"uniqueKey":"data.books.books_nothing","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"data.books","typeLabel":"object"},"logged":{"type":"integer","description":"The activity rows the save wrote (one per change, and one per new notice). Absent on the preview.","uniqueKey":"data.logged","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"return_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","return_number":"\u003cstring>","preview":true,"updated_at":"2023-11-07T05:31:56Z","lines":[{"key":"\u003cstring>","direction":"fee","source":{"kind":"rule","coupon_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","applied":"auto","snapshot":{},"reason_code":"\u003cstring>","note":"\u003cstring>","from":"typed_line","original":{},"carried_from":"\u003cstring>","label_id":"\u003cstring>","folded_rule":{},"taken_typed_line":{},"absent_from_stored":true,"legacy_claim_waiver":true},"fee_class":"restocking","label":"\u003cstring>","gl_account_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","calc":{"mode":"flat","value":123,"deferred":true},"computed_amount":123,"override":{"amount":123,"waive":true,"reason":"\u003cstring>","by":"3c90c3cc-0d44-4b50-8888-8dd25736052a","at":"2023-11-07T05:31:56Z"},"final_amount":123,"taxable":true,"taxable_source":"rule","waived":true,"waiver_source":"rule_merchant_fault","by":"3c90c3cc-0d44-4b50-8888-8dd25736052a","at":"2023-11-07T05:31:56Z","disclosed_at":"2023-11-07T05:31:56Z","tax_override":{"taxable":true,"reason":"\u003cstring>","by":"3c90c3cc-0d44-4b50-8888-8dd25736052a","at":"2023-11-07T05:31:56Z"},"cap_reduction":123,"exemption":{},"superseded_by":"\u003cstring>","restocking_bound":{"code":"restocking_fee_above_entity_max","entity_fee_min":123,"entity_fee_max":123,"outcome":"clamped","from":123,"to":123,"source":"stamp","words":"\u003cstring>"},"fee_type":"\u003cstring>","mode":"flat","value":123,"calculated_amount":123,"gl_account_key":"\u003cstring>","coupon_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","_auto_rule":"3c90c3cc-0d44-4b50-8888-8dd25736052a","rule_fee_min":123,"rule_fee_max":123,"deferred_pct":123,"_waived":true}],"totals":{"fees":123,"credits":123,"net_fee_income":123,"uncapped_fees":123,"taxable_fees":123,"fee_tax":123,"by_class":{}},"restocking_fee":123,"refusals":[{"code":"\u003cstring>","intent_index":123,"field":"\u003cstring>","errors":[{"code":"\u003cstring>","field":"\u003cstring>"}],"key":"\u003cstring>","keys":["\u003cstring>"],"box_key":"\u003cstring>","coupon_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","goods":123,"uncapped_total":123,"why":"\u003cstring>"}],"offers":[{"code":"\u003cstring>","key":"\u003cstring>","actions":["waive"]}],"notices":[{"code":"\u003cstring>"}],"allow_ad_hoc_fees":true,"books":{"lines":[{"kind":"note","text":"\u003cstring>","amount":123}],"books_nothing":true},"logged":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"aa0b88e0-bb03-4b77-bb42-de501daf47be":{"description":"The request is malformed. `code` includes:\n- `invalid_id_format`: the path id is not a valid id.\n","content":{"application/json":{"schema":{"type":"object","description":"Canonical error response envelope. All API errors use this shape.\n","required":["error","code"],"properties":{"error":{"type":"string","description":"Machine-readable error key","example":"not_found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code (often same as error)","example":"not_found","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"type":{"type":"string","enum":["validation_error","permission_error","not_found","conflict","rate_limit","internal","expand_error","not_implemented"],"example":"not_found","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"hint":{"type":"string","description":"Human-readable one-sentence explanation (English)","example":"The requested order does not exist or does not belong to this entity.","uniqueKey":"hint","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error, if applicable","example":"expand[0]","uniqueKey":"param","typeLabel":"string"},"required":{"type":"string","description":"The scope required (only on insufficient_scope errors)","example":"accounts:read","uniqueKey":"required","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support tracing (maps to CloudWatch log stream)","example":"req_abc123","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"not_found","code":"not_found","type":"not_found","hint":"The requested order does not exist or does not belong to this entity.","param":"expand[0]","required":"accounts:read","request_id":"req_abc123"}}},"exampleType":"generated"}},"exampleType":"generated"},"e6bbe0c4-4f68-4b33-be55-4922ba426fee":{"description":"Error response (400/401/403/404/409/422/429/500)","content":{"application/json":{"schema":{"type":"object","description":"Canonical error response envelope. All API errors use this shape.\n","required":["error","code"],"properties":{"error":{"type":"string","description":"Machine-readable error key","example":"not_found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code (often same as error)","example":"not_found","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"type":{"type":"string","enum":["validation_error","permission_error","not_found","conflict","rate_limit","internal","expand_error","not_implemented"],"example":"not_found","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"hint":{"type":"string","description":"Human-readable one-sentence explanation (English)","example":"The requested order does not exist or does not belong to this entity.","uniqueKey":"hint","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error, if applicable","example":"expand[0]","uniqueKey":"param","typeLabel":"string"},"required":{"type":"string","description":"The scope required (only on insufficient_scope errors)","example":"accounts:read","uniqueKey":"required","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support tracing (maps to CloudWatch log stream)","example":"req_abc123","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"not_found","code":"not_found","type":"not_found","hint":"The requested order does not exist or does not belong to this entity.","param":"expand[0]","required":"accounts:read","request_id":"req_abc123"}}},"exampleType":"generated"}},"exampleType":"generated"},"b2528f14-2c3b-4f80-ba45-4d8ee5369ba9":{"description":"The key may not make this change; nothing is written. `code` includes:\n- `insufficient_scope`: the key does not carry `returns:write`.\n- `permission_denied`: the key's creator does not hold `returns.edit` (`permission_key` names it); a key\n with no creator is refused too.\n- `fee_tax_override_not_permitted`: an `override` decides a fee's tax and the key's creator does not hold\n `returns.override_condition` (`meta` names the intent).\n","content":{"application/json":{"schema":{"type":"object","description":"The refusal of a fee change: the shared error envelope, the request part at fault and, for a refusal of the fee plan, every refusal with what can be done about it. `hint` is the sentence to show. Nothing is written.","required":["error","code"],"properties":{"error":{"type":"string","description":"Machine-readable error key","example":"not_found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code (often same as error)","example":"not_found","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"type":{"type":"string","enum":["validation_error","permission_error","not_found","conflict","rate_limit","internal","expand_error","not_implemented"],"example":"not_found","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"hint":{"type":"string","description":"Human-readable one-sentence explanation (English)","example":"The requested order does not exist or does not belong to this entity.","uniqueKey":"hint","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error, if applicable","example":"expand[0]","uniqueKey":"param","typeLabel":"string"},"required":{"type":"string","description":"The scope required (only on insufficient_scope errors)","example":"accounts:read","uniqueKey":"required","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support tracing (maps to CloudWatch log stream)","example":"req_abc123","uniqueKey":"request_id","typeLabel":"string"},"meta":{"type":"object","description":"On a refusal of the fee plan (and `auto_rule_no_longer_applies`): every refusal the save caused, and the offers.","required":["refusals","offers"],"properties":{"refusals":{"type":"array","items":{"type":"object","description":"One refusal of the fee plan: what it is, and which intent or line it names.","required":["code"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"meta.refusals.items.[INDEX].code","typeLabel":"string"},"intent_index":{"type":"integer","description":"The intent's place in `intents`, from 0, when an intent caused it.","uniqueKey":"meta.refusals.items.[INDEX].intent_index","typeLabel":"integer"},"field":{"type":"string","description":"The intent's field at fault.","uniqueKey":"meta.refusals.items.[INDEX].field","typeLabel":"string"},"errors":{"type":"array","description":"Every problem of the intent's shape (the first is `code`).","items":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"meta.refusals.items.[INDEX].errors.items.[INDEX].code","typeLabel":"string"},"field":{"type":"string","uniqueKey":"meta.refusals.items.[INDEX].errors.items.[INDEX].field","typeLabel":"string"}},"uniqueKey":"meta.refusals.items.[INDEX].errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"meta.refusals.items.[INDEX].errors","typeLabel":"object[]"},"key":{"type":"string","description":"The line it names.","uniqueKey":"meta.refusals.items.[INDEX].key","typeLabel":"string"},"keys":{"type":"array","items":{"type":"string","uniqueKey":"meta.refusals.items.[INDEX].keys.items.[INDEX]","typeLabel":"string"},"description":"The lines it names (a rule charged on two lines; a handling line beside a handling rule's line).","uniqueKey":"meta.refusals.items.[INDEX].keys","typeLabel":"string[]"},"box_key":{"type":"string","description":"On `restocking_fee_beside_restocking_box`: the restocking fee's line.","uniqueKey":"meta.refusals.items.[INDEX].box_key","typeLabel":"string"},"coupon_id":{"type":"string","format":"uuid","description":"The rule it names.","uniqueKey":"meta.refusals.items.[INDEX].coupon_id","typeLabel":"string\u003cuuid>"},"goods":{"type":"number","description":"On `fees_exceed_goods`: the goods the return credits.","uniqueKey":"meta.refusals.items.[INDEX].goods","typeLabel":"number"},"uncapped_total":{"type":"number","description":"On `fees_exceed_goods`: the fees before the cap.","uniqueKey":"meta.refusals.items.[INDEX].uncapped_total","typeLabel":"number"},"why":{"type":"string","description":"On `handling_line_may_be_rule_line`: why the line may be the rule's own charge.","uniqueKey":"meta.refusals.items.[INDEX].why","typeLabel":"string"}},"uniqueKey":"meta.refusals.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"meta.refusals","typeLabel":"object[]"},"offers":{"type":"array","items":{"type":"object","description":"What can be done about one refusal, on the line it names.","required":["code","key","actions"],"properties":{"code":{"type":"string","description":"The refusal it answers.","isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].code","typeLabel":"string"},"key":{"oneOf":[{"type":"string","description":"The line to act on; null when the act is the return's (a lower fee, or No refund).","isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].key.oneOf.0","typeLabel":"string"},{"type":"null","description":"The line to act on; null when the act is the return's (a lower fee, or No refund).","isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].key.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].key","typeLabel":"string | null"},"actions":{"type":"array","items":{"type":"string","enum":["waive","change_amount","remove","enter_separate_charge","waive_box","remove_line","decide_no_refund"],"uniqueKey":"meta.offers.items.[INDEX].actions.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].actions","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"meta.offers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"meta.offers","typeLabel":"object[]"}},"uniqueKey":"meta","typeLabel":"object"},"fee_amount":{"type":"number","description":"On `fee_exceeds_goods`: the fee asked for.","uniqueKey":"fee_amount","typeLabel":"number"},"goods_value":{"type":"number","description":"On `fee_exceeds_goods`: the goods the return credits.","uniqueKey":"goods_value","typeLabel":"number"},"updated_at":{"type":"string","format":"date-time","description":"On `rma_changed`: the return's `updated_at` now.","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"status":{"type":"string","description":"On `fees_locked_*`: the return's status.","uniqueKey":"status","typeLabel":"string"},"message":{"type":"string","description":"On `permission_denied` for a key with a creator: the permission refused, in words.","uniqueKey":"message","typeLabel":"string"},"permission_key":{"type":"string","description":"On `permission_denied`: the permission refused (`returns.edit`).","uniqueKey":"permission_key","typeLabel":"string"},"role":{"oneOf":[{"type":"string","description":"On `permission_denied` for a key with a creator: the creator's role in this entity (null for a custom role).","uniqueKey":"role.oneOf.0","typeLabel":"string"},{"type":"null","description":"On `permission_denied` for a key with a creator: the creator's role in this entity (null for a custom role).","uniqueKey":"role.oneOf.1","typeLabel":"null"}],"uniqueKey":"role","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"not_found","code":"not_found","type":"not_found","hint":"The requested order does not exist or does not belong to this entity.","param":"expand[0]","required":"accounts:read","request_id":"req_abc123","meta":{"refusals":[{"code":"\u003cstring>","intent_index":123,"field":"\u003cstring>","errors":[{"code":"\u003cstring>","field":"\u003cstring>"}],"key":"\u003cstring>","keys":["\u003cstring>"],"box_key":"\u003cstring>","coupon_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","goods":123,"uncapped_total":123,"why":"\u003cstring>"}],"offers":[{"code":"\u003cstring>","key":"\u003cstring>","actions":["waive"]}]},"fee_amount":123,"goods_value":123,"updated_at":"2023-11-07T05:31:56Z","status":"\u003cstring>","message":"\u003cstring>","permission_key":"\u003cstring>","role":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"ff3d9d3f-7943-45a8-b053-057cac20855e":{"description":"Not found. `code` includes:\n- `return_not_found`: no return with this id exists in this entity.\n","content":{"application/json":{"schema":{"type":"object","description":"Canonical error response envelope. All API errors use this shape.\n","required":["error","code"],"properties":{"error":{"type":"string","description":"Machine-readable error key","example":"not_found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code (often same as error)","example":"not_found","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"type":{"type":"string","enum":["validation_error","permission_error","not_found","conflict","rate_limit","internal","expand_error","not_implemented"],"example":"not_found","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"hint":{"type":"string","description":"Human-readable one-sentence explanation (English)","example":"The requested order does not exist or does not belong to this entity.","uniqueKey":"hint","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error, if applicable","example":"expand[0]","uniqueKey":"param","typeLabel":"string"},"required":{"type":"string","description":"The scope required (only on insufficient_scope errors)","example":"accounts:read","uniqueKey":"required","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support tracing (maps to CloudWatch log stream)","example":"req_abc123","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"not_found","code":"not_found","type":"not_found","hint":"The requested order does not exist or does not belong to this entity.","param":"expand[0]","required":"accounts:read","request_id":"req_abc123"}}},"exampleType":"generated"}},"exampleType":"generated"},"6b1c8b5f-dba7-4602-9cfc-b6e5fcfeb80b":{"description":"The return changed, or its state takes no fee change; nothing is written. `code` includes:\n- `rma_changed`: the return changed since `expected_updated_at` (`updated_at` says when it last did).\n Read it again and make the change again.\n- `fees_locked_use_reopen_settlement`: the return is closed and its fees are posted; reopen its\n settlement to change a fee (`status` is `closed`).\n- `fees_locked_rma_voided` / `fees_locked_rma_cancelled`: the return is voided or cancelled (`status`\n names it); a voided return is un-voided first.\n- `line_not_found`: an intent names a `key` the return's lines do not hold (it changed since it was read);\n read it again (`meta` names the intent).\n","content":{"application/json":{"schema":{"type":"object","description":"The refusal of a fee change: the shared error envelope, the request part at fault and, for a refusal of the fee plan, every refusal with what can be done about it. `hint` is the sentence to show. Nothing is written.","required":["error","code"],"properties":{"error":{"type":"string","description":"Machine-readable error key","example":"not_found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code (often same as error)","example":"not_found","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"type":{"type":"string","enum":["validation_error","permission_error","not_found","conflict","rate_limit","internal","expand_error","not_implemented"],"example":"not_found","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"hint":{"type":"string","description":"Human-readable one-sentence explanation (English)","example":"The requested order does not exist or does not belong to this entity.","uniqueKey":"hint","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error, if applicable","example":"expand[0]","uniqueKey":"param","typeLabel":"string"},"required":{"type":"string","description":"The scope required (only on insufficient_scope errors)","example":"accounts:read","uniqueKey":"required","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support tracing (maps to CloudWatch log stream)","example":"req_abc123","uniqueKey":"request_id","typeLabel":"string"},"meta":{"type":"object","description":"On a refusal of the fee plan (and `auto_rule_no_longer_applies`): every refusal the save caused, and the offers.","required":["refusals","offers"],"properties":{"refusals":{"type":"array","items":{"type":"object","description":"One refusal of the fee plan: what it is, and which intent or line it names.","required":["code"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"meta.refusals.items.[INDEX].code","typeLabel":"string"},"intent_index":{"type":"integer","description":"The intent's place in `intents`, from 0, when an intent caused it.","uniqueKey":"meta.refusals.items.[INDEX].intent_index","typeLabel":"integer"},"field":{"type":"string","description":"The intent's field at fault.","uniqueKey":"meta.refusals.items.[INDEX].field","typeLabel":"string"},"errors":{"type":"array","description":"Every problem of the intent's shape (the first is `code`).","items":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"meta.refusals.items.[INDEX].errors.items.[INDEX].code","typeLabel":"string"},"field":{"type":"string","uniqueKey":"meta.refusals.items.[INDEX].errors.items.[INDEX].field","typeLabel":"string"}},"uniqueKey":"meta.refusals.items.[INDEX].errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"meta.refusals.items.[INDEX].errors","typeLabel":"object[]"},"key":{"type":"string","description":"The line it names.","uniqueKey":"meta.refusals.items.[INDEX].key","typeLabel":"string"},"keys":{"type":"array","items":{"type":"string","uniqueKey":"meta.refusals.items.[INDEX].keys.items.[INDEX]","typeLabel":"string"},"description":"The lines it names (a rule charged on two lines; a handling line beside a handling rule's line).","uniqueKey":"meta.refusals.items.[INDEX].keys","typeLabel":"string[]"},"box_key":{"type":"string","description":"On `restocking_fee_beside_restocking_box`: the restocking fee's line.","uniqueKey":"meta.refusals.items.[INDEX].box_key","typeLabel":"string"},"coupon_id":{"type":"string","format":"uuid","description":"The rule it names.","uniqueKey":"meta.refusals.items.[INDEX].coupon_id","typeLabel":"string\u003cuuid>"},"goods":{"type":"number","description":"On `fees_exceed_goods`: the goods the return credits.","uniqueKey":"meta.refusals.items.[INDEX].goods","typeLabel":"number"},"uncapped_total":{"type":"number","description":"On `fees_exceed_goods`: the fees before the cap.","uniqueKey":"meta.refusals.items.[INDEX].uncapped_total","typeLabel":"number"},"why":{"type":"string","description":"On `handling_line_may_be_rule_line`: why the line may be the rule's own charge.","uniqueKey":"meta.refusals.items.[INDEX].why","typeLabel":"string"}},"uniqueKey":"meta.refusals.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"meta.refusals","typeLabel":"object[]"},"offers":{"type":"array","items":{"type":"object","description":"What can be done about one refusal, on the line it names.","required":["code","key","actions"],"properties":{"code":{"type":"string","description":"The refusal it answers.","isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].code","typeLabel":"string"},"key":{"oneOf":[{"type":"string","description":"The line to act on; null when the act is the return's (a lower fee, or No refund).","isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].key.oneOf.0","typeLabel":"string"},{"type":"null","description":"The line to act on; null when the act is the return's (a lower fee, or No refund).","isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].key.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].key","typeLabel":"string | null"},"actions":{"type":"array","items":{"type":"string","enum":["waive","change_amount","remove","enter_separate_charge","waive_box","remove_line","decide_no_refund"],"uniqueKey":"meta.offers.items.[INDEX].actions.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].actions","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"meta.offers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"meta.offers","typeLabel":"object[]"}},"uniqueKey":"meta","typeLabel":"object"},"fee_amount":{"type":"number","description":"On `fee_exceeds_goods`: the fee asked for.","uniqueKey":"fee_amount","typeLabel":"number"},"goods_value":{"type":"number","description":"On `fee_exceeds_goods`: the goods the return credits.","uniqueKey":"goods_value","typeLabel":"number"},"updated_at":{"type":"string","format":"date-time","description":"On `rma_changed`: the return's `updated_at` now.","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"status":{"type":"string","description":"On `fees_locked_*`: the return's status.","uniqueKey":"status","typeLabel":"string"},"message":{"type":"string","description":"On `permission_denied` for a key with a creator: the permission refused, in words.","uniqueKey":"message","typeLabel":"string"},"permission_key":{"type":"string","description":"On `permission_denied`: the permission refused (`returns.edit`).","uniqueKey":"permission_key","typeLabel":"string"},"role":{"oneOf":[{"type":"string","description":"On `permission_denied` for a key with a creator: the creator's role in this entity (null for a custom role).","uniqueKey":"role.oneOf.0","typeLabel":"string"},{"type":"null","description":"On `permission_denied` for a key with a creator: the creator's role in this entity (null for a custom role).","uniqueKey":"role.oneOf.1","typeLabel":"null"}],"uniqueKey":"role","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"not_found","code":"not_found","type":"not_found","hint":"The requested order does not exist or does not belong to this entity.","param":"expand[0]","required":"accounts:read","request_id":"req_abc123","meta":{"refusals":[{"code":"\u003cstring>","intent_index":123,"field":"\u003cstring>","errors":[{"code":"\u003cstring>","field":"\u003cstring>"}],"key":"\u003cstring>","keys":["\u003cstring>"],"box_key":"\u003cstring>","coupon_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","goods":123,"uncapped_total":123,"why":"\u003cstring>"}],"offers":[{"code":"\u003cstring>","key":"\u003cstring>","actions":["waive"]}]},"fee_amount":123,"goods_value":123,"updated_at":"2023-11-07T05:31:56Z","status":"\u003cstring>","message":"\u003cstring>","permission_key":"\u003cstring>","role":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"693afc7e-d007-4bfd-8199-f3260cbb0f5a":{"description":"The change cannot be made as sent; nothing is written. `param` names the intent (`intents[0]`) or the\nfield, and a refusal of the fee plan carries `meta.refusals` and `meta.offers`. `code` includes:\n- `fee_intents_required`: `intents` is missing or empty.\n- `expected_updated_at_required`: `expected_updated_at` is missing or not a date.\n- `intent_invalid`: an intent's `op` is not one of the five, it carries a field its `op` does not take, a\n `key` is missing, or the save sends more than 50 intents.\n- `client_field_forbidden`: an intent carries a field only the server sets (such as `source`,\n `final_amount`, `waived` or `deferred_pct`).\n- `fee_class_required`: a one-off fee names no fee type.\n- `value_invalid`: `value` is not an amount at or above zero (or a percentage above 100), or `mode` is not\n one of `flat`, `percentage`, `label_cost` (`label_cost` is a fee's only).\n- `override_invalid`: an `override` sends neither `amount` nor `taxable`, or an amount below zero.\n- `reason_required`: a one-off line has no `reason_code`, or an `override`, `waive` or `remove` has no\n `reason`.\n- `note_required`: a one-off line whose `reason_code` is `other` has a note under 10 characters.\n- `ad_hoc_fees_not_allowed`: one-off fees are turned off (Settings > Returns); pick a saved fee rule.\n- `rule_already_on_plan`: the picked rule is already on the return.\n- `rule_not_found` / `rule_not_return_fee`: the picked rule is not one of this entity's, or is not a\n return fee rule.\n- `rule_inactive` / `rule_out_of_window`: the picked rule is inactive, or outside the dates it applies on.\n- `rule_scope_mismatch` / `rule_account_mismatch`: the picked rule does not reach the return's products, or\n its account.\n- `rule_not_resolved`: the picked rule could not be applied to the return.\n- `fee_rule_class_missing` / `fee_rule_calc_unsupported`: the picked rule has no fee type, or is\n calculated in a way a return cannot charge.\n- `fee_tax_override_on_exempt_order`: an `override` taxes a fee of a tax-exempt order.\n- `fee_tax_override_on_credit_line`: an `override` decides the tax of a credit line, which is never taxed.\n- `fee_tax_override_on_restocking_box`: an `override` decides the tax of the restocking fee, which the\n entity's fee tax setting decides; set its amount or waive it instead.\n- `credit_line_cannot_be_waived`: a `waive` names a credit line; remove it or set its amount.\n- `auto_rule_line_use_waive`: a `remove` names an automatic rule's line, which comes back on the next save;\n waive it or set its amount (`meta.offers`).\n- `header_line_use_waive`: a `remove` names the line the return builds from its restocking fee or its\n label; waive it or set its amount (`meta.offers`).\n- `auto_rule_no_longer_applies`: a `waive` or an `override` names an automatic fee whose rule no longer\n reaches the return, so it charges nothing; remove it (`meta.offers`).\n- `label_line_follows_the_label`: an `override` or `waive` names the return label's charge, which follows\n the label and its cost policy.\n- `restocking_fee_beside_restocking_box`: the save would charge a restocking fee twice, as a line and as\n the return's restocking fee (`meta.offers`: waive the restocking fee, or remove the line).\n- `handling_line_may_be_rule_line` / `rule_on_two_lines`: the save would charge a fee twice: a typed\n handling line beside a handling rule's line, or one rule on two lines (`meta.offers`).\n- `fee_exceeds_goods`: a fee amount a person sets (a one-off fee, or a line's amount) is the whole goods\n of the return or more (`fee_amount`, `goods_value`).\n- `fees_exceed_goods`: the fees would be more than the goods the return credits (`meta.offers`: change an\n amount, waive a fee, or decide the return as No refund).\n","content":{"application/json":{"schema":{"type":"object","description":"The refusal of a fee change: the shared error envelope, the request part at fault and, for a refusal of the fee plan, every refusal with what can be done about it. `hint` is the sentence to show. Nothing is written.","required":["error","code"],"properties":{"error":{"type":"string","description":"Machine-readable error key","example":"not_found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code (often same as error)","example":"not_found","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"type":{"type":"string","enum":["validation_error","permission_error","not_found","conflict","rate_limit","internal","expand_error","not_implemented"],"example":"not_found","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"hint":{"type":"string","description":"Human-readable one-sentence explanation (English)","example":"The requested order does not exist or does not belong to this entity.","uniqueKey":"hint","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error, if applicable","example":"expand[0]","uniqueKey":"param","typeLabel":"string"},"required":{"type":"string","description":"The scope required (only on insufficient_scope errors)","example":"accounts:read","uniqueKey":"required","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support tracing (maps to CloudWatch log stream)","example":"req_abc123","uniqueKey":"request_id","typeLabel":"string"},"meta":{"type":"object","description":"On a refusal of the fee plan (and `auto_rule_no_longer_applies`): every refusal the save caused, and the offers.","required":["refusals","offers"],"properties":{"refusals":{"type":"array","items":{"type":"object","description":"One refusal of the fee plan: what it is, and which intent or line it names.","required":["code"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"meta.refusals.items.[INDEX].code","typeLabel":"string"},"intent_index":{"type":"integer","description":"The intent's place in `intents`, from 0, when an intent caused it.","uniqueKey":"meta.refusals.items.[INDEX].intent_index","typeLabel":"integer"},"field":{"type":"string","description":"The intent's field at fault.","uniqueKey":"meta.refusals.items.[INDEX].field","typeLabel":"string"},"errors":{"type":"array","description":"Every problem of the intent's shape (the first is `code`).","items":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"meta.refusals.items.[INDEX].errors.items.[INDEX].code","typeLabel":"string"},"field":{"type":"string","uniqueKey":"meta.refusals.items.[INDEX].errors.items.[INDEX].field","typeLabel":"string"}},"uniqueKey":"meta.refusals.items.[INDEX].errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"meta.refusals.items.[INDEX].errors","typeLabel":"object[]"},"key":{"type":"string","description":"The line it names.","uniqueKey":"meta.refusals.items.[INDEX].key","typeLabel":"string"},"keys":{"type":"array","items":{"type":"string","uniqueKey":"meta.refusals.items.[INDEX].keys.items.[INDEX]","typeLabel":"string"},"description":"The lines it names (a rule charged on two lines; a handling line beside a handling rule's line).","uniqueKey":"meta.refusals.items.[INDEX].keys","typeLabel":"string[]"},"box_key":{"type":"string","description":"On `restocking_fee_beside_restocking_box`: the restocking fee's line.","uniqueKey":"meta.refusals.items.[INDEX].box_key","typeLabel":"string"},"coupon_id":{"type":"string","format":"uuid","description":"The rule it names.","uniqueKey":"meta.refusals.items.[INDEX].coupon_id","typeLabel":"string\u003cuuid>"},"goods":{"type":"number","description":"On `fees_exceed_goods`: the goods the return credits.","uniqueKey":"meta.refusals.items.[INDEX].goods","typeLabel":"number"},"uncapped_total":{"type":"number","description":"On `fees_exceed_goods`: the fees before the cap.","uniqueKey":"meta.refusals.items.[INDEX].uncapped_total","typeLabel":"number"},"why":{"type":"string","description":"On `handling_line_may_be_rule_line`: why the line may be the rule's own charge.","uniqueKey":"meta.refusals.items.[INDEX].why","typeLabel":"string"}},"uniqueKey":"meta.refusals.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"meta.refusals","typeLabel":"object[]"},"offers":{"type":"array","items":{"type":"object","description":"What can be done about one refusal, on the line it names.","required":["code","key","actions"],"properties":{"code":{"type":"string","description":"The refusal it answers.","isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].code","typeLabel":"string"},"key":{"oneOf":[{"type":"string","description":"The line to act on; null when the act is the return's (a lower fee, or No refund).","isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].key.oneOf.0","typeLabel":"string"},{"type":"null","description":"The line to act on; null when the act is the return's (a lower fee, or No refund).","isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].key.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].key","typeLabel":"string | null"},"actions":{"type":"array","items":{"type":"string","enum":["waive","change_amount","remove","enter_separate_charge","waive_box","remove_line","decide_no_refund"],"uniqueKey":"meta.offers.items.[INDEX].actions.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].actions","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"meta.offers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"meta.offers","typeLabel":"object[]"}},"uniqueKey":"meta","typeLabel":"object"},"fee_amount":{"type":"number","description":"On `fee_exceeds_goods`: the fee asked for.","uniqueKey":"fee_amount","typeLabel":"number"},"goods_value":{"type":"number","description":"On `fee_exceeds_goods`: the goods the return credits.","uniqueKey":"goods_value","typeLabel":"number"},"updated_at":{"type":"string","format":"date-time","description":"On `rma_changed`: the return's `updated_at` now.","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"status":{"type":"string","description":"On `fees_locked_*`: the return's status.","uniqueKey":"status","typeLabel":"string"},"message":{"type":"string","description":"On `permission_denied` for a key with a creator: the permission refused, in words.","uniqueKey":"message","typeLabel":"string"},"permission_key":{"type":"string","description":"On `permission_denied`: the permission refused (`returns.edit`).","uniqueKey":"permission_key","typeLabel":"string"},"role":{"oneOf":[{"type":"string","description":"On `permission_denied` for a key with a creator: the creator's role in this entity (null for a custom role).","uniqueKey":"role.oneOf.0","typeLabel":"string"},{"type":"null","description":"On `permission_denied` for a key with a creator: the creator's role in this entity (null for a custom role).","uniqueKey":"role.oneOf.1","typeLabel":"null"}],"uniqueKey":"role","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"not_found","code":"not_found","type":"not_found","hint":"The requested order does not exist or does not belong to this entity.","param":"expand[0]","required":"accounts:read","request_id":"req_abc123","meta":{"refusals":[{"code":"\u003cstring>","intent_index":123,"field":"\u003cstring>","errors":[{"code":"\u003cstring>","field":"\u003cstring>"}],"key":"\u003cstring>","keys":["\u003cstring>"],"box_key":"\u003cstring>","coupon_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","goods":123,"uncapped_total":123,"why":"\u003cstring>"}],"offers":[{"code":"\u003cstring>","key":"\u003cstring>","actions":["waive"]}]},"fee_amount":123,"goods_value":123,"updated_at":"2023-11-07T05:31:56Z","status":"\u003cstring>","message":"\u003cstring>","permission_key":"\u003cstring>","role":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"7b954c45-9fa9-42d9-8868-6ab6d0816893":{"description":"The fee rules could not be read; nothing is written. Try again. `code` includes:\n- `fee_rules_read_incomplete`: the read of the entity's fee rules for a `pick_rule` did not complete.\n","content":{"application/json":{"schema":{"type":"object","description":"The refusal of a fee change: the shared error envelope, the request part at fault and, for a refusal of the fee plan, every refusal with what can be done about it. `hint` is the sentence to show. Nothing is written.","required":["error","code"],"properties":{"error":{"type":"string","description":"Machine-readable error key","example":"not_found","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code (often same as error)","example":"not_found","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"type":{"type":"string","enum":["validation_error","permission_error","not_found","conflict","rate_limit","internal","expand_error","not_implemented"],"example":"not_found","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"hint":{"type":"string","description":"Human-readable one-sentence explanation (English)","example":"The requested order does not exist or does not belong to this entity.","uniqueKey":"hint","typeLabel":"string"},"param":{"type":"string","description":"The parameter that caused the error, if applicable","example":"expand[0]","uniqueKey":"param","typeLabel":"string"},"required":{"type":"string","description":"The scope required (only on insufficient_scope errors)","example":"accounts:read","uniqueKey":"required","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support tracing (maps to CloudWatch log stream)","example":"req_abc123","uniqueKey":"request_id","typeLabel":"string"},"meta":{"type":"object","description":"On a refusal of the fee plan (and `auto_rule_no_longer_applies`): every refusal the save caused, and the offers.","required":["refusals","offers"],"properties":{"refusals":{"type":"array","items":{"type":"object","description":"One refusal of the fee plan: what it is, and which intent or line it names.","required":["code"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"meta.refusals.items.[INDEX].code","typeLabel":"string"},"intent_index":{"type":"integer","description":"The intent's place in `intents`, from 0, when an intent caused it.","uniqueKey":"meta.refusals.items.[INDEX].intent_index","typeLabel":"integer"},"field":{"type":"string","description":"The intent's field at fault.","uniqueKey":"meta.refusals.items.[INDEX].field","typeLabel":"string"},"errors":{"type":"array","description":"Every problem of the intent's shape (the first is `code`).","items":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"meta.refusals.items.[INDEX].errors.items.[INDEX].code","typeLabel":"string"},"field":{"type":"string","uniqueKey":"meta.refusals.items.[INDEX].errors.items.[INDEX].field","typeLabel":"string"}},"uniqueKey":"meta.refusals.items.[INDEX].errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"meta.refusals.items.[INDEX].errors","typeLabel":"object[]"},"key":{"type":"string","description":"The line it names.","uniqueKey":"meta.refusals.items.[INDEX].key","typeLabel":"string"},"keys":{"type":"array","items":{"type":"string","uniqueKey":"meta.refusals.items.[INDEX].keys.items.[INDEX]","typeLabel":"string"},"description":"The lines it names (a rule charged on two lines; a handling line beside a handling rule's line).","uniqueKey":"meta.refusals.items.[INDEX].keys","typeLabel":"string[]"},"box_key":{"type":"string","description":"On `restocking_fee_beside_restocking_box`: the restocking fee's line.","uniqueKey":"meta.refusals.items.[INDEX].box_key","typeLabel":"string"},"coupon_id":{"type":"string","format":"uuid","description":"The rule it names.","uniqueKey":"meta.refusals.items.[INDEX].coupon_id","typeLabel":"string\u003cuuid>"},"goods":{"type":"number","description":"On `fees_exceed_goods`: the goods the return credits.","uniqueKey":"meta.refusals.items.[INDEX].goods","typeLabel":"number"},"uncapped_total":{"type":"number","description":"On `fees_exceed_goods`: the fees before the cap.","uniqueKey":"meta.refusals.items.[INDEX].uncapped_total","typeLabel":"number"},"why":{"type":"string","description":"On `handling_line_may_be_rule_line`: why the line may be the rule's own charge.","uniqueKey":"meta.refusals.items.[INDEX].why","typeLabel":"string"}},"uniqueKey":"meta.refusals.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"meta.refusals","typeLabel":"object[]"},"offers":{"type":"array","items":{"type":"object","description":"What can be done about one refusal, on the line it names.","required":["code","key","actions"],"properties":{"code":{"type":"string","description":"The refusal it answers.","isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].code","typeLabel":"string"},"key":{"oneOf":[{"type":"string","description":"The line to act on; null when the act is the return's (a lower fee, or No refund).","isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].key.oneOf.0","typeLabel":"string"},{"type":"null","description":"The line to act on; null when the act is the return's (a lower fee, or No refund).","isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].key.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].key","typeLabel":"string | null"},"actions":{"type":"array","items":{"type":"string","enum":["waive","change_amount","remove","enter_separate_charge","waive_box","remove_line","decide_no_refund"],"uniqueKey":"meta.offers.items.[INDEX].actions.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"meta.offers.items.[INDEX].actions","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"meta.offers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"meta.offers","typeLabel":"object[]"}},"uniqueKey":"meta","typeLabel":"object"},"fee_amount":{"type":"number","description":"On `fee_exceeds_goods`: the fee asked for.","uniqueKey":"fee_amount","typeLabel":"number"},"goods_value":{"type":"number","description":"On `fee_exceeds_goods`: the goods the return credits.","uniqueKey":"goods_value","typeLabel":"number"},"updated_at":{"type":"string","format":"date-time","description":"On `rma_changed`: the return's `updated_at` now.","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"status":{"type":"string","description":"On `fees_locked_*`: the return's status.","uniqueKey":"status","typeLabel":"string"},"message":{"type":"string","description":"On `permission_denied` for a key with a creator: the permission refused, in words.","uniqueKey":"message","typeLabel":"string"},"permission_key":{"type":"string","description":"On `permission_denied`: the permission refused (`returns.edit`).","uniqueKey":"permission_key","typeLabel":"string"},"role":{"oneOf":[{"type":"string","description":"On `permission_denied` for a key with a creator: the creator's role in this entity (null for a custom role).","uniqueKey":"role.oneOf.0","typeLabel":"string"},{"type":"null","description":"On `permission_denied` for a key with a creator: the creator's role in this entity (null for a custom role).","uniqueKey":"role.oneOf.1","typeLabel":"null"}],"uniqueKey":"role","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"not_found","code":"not_found","type":"not_found","hint":"The requested order does not exist or does not belong to this entity.","param":"expand[0]","required":"accounts:read","request_id":"req_abc123","meta":{"refusals":[{"code":"\u003cstring>","intent_index":123,"field":"\u003cstring>","errors":[{"code":"\u003cstring>","field":"\u003cstring>"}],"key":"\u003cstring>","keys":["\u003cstring>"],"box_key":"\u003cstring>","coupon_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","goods":123,"uncapped_total":123,"why":"\u003cstring>"}],"offers":[{"code":"\u003cstring>","key":"\u003cstring>","actions":["waive"]}]},"fee_amount":123,"goods_value":123,"updated_at":"2023-11-07T05:31:56Z","status":"\u003cstring>","message":"\u003cstring>","permission_key":"\u003cstring>","role":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"23339a99-a12b-4f3a-9ce2-976b3dafab1a":{"ApiKeyAuth":{"type":"http","scheme":"bearer","description":"API key issued per entity via Settings > Developers > API Keys.\nEach key carries scopes (e.g. orders:read, products:write).\nBearer token format: Authorization: Bearer ark_live_ent_\u003ccode>_\u003crandom>\nTest keys use ark_test_ent_\u003ccode>_\u003crandom>. Both are issued per entity\nvia Settings > Developers > API Keys.\n","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"a1679c08-ff5b-4302-aafc-0c4a86ded15b":{"url":"https://api.arcuserp.com/v1","description":"Arcus ERP API (accepts both live `ark_live_*` and test `ark_test_*` keys)"},"93951de2-cf61-4825-894e-575e5e7d3163":{"url":"https://dev-api.arcuserp.com/v1","description":"Dev sandbox API (test-only data, accepts `ark_test_*` keys against dev RDS)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API key issued per entity via Settings > Developers > API Keys.\nEach key carries scopes (e.g. orders:read, products:write).\nBearer token format: Authorization: Bearer ark_live_ent_\u003ccode>_\u003crandom>\nTest keys use ark_test_ent_\u003ccode>_\u003crandom>. Both are issued per entity\nvia Settings > Developers > API Keys.\n","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key issued per entity via Settings > Developers > API Keys.\nEach key carries scopes (e.g. orders:read, products:write).\nBearer token format: Authorization: Bearer ark_live_ent_\u003ccode>_\u003crandom>\nTest keys use ark_test_ent_\u003ccode>_\u003crandom>. Both are issued per entity\nvia Settings > Developers > API Keys.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"arcuserp","siteName":"Arcus ERP Docs","title":"Change a return's fees - Arcus ERP Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T04:24:34.438Z","originalFileLocation":"api-reference/returns/change-a-returns-fees.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"Changes a return\u0026#x27;s fee lines one change at a time: pick a saved fee rule, add a one-off fee or credit with its reason, set a line\u0026#x27;s amount or decide its tax, waive a line, or remove one. Every change runs the return\u0026#x27;s one fee plan (its rules, caps, waivers and tax), and the plan\u0026#x27;s lines are what is stored, with one activity row per change naming the key\u0026#x27;s creator. Send expected_updated_at, the return\u0026#x27;s updated_at as you read it: a save made from an older copy is refused 409 rma_changed and nothing is written. A refusal the save causes refuses the whole save (nothing is written) and lists every refusal with what can be done about it in meta.offers; a refusal that stood before is answered in refusals and refuses nothing. A closed, voided or cancelled return takes no fee change (409). Nothing posts and no money moves: the fees post when the return closes. Requires the returns:write scope and the returns.edit permission for the key\u0026#x27;s creator (a tax decision also takes returns.override_condition). Preview the same save with POST /returns/{id}/fee-intents/preview.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Arcus ERP Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/arcuserp/iGGcQO3UCgP8tozJ/_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/arcuserp/iGGcQO3UCgP8tozJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/arcuserp/iGGcQO3UCgP8tozJ/_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/arcuserp/iGGcQO3UCgP8tozJ/_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/arcuserp/iGGcQO3UCgP8tozJ/_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/arcuserp/iGGcQO3UCgP8tozJ/_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/arcuserp/iGGcQO3UCgP8tozJ/_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/arcuserp/iGGcQO3UCgP8tozJ/_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/arcuserp/iGGcQO3UCgP8tozJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Change a return\u0026#x27;s fees - Arcus ERP Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Changes a return\u0026#x27;s fee lines one change at a time: pick a saved fee rule, add a one-off fee or credit with its reason, set a line\u0026#x27;s amount or decide its tax, waive a line, or remove one. Every change runs the return\u0026#x27;s one fee plan (its rules, caps, waivers and tax), and the plan\u0026#x27;s lines are what is stored, with one activity row per change naming the key\u0026#x27;s creator. Send expected_updated_at, the return\u0026#x27;s updated_at as you read it: a save made from an older copy is refused 409 rma_changed and nothing is written. A refusal the save causes refuses the whole save (nothing is written) and lists every refusal with what can be done about it in meta.offers; a refusal that stood before is answered in refusals and refuses nothing. A closed, voided or cancelled return takes no fee change (409). Nothing posts and no money moves: the fees post when the return closes. Requires the returns:write scope and the returns.edit permission for the key\u0026#x27;s creator (a tax decision also takes returns.override_condition). Preview the same save with POST /returns/{id}/fee-intents/preview.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Arcus ERP Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.arcuserp.com/api-reference/returns/change-a-returns-fees\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://arcuserp.mintlify.app/_mintlify/api/og/v2?division=Returns\u0026amp;title=Change+a+return%27s+fees\u0026amp;description=Changes+a+return%27s+fee+lines+one+change+at+a+time%3A+pick+a+saved+fee+rule%2C+add+a+one-off+fee+or+credit+with+its+reason%2C+set+a+line%27s+amount+or+decide+its+tax%2C+wa\u0026amp;theme=76d7ae334cac71a2adaf164a\u0026amp;signature=a6ef254dab2ad996284f881f6a5fb2dec5d4143626c2b55820cfd91c1ae5c806\">\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=\"Change a return\u0026#x27;s fees - Arcus ERP Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Changes a return\u0026#x27;s fee lines one change at a time: pick a saved fee rule, add a one-off fee or credit with its reason, set a line\u0026#x27;s amount or decide its tax, waive a line, or remove one. Every change runs the return\u0026#x27;s one fee plan (its rules, caps, waivers and tax), and the plan\u0026#x27;s lines are what is stored, with one activity row per change naming the key\u0026#x27;s creator. Send expected_updated_at, the return\u0026#x27;s updated_at as you read it: a save made from an older copy is refused 409 rma_changed and nothing is written. A refusal the save causes refuses the whole save (nothing is written) and lists every refusal with what can be done about it in meta.offers; a refusal that stood before is answered in refusals and refuses nothing. A closed, voided or cancelled return takes no fee change (409). Nothing posts and no money moves: the fees post when the return closes. Requires the returns:write scope and the returns.edit permission for the key\u0026#x27;s creator (a tax decision also takes returns.override_condition). Preview the same save with POST /returns/{id}/fee-intents/preview.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://arcuserp.mintlify.app/_mintlify/api/og/v2?division=Returns\u0026amp;title=Change+a+return%27s+fees\u0026amp;description=Changes+a+return%27s+fee+lines+one+change+at+a+time%3A+pick+a+saved+fee+rule%2C+add+a+one-off+fee+or+credit+with+its+reason%2C+set+a+line%27s+amount+or+decide+its+tax%2C+wa\u0026amp;theme=76d7ae334cac71a2adaf164a\u0026amp;signature=a6ef254dab2ad996284f881f6a5fb2dec5d4143626c2b55820cfd91c1ae5c806\">\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/arcuserp/iGGcQO3UCgP8tozJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Arcus ERP Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0466EE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.arcuserp.com/api-reference/returns/change-a-returns-fees\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/returns/change-a-returns-fees.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.arcuserp.com/#organization\",\"name\":\"Arcus ERP Docs\",\"url\":\"https://docs.arcuserp.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/arcuserp/pTLxSU3S7vcf6riI/logo/light.png?fit=max\u0026auto=format\u0026n=pTLxSU3S7vcf6riI\u0026q=85\u0026s=89c11f2d6e4a30803fc92eaf61b26656\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.arcuserp.com#website\",\"name\":\"Arcus ERP Docs\",\"url\":\"https://docs.arcuserp.com\",\"publisher\":{\"@id\":\"https://docs.arcuserp.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.arcuserp.com/api-reference/returns/change-a-returns-fees#webpage\",\"url\":\"https://docs.arcuserp.com/api-reference/returns/change-a-returns-fees\",\"name\":\"Change a return's fees\",\"description\":\"Changes a return's fee lines one change at a time: pick a saved fee rule, add a one-off fee or credit with its reason, set a line's amount or decide its tax, waive a line, or remove one. Every change runs the return's one fee plan (its rules, caps, waivers and tax), and the plan's lines are what is stored, with one activity row per change naming the key's creator. Send expected_updated_at, the return's updated_at as you read it: a save made from an older copy is refused 409 rma_changed and nothing is written. A refusal the save causes refuses the whole save (nothing is written) and lists every refusal with what can be done about it in meta.offers; a refusal that stood before is answered in refusals and refuses nothing. A closed, voided or cancelled return takes no fee change (409). Nothing posts and no money moves: the fees post when the return closes. Requires the returns:write scope and the returns.edit permission for the key's creator (a tax decision also takes returns.override_condition). Preview the same save with POST /returns/{id}/fee-intents/preview.\",\"dateModified\":\"2026-11-05T04:24:34.438Z\",\"isPartOf\":{\"@id\":\"https://docs.arcuserp.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.arcuserp.com/api-reference/returns/change-a-returns-fees#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.arcuserp.com/api-reference/returns/change-a-returns-fees#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"All Endpoints\",\"item\":\"https://docs.arcuserp.com/api-reference/payments/list-installment-payment-plans\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Returns\",\"item\":\"https://docs.arcuserp.com/api-reference/returns/list-returns\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Change a return's fees\",\"item\":\"https://docs.arcuserp.com/api-reference/returns/change-a-returns-fees\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.arcuserp.com/api-reference/returns/change-a-returns-fees#apireference\",\"headline\":\"Change a return's fees\",\"name\":\"Change a return's fees\",\"description\":\"Changes a return's fee lines one change at a time: pick a saved fee rule, add a one-off fee or credit with its reason, set a line's amount or decide its tax, waive a line, or remove one. Every change runs the return's one fee plan (its rules, caps, waivers and tax), and the plan's lines are what is stored, with one activity row per change naming the key's creator. Send expected_updated_at, the return's updated_at as you read it: a save made from an older copy is refused 409 rma_changed and nothing is written. A refusal the save causes refuses the whole save (nothing is written) and lists every refusal with what can be done about it in meta.offers; a refusal that stood before is answered in refusals and refuses nothing. A closed, voided or cancelled return takes no fee change (409). Nothing posts and no money moves: the fees post when the return closes. Requires the returns:write scope and the returns.edit permission for the key's creator (a tax decision also takes returns.override_condition). Preview the same save with POST /returns/{id}/fee-intents/preview.\",\"url\":\"https://docs.arcuserp.com/api-reference/returns/change-a-returns-fees\",\"mainEntityOfPage\":{\"@id\":\"https://docs.arcuserp.com/api-reference/returns/change-a-returns-fees#webpage\"},\"dateModified\":\"2026-11-05T04:24:34.438Z\",\"publisher\":{\"@id\":\"https://docs.arcuserp.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.arcuserp.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Arcus ERP Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Arcus ERP Docs","nav":{"global":null,"tabs":[{"tab":"Help Center","pages":[{"title":"Help Center","href":"/support"}]},{"tab":"Report a Bug","pages":[{"title":"Report a Bug","href":"/support/bug-report"}]},{"tab":"Feature Request","pages":[{"title":"Feature Request","href":"/support/feature-request"}]},{"tab":"API Docs","pages":[{"title":"API Docs","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"group":"All Endpoints","pages":[{"group":"Payments","pages":[{"title":"List installment payment plans","deprecated":null,"version":null,"openapi":"/openapi.yaml get /payment-plans","href":"/api-reference/payments/list-installment-payment-plans"},{"title":"Create an installment payment plan","deprecated":null,"version":null,"openapi":"/openapi.yaml post /payment-plans","href":"/api-reference/payments/create-an-installment-payment-plan"},{"title":"Retrieve a payment plan","deprecated":null,"version":null,"openapi":"/openapi.yaml get /payment-plans/{id}","href":"/api-reference/payments/retrieve-a-payment-plan"},{"title":"Cancel a payment plan","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /payment-plans/{id}","href":"/api-reference/payments/cancel-a-payment-plan"},{"title":"Update a payment plan","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /payment-plans/{id}","href":"/api-reference/payments/update-a-payment-plan"},{"title":"Charge a payment plan installment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /payment-plans/{id}/installments/{seq}/charge","href":"/api-reference/payments/charge-a-payment-plan-installment"},{"title":"List payments","deprecated":null,"version":null,"openapi":"/openapi.yaml get /payments","href":"/api-reference/payments/list-payments"},{"title":"Create a payment batch","deprecated":null,"version":null,"openapi":"/openapi.yaml post /payments/batch","href":"/api-reference/payments/create-a-payment-batch"},{"title":"List a receipt's invoice applications","deprecated":null,"version":null,"openapi":"/openapi.yaml get /customer-payments/{id}/applications","href":"/api-reference/payments/list-a-receipts-invoice-applications"},{"title":"Reapply a receipt to different invoices","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /customer-payments/{id}/applications","href":"/api-reference/payments/reapply-a-receipt-to-different-invoices"},{"title":"Void a posted customer receipt","deprecated":null,"version":null,"openapi":"/openapi.yaml post /customer-payments/{id}/void","href":"/api-reference/payments/void-a-posted-customer-receipt"},{"title":"Apply a payment to multiple invoices","deprecated":null,"version":null,"openapi":"/openapi.yaml post /payments/multi-invoice-apply","href":"/api-reference/payments/apply-a-payment-to-multiple-invoices"},{"title":"Show the entry a multi-invoice payment would post","deprecated":null,"version":null,"openapi":"/openapi.yaml post /payments/multi-invoice-apply/dry-run","href":"/api-reference/payments/show-the-entry-a-multi-invoice-payment-would-post"},{"title":"List open receivable invoices","deprecated":null,"version":null,"openapi":"/openapi.yaml get /payments/multi-invoice-candidates","href":"/api-reference/payments/list-open-receivable-invoices"},{"title":"Deprecated. Response names the operation to use instead.","deprecated":true,"version":null,"openapi":"/openapi.yaml post /payments/{payment_id}/apply","href":"/api-reference/payments/deprecated-response-names-the-operation-to-use-instead"},{"title":"Retrieve a payment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /payments/{payment_id}","href":"/api-reference/payments/retrieve-a-payment"},{"title":"Void an uncaptured payment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /payments/{payment_id}/void","href":"/api-reference/payments/void-an-uncaptured-payment"},{"title":"Refund a payment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/payments/{payment_id}/refund","href":"/api-reference/payments/refund-a-payment"},{"title":"List credit memos","deprecated":null,"version":null,"openapi":"/openapi.yaml get /credits","href":"/api-reference/payments/list-credit-memos"},{"title":"Create a credit memo","deprecated":null,"version":null,"openapi":"/openapi.yaml post /credits","href":"/api-reference/payments/create-a-credit-memo"},{"title":"Apply a credit memo","deprecated":null,"version":null,"openapi":"/openapi.yaml post /credits/{credit_id}/apply","href":"/api-reference/payments/apply-a-credit-memo"},{"title":"Apply a customer deposit","deprecated":null,"version":null,"openapi":"/openapi.yaml post /customer-deposits/{id}/apply","href":"/api-reference/payments/apply-a-customer-deposit"},{"title":"Refund a customer deposit","deprecated":null,"version":null,"openapi":"/openapi.yaml post /customer-deposits/{id}/refund","href":"/api-reference/payments/refund-a-customer-deposit"}]},{"group":"Reports","pages":[{"title":"List scheduled report deliveries","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reporting-schedules","href":"/api-reference/reports/list-scheduled-report-deliveries"},{"title":"Create a scheduled report delivery","deprecated":null,"version":null,"openapi":"/openapi.yaml post /reporting-schedules","href":"/api-reference/reports/create-a-scheduled-report-delivery"},{"title":"Retrieve a reporting schedule","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reporting-schedules/{id}","href":"/api-reference/reports/retrieve-a-reporting-schedule"},{"title":"Delete a reporting schedule","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /reporting-schedules/{id}","href":"/api-reference/reports/delete-a-reporting-schedule"},{"title":"Update a reporting schedule","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /reporting-schedules/{id}","href":"/api-reference/reports/update-a-reporting-schedule"},{"title":"Trigger a reporting schedule now","deprecated":null,"version":null,"openapi":"/openapi.yaml post /reporting-schedules/{id}/run","href":"/api-reference/reports/trigger-a-reporting-schedule-now"},{"title":"Retrieve the shipping margin report","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/shipping-margin","href":"/api-reference/reports/retrieve-the-shipping-margin-report"},{"title":"List report jobs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports","href":"/api-reference/reports/list-report-jobs"},{"title":"Create an async report job","deprecated":null,"version":null,"openapi":"/openapi.yaml post /reports","href":"/api-reference/reports/create-an-async-report-job"},{"title":"List built-in report types","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/types","href":"/api-reference/reports/list-built-in-report-types"},{"title":"Retrieve a report job","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/{id}","href":"/api-reference/reports/retrieve-a-report-job"},{"title":"Cancel a report job","deprecated":null,"version":null,"openapi":"/openapi.yaml post /reports/{id}/cancel","href":"/api-reference/reports/cancel-a-report-job"},{"title":"Download a report job's result","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/{id}/download","href":"/api-reference/reports/download-a-report-jobs-result"}]},{"group":"Serials","pages":[{"title":"Trace a serial number's history","deprecated":null,"version":null,"openapi":"/openapi.yaml get /serials/trace","href":"/api-reference/serials/trace-a-serial-numbers-history"},{"title":"List serials","deprecated":null,"version":null,"openapi":"/openapi.yaml get /serials","href":"/api-reference/serials/list-serials"},{"title":"Generate serials in bulk","deprecated":null,"version":null,"openapi":"/openapi.yaml post /serials","href":"/api-reference/serials/generate-serials-in-bulk"},{"title":"Validate a serial for return","deprecated":null,"version":null,"openapi":"/openapi.yaml post /serials/validate-for-return","href":"/api-reference/serials/validate-a-serial-for-return"},{"title":"Preview a barcode parse","deprecated":null,"version":null,"openapi":"/openapi.yaml post /serials/parse-test","href":"/api-reference/serials/preview-a-barcode-parse"},{"title":"Capture serials for a package","deprecated":null,"version":null,"openapi":"/openapi.yaml post /serials/capture-partial","href":"/api-reference/serials/capture-serials-for-a-package"},{"title":"Retrieve a serial","deprecated":null,"version":null,"openapi":"/openapi.yaml get /serials/{id}","href":"/api-reference/serials/retrieve-a-serial"},{"title":"Delete a serial","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /serials/{id}","href":"/api-reference/serials/delete-a-serial"},{"title":"Update a serial","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /serials/{id}","href":"/api-reference/serials/update-a-serial"},{"title":"Restore a soft-deleted serial","deprecated":null,"version":null,"openapi":"/openapi.yaml post /serials/{id}/restore","href":"/api-reference/serials/restore-a-soft-deleted-serial"},{"title":"Record a serial's disposition","deprecated":null,"version":null,"openapi":"/openapi.yaml post /serials/{id}/disposition","href":"/api-reference/serials/record-a-serials-disposition"},{"title":"Link a serial to a lot","deprecated":null,"version":null,"openapi":"/openapi.yaml post /serials/{id}/link-lot","href":"/api-reference/serials/link-a-serial-to-a-lot"}]},{"group":"Accounting","pages":[{"title":"Post a GL opening balance","deprecated":null,"version":null,"openapi":"/openapi.yaml post /gl-accounts/{id}/opening-balance","href":"/api-reference/accounting/post-a-gl-opening-balance"},{"title":"List AR remittance imports","deprecated":null,"version":null,"openapi":"/openapi.yaml get /accounting/ar/remittance","href":"/api-reference/accounting/list-ar-remittance-imports"},{"title":"Import an AR remittance file","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounting/ar/remittance/import","href":"/api-reference/accounting/import-an-ar-remittance-file"},{"title":"Retrieve an AR remittance import","deprecated":null,"version":null,"openapi":"/openapi.yaml get /accounting/ar/remittance/{id}","href":"/api-reference/accounting/retrieve-an-ar-remittance-import"},{"title":"Confirm an AR remittance import","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounting/ar/remittance/{id}/confirm","href":"/api-reference/accounting/confirm-an-ar-remittance-import"},{"title":"Suggest open invoices for a deposit","deprecated":null,"version":null,"openapi":"/openapi.yaml get /accounting/bank-transactions/{id}/open-invoice-candidates","href":"/api-reference/accounting/suggest-open-invoices-for-a-deposit"},{"title":"Match a deposit to invoices","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounting/bank-transactions/{id}/match-deposit-to-invoices","href":"/api-reference/accounting/match-a-deposit-to-invoices"},{"title":"List GL accounts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /gl-accounts","href":"/api-reference/accounting/list-gl-accounts"},{"title":"Create a custom GL account","deprecated":null,"version":null,"openapi":"/openapi.yaml post /gl-accounts","href":"/api-reference/accounting/create-a-custom-gl-account"},{"title":"Retrieve a GL account","deprecated":null,"version":null,"openapi":"/openapi.yaml get /gl-accounts/{id}","href":"/api-reference/accounting/retrieve-a-gl-account"},{"title":"Deactivate a GL account","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /gl-accounts/{id}","href":"/api-reference/accounting/deactivate-a-gl-account"},{"title":"Update a GL account","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /gl-accounts/{id}","href":"/api-reference/accounting/update-a-gl-account"},{"title":"List journal entries","deprecated":null,"version":null,"openapi":"/openapi.yaml get /journal-entries","href":"/api-reference/accounting/list-journal-entries"},{"title":"Create a manual journal entry","deprecated":null,"version":null,"openapi":"/openapi.yaml post /journal-entries","href":"/api-reference/accounting/create-a-manual-journal-entry"},{"title":"Retrieve a journal entry with lines","deprecated":null,"version":null,"openapi":"/openapi.yaml get /journal-entries/{id}","href":"/api-reference/accounting/retrieve-a-journal-entry-with-lines"},{"title":"Approve a pending journal entry","deprecated":null,"version":null,"openapi":"/openapi.yaml post /journal-entries/{id}/approve","href":"/api-reference/accounting/approve-a-pending-journal-entry"},{"title":"Reject a pending journal entry","deprecated":null,"version":null,"openapi":"/openapi.yaml post /journal-entries/{id}/reject","href":"/api-reference/accounting/reject-a-pending-journal-entry"},{"title":"Reverse a posted journal entry","deprecated":null,"version":null,"openapi":"/openapi.yaml post /journal-entries/{id}/reverse","href":"/api-reference/accounting/reverse-a-posted-journal-entry"},{"title":"List accounting periods","deprecated":null,"version":null,"openapi":"/openapi.yaml get /periods","href":"/api-reference/accounting/list-accounting-periods"},{"title":"Retrieve a period close checklist","deprecated":null,"version":null,"openapi":"/openapi.yaml get /periods/{id}/close-checklist","href":"/api-reference/accounting/retrieve-a-period-close-checklist"},{"title":"Create accounting periods for a range","deprecated":null,"version":null,"openapi":"/openapi.yaml post /periods/ensure-range","href":"/api-reference/accounting/create-accounting-periods-for-a-range"},{"title":"Close an accounting period","deprecated":null,"version":null,"openapi":"/openapi.yaml post /periods/{id}/close","href":"/api-reference/accounting/close-an-accounting-period"},{"title":"Initiate a period close","deprecated":null,"version":null,"openapi":"/openapi.yaml post /periods/{id}/request-close","href":"/api-reference/accounting/initiate-a-period-close"},{"title":"Approve a pending period close","deprecated":null,"version":null,"openapi":"/openapi.yaml post /periods/{id}/approve-close","href":"/api-reference/accounting/approve-a-pending-period-close"},{"title":"Cancel a pending period close","deprecated":null,"version":null,"openapi":"/openapi.yaml post /periods/{id}/withdraw-close-request","href":"/api-reference/accounting/cancel-a-pending-period-close"},{"title":"Reopen a closed accounting period","deprecated":null,"version":null,"openapi":"/openapi.yaml post /periods/{id}/reopen","href":"/api-reference/accounting/reopen-a-closed-accounting-period"},{"title":"List bank accounts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /bank-accounts","href":"/api-reference/accounting/list-bank-accounts"},{"title":"Create a bank account","deprecated":null,"version":null,"openapi":"/openapi.yaml post /bank-accounts","href":"/api-reference/accounting/create-a-bank-account"},{"title":"Retrieve a bank account","deprecated":null,"version":null,"openapi":"/openapi.yaml get /bank-accounts/{id}","href":"/api-reference/accounting/retrieve-a-bank-account"},{"title":"Update a bank account","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /bank-accounts/{id}","href":"/api-reference/accounting/update-a-bank-account"},{"title":"List recurring journal entry templates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /recurring-journal-entries","href":"/api-reference/accounting/list-recurring-journal-entry-templates"},{"title":"Create a recurring journal entry template","deprecated":null,"version":null,"openapi":"/openapi.yaml post /recurring-journal-entries","href":"/api-reference/accounting/create-a-recurring-journal-entry-template"},{"title":"Deactivate a recurring journal template","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /recurring-journal-entries/{id}","href":"/api-reference/accounting/deactivate-a-recurring-journal-template"},{"title":"Update a recurring journal entry template","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /recurring-journal-entries/{id}","href":"/api-reference/accounting/update-a-recurring-journal-entry-template"},{"title":"Post a recurring journal entry","deprecated":null,"version":null,"openapi":"/openapi.yaml post /recurring-journal-entries/{id}/run","href":"/api-reference/accounting/post-a-recurring-journal-entry"},{"title":"Retrieve a trial balance","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/trial-balance","href":"/api-reference/accounting/retrieve-a-trial-balance"},{"title":"Retrieve an income statement","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/profit-loss","href":"/api-reference/accounting/retrieve-an-income-statement"},{"title":"Retrieve a balance sheet","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/balance-sheet","href":"/api-reference/accounting/retrieve-a-balance-sheet"},{"title":"Retrieve a cash flow statement","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/cash-flow","href":"/api-reference/accounting/retrieve-a-cash-flow-statement"},{"title":"Retrieve a GL account ledger","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/account-ledger","href":"/api-reference/accounting/retrieve-a-gl-account-ledger"},{"title":"Retrieve AR aging by customer","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/ar-aging","href":"/api-reference/accounting/retrieve-ar-aging-by-customer"},{"title":"Retrieve AP aging by vendor","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/ap-aging","href":"/api-reference/accounting/retrieve-ap-aging-by-vendor"},{"title":"Retrieve the AR aging summary","deprecated":null,"version":null,"openapi":"/openapi.yaml get /dashboard/ar-aging-summary","href":"/api-reference/accounting/retrieve-the-ar-aging-summary"},{"title":"Retrieve the AP aging summary","deprecated":null,"version":null,"openapi":"/openapi.yaml get /dashboard/ap-aging-summary","href":"/api-reference/accounting/retrieve-the-ap-aging-summary"},{"title":"Compare subledger balances to GL","deprecated":null,"version":null,"openapi":"/openapi.yaml get /reports/subledger-reconciliation","href":"/api-reference/accounting/compare-subledger-balances-to-gl"},{"title":"Charge late fees","deprecated":null,"version":null,"openapi":"/openapi.yaml post /ar/assess-late-fees","href":"/api-reference/accounting/charge-late-fees"},{"title":"Send AR statements in bulk","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounting/statements/bulk-send","href":"/api-reference/accounting/send-ar-statements-in-bulk"},{"title":"Send an AR statement","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounting/statements/{account_id}/send","href":"/api-reference/accounting/send-an-ar-statement"},{"title":"List chart of accounts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /chart-of-accounts","href":"/api-reference/accounting/list-chart-of-accounts"},{"title":"Retrieve the chart of accounts tree","deprecated":null,"version":null,"openapi":"/openapi.yaml get /chart-of-accounts/tree","href":"/api-reference/accounting/retrieve-the-chart-of-accounts-tree"},{"title":"List system-keyed accounts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /chart-of-accounts/system-keys","href":"/api-reference/accounting/list-system-keyed-accounts"},{"title":"List a journal entry's lines","deprecated":null,"version":null,"openapi":"/openapi.yaml get /journal-entries/{id}/lines","href":"/api-reference/accounting/list-a-journal-entrys-lines"},{"title":"Retrieve a journal entry line","deprecated":null,"version":null,"openapi":"/openapi.yaml get /journal-entries/{id}/lines/{line_id}","href":"/api-reference/accounting/retrieve-a-journal-entry-line"},{"title":"Update a journal entry line","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /journal-entries/{id}/lines/{line_id}","href":"/api-reference/accounting/update-a-journal-entry-line"},{"title":"List fiscal periods","deprecated":null,"version":null,"openapi":"/openapi.yaml get /fiscal-periods","href":"/api-reference/accounting/list-fiscal-periods"},{"title":"Retrieve a fiscal period","deprecated":null,"version":null,"openapi":"/openapi.yaml get /fiscal-periods/{id}","href":"/api-reference/accounting/retrieve-a-fiscal-period"},{"title":"Close a fiscal year","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fiscal-periods/{id}/close-fiscal-year","href":"/api-reference/accounting/close-a-fiscal-year"},{"title":"Close a period's fiscal year","deprecated":null,"version":null,"openapi":"/openapi.yaml post /periods/{id}/close-fiscal-year","href":"/api-reference/accounting/close-a-periods-fiscal-year"},{"title":"Close an accounting period's fiscal year","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounting_periods/{id}/close-fiscal-year","href":"/api-reference/accounting/close-an-accounting-periods-fiscal-year"},{"title":"Reopen a closed fiscal year","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fiscal-periods/{id}/reopen-fiscal-year","href":"/api-reference/accounting/reopen-a-closed-fiscal-year"},{"title":"Reopen a period's fiscal year","deprecated":null,"version":null,"openapi":"/openapi.yaml post /periods/{id}/reopen-fiscal-year","href":"/api-reference/accounting/reopen-a-periods-fiscal-year"},{"title":"Reopen an accounting period's fiscal year","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounting_periods/{id}/reopen-fiscal-year","href":"/api-reference/accounting/reopen-an-accounting-periods-fiscal-year"},{"title":"List bank deposits","deprecated":null,"version":null,"openapi":"/openapi.yaml get /deposits","href":"/api-reference/accounting/list-bank-deposits"},{"title":"Create a bank deposit","deprecated":null,"version":null,"openapi":"/openapi.yaml post /deposits","href":"/api-reference/accounting/create-a-bank-deposit"},{"title":"Show the entry a bank deposit would post","deprecated":null,"version":null,"openapi":"/openapi.yaml post /deposits/dry-run","href":"/api-reference/accounting/show-the-entry-a-bank-deposit-would-post"},{"title":"Retrieve a bank deposit","deprecated":null,"version":null,"openapi":"/openapi.yaml get /deposits/{id}","href":"/api-reference/accounting/retrieve-a-bank-deposit"},{"title":"Update a posted bank deposit","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /deposits/{id}","href":"/api-reference/accounting/update-a-posted-bank-deposit"},{"title":"Preview an edit of a posted bank deposit ticket","deprecated":null,"version":null,"openapi":"/openapi.yaml post /deposits/{id}/edit-preview","href":"/api-reference/accounting/preview-an-edit-of-a-posted-bank-deposit-ticket"},{"title":"Match deposit tickets to one bank's lines for a month","deprecated":null,"version":null,"openapi":"/openapi.yaml get /deposits/match-view","href":"/api-reference/accounting/match-deposit-tickets-to-one-banks-lines-for-a-month"},{"title":"Void a bank deposit","deprecated":null,"version":null,"openapi":"/openapi.yaml post /deposits/{id}/void","href":"/api-reference/accounting/void-a-bank-deposit"},{"title":"Reconcile a bank deposit","deprecated":null,"version":null,"openapi":"/openapi.yaml post /deposits/{id}/clear","href":"/api-reference/accounting/reconcile-a-bank-deposit"},{"title":"Preview a bank deposit before posting","deprecated":null,"version":null,"openapi":"/openapi.yaml post /deposits/preview","href":"/api-reference/accounting/preview-a-bank-deposit-before-posting"},{"title":"Retrieve a bank account's Plaid status","deprecated":null,"version":null,"openapi":"/openapi.yaml get /bank-accounts/{id}/plaid-status","href":"/api-reference/accounting/retrieve-a-bank-accounts-plaid-status"},{"title":"Apply a reconciliation baseline","deprecated":null,"version":null,"openapi":"/openapi.yaml post /bank-accounts/{id}/reconciliation-baseline","href":"/api-reference/accounting/apply-a-reconciliation-baseline"},{"title":"Suggest payment matches for a deposit","deprecated":null,"version":null,"openapi":"/openapi.yaml get /accounting/bank-transactions/{bank_transaction_id}/customer-payment-candidates","href":"/api-reference/accounting/suggest-payment-matches-for-a-deposit"},{"title":"Match a deposit to a payment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounting/bank-transactions/{bank_transaction_id}/match-customer-payment","href":"/api-reference/accounting/match-a-deposit-to-a-payment"},{"title":"Exclude a bank feed transaction","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounting/bank-transactions/{bank_transaction_id}/exclude","href":"/api-reference/accounting/exclude-a-bank-feed-transaction"},{"title":"Restore an excluded bank transaction","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounting/bank-transactions/{bank_transaction_id}/restore","href":"/api-reference/accounting/restore-an-excluded-bank-transaction"},{"title":"Exclude bank feed transactions in bulk","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounting/bank-transactions/bulk-exclude","href":"/api-reference/accounting/exclude-bank-feed-transactions-in-bulk"},{"title":"Approve bank feed matches in bulk","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounting/bank-transactions/bulk-approve-matches","href":"/api-reference/accounting/approve-bank-feed-matches-in-bulk"},{"title":"Link a bank line to transfer","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounting/bank-transactions/{id}/link-transfer","href":"/api-reference/accounting/link-a-bank-line-to-transfer"},{"title":"Update a reconciliation session","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /accounting/reconciliations/{id}","href":"/api-reference/accounting/update-a-reconciliation-session"},{"title":"List unmatched customer payment receipts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /accounting/unmatched-receipts","href":"/api-reference/accounting/list-unmatched-customer-payment-receipts"},{"title":"List adjustments","deprecated":null,"version":null,"openapi":"/openapi.yaml get /adjustments","href":"/api-reference/accounting/list-adjustments"},{"title":"Create an adjustment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /adjustments","href":"/api-reference/accounting/create-an-adjustment"},{"title":"List suspense adjustments","deprecated":null,"version":null,"openapi":"/openapi.yaml get /adjustments/suspense","href":"/api-reference/accounting/list-suspense-adjustments"},{"title":"Retrieve a single adjustment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /adjustments/{id}","href":"/api-reference/accounting/retrieve-a-single-adjustment"},{"title":"Reclassify a suspense adjustment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /adjustments/{id}/reclassify","href":"/api-reference/accounting/reclassify-a-suspense-adjustment"},{"title":"List expanded journal entries","deprecated":null,"version":null,"openapi":"/openapi.yaml get /journal-entries/expand","href":"/api-reference/accounting/list-expanded-journal-entries"},{"title":"Retrieve an expanded journal entry","deprecated":null,"version":null,"openapi":"/openapi.yaml get /journal-entries/{id}/expand","href":"/api-reference/accounting/retrieve-an-expanded-journal-entry"},{"title":"Initiate a fiscal period close","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fiscal-periods/{id}/request-close","href":"/api-reference/accounting/initiate-a-fiscal-period-close"},{"title":"Approve a fiscal period close","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fiscal-periods/{id}/approve-close","href":"/api-reference/accounting/approve-a-fiscal-period-close"},{"title":"Close a fiscal period","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fiscal-periods/{id}/close","href":"/api-reference/accounting/close-a-fiscal-period"},{"title":"Retrieve a fiscal period close checklist","deprecated":null,"version":null,"openapi":"/openapi.yaml get /fiscal-periods/{id}/close-checklist","href":"/api-reference/accounting/retrieve-a-fiscal-period-close-checklist"},{"title":"Reopen a fiscal period","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fiscal-periods/{id}/reopen","href":"/api-reference/accounting/reopen-a-fiscal-period"},{"title":"Generate a deposit slip PDF","deprecated":null,"version":null,"openapi":"/openapi.yaml get /deposits/{id}/print","href":"/api-reference/accounting/generate-a-deposit-slip-pdf"}]},{"group":"Entities","pages":[{"title":"Retrieve entity metadata and settings","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{id}","href":"/api-reference/entities/retrieve-entity-metadata-and-settings"}]},{"group":"Orders","pages":[{"title":"List orders currently on hold","deprecated":null,"version":null,"openapi":"/openapi.yaml get /orders/holds","href":"/api-reference/orders/list-orders-currently-on-hold"},{"title":"List order approval rules","deprecated":null,"version":null,"openapi":"/openapi.yaml get /orders/approval-rules","href":"/api-reference/orders/list-order-approval-rules"},{"title":"Create an order approval rule","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/approval-rules","href":"/api-reference/orders/create-an-order-approval-rule"},{"title":"Delete an order approval rule","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /orders/approval-rules/{id}","href":"/api-reference/orders/delete-an-order-approval-rule"},{"title":"Update an order approval rule","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /orders/approval-rules/{id}","href":"/api-reference/orders/update-an-order-approval-rule"},{"title":"Resolve an order overpayment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/overpayment/resolve","href":"/api-reference/orders/resolve-an-order-overpayment"},{"title":"List orders","deprecated":null,"version":null,"openapi":"/openapi.yaml get /orders","href":"/api-reference/orders/list-orders"},{"title":"Create an order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders","href":"/api-reference/orders/create-an-order"},{"title":"Retrieve an order","deprecated":null,"version":null,"openapi":"/openapi.yaml get /orders/{id}","href":"/api-reference/orders/retrieve-an-order"},{"title":"Delete an order","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /orders/{id}","href":"/api-reference/orders/delete-an-order"},{"title":"Update an order","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /orders/{id}","href":"/api-reference/orders/update-an-order"},{"title":"Create drop-ship purchase orders","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/dropship-pos","href":"/api-reference/orders/create-drop-ship-purchase-orders"},{"title":"Confirm an order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/confirm","href":"/api-reference/orders/confirm-an-order"},{"title":"Preview an order cancellation","deprecated":null,"version":null,"openapi":"/openapi.yaml get /orders/{id}/cancel-preview","href":"/api-reference/orders/preview-an-order-cancellation"},{"title":"Unlink a drop-ship sales-order line","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/lines/{lineId}/unlink-drop-ship","href":"/api-reference/orders/unlink-a-drop-ship-sales-order-line"},{"title":"Preview an order's allocation plan","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/allocation-plan","href":"/api-reference/orders/preview-an-orders-allocation-plan"},{"title":"Allocate an order across locations","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/allocate","href":"/api-reference/orders/allocate-an-order-across-locations"},{"title":"Cancel an order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/cancel","href":"/api-reference/orders/cancel-an-order"},{"title":"Unpack an order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/unpack","href":"/api-reference/orders/unpack-an-order"},{"title":"Reverse an order fulfillment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/undo-fulfillment","href":"/api-reference/orders/reverse-an-order-fulfillment"},{"title":"Correct a misshipment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/correct-misshipment","href":"/api-reference/orders/correct-a-misshipment"},{"title":"Void a posted order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/void","href":"/api-reference/orders/void-a-posted-order"},{"title":"Fulfill an order automatically","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/fulfill","href":"/api-reference/orders/fulfill-an-order-automatically"},{"title":"Confirm order pickup","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/confirm-pickup","href":"/api-reference/orders/confirm-order-pickup"},{"title":"Mark a pickup order no-show","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/mark-no-show","href":"/api-reference/orders/mark-a-pickup-order-no-show"},{"title":"Send an order email","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/email","href":"/api-reference/orders/send-an-order-email"},{"title":"List an order's line items","deprecated":null,"version":null,"openapi":"/openapi.yaml get /orders/{id}/items","href":"/api-reference/orders/list-an-orders-line-items"},{"title":"Add a line item","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/items","href":"/api-reference/orders/add-a-line-item"},{"title":"Add line items in bulk","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/items/bulk","href":"/api-reference/orders/add-line-items-in-bulk"},{"title":"Remove a line item","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /orders/{id}/items/{item_id}","href":"/api-reference/orders/remove-a-line-item"},{"title":"Update a line item","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /orders/{id}/items/{item_id}","href":"/api-reference/orders/update-a-line-item"},{"title":"Swap a line item's product","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/items/{item_id}/swap","href":"/api-reference/orders/swap-a-line-items-product"},{"title":"Retrieve an order's timeline","deprecated":null,"version":null,"openapi":"/openapi.yaml get /orders/{id}/timeline","href":"/api-reference/orders/retrieve-an-orders-timeline"},{"title":"Add a timeline event","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/timeline","href":"/api-reference/orders/add-a-timeline-event"},{"title":"List an order's payments","deprecated":null,"version":null,"openapi":"/openapi.yaml get /orders/{id}/payments","href":"/api-reference/orders/list-an-orders-payments"},{"title":"Create an order payment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/payments","href":"/api-reference/orders/create-an-order-payment"},{"title":"Duplicate an order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/duplicate","href":"/api-reference/orders/duplicate-an-order"},{"title":"Convert a quote","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/convert","href":"/api-reference/orders/convert-a-quote"},{"title":"Hold an order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/hold","href":"/api-reference/orders/hold-an-order"},{"title":"Release an order hold","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/release-hold","href":"/api-reference/orders/release-an-order-hold"},{"title":"Preview a ship-to change","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/change-ship-to/preview","href":"/api-reference/orders/preview-a-ship-to-change"},{"title":"Change an order's ship-to address","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/change-ship-to","href":"/api-reference/orders/change-an-orders-ship-to-address"},{"title":"Apply an order adjustment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/adjustments","href":"/api-reference/orders/apply-an-order-adjustment"},{"title":"List quotes","deprecated":null,"version":null,"openapi":"/openapi.yaml get /orders/quotes","href":"/api-reference/orders/list-quotes"},{"title":"List invoices","deprecated":null,"version":null,"openapi":"/openapi.yaml get /orders/invoices","href":"/api-reference/orders/list-invoices"},{"title":"List purchase orders","deprecated":null,"version":null,"openapi":"/openapi.yaml get /orders/purchase-orders","href":"/api-reference/orders/list-purchase-orders"},{"title":"Approve a pending order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/approve","href":"/api-reference/orders/approve-a-pending-order"},{"title":"Archive a terminal order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/archive","href":"/api-reference/orders/archive-a-terminal-order"},{"title":"Recalculate order totals","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/recalculate","href":"/api-reference/orders/recalculate-order-totals"},{"title":"Retrieve an order's eligible actions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /orders/{id}/eligibility","href":"/api-reference/orders/retrieve-an-orders-eligible-actions"},{"title":"Create an invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/invoice","href":"/api-reference/orders/create-an-invoice"},{"title":"Reopen an order's bill","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/invoice/reopen","href":"/api-reference/orders/reopen-an-orders-bill"},{"title":"Convert a shipped order to company use","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/company-use","href":"/api-reference/orders/convert-a-shipped-order-to-company-use"},{"title":"Show the entries converting an order to company use would post","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/company-use/dry-run","href":"/api-reference/orders/show-the-entries-converting-an-order-to-company-use-would-post"},{"title":"Retrieve an order's invoice history","deprecated":null,"version":null,"openapi":"/openapi.yaml get /orders/{id}/invoice/corrections","href":"/api-reference/orders/retrieve-an-orders-invoice-history"},{"title":"Acknowledge an order revision","deprecated":null,"version":null,"openapi":"/openapi.yaml post /orders/{id}/customer-acknowledge-revision","href":"/api-reference/orders/acknowledge-an-order-revision"}]},{"group":"Reconciliation","pages":[{"title":"Retrieve a trial balance","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{entity_id}/reconciliation/trial-balance","href":"/api-reference/reconciliation/retrieve-a-trial-balance"},{"title":"Retrieve AR aging by customer","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{entity_id}/reconciliation/ar-aging","href":"/api-reference/reconciliation/retrieve-ar-aging-by-customer"},{"title":"Retrieve AP aging by vendor","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{entity_id}/reconciliation/ap-aging","href":"/api-reference/reconciliation/retrieve-ap-aging-by-vendor"},{"title":"Retrieve an inventory valuation snapshot","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{entity_id}/reconciliation/inventory-valuation","href":"/api-reference/reconciliation/retrieve-an-inventory-valuation-snapshot"},{"title":"Retrieve cash and bank balances","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{entity_id}/reconciliation/cash-balance","href":"/api-reference/reconciliation/retrieve-cash-and-bank-balances"},{"title":"Retrieve a bank balance as of a date","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{entity_id}/reconciliation/bank-balance-as-of","href":"/api-reference/reconciliation/retrieve-a-bank-balance-as-of-a-date"},{"title":"Retrieve a bank account's reconciliation audit","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{entity_id}/reconciliation/account-audit","href":"/api-reference/reconciliation/retrieve-a-bank-accounts-reconciliation-audit"},{"title":"Retrieve entity resource counts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{entity_id}/reconciliation/counts","href":"/api-reference/reconciliation/retrieve-entity-resource-counts"},{"title":"Compare external records against Arcus","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/reconciliation/compare","href":"/api-reference/reconciliation/compare-external-records-against-arcus"},{"title":"Suggest marketplace payout matches","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{entity_id}/reconciliation/marketplace-payout-candidates","href":"/api-reference/reconciliation/suggest-marketplace-payout-matches"},{"title":"Match a payout to a deposit","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/reconciliation/match-marketplace-payout","href":"/api-reference/reconciliation/match-a-payout-to-a-deposit"},{"title":"Match a bank line to a journal entry","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/reconciliation/match-journal-entry","href":"/api-reference/reconciliation/match-a-bank-line-to-a-journal-entry"}]},{"group":"Migration","pages":[{"title":"Import bulk records","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/migration/{resource}/bulk","href":"/api-reference/migration/import-bulk-records"},{"title":"List migration jobs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{entity_id}/migration/jobs","href":"/api-reference/migration/list-migration-jobs"},{"title":"Retrieve a migration job","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{entity_id}/migration/jobs/{job_id}","href":"/api-reference/migration/retrieve-a-migration-job"},{"title":"Advance a migration counter","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/migration/counters/advance","href":"/api-reference/migration/advance-a-migration-counter"},{"title":"Cancel migration jobs","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/migration/jobs/cancel","href":"/api-reference/migration/cancel-migration-jobs"},{"title":"Relink migrated journal entry sources","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/migration/journal-entries/relink-source","href":"/api-reference/migration/relink-migrated-journal-entry-sources"},{"title":"Remap migrated GL accounts","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/migration/gl-accounts/remap","href":"/api-reference/migration/remap-migrated-gl-accounts"},{"title":"Relink migrated inventory transaction sources","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/migration/inventory-transactions/relink-source","href":"/api-reference/migration/relink-migrated-inventory-transaction-sources"},{"title":"Set a migrated purchase order's balance","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/migration/purchase-orders/set-historical-balance","href":"/api-reference/migration/set-a-migrated-purchase-orders-balance"},{"title":"Freeze an entity for cutover","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/migration/cutover/freeze","href":"/api-reference/migration/freeze-an-entity-for-cutover"},{"title":"Initiate a cutover snapshot","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/migration/cutover/snapshot","href":"/api-reference/migration/initiate-a-cutover-snapshot"},{"title":"Emit cutover swap commands","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/migration/cutover/swap","href":"/api-reference/migration/emit-cutover-swap-commands"},{"title":"Verify cutover readiness","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/migration/cutover/verify","href":"/api-reference/migration/verify-cutover-readiness"},{"title":"Unfreeze an entity after cutover","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/migration/cutover/unfreeze","href":"/api-reference/migration/unfreeze-an-entity-after-cutover"},{"title":"Emit cutover rollback commands","deprecated":null,"version":null,"openapi":"/openapi.yaml post /entities/{entity_id}/migration/cutover/rollback","href":"/api-reference/migration/emit-cutover-rollback-commands"},{"title":"Retrieve cutover status","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{entity_id}/migration/cutover/status","href":"/api-reference/migration/retrieve-cutover-status"},{"title":"List cutover log entries","deprecated":null,"version":null,"openapi":"/openapi.yaml get /entities/{entity_id}/migration/cutover/log","href":"/api-reference/migration/list-cutover-log-entries"}]},{"group":"Entity Settings","pages":[{"title":"Merge entity settings","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /entities/{entity_id}/settings","href":"/api-reference/entity-settings/merge-entity-settings"}]},{"group":"Accounts","pages":[{"title":"List addresses across all accounts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /account-addresses","href":"/api-reference/accounts/list-addresses-across-all-accounts"},{"title":"List contacts across all accounts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /account-contacts","href":"/api-reference/accounts/list-contacts-across-all-accounts"},{"title":"List payment methods across accounts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /account-payment-methods","href":"/api-reference/accounts/list-payment-methods-across-accounts"},{"title":"List accounts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /accounts","href":"/api-reference/accounts/list-accounts"},{"title":"Create an account","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts","href":"/api-reference/accounts/create-an-account"},{"title":"Retrieve an account","deprecated":null,"version":null,"openapi":"/openapi.yaml get /accounts/{id}","href":"/api-reference/accounts/retrieve-an-account"},{"title":"Delete an account","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /accounts/{id}","href":"/api-reference/accounts/delete-an-account"},{"title":"Update an account","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /accounts/{id}","href":"/api-reference/accounts/update-an-account"},{"title":"Deactivate an account","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts/{id}/deactivate","href":"/api-reference/accounts/deactivate-an-account"},{"title":"Restore a deactivated account","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts/{id}/restore","href":"/api-reference/accounts/restore-a-deactivated-account"},{"title":"Apply or release credit hold","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts/{id}/credit-hold","href":"/api-reference/accounts/apply-or-release-credit-hold"},{"title":"Merge two accounts","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts/{id}/merge","href":"/api-reference/accounts/merge-two-accounts"},{"title":"Retrieve an account's analytics summary","deprecated":null,"version":null,"openapi":"/openapi.yaml get /accounts/{id}/analytics/summary","href":"/api-reference/accounts/retrieve-an-accounts-analytics-summary"},{"title":"List addresses for an account","deprecated":null,"version":null,"openapi":"/openapi.yaml get /accounts/{id}/addresses","href":"/api-reference/accounts/list-addresses-for-an-account"},{"title":"Add an address to an account","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts/{id}/addresses","href":"/api-reference/accounts/add-an-address-to-an-account"},{"title":"Remove an address from an account","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /accounts/{id}/addresses/{addr_id}","href":"/api-reference/accounts/remove-an-address-from-an-account"},{"title":"Update an address","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /accounts/{id}/addresses/{addr_id}","href":"/api-reference/accounts/update-an-address"},{"title":"Set an address as default","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts/{id}/addresses/{addr_id}/set-default","href":"/api-reference/accounts/set-an-address-as-default"},{"title":"List contacts for an account","deprecated":null,"version":null,"openapi":"/openapi.yaml get /accounts/{id}/contacts","href":"/api-reference/accounts/list-contacts-for-an-account"},{"title":"Add a contact to an account","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts/{id}/contacts","href":"/api-reference/accounts/add-a-contact-to-an-account"},{"title":"Remove a contact from an account","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /accounts/{id}/contacts/{cnt_id}","href":"/api-reference/accounts/remove-a-contact-from-an-account"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /accounts/{id}/contacts/{cnt_id}","href":"/api-reference/accounts/update-a-contact"},{"title":"Set a contact as primary","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts/{id}/contacts/{cnt_id}/set-primary","href":"/api-reference/accounts/set-a-contact-as-primary"},{"title":"List an account's payment methods","deprecated":null,"version":null,"openapi":"/openapi.yaml get /accounts/{id}/payment-methods","href":"/api-reference/accounts/list-an-accounts-payment-methods"},{"title":"Attach a payment method","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts/{id}/payment-methods","href":"/api-reference/accounts/attach-a-payment-method"},{"title":"Attach a confirmed payment method","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts/{id}/payment-methods/{pm_id}/attach","href":"/api-reference/accounts/attach-a-confirmed-payment-method"},{"title":"Remove an account's payment method","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /accounts/{id}/payment-methods/{pm_id}","href":"/api-reference/accounts/remove-an-accounts-payment-method"},{"title":"Set a payment method as default","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /accounts/{id}/payment-methods/{pm_id}","href":"/api-reference/accounts/set-a-payment-method-as-default"},{"title":"Verify micro-deposits for a payment method","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts/{id}/payment-methods/{pm_id}/verify-microdeposits","href":"/api-reference/accounts/verify-micro-deposits-for-a-payment-method"},{"title":"List customer deposits for an account","deprecated":null,"version":null,"openapi":"/openapi.yaml get /accounts/{id}/deposits","href":"/api-reference/accounts/list-customer-deposits-for-an-account"},{"title":"Record a customer deposit","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts/{id}/deposits","href":"/api-reference/accounts/record-a-customer-deposit"},{"title":"Create a payment method setup intent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /accounts/{id}/payment-methods/setup","href":"/api-reference/accounts/create-a-payment-method-setup-intent"}]},{"group":"Products","pages":[{"title":"List products","deprecated":null,"version":null,"openapi":"/openapi.yaml get /products","href":"/api-reference/products/list-products"},{"title":"Create a product","deprecated":null,"version":null,"openapi":"/openapi.yaml post /products","href":"/api-reference/products/create-a-product"},{"title":"Retrieve a product","deprecated":null,"version":null,"openapi":"/openapi.yaml get /products/{id}","href":"/api-reference/products/retrieve-a-product"},{"title":"Delete a product","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /products/{id}","href":"/api-reference/products/delete-a-product"},{"title":"Update a product","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /products/{id}","href":"/api-reference/products/update-a-product"},{"title":"List a product's available locations","deprecated":null,"version":null,"openapi":"/openapi.yaml get /products/{id}/locations","href":"/api-reference/products/list-a-products-available-locations"},{"title":"Set a product's available locations","deprecated":null,"version":null,"openapi":"/openapi.yaml put /products/{id}/locations","href":"/api-reference/products/set-a-products-available-locations"},{"title":"Restore a deactivated product","deprecated":null,"version":null,"openapi":"/openapi.yaml post /products/{id}/restore","href":"/api-reference/products/restore-a-deactivated-product"},{"title":"List a product's prepackaged presets","deprecated":null,"version":null,"openapi":"/openapi.yaml get /products/{id}/prepackaged-presets","href":"/api-reference/products/list-a-products-prepackaged-presets"},{"title":"Create a prepackaged preset","deprecated":null,"version":null,"openapi":"/openapi.yaml post /products/{id}/prepackaged-presets","href":"/api-reference/products/create-a-prepackaged-preset"},{"title":"Delete a prepackaged preset","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /products/{id}/prepackaged-presets/{preset_id}","href":"/api-reference/products/delete-a-prepackaged-preset"},{"title":"Update a prepackaged preset","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /products/{id}/prepackaged-presets/{preset_id}","href":"/api-reference/products/update-a-prepackaged-preset"},{"title":"Deactivate a product","deprecated":null,"version":null,"openapi":"/openapi.yaml post /products/{id}/deactivate","href":"/api-reference/products/deactivate-a-product"},{"title":"List a product's kit components","deprecated":null,"version":null,"openapi":"/openapi.yaml get /products/{id}/components","href":"/api-reference/products/list-a-products-kit-components"},{"title":"Add a product's kit component","deprecated":null,"version":null,"openapi":"/openapi.yaml post /products/{id}/components","href":"/api-reference/products/add-a-products-kit-component"},{"title":"Add a product image","deprecated":null,"version":null,"openapi":"/openapi.yaml post /products/{id}/images","href":"/api-reference/products/add-a-product-image"},{"title":"Remove a product's kit component","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /products/{id}/components/{cid}","href":"/api-reference/products/remove-a-products-kit-component"},{"title":"List a product's variants","deprecated":null,"version":null,"openapi":"/openapi.yaml get /products/{id}/variants","href":"/api-reference/products/list-a-products-variants"},{"title":"Add a variant","deprecated":null,"version":null,"openapi":"/openapi.yaml post /products/{id}/variants","href":"/api-reference/products/add-a-variant"},{"title":"Update a product variant","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /products/{id}/variants/{vid}","href":"/api-reference/products/update-a-product-variant"},{"title":"List a product's pricing policies","deprecated":null,"version":null,"openapi":"/openapi.yaml get /products/{id}/pricing","href":"/api-reference/products/list-a-products-pricing-policies"},{"title":"Add a pricing policy","deprecated":null,"version":null,"openapi":"/openapi.yaml post /products/{id}/pricing","href":"/api-reference/products/add-a-pricing-policy"},{"title":"List a product's vendor relationships","deprecated":null,"version":null,"openapi":"/openapi.yaml get /products/{id}/vendors","href":"/api-reference/products/list-a-products-vendor-relationships"},{"title":"Add a vendor relationship","deprecated":null,"version":null,"openapi":"/openapi.yaml post /products/{id}/vendors","href":"/api-reference/products/add-a-vendor-relationship"},{"title":"Remove a vendor relationship","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /products/{id}/vendors/{pvid}","href":"/api-reference/products/remove-a-vendor-relationship"},{"title":"Update a vendor relationship","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /products/{id}/vendors/{pvid}","href":"/api-reference/products/update-a-vendor-relationship"},{"title":"List a product's marketplace listings","deprecated":null,"version":null,"openapi":"/openapi.yaml get /products/{id}/listings","href":"/api-reference/products/list-a-products-marketplace-listings"},{"title":"Add a marketplace listing","deprecated":null,"version":null,"openapi":"/openapi.yaml post /products/{id}/listings","href":"/api-reference/products/add-a-marketplace-listing"},{"title":"Retrieve a product's inventory","deprecated":null,"version":null,"openapi":"/openapi.yaml get /products/{id}/inventory","href":"/api-reference/products/retrieve-a-products-inventory"},{"title":"List pricing policies","deprecated":null,"version":null,"openapi":"/openapi.yaml get /pricing-policies","href":"/api-reference/products/list-pricing-policies"},{"title":"Create a pricing policy","deprecated":null,"version":null,"openapi":"/openapi.yaml post /pricing-policies","href":"/api-reference/products/create-a-pricing-policy"},{"title":"Retrieve a pricing policy","deprecated":null,"version":null,"openapi":"/openapi.yaml get /pricing-policies/{id}","href":"/api-reference/products/retrieve-a-pricing-policy"},{"title":"Delete a pricing policy","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /pricing-policies/{id}","href":"/api-reference/products/delete-a-pricing-policy"},{"title":"Update a pricing policy","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /pricing-policies/{id}","href":"/api-reference/products/update-a-pricing-policy"},{"title":"List kits and bundles","deprecated":null,"version":null,"openapi":"/openapi.yaml get /kits","href":"/api-reference/products/list-kits-and-bundles"},{"title":"Create a kit or bundle","deprecated":null,"version":null,"openapi":"/openapi.yaml post /kits","href":"/api-reference/products/create-a-kit-or-bundle"},{"title":"Retrieve a kit","deprecated":null,"version":null,"openapi":"/openapi.yaml get /kits/{id}","href":"/api-reference/products/retrieve-a-kit"},{"title":"Update a kit","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /kits/{id}","href":"/api-reference/products/update-a-kit"},{"title":"List kit components","deprecated":null,"version":null,"openapi":"/openapi.yaml get /kits/{id}/components","href":"/api-reference/products/list-kit-components"},{"title":"Add a kit component","deprecated":null,"version":null,"openapi":"/openapi.yaml post /kits/{id}/components","href":"/api-reference/products/add-a-kit-component"},{"title":"Remove a kit component","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /kits/{id}/components/{cid}","href":"/api-reference/products/remove-a-kit-component"},{"title":"Update a kit component","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /kits/{id}/components/{cid}","href":"/api-reference/products/update-a-kit-component"},{"title":"List all variants","deprecated":null,"version":null,"openapi":"/openapi.yaml get /variants","href":"/api-reference/products/list-all-variants"},{"title":"Create a product variant","deprecated":null,"version":null,"openapi":"/openapi.yaml post /variants","href":"/api-reference/products/create-a-product-variant"},{"title":"Retrieve a variant","deprecated":null,"version":null,"openapi":"/openapi.yaml get /variants/{id}","href":"/api-reference/products/retrieve-a-variant"},{"title":"Delete a variant","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /variants/{id}","href":"/api-reference/products/delete-a-variant"},{"title":"Update a variant","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /variants/{id}","href":"/api-reference/products/update-a-variant"},{"title":"Add a variant component","deprecated":null,"version":null,"openapi":"/openapi.yaml post /variants/{id}/components","href":"/api-reference/products/add-a-variant-component"},{"title":"Remove a variant component","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /variants/{id}/components/{cid}","href":"/api-reference/products/remove-a-variant-component"},{"title":"Update a variant component","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /variants/{id}/components/{cid}","href":"/api-reference/products/update-a-variant-component"},{"title":"List a product's options","deprecated":null,"version":null,"openapi":"/openapi.yaml get /products/{id}/options","href":"/api-reference/products/list-a-products-options"},{"title":"Create a product option","deprecated":null,"version":null,"openapi":"/openapi.yaml post /products/{id}/options","href":"/api-reference/products/create-a-product-option"},{"title":"Delete a product option","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /products/{id}/options/{oid}","href":"/api-reference/products/delete-a-product-option"},{"title":"Update a product option","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /products/{id}/options/{oid}","href":"/api-reference/products/update-a-product-option"},{"title":"Reorder product options","deprecated":null,"version":null,"openapi":"/openapi.yaml post /products/{id}/options/reorder","href":"/api-reference/products/reorder-product-options"},{"title":"Generate variants from options","deprecated":null,"version":null,"openapi":"/openapi.yaml post /products/{id}/variants/generate","href":"/api-reference/products/generate-variants-from-options"}]},{"group":"Inventory","pages":[{"title":"List inventory balances","deprecated":null,"version":null,"openapi":"/openapi.yaml get /inventory/balances","href":"/api-reference/inventory/list-inventory-balances"},{"title":"Retrieve an inventory balance","deprecated":null,"version":null,"openapi":"/openapi.yaml get /inventory/balances/{id}","href":"/api-reference/inventory/retrieve-an-inventory-balance"},{"title":"List inventory movement history","deprecated":null,"version":null,"openapi":"/openapi.yaml get /inventory/transactions","href":"/api-reference/inventory/list-inventory-movement-history"},{"title":"Retrieve a transaction's cost layers","deprecated":null,"version":null,"openapi":"/openapi.yaml get /inventory/transactions/{id}/layers","href":"/api-reference/inventory/retrieve-a-transactions-cost-layers"},{"title":"Receive inventory outside a purchase order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /inventory/receive","href":"/api-reference/inventory/receive-inventory-outside-a-purchase-order"},{"title":"Adjust inventory quantities","deprecated":null,"version":null,"openapi":"/openapi.yaml post /inventory/adjustments","href":"/api-reference/inventory/adjust-inventory-quantities"},{"title":"Set an opening inventory balance","deprecated":null,"version":null,"openapi":"/openapi.yaml post /inventory/opening-stock","href":"/api-reference/inventory/set-an-opening-inventory-balance"},{"title":"Move inventory between locations","deprecated":null,"version":null,"openapi":"/openapi.yaml post /inventory/transfers","href":"/api-reference/inventory/move-inventory-between-locations"},{"title":"List serial numbers","deprecated":null,"version":null,"openapi":"/openapi.yaml get /inventory/serials","href":"/api-reference/inventory/list-serial-numbers"},{"title":"Create serial numbers in bulk","deprecated":null,"version":null,"openapi":"/openapi.yaml post /inventory/serials","href":"/api-reference/inventory/create-serial-numbers-in-bulk"},{"title":"Retrieve a serial number","deprecated":null,"version":null,"openapi":"/openapi.yaml get /inventory/serials/{id}","href":"/api-reference/inventory/retrieve-a-serial-number"},{"title":"Update a serial number's status","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /inventory/serials/{id}","href":"/api-reference/inventory/update-a-serial-numbers-status"},{"title":"List a product's FIFO layers","deprecated":null,"version":null,"openapi":"/openapi.yaml get /inventory/fifo-layers","href":"/api-reference/inventory/list-a-products-fifo-layers"},{"title":"List inventory transfers","deprecated":null,"version":null,"openapi":"/openapi.yaml get /transfers","href":"/api-reference/inventory/list-inventory-transfers"},{"title":"Create an inventory transfer","deprecated":null,"version":null,"openapi":"/openapi.yaml post /transfers","href":"/api-reference/inventory/create-an-inventory-transfer"},{"title":"Retrieve a transfer","deprecated":null,"version":null,"openapi":"/openapi.yaml get /transfers/{id}","href":"/api-reference/inventory/retrieve-a-transfer"},{"title":"Update a transfer's header fields","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /transfers/{id}","href":"/api-reference/inventory/update-a-transfers-header-fields"},{"title":"Submit a draft transfer","deprecated":null,"version":null,"openapi":"/openapi.yaml post /transfers/{id}/submit","href":"/api-reference/inventory/submit-a-draft-transfer"},{"title":"Approve an intercompany transfer","deprecated":null,"version":null,"openapi":"/openapi.yaml post /transfers/{id}/approve","href":"/api-reference/inventory/approve-an-intercompany-transfer"},{"title":"Reject an intercompany transfer","deprecated":null,"version":null,"openapi":"/openapi.yaml post /transfers/{id}/reject","href":"/api-reference/inventory/reject-an-intercompany-transfer"},{"title":"Ship an approved transfer","deprecated":null,"version":null,"openapi":"/openapi.yaml post /transfers/{id}/ship","href":"/api-reference/inventory/ship-an-approved-transfer"},{"title":"Receive a transfer's items","deprecated":null,"version":null,"openapi":"/openapi.yaml post /transfers/{id}/receive","href":"/api-reference/inventory/receive-a-transfers-items"},{"title":"Cancel a transfer","deprecated":null,"version":null,"openapi":"/openapi.yaml post /transfers/{id}/cancel","href":"/api-reference/inventory/cancel-a-transfer"},{"title":"Retrieve a transfer's shipping label","deprecated":null,"version":null,"openapi":"/openapi.yaml get /transfers/{id}/labels","href":"/api-reference/inventory/retrieve-a-transfers-shipping-label"}]},{"group":"Returns","pages":[{"title":"List returns","deprecated":null,"version":null,"openapi":"/openapi.yaml get /returns","href":"/api-reference/returns/list-returns"},{"title":"Create a return","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns","href":"/api-reference/returns/create-a-return"},{"title":"Retrieve a return","deprecated":null,"version":null,"openapi":"/openapi.yaml get /returns/{id}","href":"/api-reference/returns/retrieve-a-return"},{"title":"Update a return","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /returns/{id}","href":"/api-reference/returns/update-a-return"},{"title":"Add items to a return","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/items","href":"/api-reference/returns/add-items-to-a-return"},{"title":"Change a return line's reason","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /returns/{id}/items/{item_id}","href":"/api-reference/returns/change-a-return-lines-reason"},{"title":"Receive return items","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/receive","href":"/api-reference/returns/receive-return-items"},{"title":"Preview a receipt by product","deprecated":null,"version":null,"openapi":"/openapi.yaml get /returns/{id}/receive-preview","href":"/api-reference/returns/preview-a-receipt-by-product"},{"title":"Record a return inspection","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/inspect","href":"/api-reference/returns/record-a-return-inspection"},{"title":"Disposition returned items","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/disposition","href":"/api-reference/returns/disposition-returned-items"},{"title":"Resolve quarantined return units","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/quarantine/resolve","href":"/api-reference/returns/resolve-quarantined-return-units"},{"title":"Receive and disposition a return","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/receive-and-dispose","href":"/api-reference/returns/receive-and-disposition-a-return"},{"title":"Un-receive a return","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/unreceive","href":"/api-reference/returns/un-receive-a-return"},{"title":"Preview un-receiving a receipt","deprecated":null,"version":null,"openapi":"/openapi.yaml get /returns/{id}/receipts/{receipt_id}/unreceive-preview","href":"/api-reference/returns/preview-un-receiving-a-receipt"},{"title":"Un-receive a receipt","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/receipts/{receipt_id}/unreceive","href":"/api-reference/returns/un-receive-a-receipt"},{"title":"Resolve a receipt recorded without stock","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/receipt-items/{receipt_item_id}/repair-stock","href":"/api-reference/returns/resolve-a-receipt-recorded-without-stock"},{"title":"Change a return's location","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/return-location","href":"/api-reference/returns/change-a-returns-location"},{"title":"Refund a return","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/refund","href":"/api-reference/returns/refund-a-return"},{"title":"Cancel a return","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/cancel","href":"/api-reference/returns/cancel-a-return"},{"title":"Preview the choices for a mis-shipment correction's return","deprecated":null,"version":null,"openapi":"/openapi.yaml get /returns/{id}/misshipment-intent-preview","href":"/api-reference/returns/preview-the-choices-for-a-mis-shipment-corrections-return"},{"title":"Resolve a mis-shipment correction's return","description":"Chooses what happens to a return a mis-shipment correction created, in place of a void: `no_replacement` closes the reopened units short on the order and takes back the discount and tax booked when they shipped (nothing is refunded; the order keeps what was paid for them until a refund is issued), `replacement_later` keeps the return open, and `not_coming_back` writes the held wrong item off to the return scrap account and closes the return as written off. Requires the `returns:write` scope and the `returns.process` permission for the key's creator, plus the permission that closes an order's lines for `no_replacement`. A choice the return's state does not allow today is refused 409 `misshipment_intent_unavailable` with the reason in `hint`; read the preview first.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/misshipment-intent","href":"/api-reference/returns/resolve-a-mis-shipment-corrections-return"},{"title":"Change a return's fees","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/fee-intents","href":"/api-reference/returns/change-a-returns-fees"},{"title":"Preview a change to a return's fees","description":"Answers what `POST /returns/{id}/fee-intents` would answer for the same body (the same plan, the same refusals and offers, `preview: true`) and writes nothing: no line, no activity row, no Idempotency-Key answer. Requires the `returns:write` scope and the `returns.edit` permission for the key's creator.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/fee-intents/preview","href":"/api-reference/returns/preview-a-change-to-a-returns-fees"},{"title":"Estimate return label rates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /returns/{id}/return-label/rates","href":"/api-reference/returns/estimate-return-label-rates"},{"title":"Create a return shipping label","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/return-label","href":"/api-reference/returns/create-a-return-shipping-label"},{"title":"Create an exchange order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/exchange","href":"/api-reference/returns/create-an-exchange-order"},{"title":"Create an advance replacement order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/advance-replacement","href":"/api-reference/returns/create-an-advance-replacement-order"},{"title":"Create vendor return from an RMA","deprecated":null,"version":null,"openapi":"/openapi.yaml post /returns/{id}/vendor-return","href":"/api-reference/returns/create-vendor-return-from-an-rma"},{"title":"List vendor returns","deprecated":null,"version":null,"openapi":"/openapi.yaml get /vendor-returns","href":"/api-reference/returns/list-vendor-returns"},{"title":"Create a vendor return","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-returns","href":"/api-reference/returns/create-a-vendor-return"},{"title":"Retrieve a vendor return","deprecated":null,"version":null,"openapi":"/openapi.yaml get /vendor-returns/{id}","href":"/api-reference/returns/retrieve-a-vendor-return"},{"title":"Delete a vendor return","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /vendor-returns/{id}","href":"/api-reference/returns/delete-a-vendor-return"},{"title":"Update a vendor return","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /vendor-returns/{id}","href":"/api-reference/returns/update-a-vendor-return"},{"title":"Retrieve a vendor return PDF","deprecated":null,"version":null,"openapi":"/openapi.yaml get /vendor-returns/{id}/pdf","href":"/api-reference/returns/retrieve-a-vendor-return-pdf"},{"title":"Ship a vendor return","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-returns/{id}/ship","href":"/api-reference/returns/ship-a-vendor-return"},{"title":"Record a vendor return credit","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-returns/{id}/receive-credit","href":"/api-reference/returns/record-a-vendor-return-credit"},{"title":"Cancel a vendor return","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-returns/{id}/cancel","href":"/api-reference/returns/cancel-a-vendor-return"},{"title":"Estimate vendor return label rates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /vendor-returns/{id}/return-label/rates","href":"/api-reference/returns/estimate-vendor-return-label-rates"}]},{"group":"Fulfillment","pages":[{"title":"List packages","deprecated":null,"version":null,"openapi":"/openapi.yaml get /packages","href":"/api-reference/fulfillment/list-packages"},{"title":"Create a package","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages","href":"/api-reference/fulfillment/create-a-package"},{"title":"Retrieve a package","deprecated":null,"version":null,"openapi":"/openapi.yaml get /packages/{id}","href":"/api-reference/fulfillment/retrieve-a-package"},{"title":"Delete a package","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /packages/{id}","href":"/api-reference/fulfillment/delete-a-package"},{"title":"Update a package","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /packages/{id}","href":"/api-reference/fulfillment/update-a-package"},{"title":"Add an item to a package","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/items","href":"/api-reference/fulfillment/add-an-item-to-a-package"},{"title":"Remove a package item","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /packages/{id}/items/{item_id}","href":"/api-reference/fulfillment/remove-a-package-item"},{"title":"Update a package item","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /packages/{id}/items/{item_id}","href":"/api-reference/fulfillment/update-a-package-item"},{"title":"Move a package item","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/items/{item_id}/move","href":"/api-reference/fulfillment/move-a-package-item"},{"title":"Update a package's box type","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/change-box","href":"/api-reference/fulfillment/update-a-packages-box-type"},{"title":"Update a package's carrier","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/change-carrier","href":"/api-reference/fulfillment/update-a-packages-carrier"},{"title":"Retrieve package shipping rates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /packages/{id}/rates","href":"/api-reference/fulfillment/retrieve-package-shipping-rates"},{"title":"Purchase a package shipping label","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/buy-label","href":"/api-reference/fulfillment/purchase-a-package-shipping-label"},{"title":"Void a package label","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/void-label","href":"/api-reference/fulfillment/void-a-package-label"},{"title":"Adjust a package's shipping cost","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/recharge-label","href":"/api-reference/fulfillment/adjust-a-packages-shipping-cost"},{"title":"Print a package's shipping label","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/print-label","href":"/api-reference/fulfillment/print-a-packages-shipping-label"},{"title":"Fulfill a package","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/fulfill","href":"/api-reference/fulfillment/fulfill-a-package"},{"title":"Recalculate a package's delivery estimate","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/recalc-eta","href":"/api-reference/fulfillment/recalculate-a-packages-delivery-estimate"},{"title":"Record a package's PRO number","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/pro-number","href":"/api-reference/fulfillment/record-a-packages-pro-number"},{"title":"Retrieve a packing slip","deprecated":null,"version":null,"openapi":"/openapi.yaml get /packages/{id}/packing-slip","href":"/api-reference/fulfillment/retrieve-a-packing-slip"},{"title":"Send a shipment notification","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/email","href":"/api-reference/fulfillment/send-a-shipment-notification"},{"title":"List tracking events","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tracking-events","href":"/api-reference/fulfillment/list-tracking-events"},{"title":"Retrieve a tracking event","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tracking-events/{id}","href":"/api-reference/fulfillment/retrieve-a-tracking-event"},{"title":"List shipping labels","deprecated":null,"version":null,"openapi":"/openapi.yaml get /labels","href":"/api-reference/fulfillment/list-shipping-labels"},{"title":"Retrieve a shipping label","deprecated":null,"version":null,"openapi":"/openapi.yaml get /labels/{id}","href":"/api-reference/fulfillment/retrieve-a-shipping-label"},{"title":"Pack an order automatically","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fulfillment/pack-order","href":"/api-reference/fulfillment/pack-an-order-automatically"},{"title":"Calculate a package's delivery estimate","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/recalculate-eta","href":"/api-reference/fulfillment/calculate-a-packages-delivery-estimate"},{"title":"Set a package's PRO number","deprecated":null,"version":null,"openapi":"/openapi.yaml post /packages/{id}/set-pro-number","href":"/api-reference/fulfillment/set-a-packages-pro-number"}]},{"group":"Purchasing","pages":[{"title":"Retrieve the reorder report","deprecated":null,"version":null,"openapi":"/openapi.yaml get /purchasing/reorder-report","href":"/api-reference/purchasing/retrieve-the-reorder-report"},{"title":"List purchase orders","deprecated":null,"version":null,"openapi":"/openapi.yaml get /purchase-orders","href":"/api-reference/purchasing/list-purchase-orders"},{"title":"Create a purchase order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-orders","href":"/api-reference/purchasing/create-a-purchase-order"},{"title":"Retrieve a purchase order","deprecated":null,"version":null,"openapi":"/openapi.yaml get /purchase-orders/{id}","href":"/api-reference/purchasing/retrieve-a-purchase-order"},{"title":"Update a purchase order","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /purchase-orders/{id}","href":"/api-reference/purchasing/update-a-purchase-order"},{"title":"Cancel a purchase order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-orders/{id}/cancel","href":"/api-reference/purchasing/cancel-a-purchase-order"},{"title":"Restore a cancelled purchase order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-orders/{id}/restore","href":"/api-reference/purchasing/restore-a-cancelled-purchase-order"},{"title":"Restate a purchase order loaded from the previous system as fulfilled","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-orders/{id}/restate-fulfilled","href":"/api-reference/purchasing/restate-a-purchase-order-loaded-from-the-previous-system-as-fulfilled"},{"title":"Approve a purchase order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-orders/{id}/approve","href":"/api-reference/purchasing/approve-a-purchase-order"},{"title":"Receive a purchase order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-orders/{id}/receive","href":"/api-reference/purchasing/receive-a-purchase-order"},{"title":"Check drop-ship undo eligibility","deprecated":null,"version":null,"openapi":"/openapi.yaml get /purchase-receipts/{id}/dropship-undo-eligibility","href":"/api-reference/purchasing/check-drop-ship-undo-eligibility"},{"title":"Undo a drop-ship receipt","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-receipts/{id}/undo-dropship","href":"/api-reference/purchasing/undo-a-drop-ship-receipt"},{"title":"Read what a receipt can correct as a count correction","deprecated":null,"version":null,"openapi":"/openapi.yaml get /purchase-receipts/{id}/count-correction","href":"/api-reference/purchasing/read-what-a-receipt-can-correct-as-a-count-correction"},{"title":"Reverse a receipt entered twice whose stock was since sold, as a count correction","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-receipts/{id}/count-corrections","href":"/api-reference/purchasing/reverse-a-receipt-entered-twice-whose-stock-was-since-sold-as-a-count-correction"},{"title":"Preview a count correction (nothing is recorded)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-receipts/{id}/count-corrections/dry-run","href":"/api-reference/purchasing/preview-a-count-correction-nothing-is-recorded"},{"title":"Add a purchase order line","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-orders/{id}/items","href":"/api-reference/purchasing/add-a-purchase-order-line"},{"title":"Delete a purchase order line item","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /purchase-orders/{id}/items/{itemId}","href":"/api-reference/purchasing/delete-a-purchase-order-line-item"},{"title":"Update a purchase order line","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /purchase-orders/{id}/items/{itemId}","href":"/api-reference/purchasing/update-a-purchase-order-line"},{"title":"Send a purchase order to vendor","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-orders/{id}/send-to-vendor","href":"/api-reference/purchasing/send-a-purchase-order-to-vendor"},{"title":"Record a PO revision decision","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-orders/{id}/notify-revision","href":"/api-reference/purchasing/record-a-po-revision-decision"},{"title":"List vendor bills","deprecated":null,"version":null,"openapi":"/openapi.yaml get /vendor-bills","href":"/api-reference/purchasing/list-vendor-bills"},{"title":"Create a vendor bill","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-bills","href":"/api-reference/purchasing/create-a-vendor-bill"},{"title":"List receipts available for landed bills","deprecated":null,"version":null,"openapi":"/openapi.yaml get /vendor-bills/landed-receipts","href":"/api-reference/purchasing/list-receipts-available-for-landed-bills"},{"title":"Update a vendor bill's lines","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-bills/{id}/edit-lines","href":"/api-reference/purchasing/update-a-vendor-bills-lines"},{"title":"Retrieve a vendor bill","deprecated":null,"version":null,"openapi":"/openapi.yaml get /vendor-bills/{id}","href":"/api-reference/purchasing/retrieve-a-vendor-bill"},{"title":"Void a vendor bill","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /vendor-bills/{id}","href":"/api-reference/purchasing/void-a-vendor-bill"},{"title":"Update a vendor bill","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /vendor-bills/{id}","href":"/api-reference/purchasing/update-a-vendor-bill"},{"title":"Approve a vendor bill","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-bills/{id}/approve","href":"/api-reference/purchasing/approve-a-vendor-bill"},{"title":"Reject a vendor bill","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-bills/{id}/reject","href":"/api-reference/purchasing/reject-a-vendor-bill"},{"title":"Record a vendor bill write-off","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-bills/{id}/write-off","href":"/api-reference/purchasing/record-a-vendor-bill-write-off"},{"title":"Preview a vendor bill write-off (nothing is recorded)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-bills/{id}/write-off/dry-run","href":"/api-reference/purchasing/preview-a-vendor-bill-write-off-nothing-is-recorded"},{"title":"Correct a bill's landed cost","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-bills/{id}/correct-landed-cost","href":"/api-reference/purchasing/correct-a-bills-landed-cost"},{"title":"Preview what voiding a vendor bill would move","deprecated":null,"version":null,"openapi":"/openapi.yaml get /vendor-bills/{id}/void-preview","href":"/api-reference/purchasing/preview-what-voiding-a-vendor-bill-would-move"},{"title":"List vendor prepayments","deprecated":null,"version":null,"openapi":"/openapi.yaml get /vendors/{id}/prepayments","href":"/api-reference/purchasing/list-vendor-prepayments"},{"title":"Record a vendor prepayment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendors/{id}/prepayments","href":"/api-reference/purchasing/record-a-vendor-prepayment"},{"title":"List the entity's vendor prepayments","deprecated":null,"version":null,"openapi":"/openapi.yaml get /vendor-prepayments","href":"/api-reference/purchasing/list-the-entitys-vendor-prepayments"},{"title":"Retrieve a vendor prepayment and where it went","deprecated":null,"version":null,"openapi":"/openapi.yaml get /vendor-prepayments/{id}","href":"/api-reference/purchasing/retrieve-a-vendor-prepayment-and-where-it-went"},{"title":"Set or clear a vendor prepayment's purchase order","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /vendor-prepayments/{id}","href":"/api-reference/purchasing/set-or-clear-a-vendor-prepayments-purchase-order"},{"title":"Apply a vendor prepayment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-prepayments/{id}/apply","href":"/api-reference/purchasing/apply-a-vendor-prepayment"},{"title":"Refund a vendor prepayment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-prepayments/{id}/refund","href":"/api-reference/purchasing/refund-a-vendor-prepayment"},{"title":"Reverse a vendor prepayment application","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-prepayments/{id}/unapply","href":"/api-reference/purchasing/reverse-a-vendor-prepayment-application"},{"title":"Void a vendor prepayment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-prepayments/{id}/void","href":"/api-reference/purchasing/void-a-vendor-prepayment"},{"title":"List AP payments","deprecated":null,"version":null,"openapi":"/openapi.yaml get /ap-payments","href":"/api-reference/purchasing/list-ap-payments"},{"title":"Create an AP payment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /ap-payments","href":"/api-reference/purchasing/create-an-ap-payment"},{"title":"Retrieve an AP payment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /ap-payments/{id}","href":"/api-reference/purchasing/retrieve-an-ap-payment"},{"title":"Void an AP payment","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /ap-payments/{id}","href":"/api-reference/purchasing/void-an-ap-payment"},{"title":"List AP payment batches","deprecated":null,"version":null,"openapi":"/openapi.yaml get /ap-payments/batches","href":"/api-reference/purchasing/list-ap-payment-batches"},{"title":"Create an AP payment batch","deprecated":null,"version":null,"openapi":"/openapi.yaml post /ap-payments/batch","href":"/api-reference/purchasing/create-an-ap-payment-batch"},{"title":"Retrieve a payment batch","deprecated":null,"version":null,"openapi":"/openapi.yaml get /ap-payments/batches/{batchId}","href":"/api-reference/purchasing/retrieve-a-payment-batch"},{"title":"Void a payment batch","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /ap-payments/batches/{batchId}","href":"/api-reference/purchasing/void-a-payment-batch"},{"title":"Download a batch's NACHA file","deprecated":null,"version":null,"openapi":"/openapi.yaml get /ap-payments/batches/{batchId}/nacha","href":"/api-reference/purchasing/download-a-batchs-nacha-file"},{"title":"Generate a batch's NACHA file","deprecated":null,"version":null,"openapi":"/openapi.yaml post /ap-payments/batches/{batchId}/nacha","href":"/api-reference/purchasing/generate-a-batchs-nacha-file"},{"title":"Confirm NACHA batch sent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /ap-payments/batches/{batchId}/confirm-sent","href":"/api-reference/purchasing/confirm-nacha-batch-sent"},{"title":"List printed checks","deprecated":null,"version":null,"openapi":"/openapi.yaml get /printed-checks","href":"/api-reference/purchasing/list-printed-checks"},{"title":"Retrieve a printed check","deprecated":null,"version":null,"openapi":"/openapi.yaml get /printed-checks/{id}","href":"/api-reference/purchasing/retrieve-a-printed-check"},{"title":"Void a printed check","deprecated":null,"version":null,"openapi":"/openapi.yaml post /printed-checks/{id}/void","href":"/api-reference/purchasing/void-a-printed-check"},{"title":"Reprint a check","deprecated":null,"version":null,"openapi":"/openapi.yaml post /printed-checks/{id}/reprint","href":"/api-reference/purchasing/reprint-a-check"},{"title":"Retrieve the next check number","deprecated":null,"version":null,"openapi":"/openapi.yaml get /printed-checks/next-number","href":"/api-reference/purchasing/retrieve-the-next-check-number"},{"title":"Generate a check batch","deprecated":null,"version":null,"openapi":"/openapi.yaml post /printed-checks/batch-print","href":"/api-reference/purchasing/generate-a-check-batch"},{"title":"Create a quick check","deprecated":null,"version":null,"openapi":"/openapi.yaml post /quick-check","href":"/api-reference/purchasing/create-a-quick-check"},{"title":"List vendor credits","deprecated":null,"version":null,"openapi":"/openapi.yaml get /vendor-credits","href":"/api-reference/purchasing/list-vendor-credits"},{"title":"Create a vendor credit","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-credits","href":"/api-reference/purchasing/create-a-vendor-credit"},{"title":"Retrieve a vendor credit","deprecated":null,"version":null,"openapi":"/openapi.yaml get /vendor-credits/{id}","href":"/api-reference/purchasing/retrieve-a-vendor-credit"},{"title":"Void a vendor credit","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /vendor-credits/{id}","href":"/api-reference/purchasing/void-a-vendor-credit"},{"title":"Un-apply one application of a vendor credit","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-credits/{id}/unapply","href":"/api-reference/purchasing/un-apply-one-application-of-a-vendor-credit"},{"title":"Apply a vendor credit","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-credits/{id}/apply","href":"/api-reference/purchasing/apply-a-vendor-credit"},{"title":"Post a vendor bill","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-bills/{id}/post","href":"/api-reference/purchasing/post-a-vendor-bill"},{"title":"Post a price variance revaluation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /vendor-bills/{id}/post-revaluation","href":"/api-reference/purchasing/post-a-price-variance-revaluation"},{"title":"Generate a check PDF","deprecated":null,"version":null,"openapi":"/openapi.yaml post /printed-checks/{id}/print","href":"/api-reference/purchasing/generate-a-check-pdf"},{"title":"Reconcile a printed check","deprecated":null,"version":null,"openapi":"/openapi.yaml post /printed-checks/{id}/clear","href":"/api-reference/purchasing/reconcile-a-printed-check"},{"title":"Set a check's drawee bank","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /printed-checks/{id}/bank","href":"/api-reference/purchasing/set-a-checks-drawee-bank"},{"title":"List receipts for a purchase order","deprecated":null,"version":null,"openapi":"/openapi.yaml get /purchase-orders/{id}/receipts","href":"/api-reference/purchasing/list-receipts-for-a-purchase-order"},{"title":"Read a purchase order's receipt accrual and its releases","deprecated":null,"version":null,"openapi":"/openapi.yaml get /purchase-orders/{id}/accrual-releases","href":"/api-reference/purchasing/read-a-purchase-orders-receipt-accrual-and-its-releases"},{"title":"Release the receipt accrual of received units the vendor will never invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-orders/{id}/accrual-releases","href":"/api-reference/purchasing/release-the-receipt-accrual-of-received-units-the-vendor-will-never-invoice"},{"title":"Preview a receipt accrual release (nothing is recorded)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-orders/{id}/accrual-releases/dry-run","href":"/api-reference/purchasing/preview-a-receipt-accrual-release-nothing-is-recorded"},{"title":"Void a receipt accrual release or a count correction","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-orders/{id}/accrual-releases/{release_id}/void","href":"/api-reference/purchasing/void-a-receipt-accrual-release-or-a-count-correction"},{"title":"Preview the void of a release (nothing is recorded)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /purchase-orders/{id}/accrual-releases/{release_id}/void/dry-run","href":"/api-reference/purchasing/preview-the-void-of-a-release-nothing-is-recorded"},{"title":"Retrieve a purchase order's landed costs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /purchase-orders/{id}/landed-costs","href":"/api-reference/purchasing/retrieve-a-purchase-orders-landed-costs"}]},{"group":"Activity","pages":[{"title":"List activity events","deprecated":null,"version":null,"openapi":"/openapi.yaml get /activity","href":"/api-reference/activity/list-activity-events"},{"title":"Reject direct activity creation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /activity","href":"/api-reference/activity/reject-direct-activity-creation"},{"title":"Retrieve an activity event","deprecated":null,"version":null,"openapi":"/openapi.yaml get /activity/{id}","href":"/api-reference/activity/retrieve-an-activity-event"},{"title":"List activity for a resource","deprecated":null,"version":null,"openapi":"/openapi.yaml get /resources/{type}/{id}/activity","href":"/api-reference/activity/list-activity-for-a-resource"}]},{"group":"Integrations","pages":[{"title":"List configured connectors","deprecated":null,"version":null,"openapi":"/openapi.yaml get /integrations","href":"/api-reference/integrations/list-configured-connectors"},{"title":"Retrieve a connector","deprecated":null,"version":null,"openapi":"/openapi.yaml get /integrations/{connector_type}","href":"/api-reference/integrations/retrieve-a-connector"},{"title":"Connect an integration","deprecated":null,"version":null,"openapi":"/openapi.yaml post /integrations/{connector_type}","href":"/api-reference/integrations/connect-an-integration"},{"title":"Disconnect a connector","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /integrations/{connector_type}","href":"/api-reference/integrations/disconnect-a-connector"},{"title":"Update a connector","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /integrations/{connector_type}","href":"/api-reference/integrations/update-a-connector"},{"title":"Verify a connector connection","deprecated":null,"version":null,"openapi":"/openapi.yaml post /integrations/{connector_type}/test","href":"/api-reference/integrations/verify-a-connector-connection"},{"title":"List a connector's sync attempts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /integrations/{connector_type}/sync-log","href":"/api-reference/integrations/list-a-connectors-sync-attempts"}]},{"group":"Masters","pages":[{"title":"List locations","deprecated":null,"version":null,"openapi":"/openapi.yaml get /locations","href":"/api-reference/masters/list-locations"},{"title":"Create location","deprecated":null,"version":null,"openapi":"/openapi.yaml post /locations","href":"/api-reference/masters/create-location"},{"title":"Retrieve a location","deprecated":null,"version":null,"openapi":"/openapi.yaml get /locations/{id}","href":"/api-reference/masters/retrieve-a-location"},{"title":"Deactivate a location","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /locations/{id}","href":"/api-reference/masters/deactivate-a-location"},{"title":"Update location","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /locations/{id}","href":"/api-reference/masters/update-location"},{"title":"Set default location","deprecated":null,"version":null,"openapi":"/openapi.yaml post /locations/{id}/set-default","href":"/api-reference/masters/set-default-location"},{"title":"List payment terms","deprecated":null,"version":null,"openapi":"/openapi.yaml get /payment-terms","href":"/api-reference/masters/list-payment-terms"},{"title":"Create payment term","deprecated":null,"version":null,"openapi":"/openapi.yaml post /payment-terms","href":"/api-reference/masters/create-payment-term"},{"title":"Retrieve a payment term","deprecated":null,"version":null,"openapi":"/openapi.yaml get /payment-terms/{id}","href":"/api-reference/masters/retrieve-a-payment-term"},{"title":"Delete payment term","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /payment-terms/{id}","href":"/api-reference/masters/delete-payment-term"},{"title":"Update payment term","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /payment-terms/{id}","href":"/api-reference/masters/update-payment-term"},{"title":"Set default payment term","deprecated":null,"version":null,"openapi":"/openapi.yaml post /payment-terms/{id}/set-default","href":"/api-reference/masters/set-default-payment-term"},{"title":"List units of measure","deprecated":null,"version":null,"openapi":"/openapi.yaml get /units-of-measure","href":"/api-reference/masters/list-units-of-measure"},{"title":"Create unit of measure","deprecated":null,"version":null,"openapi":"/openapi.yaml post /units-of-measure","href":"/api-reference/masters/create-unit-of-measure"},{"title":"List units of measure by type","deprecated":null,"version":null,"openapi":"/openapi.yaml get /units-of-measure/by-type/{type}","href":"/api-reference/masters/list-units-of-measure-by-type"},{"title":"Convert between units of measure","deprecated":null,"version":null,"openapi":"/openapi.yaml post /units-of-measure/convert","href":"/api-reference/masters/convert-between-units-of-measure"},{"title":"Delete unit of measure","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /units-of-measure/{id}","href":"/api-reference/masters/delete-unit-of-measure"},{"title":"Update unit of measure","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /units-of-measure/{id}","href":"/api-reference/masters/update-unit-of-measure"},{"title":"List sales channels","deprecated":null,"version":null,"openapi":"/openapi.yaml get /sales-channels","href":"/api-reference/masters/list-sales-channels"},{"title":"Create sales channel","deprecated":null,"version":null,"openapi":"/openapi.yaml post /sales-channels","href":"/api-reference/masters/create-sales-channel"},{"title":"Delete sales channel","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /sales-channels/{id}","href":"/api-reference/masters/delete-sales-channel"},{"title":"Update sales channel","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /sales-channels/{id}","href":"/api-reference/masters/update-sales-channel"},{"title":"List pricing levels","deprecated":null,"version":null,"openapi":"/openapi.yaml get /pricing-levels","href":"/api-reference/masters/list-pricing-levels"},{"title":"Create pricing level","deprecated":null,"version":null,"openapi":"/openapi.yaml post /pricing-levels","href":"/api-reference/masters/create-pricing-level"},{"title":"Retrieve a pricing level","deprecated":null,"version":null,"openapi":"/openapi.yaml get /pricing-levels/{id}","href":"/api-reference/masters/retrieve-a-pricing-level"},{"title":"Delete pricing level","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /pricing-levels/{id}","href":"/api-reference/masters/delete-pricing-level"},{"title":"Update pricing level","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /pricing-levels/{id}","href":"/api-reference/masters/update-pricing-level"},{"title":"List product categories","deprecated":null,"version":null,"openapi":"/openapi.yaml get /product-categories","href":"/api-reference/masters/list-product-categories"},{"title":"Create product category","deprecated":null,"version":null,"openapi":"/openapi.yaml post /product-categories","href":"/api-reference/masters/create-product-category"},{"title":"Delete product category","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /product-categories/{id}","href":"/api-reference/masters/delete-product-category"},{"title":"Update product category","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /product-categories/{id}","href":"/api-reference/masters/update-product-category"},{"title":"List manufacturers","deprecated":null,"version":null,"openapi":"/openapi.yaml get /manufacturers","href":"/api-reference/masters/list-manufacturers"},{"title":"Create a manufacturer","deprecated":null,"version":null,"openapi":"/openapi.yaml post /manufacturers","href":"/api-reference/masters/create-a-manufacturer"},{"title":"Delete a manufacturer","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /manufacturers/{id}","href":"/api-reference/masters/delete-a-manufacturer"},{"title":"Update a manufacturer","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /manufacturers/{id}","href":"/api-reference/masters/update-a-manufacturer"},{"title":"List tax rates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tax-rates","href":"/api-reference/masters/list-tax-rates"},{"title":"Create tax rate","deprecated":null,"version":null,"openapi":"/openapi.yaml post /tax-rates","href":"/api-reference/masters/create-tax-rate"},{"title":"Retrieve a tax rate","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tax-rates/{id}","href":"/api-reference/masters/retrieve-a-tax-rate"},{"title":"Deactivate a tax rate","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /tax-rates/{id}","href":"/api-reference/masters/deactivate-a-tax-rate"},{"title":"Update tax rate","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /tax-rates/{id}","href":"/api-reference/masters/update-tax-rate"},{"title":"Restore a soft-deleted tax rate","deprecated":null,"version":null,"openapi":"/openapi.yaml post /tax-rates/{id}/restore","href":"/api-reference/masters/restore-a-soft-deleted-tax-rate"},{"title":"List exchange rates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /exchange-rates","href":"/api-reference/masters/list-exchange-rates"},{"title":"Create exchange rate","deprecated":null,"version":null,"openapi":"/openapi.yaml post /exchange-rates","href":"/api-reference/masters/create-exchange-rate"},{"title":"Retrieve an exchange rate","deprecated":null,"version":null,"openapi":"/openapi.yaml get /exchange-rates/{id}","href":"/api-reference/masters/retrieve-an-exchange-rate"},{"title":"Delete an exchange rate","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /exchange-rates/{id}","href":"/api-reference/masters/delete-an-exchange-rate"},{"title":"Update an exchange rate","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /exchange-rates/{id}","href":"/api-reference/masters/update-an-exchange-rate"},{"title":"List tags","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tags","href":"/api-reference/masters/list-tags"},{"title":"Create tag","deprecated":null,"version":null,"openapi":"/openapi.yaml post /tags","href":"/api-reference/masters/create-tag"},{"title":"Delete tag","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /tags/{id}","href":"/api-reference/masters/delete-tag"},{"title":"Update tag","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /tags/{id}","href":"/api-reference/masters/update-tag"},{"title":"List tags attached to a resource","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tags/{resourceType}/{resourceId}","href":"/api-reference/masters/list-tags-attached-to-a-resource"},{"title":"Attach tags to a resource","deprecated":null,"version":null,"openapi":"/openapi.yaml post /tags/{resourceType}/{resourceId}","href":"/api-reference/masters/attach-tags-to-a-resource"},{"title":"Detach a tag from a resource","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /tags/{resourceType}/{resourceId}/{tagId}","href":"/api-reference/masters/detach-a-tag-from-a-resource"},{"title":"List shipping rules","deprecated":null,"version":null,"openapi":"/openapi.yaml get /shipping-rules","href":"/api-reference/masters/list-shipping-rules"},{"title":"Create a shipping rule","deprecated":null,"version":null,"openapi":"/openapi.yaml post /shipping-rules","href":"/api-reference/masters/create-a-shipping-rule"}]},{"group":"Search","pages":[{"title":"Search across resource types","deprecated":null,"version":null,"openapi":"/openapi.yaml get /search","href":"/api-reference/search/search-across-resource-types"},{"title":"Search within one resource type","deprecated":null,"version":null,"openapi":"/openapi.yaml get /search/{object}","href":"/api-reference/search/search-within-one-resource-type"}]},{"group":"AuditLog","pages":[{"title":"List audit log entries","deprecated":null,"version":null,"openapi":"/openapi.yaml get /audit_log_entries","href":"/api-reference/auditlog/list-audit-log-entries"},{"title":"Create an audit log entry","deprecated":null,"version":null,"openapi":"/openapi.yaml post /audit_log_entries","href":"/api-reference/auditlog/create-an-audit-log-entry"},{"title":"Retrieve audit log statistics","deprecated":null,"version":null,"openapi":"/openapi.yaml get /audit_log_entries/stats","href":"/api-reference/auditlog/retrieve-audit-log-statistics"},{"title":"Retrieve audit event trends","deprecated":null,"version":null,"openapi":"/openapi.yaml get /audit_log_entries/sparkline","href":"/api-reference/auditlog/retrieve-audit-event-trends"},{"title":"List audit log resource types","deprecated":null,"version":null,"openapi":"/openapi.yaml get /audit_log_entries/resource_types","href":"/api-reference/auditlog/list-audit-log-resource-types"},{"title":"Verify audit log integrity","deprecated":null,"version":null,"openapi":"/openapi.yaml post /audit_log_entries/verify","href":"/api-reference/auditlog/verify-audit-log-integrity"},{"title":"Retrieve an audit log entry","deprecated":null,"version":null,"openapi":"/openapi.yaml get /audit_log_entries/{id}","href":"/api-reference/auditlog/retrieve-an-audit-log-entry"}]},{"group":"Channel Listings","pages":[{"title":"List channel listings","deprecated":null,"version":null,"openapi":"/openapi.yaml get /channel_listings","href":"/api-reference/channel-listings/list-channel-listings"},{"title":"Create a channel listing","deprecated":null,"version":null,"openapi":"/openapi.yaml post /channel_listings","href":"/api-reference/channel-listings/create-a-channel-listing"},{"title":"Retrieve a channel listing","deprecated":null,"version":null,"openapi":"/openapi.yaml get /channel_listings/{id}","href":"/api-reference/channel-listings/retrieve-a-channel-listing"},{"title":"Delete a channel listing","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /channel_listings/{id}","href":"/api-reference/channel-listings/delete-a-channel-listing"},{"title":"Update a channel listing","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /channel_listings/{id}","href":"/api-reference/channel-listings/update-a-channel-listing"},{"title":"Pause a channel listing","deprecated":null,"version":null,"openapi":"/openapi.yaml post /channel_listings/{id}/pause","href":"/api-reference/channel-listings/pause-a-channel-listing"},{"title":"Resume a paused channel listing","deprecated":null,"version":null,"openapi":"/openapi.yaml post /channel_listings/{id}/resume","href":"/api-reference/channel-listings/resume-a-paused-channel-listing"},{"title":"Sync a channel listing","deprecated":null,"version":null,"openapi":"/openapi.yaml post /channel_listings/{id}/sync","href":"/api-reference/channel-listings/sync-a-channel-listing"}]},{"group":"Marketplace Orders","pages":[{"title":"List marketplace orders","deprecated":null,"version":null,"openapi":"/openapi.yaml get /marketplace_orders","href":"/api-reference/marketplace-orders/list-marketplace-orders"},{"title":"Retrieve a marketplace order","deprecated":null,"version":null,"openapi":"/openapi.yaml get /marketplace_orders/{id}","href":"/api-reference/marketplace-orders/retrieve-a-marketplace-order"},{"title":"Resync a marketplace order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /marketplace_orders/{id}/resync","href":"/api-reference/marketplace-orders/resync-a-marketplace-order"},{"title":"Refund a marketplace order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /marketplace_orders/{id}/refund","href":"/api-reference/marketplace-orders/refund-a-marketplace-order"}]},{"group":"Accounts Receivable","pages":[{"title":"List customer credit memos","deprecated":null,"version":null,"openapi":"/openapi.yaml get /customer-credits","href":"/api-reference/accounts-receivable/list-customer-credit-memos"},{"title":"Create a customer credit memo","deprecated":null,"version":null,"openapi":"/openapi.yaml post /customer-credits","href":"/api-reference/accounts-receivable/create-a-customer-credit-memo"},{"title":"Retrieve a customer credit memo","deprecated":null,"version":null,"openapi":"/openapi.yaml get /customer-credits/{id}","href":"/api-reference/accounts-receivable/retrieve-a-customer-credit-memo"},{"title":"Apply a credit memo","deprecated":null,"version":null,"openapi":"/openapi.yaml post /customer-credits/{id}/apply","href":"/api-reference/accounts-receivable/apply-a-credit-memo"},{"title":"Void a customer credit memo","deprecated":null,"version":null,"openapi":"/openapi.yaml post /customer-credits/{id}/void","href":"/api-reference/accounts-receivable/void-a-customer-credit-memo"},{"title":"Restore a voided credit memo","deprecated":null,"version":null,"openapi":"/openapi.yaml post /customer-credits/{id}/reactivate","href":"/api-reference/accounts-receivable/restore-a-voided-credit-memo"},{"title":"Pay out a customer credit memo by check","deprecated":null,"version":null,"openapi":"/openapi.yaml post /customer-credits/{id}/payout","href":"/api-reference/accounts-receivable/pay-out-a-customer-credit-memo-by-check"}]},{"group":"Dimensions","pages":[{"title":"List GL departments","deprecated":null,"version":null,"openapi":"/openapi.yaml get /departments","href":"/api-reference/dimensions/list-gl-departments"},{"title":"Create a department","deprecated":null,"version":null,"openapi":"/openapi.yaml post /departments","href":"/api-reference/dimensions/create-a-department"},{"title":"Retrieve a department","deprecated":null,"version":null,"openapi":"/openapi.yaml get /departments/{id}","href":"/api-reference/dimensions/retrieve-a-department"},{"title":"Delete a department","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /departments/{id}","href":"/api-reference/dimensions/delete-a-department"},{"title":"Update a department","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /departments/{id}","href":"/api-reference/dimensions/update-a-department"},{"title":"List GL classes","deprecated":null,"version":null,"openapi":"/openapi.yaml get /classes","href":"/api-reference/dimensions/list-gl-classes"},{"title":"Create a class","deprecated":null,"version":null,"openapi":"/openapi.yaml post /classes","href":"/api-reference/dimensions/create-a-class"},{"title":"Retrieve a class","deprecated":null,"version":null,"openapi":"/openapi.yaml get /classes/{id}","href":"/api-reference/dimensions/retrieve-a-class"},{"title":"Delete a class","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /classes/{id}","href":"/api-reference/dimensions/delete-a-class"},{"title":"Update a class","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /classes/{id}","href":"/api-reference/dimensions/update-a-class"},{"title":"List GL projects","deprecated":null,"version":null,"openapi":"/openapi.yaml get /projects","href":"/api-reference/dimensions/list-gl-projects"},{"title":"Create a project","deprecated":null,"version":null,"openapi":"/openapi.yaml post /projects","href":"/api-reference/dimensions/create-a-project"},{"title":"Retrieve a project","deprecated":null,"version":null,"openapi":"/openapi.yaml get /projects/{id}","href":"/api-reference/dimensions/retrieve-a-project"},{"title":"Delete a project","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /projects/{id}","href":"/api-reference/dimensions/delete-a-project"},{"title":"Update a project","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /projects/{id}","href":"/api-reference/dimensions/update-a-project"}]},{"group":"Webhooks","pages":[{"title":"List webhook endpoints","deprecated":null,"version":null,"openapi":"/openapi.yaml get /webhook_endpoints","href":"/api-reference/webhooks/list-webhook-endpoints"},{"title":"Create a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.yaml post /webhook_endpoints","href":"/api-reference/webhooks/create-a-webhook-endpoint"},{"title":"Retrieve a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.yaml get /webhook_endpoints/{id}","href":"/api-reference/webhooks/retrieve-a-webhook-endpoint"},{"title":"Delete a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /webhook_endpoints/{id}","href":"/api-reference/webhooks/delete-a-webhook-endpoint"},{"title":"Update a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /webhook_endpoints/{id}","href":"/api-reference/webhooks/update-a-webhook-endpoint"},{"title":"Rotate a webhook signing secret","deprecated":null,"version":null,"openapi":"/openapi.yaml post /webhook_endpoints/{id}/rotate_secret","href":"/api-reference/webhooks/rotate-a-webhook-signing-secret"},{"title":"Send a webhook test event","deprecated":null,"version":null,"openapi":"/openapi.yaml post /webhook_endpoints/{id}/test","href":"/api-reference/webhooks/send-a-webhook-test-event"},{"title":"List webhook delivery attempts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /webhook_endpoints/{id}/deliveries","href":"/api-reference/webhooks/list-webhook-delivery-attempts"}]},{"group":"Addresses","pages":[{"title":"List addresses","deprecated":null,"version":null,"openapi":"/openapi.yaml get /addresses","href":"/api-reference/addresses/list-addresses"},{"title":"Create an address","deprecated":null,"version":null,"openapi":"/openapi.yaml post /addresses","href":"/api-reference/addresses/create-an-address"},{"title":"Retrieve an address","deprecated":null,"version":null,"openapi":"/openapi.yaml get /addresses/{id}","href":"/api-reference/addresses/retrieve-an-address"},{"title":"Delete an address","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /addresses/{id}","href":"/api-reference/addresses/delete-an-address"},{"title":"Update an address","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /addresses/{id}","href":"/api-reference/addresses/update-an-address"},{"title":"Restore a soft-deleted address","deprecated":null,"version":null,"openapi":"/openapi.yaml post /addresses/{id}/restore","href":"/api-reference/addresses/restore-a-soft-deleted-address"}]},{"group":"Contacts","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /contacts","href":"/api-reference/contacts/list-contacts"},{"title":"Create a contact","deprecated":null,"version":null,"openapi":"/openapi.yaml post /contacts","href":"/api-reference/contacts/create-a-contact"},{"title":"Retrieve a contact","deprecated":null,"version":null,"openapi":"/openapi.yaml get /contacts/{id}","href":"/api-reference/contacts/retrieve-a-contact"},{"title":"Delete a contact","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /contacts/{id}","href":"/api-reference/contacts/delete-a-contact"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /contacts/{id}","href":"/api-reference/contacts/update-a-contact"},{"title":"Set a contact as primary","deprecated":null,"version":null,"openapi":"/openapi.yaml post /contacts/{id}/set-primary","href":"/api-reference/contacts/set-a-contact-as-primary"},{"title":"Restore a soft-deleted contact","deprecated":null,"version":null,"openapi":"/openapi.yaml post /contacts/{id}/restore","href":"/api-reference/contacts/restore-a-soft-deleted-contact"}]},{"group":"Notes","pages":[{"title":"List notes","deprecated":null,"version":null,"openapi":"/openapi.yaml get /notes","href":"/api-reference/notes/list-notes"},{"title":"Create a note","deprecated":null,"version":null,"openapi":"/openapi.yaml post /notes","href":"/api-reference/notes/create-a-note"},{"title":"Retrieve a note","deprecated":null,"version":null,"openapi":"/openapi.yaml get /notes/{id}","href":"/api-reference/notes/retrieve-a-note"},{"title":"Delete a note","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /notes/{id}","href":"/api-reference/notes/delete-a-note"},{"title":"Update a note","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /notes/{id}","href":"/api-reference/notes/update-a-note"},{"title":"Restore a soft-deleted note","deprecated":null,"version":null,"openapi":"/openapi.yaml post /notes/{id}/restore","href":"/api-reference/notes/restore-a-soft-deleted-note"},{"title":"Pin a note","deprecated":null,"version":null,"openapi":"/openapi.yaml post /notes/{id}/pin","href":"/api-reference/notes/pin-a-note"},{"title":"Unpin a note","deprecated":null,"version":null,"openapi":"/openapi.yaml post /notes/{id}/unpin","href":"/api-reference/notes/unpin-a-note"}]},{"group":"Attachments","pages":[{"title":"Generate an attachment upload URL","deprecated":null,"version":null,"openapi":"/openapi.yaml post /attachments/upload-url","href":"/api-reference/attachments/generate-an-attachment-upload-url"},{"title":"Generate an attachment download URL","deprecated":null,"version":null,"openapi":"/openapi.yaml get /attachments/{id}/download-url","href":"/api-reference/attachments/generate-an-attachment-download-url"},{"title":"List attachments","deprecated":null,"version":null,"openapi":"/openapi.yaml get /attachments","href":"/api-reference/attachments/list-attachments"},{"title":"Create an attachment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /attachments","href":"/api-reference/attachments/create-an-attachment"},{"title":"Retrieve an attachment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /attachments/{id}","href":"/api-reference/attachments/retrieve-an-attachment"},{"title":"Delete an attachment","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /attachments/{id}","href":"/api-reference/attachments/delete-an-attachment"},{"title":"Update an attachment","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /attachments/{id}","href":"/api-reference/attachments/update-an-attachment"}]},{"group":"Fixed Assets","pages":[{"title":"List fixed-asset categories","deprecated":null,"version":null,"openapi":"/openapi.yaml get /fixed_asset_categories","href":"/api-reference/fixed-assets/list-fixed-asset-categories"},{"title":"Create a fixed-asset category","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fixed_asset_categories","href":"/api-reference/fixed-assets/create-a-fixed-asset-category"},{"title":"Retrieve a fixed-asset category","deprecated":null,"version":null,"openapi":"/openapi.yaml get /fixed_asset_categories/{id}","href":"/api-reference/fixed-assets/retrieve-a-fixed-asset-category"},{"title":"Delete a fixed-asset category","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /fixed_asset_categories/{id}","href":"/api-reference/fixed-assets/delete-a-fixed-asset-category"},{"title":"Update a fixed-asset category","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /fixed_asset_categories/{id}","href":"/api-reference/fixed-assets/update-a-fixed-asset-category"},{"title":"List fixed assets","deprecated":null,"version":null,"openapi":"/openapi.yaml get /fixed_assets","href":"/api-reference/fixed-assets/list-fixed-assets"},{"title":"Create a fixed asset","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fixed_assets","href":"/api-reference/fixed-assets/create-a-fixed-asset"},{"title":"Retrieve the fixed assets summary","deprecated":null,"version":null,"openapi":"/openapi.yaml get /fixed_assets/summary","href":"/api-reference/fixed-assets/retrieve-the-fixed-assets-summary"},{"title":"Retrieve a fixed asset","deprecated":null,"version":null,"openapi":"/openapi.yaml get /fixed_assets/{id}","href":"/api-reference/fixed-assets/retrieve-a-fixed-asset"},{"title":"Update a fixed asset","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /fixed_assets/{id}","href":"/api-reference/fixed-assets/update-a-fixed-asset"},{"title":"Place a fixed asset in service","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fixed_assets/{id}/place_in_service","href":"/api-reference/fixed-assets/place-a-fixed-asset-in-service"},{"title":"Post a depreciation period","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fixed_assets/{id}/depreciate","href":"/api-reference/fixed-assets/post-a-depreciation-period"},{"title":"Retrieve the depreciation schedule","deprecated":null,"version":null,"openapi":"/openapi.yaml get /fixed_assets/{id}/depreciation_schedule","href":"/api-reference/fixed-assets/retrieve-the-depreciation-schedule"},{"title":"Suspend an asset's depreciation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fixed_assets/{id}/suspend_depreciation","href":"/api-reference/fixed-assets/suspend-an-assets-depreciation"},{"title":"Resume an asset's depreciation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fixed_assets/{id}/resume_depreciation","href":"/api-reference/fixed-assets/resume-an-assets-depreciation"},{"title":"Revalue a fixed asset","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fixed_assets/{id}/revalue","href":"/api-reference/fixed-assets/revalue-a-fixed-asset"},{"title":"Move a fixed asset","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fixed_assets/{id}/transfer","href":"/api-reference/fixed-assets/move-a-fixed-asset"},{"title":"Dispose of a fixed asset","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fixed_assets/{id}/dispose","href":"/api-reference/fixed-assets/dispose-of-a-fixed-asset"},{"title":"Record an impairment loss","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fixed_assets/{id}/impair","href":"/api-reference/fixed-assets/record-an-impairment-loss"},{"title":"Record an impairment recovery","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fixed_assets/{id}/recover_impairment","href":"/api-reference/fixed-assets/record-an-impairment-recovery"},{"title":"Retrieve an asset's impairment history","deprecated":null,"version":null,"openapi":"/openapi.yaml get /fixed_assets/{id}/impairment_history","href":"/api-reference/fixed-assets/retrieve-an-assets-impairment-history"},{"title":"Record units produced","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fixed_assets/{id}/record_units_produced","href":"/api-reference/fixed-assets/record-units-produced"},{"title":"List an asset's maintenance log","deprecated":null,"version":null,"openapi":"/openapi.yaml get /fixed_assets/{id}/maintenance_log","href":"/api-reference/fixed-assets/list-an-assets-maintenance-log"},{"title":"Add a maintenance log entry","deprecated":null,"version":null,"openapi":"/openapi.yaml post /fixed_assets/{id}/maintenance_log","href":"/api-reference/fixed-assets/add-a-maintenance-log-entry"}]},{"group":"Freight","pages":[{"title":"List the freight fulfillment queue","deprecated":null,"version":null,"openapi":"/openapi.yaml get /freight_fulfillment_queue","href":"/api-reference/freight/list-the-freight-fulfillment-queue"},{"title":"List freight orders","deprecated":null,"version":null,"openapi":"/openapi.yaml get /freight_orders","href":"/api-reference/freight/list-freight-orders"},{"title":"Retrieve a freight order","deprecated":null,"version":null,"openapi":"/openapi.yaml get /freight_orders/{id}","href":"/api-reference/freight/retrieve-a-freight-order"},{"title":"Generate a bill of lading","deprecated":null,"version":null,"openapi":"/openapi.yaml post /freight_orders/{id}/bol","href":"/api-reference/freight/generate-a-bill-of-lading"},{"title":"Override an order's shipping mode","deprecated":null,"version":null,"openapi":"/openapi.yaml post /freight_orders/{id}/override_mode","href":"/api-reference/freight/override-an-orders-shipping-mode"},{"title":"Create a freight package","deprecated":null,"version":null,"openapi":"/openapi.yaml post /freight_orders/{id}/packages","href":"/api-reference/freight/create-a-freight-package"},{"title":"List an order's freight quotes","deprecated":null,"version":null,"openapi":"/openapi.yaml get /freight_orders/{id}/quotes","href":"/api-reference/freight/list-an-orders-freight-quotes"},{"title":"Record a manual freight quote","deprecated":null,"version":null,"openapi":"/openapi.yaml post /freight_orders/{id}/quotes","href":"/api-reference/freight/record-a-manual-freight-quote"},{"title":"Retrieve live LTL rates from Shippo","deprecated":null,"version":null,"openapi":"/openapi.yaml post /freight_orders/{id}/quotes/shippo","href":"/api-reference/freight/retrieve-live-ltl-rates-from-shippo"},{"title":"Delete a freight quote","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /freight_quotes/{id}","href":"/api-reference/freight/delete-a-freight-quote"},{"title":"Accept a freight quote","deprecated":null,"version":null,"openapi":"/openapi.yaml post /freight_quotes/{id}/accept","href":"/api-reference/freight/accept-a-freight-quote"}]},{"group":"CustomFields","pages":[{"title":"List custom field definitions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /custom_fields","href":"/api-reference/customfields/list-custom-field-definitions"},{"title":"Create a custom field definition","deprecated":null,"version":null,"openapi":"/openapi.yaml post /custom_fields","href":"/api-reference/customfields/create-a-custom-field-definition"},{"title":"Retrieve a custom field definition","deprecated":null,"version":null,"openapi":"/openapi.yaml get /custom_fields/{id}","href":"/api-reference/customfields/retrieve-a-custom-field-definition"},{"title":"Delete a custom field definition","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /custom_fields/{id}","href":"/api-reference/customfields/delete-a-custom-field-definition"},{"title":"Update a custom field definition","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /custom_fields/{id}","href":"/api-reference/customfields/update-a-custom-field-definition"},{"title":"Restore a soft-deleted custom field","deprecated":null,"version":null,"openapi":"/openapi.yaml post /custom_fields/{id}/restore","href":"/api-reference/customfields/restore-a-soft-deleted-custom-field"},{"title":"List custom field values","deprecated":null,"version":null,"openapi":"/openapi.yaml get /custom_fields/{parent_type}/{record_id}/values","href":"/api-reference/customfields/list-custom-field-values"},{"title":"Set a custom field value","deprecated":null,"version":null,"openapi":"/openapi.yaml put /custom_fields/{id}/values/{record_id}","href":"/api-reference/customfields/set-a-custom-field-value"}]},{"group":"Bins","pages":[{"title":"List bins","deprecated":null,"version":null,"openapi":"/openapi.yaml get /bins","href":"/api-reference/bins/list-bins"},{"title":"Create a bin","deprecated":null,"version":null,"openapi":"/openapi.yaml post /bins","href":"/api-reference/bins/create-a-bin"},{"title":"Retrieve a bin","deprecated":null,"version":null,"openapi":"/openapi.yaml get /bins/{id}","href":"/api-reference/bins/retrieve-a-bin"},{"title":"Update a bin","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /bins/{id}","href":"/api-reference/bins/update-a-bin"},{"title":"Deactivate a bin","deprecated":null,"version":null,"openapi":"/openapi.yaml post /bins/{id}/deactivate","href":"/api-reference/bins/deactivate-a-bin"},{"title":"Restore a deactivated bin","deprecated":null,"version":null,"openapi":"/openapi.yaml post /bins/{id}/restore","href":"/api-reference/bins/restore-a-deactivated-bin"},{"title":"List a bin's products","deprecated":null,"version":null,"openapi":"/openapi.yaml get /bins/{id}/products","href":"/api-reference/bins/list-a-bins-products"},{"title":"Assign a product to a bin","deprecated":null,"version":null,"openapi":"/openapi.yaml post /bins/{id}/products","href":"/api-reference/bins/assign-a-product-to-a-bin"}]},{"group":"Lots","pages":[{"title":"List lots","deprecated":null,"version":null,"openapi":"/openapi.yaml get /lots","href":"/api-reference/lots/list-lots"},{"title":"Create a lot","deprecated":null,"version":null,"openapi":"/openapi.yaml post /lots","href":"/api-reference/lots/create-a-lot"},{"title":"Retrieve a lot","deprecated":null,"version":null,"openapi":"/openapi.yaml get /lots/{id}","href":"/api-reference/lots/retrieve-a-lot"},{"title":"Delete a lot","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /lots/{id}","href":"/api-reference/lots/delete-a-lot"},{"title":"Update a lot","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /lots/{id}","href":"/api-reference/lots/update-a-lot"},{"title":"Restore a soft-deleted lot","deprecated":null,"version":null,"openapi":"/openapi.yaml post /lots/{id}/restore","href":"/api-reference/lots/restore-a-soft-deleted-lot"},{"title":"Change a lot's status","deprecated":null,"version":null,"openapi":"/openapi.yaml post /lots/{id}/change-status","href":"/api-reference/lots/change-a-lots-status"}]},{"group":"Documents","pages":[{"title":"Create a document","deprecated":null,"version":null,"openapi":"/openapi.yaml post /documents","href":"/api-reference/documents/create-a-document"},{"title":"Confirm a document upload","deprecated":null,"version":null,"openapi":"/openapi.yaml post /documents/confirm","href":"/api-reference/documents/confirm-a-document-upload"}]},{"group":"Currencies","pages":[{"title":"List currencies","deprecated":null,"version":null,"openapi":"/openapi.yaml get /currencies","href":"/api-reference/currencies/list-currencies"},{"title":"Create a currency","deprecated":null,"version":null,"openapi":"/openapi.yaml post /currencies","href":"/api-reference/currencies/create-a-currency"},{"title":"Retrieve a currency","deprecated":null,"version":null,"openapi":"/openapi.yaml get /currencies/{id}","href":"/api-reference/currencies/retrieve-a-currency"},{"title":"Delete a currency","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /currencies/{id}","href":"/api-reference/currencies/delete-a-currency"},{"title":"Update a currency","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /currencies/{id}","href":"/api-reference/currencies/update-a-currency"},{"title":"Restore a soft-deleted currency","deprecated":null,"version":null,"openapi":"/openapi.yaml post /currencies/{id}/restore","href":"/api-reference/currencies/restore-a-soft-deleted-currency"},{"title":"Set the base currency","deprecated":null,"version":null,"openapi":"/openapi.yaml post /currencies/{id}/set-base","href":"/api-reference/currencies/set-the-base-currency"}]},{"group":"Tax Codes","pages":[{"title":"List tax codes","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tax-codes","href":"/api-reference/tax-codes/list-tax-codes"},{"title":"Create a tax code","deprecated":null,"version":null,"openapi":"/openapi.yaml post /tax-codes","href":"/api-reference/tax-codes/create-a-tax-code"},{"title":"Retrieve a tax code","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tax-codes/{id}","href":"/api-reference/tax-codes/retrieve-a-tax-code"},{"title":"Delete a tax code","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /tax-codes/{id}","href":"/api-reference/tax-codes/delete-a-tax-code"},{"title":"Update a tax code","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /tax-codes/{id}","href":"/api-reference/tax-codes/update-a-tax-code"},{"title":"Restore a soft-deleted tax code","deprecated":null,"version":null,"openapi":"/openapi.yaml post /tax-codes/{id}/restore","href":"/api-reference/tax-codes/restore-a-soft-deleted-tax-code"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Change a return's fees - Arcus ERP Docs","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DX1Meug0.js","utils-B_OMIQVC.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-ChxhRPMa.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CuKvD8Iv.js","snippetPresets-C5d7p2hp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CfHcE8m4.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C1zZV314.js","shallow-CmQhqCJn.js","getApiPlaygroundDisplay-YRo9s1O7.js","CodeSnippet-RN1MTdfk.js","CodeSnippets-DKLPHxJA.js","Page-BAvA99GL.js","getPastedJson-bz0M41mU.js","icon-CsmhpPrv.js","MethodPill-CNGsVE77.js","DuplicateIcon-DilfU_Z2.js","createIcon-BdsYzQck.js","DynamicMarkdown-CbqEDjbV.js","SectionHeading-O6hXpFCN.js","axios-vUo_bRtp.js","Markdown-nKm-uidQ.js","clsx-ClVdStUn.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CIQkMg3R.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-ImrFS4Fy.js"]}