QIMA Logo

Inspection Cancel Booking Guide

Latest Update Time: 2026-07-02 00:00:00

Use the cancel booking API to cancel an existing inspection order. A cancellation reason is required.

See the Inspection Introduction for base URL, authentication, and required headers.

Endpoint

DELETE https://ppapi.qima.com/user/{userId}/inspection/{orderId}

Prerequisites

In addition to the required headers and authentication setup:

Path Parameters

ParameterRequiredDescription
userIdYesQIMA client user login ID.
orderIdYesInspection order ID to cancel.

Query Parameters

ParameterRequiredDescription
reasonYesCancellation reason.
reason_optionsNoAdditional cancellation reason detail.

Request Example

curl --location --request DELETE 'https://ppapi.qima.com/user/<qima-user-id>/inspection/<order-id>?reason=request%20by%20client' \
  --header 'Ai-Api-Access-Token: {your api access token}' \
  --header 'Ai-User-Id: {your user ID}' \
  --header 'Authorization: Bearer {your token}' \
  --header 'Referer: https://preprodmy.qima.com/'

Successful Response

HTTP 200 OK with content: true means the booking was cancelled successfully.

{
    "message": null,
    "content": true
}

Common Errors

See common authentication errors for 401 and 403 responses.

StatusMeaningRecommended Action
500 Internal Server ErrorCancellation failed on the server (e.g. the order can no longer be cancelled).Check orderExtra.cancelable via Get Order Details before retrying; contact QIMA support if the order should be cancelable.

Next Steps

  • Search orders or get order details again to confirm the cancellation was applied.