---
title: "Delete an order"
method: GET
path: "/Market/cancel_pending_ssl_certificate"
tags: ["Market", "SSL Certificates"]
---

# Delete an order

`GET /Market/cancel_pending_ssl_certificate`

This function cancels an order and removes the polling for a pending certificate.

## Query parameters

- `order_item_id` string, required
- `provider` string, required

## Response `200`

HTTP Request was successful.

- object
  - `apiversion` integer — The version of the API.
  - `func` string — The name of the method called.
  - `module` string — The name of the module called.
  - `result` object
    - `data` object[] — An object containing order information.
      - `created_time` integer — When the system created the order.
      - `csr` string, base64 certificate — The text of the Certificate Request (CSR).
      - `domains` string[] — A list of domains on the certificate.
      - `expired` 0 | 1 — Whether the system has deleted the item from the pending queue. * `1` - Deleted. * `0` - **Not** deleted.
      - `first_poll_time` integer — The first time that the system polled the provider for the certificate.
      - `last_poll_time` integer — The last time that the system polled the provider for the certificate.
      - `last_status_code` 'CertificateNotFound' | 'RequiresApproval' | 'OrderCanceled' | 'OrderItemCanceled' — The last status code of the order. * `CertificateNotFound` - The system cannot locate the specified certificate. * `RequiresApproval` - The specified certificate requires approval. * `OrderCanceled` - The system cancelled the order of the specified certificate. * `OrderItemCanceled` - The system cancelled the order item of the specified certificate.
      - `order_id` string — The ID of the order.
      - `order_item_id` string — The ID of the ordered item.
      - `product_id` string — The product's ID.
      - `provider` string — The cPanel Market provider's name.
      - `status` 'confirmed' | 'unconfirmed' — The status of the order. * `confirmed` - Payment confirmed. * `unconfirmed` - Payment **not** confirmed.
      - `support_uri` string, uri — The URI of the cPanel Market Provider's support site.
      - `vhost_names` string[] — A list of virtual host names.
    - `errors` string[], nullable — List of errors if the API failed.
    - `messages` string[], nullable — List of messages generated by the API.
    - `metadata` object
      - `transformed` 1 — Post-processing may have transformed the data.
    - `status` 0 | 1 — * `1` - Success * `0` - Failed: Check the errors field for more details.
    - `warnings` string[], nullable — List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running an API.

---

[API](https://skmtc.net/cpanel/apis/cpanel-uapi.md) · [All operations](https://skmtc.net/cpanel/apis/cpanel-uapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/cpanel-uapi/revisions/632e2f8e6d04/schema)
