GET
/
admin
/
fulfillment-providers
/
{id}
/
options
JS SDK
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
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The fulfillment provider's ID.

Response

OK

The paginated list of fulfillment options.

limit
number
required

The maximum number of items returned.

offset
number
required

The number of items skipped before retrieving the returned items.

count
number
required

The total number of items.

fulfillment_options
object[]
required

The list of fulfillment options.

estimate_count
number

The estimated count retrieved from the PostgreSQL query planner, which may be inaccurate.