Create a Reseller
Creates a new Reseller with the provided ResellerViewModel. Available to the roles: csp
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.
Body
The reseller info to create the reseller.
-
id string(uuid)
The reseller Id.
-
The name of the company associated to the reseller. This may be up to 255 characters.
-
The company country. Must be in standard iso 3166-1 alpha 2.
-
The company address line 1. This may be up to 255 characters.
-
addressLine2 string | null
The company address line 2. This may be up to 255 characters.
-
The company city. This may be up to 255 characters.
-
The company state. This may be up to 255 characters.
-
The company ZIP. Should be a valid zip according to the company country. This may be up to 30 characters.
-
The company primary contact first name. This may be up to 255 characters.
-
The company primary contact last name. This may be up to 255 characters.
-
The company primary contact email. This may be up to 255 characters.
-
The company primary contact phone. Should be a valid phone according to the company country. This may be up to 30 characters.
-
internalIdentifier string | null
The company internal identifier. This may be up to 255 characters.
-
taxId string | null
The tax id of the company. This may be up to 255 characters.
-
The provider resellers. A list containing the info about this reseller in one or more provider instances.
-
customDomain object
Additional properties are NOT allowed.
curl \
-X POST https://app-cloudcockpitapi-prod-01.azurewebsites.net/v1/Resellers \
-H "Content-Type: application/json" \
-H "X-Tenant: portal.cloudcockpit.com" \
-H "Authorization: Bearer eyJ0eXAiO..." \
-H "X-Correlation-Id: string" \
-d '{"id":"string","companyName":"string","country":"string","addressLine1":"string","addressLine2":"string","city":"string","state":"string","zipCode":"string","firstName":"string","lastName":"string","email":"string","phone":"string","internalIdentifier":"string","taxId":"string","providerResellers":[{"priceMargin":{"value":8,"marginRule":{"name":"markup"}},"offerTypeMargins":{"Value":{"license":{"Value":10,"MarginRule":{"Name":"markup"}}}},"providerInstanceId":"cb3cd15b-1d6e-45be-b493-c71549cbfd87","providerResellerId":"968bd16f-7eca-494d-b29f-440b9ef5cf5d","resellerProviderData":"{\"indirectResellerId\" : \"f94f06fd-dc98-47fb-bd49-63bc98bd87f2\",\"secondaryMpnIds\": [ \"123456\", \"654321\"]}"}],"customDomain":{"customDomain":"string","status":{}}}'
# Headers
X-Tenant: portal.cloudcockpit.com
Authorization: Bearer eyJ0eXAiO...
X-Correlation-Id: string
# Payload
{
"id": "string",
"companyName": "string",
"country": "string",
"addressLine1": "string",
"addressLine2": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"phone": "string",
"internalIdentifier": "string",
"taxId": "string",
"providerResellers": [
{
"priceMargin": {
"value": 8,
"marginRule": {
"name": "markup"
}
},
"offerTypeMargins": {
"Value": {
"license": {
"Value": 10,
"MarginRule": {
"Name": "markup"
}
}
}
},
"providerInstanceId": "cb3cd15b-1d6e-45be-b493-c71549cbfd87",
"providerResellerId": "968bd16f-7eca-494d-b29f-440b9ef5cf5d",
"resellerProviderData": "{\"indirectResellerId\" : \"f94f06fd-dc98-47fb-bd49-63bc98bd87f2\",\"secondaryMpnIds\": [ \"123456\", \"654321\"]}"
}
],
"customDomain": {
"customDomain": "string",
"status": {}
}
}
string
string
{
"resellerId": "string"
}
{
"resellerId": "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"
]
}
]
}