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.claim.addInboundItems(
"claim_123",
{
items: [
{
id: "orli_123",
quantity: 1
}
]
},
)
.then(({ return: returnData }) => {
console.log(returnData)
})Add inbound (or return) items to a claim. These inbound items will have a RETURN_ITEM action.
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.claim.addInboundItems(
"claim_123",
{
items: [
{
id: "orli_123",
quantity: 1
}
]
},
)
.then(({ return: returnData }) => {
console.log(returnData)
})Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The claim's ID.
The items' details.
The items' details.
Show child attributes
OK
The details of the claim's return, with a preview of the order when the claim's return is applied.