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.fulfillmentProvider.listFulfillmentOptions("fp_123")
.then(({ fulfillment_options }) => {
console.log(fulfillment_options)
})
{
"limit": 123,
"offset": 123,
"count": 123,
"fulfillment_options": [
{
"id": "<string>",
"is_return": true
}
],
"estimate_count": 123
}
Retrieve the list of fulfillment options of a fulfillment provider. These options may be retrieved from an integrated third-party service.
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.fulfillmentProvider.listFulfillmentOptions("fp_123")
.then(({ fulfillment_options }) => {
console.log(fulfillment_options)
})
{
"limit": 123,
"offset": 123,
"count": 123,
"fulfillment_options": [
{
"id": "<string>",
"is_return": true
}
],
"estimate_count": 123
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The fulfillment provider's ID.
OK
The paginated list of fulfillment options.