Create customer account

Before placing an order, a reseller needs to create a customer account by using the Create Customer Account API:

Endpoint
Method
/v3/customers
POST

The API returns the customer resource with a link to the Get Customer Account Details endpoint.

Usage instructions

Ensure that you are aware of the following before creating a customer account:

Request header

Parameter
Description
X-Request-Id
A unique identifier for the call. The value should be reset for every single request. If this is not provided, then a request ID will be automatically generated. Using a duplicate request ID may return an error.
X-Correlation-Id
Required. A unique identifier for the call. This is to ensure idempotency. In the case of a timeout, the retry call could include the same value. Upon receiving some response, the value should be reset for the next call.
Accept
Required. Specifies the response type. Must be "application/json" for proper usage.
Content-Type
Required. Specifies the request type. Must be "application/json" for proper usage.
Authorization
Required. Authorization token in the form Bearer <token>
X-Api-Key
Required. The API Key for your integration

Note: For details of the request and response parameters, see Request and response parameters.

Request Body

Customer resource without read-only fields:

{
  "resellerId": "5556667778",
  "externalReferenceId": "342",
  "companyProfile": {
    "companyName": "Fairmont",
    "preferredLanguage": "en-US",
    "marketSegment": "EDU",
    "address": {
      "country": "US",
      "region": "CA",
      "city": "San Jose",
      "addressLine1": "200 Fairmont Ave",
      "addressLine2": "Apt 123",
      "postalCode": "95110-1234",
      "phoneNumber": "800-123-4567"
    },
    "contacts": [
      {
        "firstName": "Donald",
        "lastName": "Duck",
        "email": "donald@duck.com",
        "phoneNumber": "408-123-4567"
      }
    ]
  }
}

Response body

{
  "externalReferenceId": "342",
  "customerId": "9876543210",
  "resellerId": "5556667778",
  "globalSalesEnabled": false,
  "companyProfile": {
    "companyName": "Fairmont",
    "preferredLanguage": "en-US",
    "marketSegment": "EDU",
    "address": {
      "country": "US",
      "region": "CA",
      "city": "San Jose",
      "addressLine1": "200 Fairmont Ave",
      "addressLine2": "Apt 123",
      "postalCode": "95110-1234",
      "phoneNumber": "800-123-4567"
    },
    "contacts": [
      {
        "firstName": "Donald",
        "lastName": "Duck",
        "email": "donald@duck.com",
        "phoneNumber": "408-123-4567"
      }
    ]
  },
  "discounts": [
    {
      "offerType": "LICENSE",
      "level": "02"
    }
  ],
  "cotermDate": "",
  "creationDate": "2019-05-02T22:49:52Z",
  "status": "1002",
  "links": {
    "self": {
      "uri": "/v3/customers/9876543210",
      "method": "GET",
      "headers": []
    }
  }
}

Request and response parameters

Customer (top-level resource)

Property
Type
Description
Range/Limits
externalReferenceId
String <br />Optional
Marketplace’s ID for customer. ID does not need to be unique.
Max: 35 characters
customerId (read only)
String
Unique ID for customer created upon account creation
Max: 40 characters
resellerId
String
ID of reseller tied to customer
Max: 40 characters
globalSalesEnabled
String
Global status of a customer
Max: 40 characters
tags
String
Special label on thhe customer. Example: HVD_MIGRATED_CUSTOMER
Max: 40 characters
linkedMembership
linkedMembership resource
Information about the linked membership
companyProfile
CompanyProfile resource
Information about the customer
discounts
discounts resource
Details of the discount applicable to the customer, including the discount level.
benefits
benefits resource
Details of the benefits applied to the customer account and its corresponding status. For example, the type parameter indicates LARGE_GOVERNMENT_AGENCY if the customer is an LGA customer.
cotermDate (read only)
String (date)
Date that renewal order is to be placed. Should be one year after the first order is provisioned (if a 1-yr term) and gets updated upon each renewal order.
10 characters
creationDate (read only)
String (datetime)
Date and time of account creation in UTC
status (read only)
String
Status code of customer account
4 characters
links (read only)
Links resource
Deep links to get customer account details

For more details, refer to Resources and fields.

HTTP status codes

Status code
Description
201
Customer account created
400
Bad request
401
Invalid Authorization token
403
Invalid API Key
404
Invalid reseller ID