|
1
|
{"slug":"/references/fulfillment/retrieveFulfillmentOptions","title":"retrieveFulfillmentOptions - Fulfillment Module Reference","frontmatter":{"displayed_sidebar":"fulfillmentReference","slug":"/references/fulfillment/retrieveFulfillmentOptions","sidebar_label":"retrieveFulfillmentOptions"},"toc":[{"title":"Example","id":"example","level":2},{"title":"Parameters","id":"retrievefulfillmentoptions-parameters","level":2},{"title":"Returns","id":"retrievefulfillmentoptions-returns","level":2}],"blocks":[{"kind":"markdown","html":"This documentation provides a reference to the `retrieveFulfillmentOptions` method. This belongs to the Fulfillment Module."},{"kind":"note","variant":"note","html":"You should only use this methods when implementing complex customizations. For common cases, check out [available workflows instead](/medusa-workflows-reference)."},{"kind":"markdown","html":"This method retrieves the fulfillment options of a fulfillment provider."},{"kind":"heading","level":2,"text":"Example","id":"example"},{"kind":"markdown","html":"```ts\nconst fulfillment =\n await fulfillmentModuleService.retrieveFulfillmentOptions(\n \"ful_123\"\n )\n```"},{"kind":"heading","level":2,"text":"Parameters","id":"retrievefulfillmentoptions-parameters"},{"kind":"typeList","sectionTitle":"retrieveFulfillmentOptions","types":[{"name":"providerId","type":"`string`","description":"The fulfillment provider's ID.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"kind":"heading","level":2,"text":"Returns","id":"retrievefulfillmentoptions-returns"},{"kind":"typeList","sectionTitle":"retrieveFulfillmentOptions","types":[{"name":"Promise","type":"Promise<Record<string, unknown>[]>","optional":false,"defaultValue":"","description":"The fulfillment provider's options.","expandable":false,"children":[{"name":"Record<string, unknown>[]","type":"`Record<string, unknown>`[]","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"string","type":"`string`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"unknown","type":"`unknown`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}]}]} |