1 /**
2 * @oas [get] /admin/fulfillment-providers
3 * operationId: GetFulfillmentProviders
4 * summary: List Fulfillment Providers
5 * description: Retrieve a list of fulfillment providers. The fulfillment providers can be filtered by fields such as `id`. The fulfillment providers can also be sorted or paginated.
6 * x-authenticated: true
7 * parameters:
8 * - name: fields
9 * in: query
10 * description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default
11 * fields. without prefix it will replace the entire default fields.
12 * required: false
13 * schema:
14 * type: string
15 * title: fields
16 * description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default
17 * fields. without prefix it will replace the entire default fields.
18 * externalDocs:
19 * url: "#select-fields-and-relations"
20 * - name: offset
21 * in: query
22 * description: The number of items to skip when retrieving a list.
23 * required: false
24 * schema:
25 * type: number
26 * title: offset
27 * description: The number of items to skip when retrieving a list.
28 * externalDocs:
29 * url: "#pagination"
30 * - name: limit
31 * in: query
32 * description: Limit the number of items returned in the list.
33 * required: false
34 * schema:
35 * type: number
36 * title: limit
37 * description: Limit the number of items returned in the list.
38 * externalDocs:
39 * url: "#pagination"
40 * - name: order
41 * in: query
42 * description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
43 * required: false
44 * schema:
45 * type: string
46 * title: order
47 * description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
48 * - name: id
49 * in: query
50 * required: false
51 * schema:
52 * oneOf:
53 * - type: string
54 * title: id
55 * description: Filter by a fulfillment provider's ID.
56 * - type: array
57 * description: Filter by fulfillment provider IDs.
58 * items:
59 * type: string
60 * title: id
61 * description: A fulfillment provider ID.
62 * - name: is_enabled
63 * in: query
64 * description: Filter by whether the fulfillment provider is enabled.
65 * required: false
66 * schema:
67 * type: boolean
68 * title: is_enabled
69 * description: Filter by whether the fulfillment provider is enabled.
70 * - name: q
71 * in: query
72 * description: Search term to filter a fulfillment provider's searchable properties.
73 * required: false
74 * schema:
75 * type: string
76 * title: q
77 * description: Search term to filter a fulfillment provider's searchable properties.
78 * - name: stock_location_id
79 * in: query
80 * required: false
81 * schema:
82 * oneOf:
83 * - type: string
84 * title: stock_location_id
85 * description: Filter by associated stock location's ID.
86 * - type: array
87 * description: Filter by associated stock location IDs.
88 * items:
89 * type: string
90 * title: stock_location_id
91 * description: A stock location's ID.
92 * - name: with_deleted
93 * in: query
94 * description: Whether to include deleted records in the result.
95 * required: false
96 * schema:
97 * type: boolean
98 * title: with_deleted
99 * description: Whether to include deleted records in the result.
100 * security:
101 * - api_token: []
102 * - cookie_auth: []
103 * - jwt_token: []
104 * x-codeSamples:
105 * - lang: JavaScript
106 * label: JS SDK
107 * source: |-
108 * import Medusa from "@medusajs/js-sdk"
109 *
110 * export const sdk = new Medusa({
111 * baseUrl: import.meta.env.VITE_BACKEND_URL || "/",
112 * debug: import.meta.env.DEV,
113 * auth: {
114 * type: "session",
115 * },
116 * })
117 *
118 * sdk.admin.fulfillmentProvider.list()
119 * .then(({ fulfillment_providers, count, limit, offset }) => {
120 * console.log(fulfillment_providers)
121 * })
122 * - lang: Shell
123 * label: cURL
124 * source: |-
125 * curl '{backend_url}/admin/fulfillment-providers' \
126 * -H 'Authorization: Bearer {jwt_token}'
127 * tags:
128 * - Fulfillment Providers
129 * responses:
130 * "200":
131 * description: OK
132 * content:
133 * application/json:
134 * schema:
135 * $ref: "#/components/schemas/AdminFulfillmentProviderListResponse"
136 * "400":
137 * $ref: "#/components/responses/400_error"
138 * "401":
139 * $ref: "#/components/responses/unauthorized"
140 * "404":
141 * $ref: "#/components/responses/not_found_error"
142 * "409":
143 * $ref: "#/components/responses/invalid_state_error"
144 * "422":
145 * $ref: "#/components/responses/invalid_request_error"
146 * "500":
147 * $ref: "#/components/responses/500_error"
148 *
149 */
150