updateReturn
Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.
All HTTP operationsTenant-admin write; actual server Return lifecycle document, not a PublicOrder.
bearerAuthAuthorizationBearer <token>Public integration credentials: verified opaque sk01_ secret key or pat01_ personal access token; operation policy and read/write scopes still apply. These credentials are not Customer JWTs.
application/json- body
returnId*string|numberstatus*string"processing""approved""rejected""canceled""completed"reasonCode?string"window_expired""used_or_damaged""non_returnable""other"cancellationReasonCode?string"items_not_received""customer_withdrew""merchant_decision""other"cancellationReasonDetail?string1 <= length <= 2000Actual shaped success body
application/json- response
Actual authenticated Payload Return document. Relationship depth and field access vary. This is server-only legacy wire, not the canonical public DTO or a browser discovery promise.
id*stringcreatedAt?stringupdatedAt?stringorder?string|number|status?stringrefundAmount?number|nullreturnShippingFee?number|null[key: string]?anyExamples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.
curl -X POST 'https://api.01.software/api/returns/update' \ -H 'Content-Type: application/json' \ -d '{ "returnId": "string", "status": "processing"}'{ "id": "string", "createdAt": "string", "updatedAt": "string", "order": "string", "status": "string", "refundAmount": 0, "returnShippingFee": 0}