# Update Bulk Orders Status

This API is used to Updates the status of multiple orders in a single request such as UNFULFILLED, ONHOLD, FULFILLED, or CANCELED, based on business or fulfillment actions. Use this API to apply the same status change to more than one order at once.

Endpoint: PATCH /api/v1/orders/bulk/status
Version: 1.0.0
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer

## Request fields (application/json):

  - `orders` (array, required)
    List of orders whose status needs to be updated.

  - `orders.orderId` (string)
    Unique identifier of the order.
    Example: PBqTYEhO31JY

  - `reason` (string)
    Reason for performing the bulk status update.
    Example: bulk status update

  - `status` (string, required)
    New status to be applied to the specified orders.
    Enum: "UNFULFILLED", "FULFILLED", "ONHOLD", "CANCELED"

## Response 200:

  - `200` (unknown)
    Order status updated successfully.

## Response 200 fields (application/json):

  - `status` (string)
    Current status of the order after update.
    Example: ONHOLD

  - `message` (string)
    Confirmation message describing the outcome.
    Example: Order status updated successfully.

  - `transactionDateTime` (string)
    Timestamp when the transaction took place in ISO 8601 format.
    Example: 2025-07-01T09:59:16.617Z

## Response 400:

  - `400` (unknown)
    Invalid request

## Response 400 fields (application/json):

  - `errorCode` (string)
    Error code(s) that appear due to HTTP  400- Invalid or Bad Request, e.g., validation-error.
    Example: INVALID_REQUEST

  - `errorDescription` (string)
    The HTTP 400 Bad Request response status code indicates that the server cannot process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
    Example: Error decoding request body

  - `additionalCode` (string)
    A unique identifier for the error, for example ILP10010, or ILP10030.
    Example: 0100054

  - `additionalInfo` (string)
    This is an additional information about the error. This error 'Invalid Request' might appear due to invalid data, or if the information is missing.
    Example: Invalid or missing required fields in the request payload

## Response 401:

  - `401` (unknown)
    The request could not be authorized

## Response 401 fields (application/json):

  - `errorCode` (string, required)
    Error code representing the unauthorized access error.
    Example: unauthorized_error

  - `message` (string, required)
    This is HTTP 401 Unauthorized response status code, which indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource.
    Example: Unauthorized access. Valid authentication credentials are required.

  - `additionalInfo` (string)
    Additional information about the unauthorized error.
    Example: Client request lacks valid authentication credentials.

## Response 404:

  - `404` (unknown)
    The requested resource was not found.

## Response 404 fields (application/json):

  - `errors` (array)

  - `errors.errorCode` (string)
    Example: NOT_FOUND

  - `errors.errorDescription` (string)
    Example: order not found

## Response 500:

  - `500` (unknown)
    The request could not be completed due to an internal error

## Response 500 fields (application/json):

  - `errorCode` (string, required)
    Error code representing the internal server error.
    Example: internal_server_error

  - `message` (string, required)
    This is HTTP 500 Internal Server Error response status code, which indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.
    Example: A system error occurred. Please try again later.

  - `additionalInfo` (string)
    Additional information about the server error.
    Example: Unexpected condition occurred on the server while processing the request.

