Skip to main content
Version: 1.0.0

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:

Common Parameters

Most customer mutations require the following parameters:

  • id or number: The unique identifier or number of the order to operate on
  • comment: 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.