/** * @oas [delete] /price-lists/{id}/prices/batch * operationId: "DeletePriceListsPriceListPricesBatch" * summary: "Delete Prices" * description: "Batch delete prices that belong to a Price List" * x-authenticated: true * parameters: * - (path) id=* {string} The ID of the Price List that the Money Amounts (Prices) that will be deleted belongs to. * requestBody: * content: * application/json: * schema: * properties: * price_ids: * description: The price id's of the Money Amounts to delete. * type: array * items: * type: string * x-codeSamples: * - lang: JavaScript * label: JS Client * source: | * import Medusa from "@medusajs/medusa-js" * const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 }) * // must be previously logged in or use api token * medusa.admin.priceLists.deletePrices(price_list_id, { * price_ids: [ * price_id * ] * }) * .then(({ ids, object, deleted }) => { * console.log(ids.length); * }); * - lang: Shell * label: cURL * source: | * curl --location --request DELETE 'https://medusa-url.com/admin/price-lists/{id}/prices/batch' \ * --header 'Authorization: Bearer {api_token}' \ * --header 'Content-Type: application/json' \ * --data-raw '{ * "price_ids": [ * "adasfa" * ] * }' * security: * - api_token: [] * - cookie_auth: [] * tags: * - Price List * responses: * 200: * description: OK * content: * application/json: * schema: * properties: * ids: * type: array * items: * type: string * description: The IDs of the deleted Money Amounts (Prices). * object: * type: string * description: The type of the object that was deleted. * default: money-amount * deleted: * type: boolean * description: Whether or not the items were deleted. * default: true * "400": * $ref: "#/components/responses/400_error" * "401": * $ref: "#/components/responses/unauthorized" * "404": * $ref: "#/components/responses/not_found_error" * "409": * $ref: "#/components/responses/invalid_state_error" * "422": * $ref: "#/components/responses/invalid_request_error" * "500": * $ref: "#/components/responses/500_error" */ declare const _default: (req: any, res: any) => Promise; export default _default; export declare class AdminDeletePriceListPricesPricesReq { price_ids: string[]; }