PUT /V1/orders/:parent_id
PUT /V1/orders/:parent_id is a Magento 2 REST endpoint in the Sales module. Performs persist operations for a specified order address. Requires an admin Bearer token with ACL Magento_Sales::create.
Last verified: against Magento 2.4.9.
Returns
Magento\Sales\Api\Data\OrderAddressInterface
Order address interface.
Service contract
Magento\Sales\Api\OrderAddressRepositoryInterface::save
Authorization
Admin Bearer token with ACL:
- Magento_Sales::create
Body parameters
The order address.
Example request
Auto-generated from the service contract — paste-ready against your store's /rest/default base. Replace the host, store code, ACL token, and any required values before running.
Headers
Path
/V1/orders/:parent_idBody
{
"entity": {
"address_type": "",
"city": "",
"company": "",
"country_id": "",
"customer_address_id": 0,
"customer_id": 0,
"email": "",
"entity_id": 0,
"extension_attributes": {},
"fax": "",
"firstname": "",
"lastname": "",
"middlename": "",
"parent_id": 0,
"postcode": "",
"prefix": "",
"region": "",
"region_code": "",
"region_id": 0,
"street": [
{}
],
"suffix": "",
"telephone": "",
"vat_id": "",
"vat_is_valid": 0,
"vat_request_date": "",
"vat_request_id": "",
"vat_request_success": 0
}
}Related in Sales
Other endpoints shipped by the same module.
/V1/creditmemo
Performs persist operations for a specified credit memo.
Sales · Magento\Sales\Api\CreditmemoRepositoryInterface::save
/V1/creditmemo/:id
Loads a specified credit memo.
Sales · Magento\Sales\Api\CreditmemoRepositoryInterface::get
/V1/creditmemo/:id
Cancels a specified credit memo.
Sales · Magento\Sales\Api\CreditmemoManagementInterface::cancel
/V1/creditmemo/:id/comments
Lists comments for a specified credit memo.
Sales · Magento\Sales\Api\CreditmemoManagementInterface::getCommentsList
/V1/creditmemo/:id/comments
Performs persist operations for a specified entity.
Sales · Magento\Sales\Api\CreditmemoCommentRepositoryInterface::save
/V1/creditmemo/:id/emails
Emails a user a specified credit memo.
Sales · Magento\Sales\Api\CreditmemoManagementInterface::notify
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.