Skip to main content
PUT
/
orders
/
{orderId}
/
address
Update order
curl --request PUT \
  --url https://api.quivo.co/orders/{orderId}/address \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "company": "<string>",
  "phone": "<string>",
  "email": "<string>",
  "street": "<string>",
  "street2": "<string>",
  "zip": "<string>",
  "city": "<string>",
  "state": "<string>",
  "countryIso2": "<string>",
  "latitude": 123,
  "longitude": 123
}
'
This response has no body data.

Path Parameters

orderId
integer<int64>
required

The unique identifier for an order.

Query Parameters

type
enum<string>

The address type. Must be one of: DELIVERY, INVOICE, DELIVERY_AND_INVOICE.

Available options:
DELIVERY,
INVOICE,
DELIVERY_AND_INVOICE

Body

application/json

Complete resource data to update at /orders/{orderId}/address

Request payload for updating the delivery address of an existing order. Contains the new address information and optional address type specification.

name
string

The first and lastname of the recipient.
Either name or company is required.

company
string

Name of the company.
Either name or company is required.

phone
string

Phone number.

email
string

E-Mail address.

street
string

Street (or Address Line 1).
This field is optional only when latitude and longitude coordinates are provided.

street2
string

Street (or Address Line 2).
This field is optional.

zip
string

ZIP Code.
The ZIP code is optional for some countries, but required for most. It is optional when latitude and longitude coordinates are provided.

city
string

City.
This field is optional only when latitude and longitude coordinates are provided.

state
string

State.
This is not required for most countries, but required in some (eg: United States).

countryIso2
string

Country Code.
This field is optional only when latitude and longitude coordinates are provided.

latitude
number<double>

Latitude coordinate for the delivery address. Optional, used for location-based services. For invoice address, it'll be ignored if provided.

longitude
number<double>

Longitude coordinate for the delivery address. Optional, Used for location-based services. For invoice address, it'll be ignored if provided.

Response

Bad request - the request payload is invalid, missing required fields, or contains invalid data.