Update Order Item - Update Order Item
Updates the properties of an existing order item.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems/{orderItemName}?api-version=2021-12-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
order
|
path | True |
string |
The name of the order item |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Request Header
| Name | Required | Type | Description |
|---|---|---|---|
| If-Match |
string |
Defines the If-Match condition. The patch will be performed only if the ETag of the order on the server matches this value. |
Request Body
| Name | Type | Description |
|---|---|---|
| properties.forwardAddress |
Updates forward shipping address and contact details. |
|
| properties.notificationEmailList |
string[] |
Additional notification email list. |
| properties.preferences |
Customer preference. |
|
| tags |
object |
The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Order item resource object. |
|
| 202 Accepted |
Accepted request for order item update. |
|
| Other Status Codes |
Error response describing reason for operation failure. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
UpdateOrderItem
Sample request
PATCH https://management.azure.com/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName3?api-version=2021-12-01
{
"properties": {
"preferences": {
"transportPreferences": {
"preferredShipmentType": "CustomerManaged"
}
}
}
}
Sample response
{
"properties": {
"orderItemDetails": {
"productDetails": {
"displayInfo": {
"productFamilyDisplayName": "Azure Stack Edge",
"configurationDisplayName": "Azure Stack Edge Pro - 1 GPU"
},
"hierarchyInformation": {
"productFamilyName": "azurestackedge",
"productLineName": "azurestackedge",
"productName": "azurestackedgegpu",
"configurationName": "edgep_base"
},
"count": 0,
"productDoubleEncryptionStatus": "Disabled"
},
"orderItemType": "Purchase",
"currentStage": {
"stageStatus": "Succeeded",
"stageName": "Placed",
"startTime": "2022-03-04T11:30:31.5838042+05:30"
},
"orderItemStageHistory": [
{
"stageStatus": "Succeeded",
"stageName": "Placed",
"startTime": "2022-03-04T11:30:31.5838042+05:30"
},
{
"stageStatus": "None",
"stageName": "Confirmed"
},
{
"stageStatus": "None",
"stageName": "ReadyToShip"
},
{
"stageStatus": "None",
"stageName": "Shipped"
},
{
"stageStatus": "None",
"stageName": "Delivered"
},
{
"stageStatus": "None",
"stageName": "InUse"
}
],
"preferences": {
"transportPreferences": {
"preferredShipmentType": "CustomerManaged"
}
},
"notificationEmailList": [],
"cancellationStatus": "Cancellable",
"deletionStatus": "NotAllowed",
"returnStatus": "NotReturnable",
"managementRpDetailsList": [
{
"resourceProviderNamespace": "Microsoft.DataBoxEdge"
}
]
},
"addressDetails": {
"forwardAddress": {
"shippingAddress": {
"streetAddress1": "16 TOWNSEND ST",
"streetAddress2": "UNIT 1",
"city": "San Francisco",
"stateOrProvince": "CA",
"country": "US",
"postalCode": "94107",
"companyName": "Microsoft",
"addressType": "None"
},
"contactDetails": {
"contactName": "XXXX XXXX",
"phone": "0000000000",
"phoneExtension": "",
"emailList": [
"xxxx@xxxx.xxx"
]
},
"addressValidationStatus": "Valid"
}
},
"startTime": "2022-03-04T11:29:47.3483197+05:30",
"orderId": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderName3"
},
"systemData": {
"createdAt": "0001-01-01T05:30:00+05:30",
"lastModifiedAt": "0001-01-01T05:30:00+05:30"
},
"location": "eastus",
"tags": {},
"name": "TestOrderItemName3",
"id": "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.EdgeOrder/orderItems/TestOrderItemName3",
"type": "Microsoft.EdgeOrder/orderItems"
}
Definitions
| Name | Description |
|---|---|
|
Action |
Describes whether the order item is deletable or not. |
|
Address |
Address details for an order item. |
|
Address |
Address Properties |
|
Address |
Type of address. |
|
Address |
Status of address validation |
|
Contact |
Contact Details. |
|
created |
The type of identity that created the resource. |
|
Device |
Device details. |
|
Display |
Describes product display information |
|
Double |
Double encryption status as entered by the customer. It is compulsory to give this parameter if the 'Deny' or 'Disabled' policy is configured. |
|
Encryption |
Preferences related to the double encryption |
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
Forward |
Forward shipment details. |
|
Hierarchy |
Holds details about product hierarchy information |
|
Management |
Management resource preference to link device |
|
Notification |
Notification preference for a job stage. |
|
Notification |
Name of the stage. |
|
Order |
Describes whether the order item is cancellable or not. |
|
Order |
Order item details |
|
Order |
Represents order item contract |
|
Order |
Describes whether the order item is returnable or not. |
|
Order |
Order item type. |
|
Order |
Updates order item parameters. |
| Preferences |
Preferences related to the order |
|
Product |
Represents product details |
|
Resource |
Management RP details |
|
Reverse |
Reverse shipment details. |
|
Shipping |
Shipping address where customer wishes to receive the device. |
|
Stage |
Resource stage details. |
|
Stage |
Stage name |
|
Stage |
Stage status. |
|
system |
Metadata pertaining to creation and last modification of the resource. |
|
Transport |
Preferences related to the shipment logistics of the sku |
|
Transport |
Indicates Shipment Logistics type that the customer preferred. |
ActionStatusEnum
Describes whether the order item is deletable or not.
| Value | Description |
|---|---|
| Allowed |
Allowed flag. |
| NotAllowed |
Not Allowed flag. |
AddressDetails
Address details for an order item.
| Name | Type | Description |
|---|---|---|
| forwardAddress |
Customer address and contact details. It should be address resource |
|
| returnAddress |
Return shipping address |
AddressProperties
Address Properties
| Name | Type | Description |
|---|---|---|
| addressValidationStatus |
Status of address validation |
|
| contactDetails |
Contact details for the address |
|
| shippingAddress |
Shipping details for the address |
AddressType
Type of address.
| Value | Description |
|---|---|
| None |
Address type not known. |
| Residential |
Residential Address. |
| Commercial |
Commercial Address. |
AddressValidationStatus
Status of address validation
| Value | Description |
|---|---|
| Valid |
Address provided is valid. |
| Invalid |
Address provided is invalid or not supported. |
| Ambiguous |
Address provided is ambiguous, please choose one of the alternate addresses returned. |
ContactDetails
Contact Details.
| Name | Type | Description |
|---|---|---|
| contactName |
string |
Contact name of the person. |
| emailList |
string[] |
List of Email-ids to be notified about job progress. |
| mobile |
string |
Mobile number of the contact person. |
| phone |
string |
Phone number of the contact person. |
| phoneExtension |
string |
Phone extension number of the contact person. |
createdByType
The type of identity that created the resource.
| Value | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
DeviceDetails
Device details.
| Name | Type | Description |
|---|---|---|
| managementResourceId |
string |
Management Resource Id |
| managementResourceTenantId |
string |
Management Resource Tenant ID |
| serialNumber |
string |
device serial number |
DisplayInfo
Describes product display information
| Name | Type | Description |
|---|---|---|
| configurationDisplayName |
string |
Configuration display name |
| productFamilyDisplayName |
string |
Product family display name |
DoubleEncryptionStatus
Double encryption status as entered by the customer. It is compulsory to give this parameter if the 'Deny' or 'Disabled' policy is configured.
| Value | Description |
|---|---|
| Disabled |
Double encryption is disabled |
| Enabled |
Double encryption is enabled |
EncryptionPreferences
Preferences related to the double encryption
| Name | Type | Description |
|---|---|---|
| doubleEncryptionStatus |
Double encryption status as entered by the customer. It is compulsory to give this parameter if the 'Deny' or 'Disabled' policy is configured. |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
ForwardShippingDetails
Forward shipment details.
| Name | Type | Description |
|---|---|---|
| carrierDisplayName |
string |
Carrier Name for display purpose. Not to be used for any processing. |
| carrierName |
string |
Name of the carrier. |
| trackingId |
string |
TrackingId of the package |
| trackingUrl |
string |
TrackingUrl of the package. |
HierarchyInformation
Holds details about product hierarchy information
| Name | Type | Description |
|---|---|---|
| configurationName |
string |
Represents configuration name that uniquely identifies configuration |
| productFamilyName |
string |
Represents product family name that uniquely identifies product family |
| productLineName |
string |
Represents product line name that uniquely identifies product line |
| productName |
string |
Represents product name that uniquely identifies product |
ManagementResourcePreferences
Management resource preference to link device
| Name | Type | Description |
|---|---|---|
| preferredManagementResourceId |
string |
Customer preferred Management resource ARM ID |
NotificationPreference
Notification preference for a job stage.
| Name | Type | Description |
|---|---|---|
| sendNotification |
boolean |
Notification is required or not. |
| stageName |
Name of the stage. |
NotificationStageName
Name of the stage.
| Value | Description |
|---|---|
| Shipped |
Notification at order item shipped from microsoft datacenter. |
| Delivered |
Notification at order item delivered to customer. |
OrderItemCancellationEnum
Describes whether the order item is cancellable or not.
| Value | Description |
|---|---|
| Cancellable |
Order item can be cancelled without fee. |
| CancellableWithFee |
Order item can be cancelled with fee. |
| NotCancellable |
Order item not cancellable. |
OrderItemDetails
Order item details
| Name | Type | Description |
|---|---|---|
| cancellationReason |
string |
Cancellation reason. |
| cancellationStatus |
Describes whether the order item is cancellable or not. |
|
| currentStage |
Current Order item Status |
|
| deletionStatus |
Describes whether the order item is deletable or not. |
|
| error |
Top level error for the job. |
|
| forwardShippingDetails |
Forward Package Shipping details |
|
| managementRpDetails |
Parent RP details - this returns only the first or default parent RP from the entire list |
|
| managementRpDetailsList |
List of parent RP details supported for configuration. |
|
| notificationEmailList |
string[] |
Additional notification email list |
| orderItemStageHistory |
Order item status history |
|
| orderItemType |
Order item type. |
|
| preferences |
Customer notification Preferences |
|
| productDetails |
Unique identifier for configuration. |
|
| returnReason |
string |
Return reason. |
| returnStatus |
Describes whether the order item is returnable or not. |
|
| reverseShippingDetails |
Reverse Package Shipping details |
OrderItemResource
Represents order item contract
| Name | Type | Description |
|---|---|---|
| id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| location |
string |
The geo-location where the resource lives |
| name |
string |
The name of the resource |
| properties.addressDetails |
Represents shipping and return address for order item |
|
| properties.orderId |
string |
Id of the order to which order item belongs to |
| properties.orderItemDetails |
Represents order item details. |
|
| properties.startTime |
string (date-time) |
Start time of order item |
| systemData |
Represents resource creation and update time |
|
| tags |
object |
Resource tags. |
| type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
OrderItemReturnEnum
Describes whether the order item is returnable or not.
| Value | Description |
|---|---|
| Returnable |
Order item can be returned without fee. |
| ReturnableWithFee |
Order item can be returned with fee. |
| NotReturnable |
Order item not returnable. |
OrderItemType
Order item type.
| Value | Description |
|---|---|
| Purchase |
Purchase OrderItem. |
| Rental |
Rental OrderItem. |
OrderItemUpdateParameter
Updates order item parameters.
| Name | Type | Description |
|---|---|---|
| properties.forwardAddress |
Updates forward shipping address and contact details. |
|
| properties.notificationEmailList |
string[] |
Additional notification email list. |
| properties.preferences |
Customer preference. |
|
| tags |
object |
The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). |
Preferences
Preferences related to the order
| Name | Type | Description |
|---|---|---|
| encryptionPreferences |
Preferences related to the Encryption. |
|
| managementResourcePreferences |
Preferences related to the Management resource. |
|
| notificationPreferences |
Notification preferences. |
|
| transportPreferences |
Preferences related to the shipment logistics of the order. |
ProductDetails
Represents product details
| Name | Type | Description |
|---|---|---|
| count |
integer (int32) |
Quantity of the product |
| deviceDetails |
list of device details |
|
| displayInfo |
Display details of the product |
|
| hierarchyInformation |
Hierarchy of the product which uniquely identifies the product |
|
| productDoubleEncryptionStatus |
Double encryption status of the configuration. Read-only field. |
ResourceProviderDetails
Management RP details
| Name | Type | Description |
|---|---|---|
| resourceProviderNamespace |
string |
Resource provider namespace |
ReverseShippingDetails
Reverse shipment details.
| Name | Type | Description |
|---|---|---|
| carrierDisplayName |
string |
Carrier Name for display purpose. Not to be used for any processing. |
| carrierName |
string |
Name of the carrier. |
| sasKeyForLabel |
string |
SAS key to download the reverse shipment label of the package. |
| trackingId |
string |
TrackingId of the package |
| trackingUrl |
string |
TrackingUrl of the package. |
ShippingAddress
Shipping address where customer wishes to receive the device.
| Name | Type | Description |
|---|---|---|
| addressType |
Type of address. |
|
| city |
string |
Name of the City. |
| companyName |
string |
Name of the company. |
| country |
string |
Name of the Country. |
| postalCode |
string |
Postal code. |
| stateOrProvince |
string |
Name of the State or Province. |
| streetAddress1 |
string |
Street Address line 1. |
| streetAddress2 |
string |
Street Address line 2. |
| streetAddress3 |
string |
Street Address line 3. |
| zipExtendedCode |
string |
Extended Zip Code. |
StageDetails
Resource stage details.
| Name | Type | Description |
|---|---|---|
| displayName |
string |
Display name of the resource stage. |
| stageName |
Stage name |
|
| stageStatus |
Stage status. |
|
| startTime |
string (date-time) |
Stage start time |
StageName
Stage name
| Value | Description |
|---|---|
| Placed |
Currently in draft mode and can still be cancelled |
| InReview |
Order is currently in draft mode and can still be cancelled |
| Confirmed |
Order is confirmed |
| ReadyToShip |
Order is ready to ship |
| Shipped |
Order is in transit to customer |
| Delivered |
Order is delivered to customer |
| InUse |
Order is in use at customer site |
| ReturnInitiated |
Return has been initiated by customer. |
| ReturnPickedUp |
Order is in transit from customer to microsoft. |
| ReturnedToMicrosoft |
Order has been received back to microsoft. |
| ReturnCompleted |
Return has now completed. |
| Cancelled |
Order has been cancelled. |
StageStatus
Stage status.
| Value | Description |
|---|---|
| None |
No status available yet. |
| InProgress |
Stage is in progress. |
| Succeeded |
Stage has succeeded. |
| Failed |
Stage has failed. |
| Cancelled |
Stage has been cancelled. |
| Cancelling |
Stage is cancelling. |
systemData
Metadata pertaining to creation and last modification of the resource.
| Name | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
| createdBy |
string |
The identity that created the resource. |
| createdByType |
The type of identity that created the resource. |
|
| lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
| lastModifiedBy |
string |
The identity that last modified the resource. |
| lastModifiedByType |
The type of identity that last modified the resource. |
TransportPreferences
Preferences related to the shipment logistics of the sku
| Name | Type | Description |
|---|---|---|
| preferredShipmentType |
Indicates Shipment Logistics type that the customer preferred. |
TransportShipmentTypes
Indicates Shipment Logistics type that the customer preferred.
| Value | Description |
|---|---|
| CustomerManaged |
Shipment Logistics is handled by the customer. |
| MicrosoftManaged |
Shipment Logistics is handled by Microsoft. |