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
| Field | Type | Required | Details |
|---|---|---|---|
| address | string | Yes | |
| last_name | string | Yes | |
| address_1 | string | Yes | |
| address_2 | string | No | maxLength: 200 |
| city | string | Yes | |
| country_code | string | Yes | |
| province | string | No | maxLength: 100 |
| postal_code | string | Yes | |
| phone | string | Yes | |
| company | string | No | maxLength: 100 |
| metadata | record<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"}'