Pharmacy
Order
Update Order Address

Update Order Address

This API allows a customer to update an address associated with a specific order. It ensures that order delivery information is accurate and up to date, and tracks any changes made for transparency.

Overview

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

Use Cases

  • Update shipping or billing addresses for an order.
  • Maintain accurate delivery information to prevent shipping errors.
  • Log changes to keep a record of updates made by the customer.

Parameters

No parameters required.

Request Body

  • Content Type: application/json
  • Required: Yes

Fields

FieldTypeRequiredDetails
addressstringYes
last_namestringYes
address_1stringYes
address_2stringNomaxLength: 200
citystringYes
country_codestringYes
provincestringNomaxLength: 100
postal_codestringYes
phonestringYes
companystringNomaxLength: 100
metadatarecord<string, object>Yes

Responses

200

Successful response

Content Type: application/json

{
  "address": "string",
  "first_name": "string",
  "last_name": "string",
  "address_1": "string",
  "address_2": "string",
  "city": "string",
  "country_code": "string",
  "province": "string",
  "postal_code": "string",
  "phone": "string",
  "company": "string",
  "created_at": "2024-01-01T00:00:00.000Z",
  "updated_at": "2024-01-01T00:00:00.000Z",
  "metadata": {
    "key": {}
  }
}

400

Bad Request

Content Type: application/json

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

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X PUT \
  https://api.pillexa.com/pharmacy/order/update-order-address \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'