POST api/Order/UpdateShippingAddress
Cambia la dirección de envío de un pedido aún no facturado (integración ECXA). Valida ownership (el pedido debe pertenecer al customerId) y el estado del pedido.
Request Information
URI Parameters
None.
Body Parameters
Pedido (internalNumber), cliente (customerId) y nueva dirección.
UpdateShippingAddressViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| InternalNumber | integer |
Range: inclusive between 1 and 2147483647 |
|
| CustomerId | integer |
Range: inclusive between 1 and 9223372036854775807 |
|
| Address | ShippingAddressViewModel |
Required |
Request Formats
application/json, text/json
Sample:
{
"InternalNumber": 1,
"CustomerId": 2,
"Address": {
"Street": "sample string 1",
"Number": "sample string 2",
"City": "sample string 3",
"State": "sample string 4",
"PostalCode": "sample string 5",
"Country": "sample string 6",
"Notes": "sample string 7"
}
}
application/xml, text/xml
Sample:
<UpdateShippingAddressViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tempo.Core.WebAPI.ViewModels.Trading.Order">
<Address>
<City>sample string 3</City>
<Country>sample string 6</Country>
<Notes>sample string 7</Notes>
<Number>sample string 2</Number>
<PostalCode>sample string 5</PostalCode>
<State>sample string 4</State>
<Street>sample string 1</Street>
</Address>
<CustomerId>2</CustomerId>
<InternalNumber>1</InternalNumber>
</UpdateShippingAddressViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
200 con la confirmación del cambio; o un error estructurado { error: { code, message } } con el HTTP status correspondiente (404, 409, 422, 500).
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.