Pharmacy
Order
Update Order Address

Update Order Address

POST endpoint for /pharmacy/order/update-order-address in pharmacy category

Overview

  • Method: POST
  • Path: /pharmacy/order/update-order-address
  • Tags: pharmacy

Parameters

No parameters required.

Request Body

  • Content Type: application/json
  • Required: Yes
  • Schema: Defined

Responses

200

Successful response

Content Type: application/json

{
  "type": "object",
  "properties": {
    "address": {
      "type": "string"
    },
    "first_name": {
      "type": "string"
    },
    "last_name": {
      "type": "string"
    },
    "address_1": {
      "type": "string"
    },
    "address_2": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "country_code": {
      "type": "string"
    },
    "province": {
      "type": "string"
    },
    "postal_code": {
      "type": "string"
    },
    "phone": {
      "type": "string"
    },
    "company": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "address",
    "first_name",
    "last_name",
    "address_1",
    "city",
    "country_code",
    "postal_code",
    "created_at",
    "updated_at",
    "metadata"
  ]
}

400

Bad Request

Content Type: application/json

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "details": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "details"
  ]
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X POST \
  http://localhost:9000/pharmacy/order/update-order-address \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'

Interactive Testing

You can test this endpoint interactively in the Swagger UI (opens in a new tab).