createReturn
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 document; reason tuples and restock requests come from the shared request schema.
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
orderNumber*stringOrder number (required)
1 <= lengthreason?stringReturn reason (optional)
"change_of_mind""defective""wrong_delivery""damaged""size_too_large""size_too_small""color""style""not_as_described""wrong_item""unknown""other"reasonDetail?stringDetailed reason text (optional)
length <= 2000returnItems*array<>Array of products to return (required)
1 <= items <= 100refundAmount*integerLine refund amount before initial shipping refund (required, min 0)
0 <= value <= 9007199254740991returnShippingFee?integerReturn shipping fee charged to the customer
0 <= value <= 9007199254740991initialShippingRefundAmount?integerInitial order shipping amount refunded to the customer
0 <= value <= 9007199254740991initialShippingRefundOverrideNote?stringOperator audit note required when overriding policy suggestion
1 <= 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/create' \ -H 'Content-Type: application/json' \ -d '{ "orderNumber": "string", "returnItems": [ { "orderItem": "string", "quantity": 1 } ], "refundAmount": 0}'{ "id": "string", "createdAt": "string", "updatedAt": "string", "order": "string", "status": "string", "refundAmount": 0, "returnShippingFee": 0}