Customer Mutations
This section documents the GraphQL mutations available for managing customer operations in the YSCP platform. Customer mutations allow you to perform operations related to customer accounts, such as canceling orders.
Available Mutations
The following customer mutations are available:
- CancelCustomerOrderMutation - Cancels a specific order for a logged-in customer
Common Parameters
Most customer mutations require the following parameters:
idornumber: The unique identifier or number of the order to operate oncomment: The reason for the operation (for operations like cancellation)
Authentication
Customer mutations require the user to be authenticated. Attempting to perform customer operations without authentication will result in an error.
Error Handling
Customer mutations may return errors in the following cases:
- Invalid order ID or number
- Order not found
- Unauthorized access to the order
- Invalid operation for the current order state
- Required fields missing
Each error includes a message explaining the issue and how to resolve it.