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.orderEdit.confirm("order_123")
.then(({ order_preview }) => {
console.log(order_preview)
})Confirm an order edit request and apply the changes on the order.
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.orderEdit.confirm("order_123")
.then(({ order_preview }) => {
console.log(order_preview)
})Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the order that is being edited.
OK
The preview of an order edit.
A preview of an order if a change, such as exchange, return, edit, or claim is applied on it.
Show child attributes