JavaScript
import Medusa from "@medusajs/js-sdk" export const sdk = new Medusa({ baseUrl: import.meta.env.VITE_BACKEND_URL || "/", debug: import.meta.env.DEV, auth: { type: "session", }, }) sdk.admin.return.cancelReceive("return_123") .then(({ return }) => { console.log(return) })
200
Example
{ "id": "<string>", "object": "return", "deleted": true}
Cancel the receival process previously started, and hasn’t been confirmed, of a return.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The return's ID.
OK
The deletion's details.
The name of the returned object.
Whether the return was deleted.