- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
canDeleteSalesChannelsOrThrowStep - Medusa Core Workflows Reference
This documentation provides a reference to the canDeleteSalesChannelsOrThrowStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that the specified sales channels can be deleted. If any of the sales channels are default sales channels for a store, the step will throw an error.
Example#
Input#
CanDeleteSalesChannelsOrThrowStepInput
CanDeleteSalesChannelsOrThrowStepInputThe data to validate if sales channels can be deleted.
CanDeleteSalesChannelsOrThrowStepInput
CanDeleteSalesChannelsOrThrowStepInputids
string | string[]The IDs of the sales channels to validate.
ids
string | string[]Output#
false & WorkflowDataProperties<false> | true & WorkflowDataProperties<true>
false & WorkflowDataProperties<false> | true & WorkflowDataProperties<true>
false & WorkflowDataProperties<false> | true & WorkflowDataProperties<true>
false & WorkflowDataProperties<false> | true & WorkflowDataProperties<true>false & WorkflowDataProperties<false> | true & WorkflowDataProperties<true>
false & WorkflowDataProperties<false> | true & WorkflowDataProperties<true>
false & WorkflowDataProperties<false> | true & WorkflowDataProperties<true>
false & WorkflowDataProperties<false> | true & WorkflowDataProperties<true>Was this page helpful?