Performs persist operations for a specified order address
Performs persist operations for a specified order address.
Body
-
Order address interface. An order is a document that a web store issues to a customer. Magento generates a sales order that lists the product items, billing and shipping addresses, and shipping and payment methods. A corresponding external document, known as a purchase order, is emailed to the customer.
PUT /V1/orders/{parent_id}
curl \
-X PUT https://magento2.winkelstraat.mac/rest/all/V1/orders/{parent_id} \
-d '{"entity":{"address_type":"string","city":"string","company":"string","country_id":"string","customer_address_id":42,"customer_id":42,"email":"string","entity_id":42,"fax":"string","firstname":"string","lastname":"string","middlename":"string","parent_id":42,"postcode":"string","prefix":"string","region":"string","region_code":"string","region_id":42,"street":["string"],"suffix":"string","telephone":"string","vat_id":"string","vat_is_valid":42,"vat_request_date":"string","vat_request_id":"string","vat_request_success":42,"extension_attributes":{}}}'
Request examples
{
"entity": {
"address_type": "string",
"city": "string",
"company": "string",
"country_id": "string",
"customer_address_id": 42,
"customer_id": 42,
"email": "string",
"entity_id": 42,
"fax": "string",
"firstname": "string",
"lastname": "string",
"middlename": "string",
"parent_id": 42,
"postcode": "string",
"prefix": "string",
"region": "string",
"region_code": "string",
"region_id": 42,
"street": [
"string"
],
"suffix": "string",
"telephone": "string",
"vat_id": "string",
"vat_is_valid": 42,
"vat_request_date": "string",
"vat_request_id": "string",
"vat_request_success": 42,
"extension_attributes": {}
}
}
Response examples (200)
{
"address_type": "string",
"city": "string",
"company": "string",
"country_id": "string",
"customer_address_id": 42,
"customer_id": 42,
"email": "string",
"entity_id": 42,
"fax": "string",
"firstname": "string",
"lastname": "string",
"middlename": "string",
"parent_id": 42,
"postcode": "string",
"prefix": "string",
"region": "string",
"region_code": "string",
"region_id": 42,
"street": [
"string"
],
"suffix": "string",
"telephone": "string",
"vat_id": "string",
"vat_is_valid": 42,
"vat_request_date": "string",
"vat_request_id": "string",
"vat_request_success": 42,
"extension_attributes": {}
}
Response examples (401)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}