orderApprovalRuleDelete
Deprecated: Use orderApprovalRuleStatusUpdate with INACTIVE, which is what this does.
Deactivate an order approval rule; a rule is never removed
Arguments
| Argument | Type | Description |
|---|---|---|
businessUnitId | ID! | |
id | ID! | |
version | String | Expected optimistic-concurrency token, to fail the write if the rule changed meanwhile. Omit to deactivate the current version; engines without versioning ignore it. |
Returns
| Field | Type | Description |
|---|---|---|
orderApprovalRule | OrderApprovalRule | The created or updated rule |
orderApprovalRuleErrors | [OrderApprovalRuleError!] | Error details if the operation failed |
Example
mutation OrderApprovalRuleDelete( $businessUnitId: ID! $id: ID! $version: String) { orderApprovalRuleDelete( businessUnitId: $businessUnitId id: $id version: $version ) { orderApprovalRule { id version key name description status conditionEditable predicate requesterRoleKeys } orderApprovalRuleErrors { __typename ... on ValidationError { message } } }}{ "businessUnitId": "id-1", "id": "id-1", "version": "Example"}{ "data": { "orderApprovalRuleDelete": { "orderApprovalRule": { "id": "id-1", "version": "Example", "key": "Example", "name": "Example", "description": "Example", "status": "ACTIVE", "conditionEditable": true, "predicate": "Example", "requesterRoleKeys": [ "Example" ] }, "orderApprovalRuleErrors": [ { "__typename": "ValidationError", "message": "Example" } ] } }}The query selects the return type's fields two levels deep; pick the ones you need. The response shows its shape with placeholder values.
Served by
| @evolve-framework/commercetools | Resolved |
| @evolve-framework/medusa | Stub: answers Not implemented |
| @evolve-framework/sfcc | Resolved |

