BuyServiceMicrosoft365Request
ID of the Service to buy
Possible values: >= 1
Number of seats (user licenses) to purchase. It must be between quantity_min and quantity_max of the chosen service, as listed by GET /api/v3/shop/microsoft-365/services. If omitted, quantity_min is used. Ignored for the services without quantity_max.
Possible values: >= 1
ID of the account of the user that will be the owner of the purchase (available to Resellers only)
data objectrequired
Microsoft 365 tenant of the subscription. All the data is checked before the order is created: with "select" the tenant must be one of the account (409 if it already has 2 active subscriptions of the same service); with "transfer" and "new" no tenant can have the domain prefix already, and at Microsoft the ".onmicrosoft.com" domain must exist ("transfer") or be available ("new"), otherwise 409. Send only the fields of the chosen option.
Select whether to choose an existing tenant ("select"), transfer one ("transfer") or create a new tenant ("new"). When transferring a tenant, approve the Microsoft Partner Relationship before sending API requests
Possible values: [select, transfer, new]
ID of the tenant to which to assign the subscription, as listed by GET /api/v3/shop/microsoft-365/tenants. Required with "select", not allowed otherwise
Possible values: >= 1
Prefix of the ".onmicrosoft.com" tenant domain: lowercase letters and digits, at most 27 characters. Required with "transfer" and "new", not allowed otherwise
Possible values: Value must match regular expression ^[a-z0-9]{1,27}$
mycompanyContact first name for the tenant: letters, spaces and hyphens. Required with "transfer" and "new", not allowed otherwise
Possible values: Value must match regular expression ^[\p{L}\s\-]+$
MarioContact last name for the tenant: letters, spaces and hyphens. Required with "transfer" and "new", not allowed otherwise
Possible values: Value must match regular expression ^[\p{L}\s\-]+$
RossiCompany name for the tenant: letters, digits and spaces. Required with "transfer" and "new", not allowed otherwise
Possible values: Value must match regular expression ^[\p{L}0-9\s]+$
Rossi SrlAddress for the tenant. Required with "transfer" and "new", not allowed otherwise
Possible values: non-empty
Via Roma 1City for the tenant address: letters, spaces and hyphens. Required with "transfer" and "new", not allowed otherwise
Possible values: Value must match regular expression ^[\p{L}\s\-]+$
VicenzaState/Province for the tenant address: letters, spaces and hyphens. Required with "transfer" and "new", not allowed otherwise
Possible values: >= 3 characters, Value must match regular expression ^[\p{L}\s\-]+$
VicenzaPostal code for the tenant address: letters, digits and spaces. Required with "transfer" and "new", not allowed otherwise
Possible values: Value must match regular expression ^[a-zA-Z0-9\s]+$
36100ISO country code with 2 letters (e.g. "IT" or "ES"). Required with "transfer" and "new", not allowed otherwise
Possible values: Value must match regular expression ^[\p{L}\s\-]+$
ITAdministrative email address for the tenant. Required with "transfer" and "new", not allowed otherwise
International phone prefix of a country, with the leading "+" sign (e.g. "+44" for UK or "+39" for Italy). Required with "transfer" and "new", not allowed otherwise
+39Phone number for the tenant contact: from 3 to 25 digits, spaces, dots, hyphens and parentheses. Required with "transfer" and "new", not allowed otherwise
Possible values: Value must match regular expression ^[\d() .-]{3,25}$
0444 123456Locale to use for the tenant. Required with "transfer" and "new", not allowed otherwise
Possible values: [it_IT, en_US, en_GB]
{
"service_id": 0,
"quantity": 0,
"account_id": 0,
"data": {
"tenant_choice": "select",
"tenant_select": 0,
"domain_prefix": "mycompany",
"first_name": "Mario",
"last_name": "Rossi",
"company_name": "Rossi Srl",
"address": "Via Roma 1",
"city": "Vicenza",
"state": "Vicenza",
"postal_code": "36100",
"country": "IT",
"phone_prefix": "+39",
"phone_number": "0444 123456",
"locale": "it_IT"
}
}