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.order.cancelFulfillment(
"order_123",
"ful_123",
{
no_notification: false
}
)
.then(({ order }) => {
console.log(order)
})Cancel an order’s fulfillment. The fulfillment can’t be canceled if it’s shipped.
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.order.cancelFulfillment(
"order_123",
"ful_123",
{
no_notification: false
}
)
.then(({ order }) => {
console.log(order)
})Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The order's ID.
The order's fulfillment id.
OK
An order's details.
The order's details.
Show child attributes