Add provider instance to customer.
Available to the roles: csp, reseller
Headers
-
The domain used to access the portal.
-
X-Correlation-Id string(UUID)
This header is optional and by setting it you can correlate the audit logs made by this request.
Path parameters
-
The customer id.
Query parameters
-
resellerId string(uuid)
The id of the reseller. Should not be passed if a reseller performs the request. A CSP can set the id of a reseller to add a provider instance between that reseller and a customer.
Body
The request with the information of the provider instance to add to the customer.
-
The GUID identifier for the provider instance.
-
The provider specific data for this customer. For a microsoft provider instance the json object needs the following properties:
- Domain (Example: TestDomain)
- CredentialsEmail (Example: test@email.com)
- AcceptedMCA (Example: true)
- AgreementDate (Example: 2022-12-28T00:00:00Z)
- KeepPrimaryInformation (Example: true)
- FirstName (Example: Test)
- LastName (Example: Test)
- Email (Example: test@email.com)
- Phone (Example: 921231231)
- DefaultCulture (Example: en-US)
- Language (Example: en)
- AssociatedPartnerId (Example: 6234552)
- Qualifications (Example: [])
- EnableGDAP (Example: true)
-
This value object contains the price margin for this entity.
Additional properties are NOT allowed.
-
offerTypeMargins object | null
Contains as key the name of the offer type and as value the price margin applied to each offer type for this specific provider instance. Price margins applied at the offer type level will override the price margin applied at the provider instance level. If no price margin is applied to a specific offer type of this provider instance then it will not be in the dictionary. This dictionary is optional.
curl \
-X POST https://app-cloudcockpitapi-prod-01.azurewebsites.net/v1/Customers/{customerId}/provider-instances \
-H "Content-Type: application/json" \
-H "X-Tenant: portal.cloudcockpit.com" \
-H "Authorization: Bearer eyJ0eXAiO..." \
-H "X-Correlation-Id: string" \
-d '{"providerInstanceId":"string","providerCustomerData":"string","margin":{"marginRule":{}},"offerTypeMargins":{"Value":{"license":{"Value":10,"MarginRule":{"Name":"markup"}}}}}'
# Headers
X-Tenant: portal.cloudcockpit.com
Authorization: Bearer eyJ0eXAiO...
X-Correlation-Id: string
# Payload
{
"providerInstanceId": "string",
"providerCustomerData": "string",
"margin": {
"marginRule": {}
},
"offerTypeMargins": {
"Value": {
"license": {
"Value": 10,
"MarginRule": {
"Name": "markup"
}
}
}
}
}
string
string
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}