POST   customers

Creates customer.

Remarks

Returns HTTP 201 when created (the Location header must contain URL to the new customer).

Request example and description

curl --request POST "https://api-asm1.apica.io/v3/customers?auth_ticket=C471ADC4-19B4-4219-BBF4-671A97EC653E" --header "Content-Type: application/json" --data-raw "{
  "name": "Apica",
  "contact_email": "support@apica.io",
  "country_code": "SE",
  "enabled": true,
  "subscription": {
    "subscription_type": "Standard",
    "period_from_utc": "2024-09-27T11:18:22",
    "period_to_utc": "2024-09-27T11:18:22",
    "global_check_quota": 1000,
    "alert_sms_quota": 10000,
    "alert_email_quota": 1,
    "enabled": true
  }
}"
NameType Required Description
nameStringYes

Customer name.

contact_emailStringYes

Customer contact email.

country_codeStringNo

Customer country code.

enabledBooleanNo

Customer is enabled.

subscriptionObjectNo

Customer subscription data.

subscription_typeStringNo

The customer's subscription type. Available values: 'Standard', 'PoC', 'Evaluation', 'Trial'

period_from_utcDateTimeYes

Subscription start period.

period_to_utcDateTimeYes

Subscription end period.

global_check_quotaIntegerYes

The checks quota.

alert_sms_quotaIntegerYes

SMS alerts quota.

alert_email_quotaIntegerYes

SMS alerts quota is enabled.

enabledBooleanNo

Subscription is enabled.