POST
/
admin
/
products
/
import
/
{transaction_id}
/
confirm
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.product.confirmImport("transaction_123")
.then(() => {
  console.log("Import confirmed")
})
This response does not have an example.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

transaction_id
string
required

The ID of the transaction returned when the product import was created.

Response

202

OK