Pharmacy
Order
Cancel

Cancel Order

Cancel a pharmacy order.

Overview

  • Method: POST
  • Path: /pharmacy/order/cancel/<orderId>
  • Tags: pharmacy

Parameters

orderId (path)

  • Type: string
  • Required: Yes
  • Description: orderId parameter

Request Body

No request body required.

Responses

200

Successful response

Content Type: application/json

{
  "order": "string",
  "display_id": 123,
  "status": "string",
  "canceled_at": "string",
  "created_at": "string",
  "updated_at": "string"
}

400

Bad Request

Content Type: application/json

{
  "error": "string",
  "details": [
    {}
  ]
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X POST \
  https://api.pillexa.com/pharmacy/order/cancel/<orderId> \
  -H "Content-Type: application/json" \