Create Biz partner contact

POST/biz-partners/{id}/contacts

Create Biz partner contact.

Privileges: biz-core.manage

Audit event:

  • biz.core.v2.biz.partner.contact.post

Errors:

  • BIZ_CORE:BIZ_PARTNER_NOT_FOUND - Biz partner not found.
  • SECTION_CODE_NAME_NOT_SUPPORTED - Section code name not supported.
  • BIZ_CORE:PARTNER_CONTACT_NOTFOUND - Partner contact not found.

Validation errors:

  • BIZ_CORE:FIRST_NAME_MUST_BE_PROVIDED - biz partner contact first name must be provided
  • BIZ_CORE:FIRST_NAME_CANNOT_BE_LONGER_THAN_30_CHARACTERS - biz partner contact first name cannot be longer than 30 characters
  • BIZ_CORE:LAST_NAME_MUST_BE_PROVIDED - biz partner contact last name must be provided
  • BIZ_CORE:LAST_NAME_CANNOT_BE_LONGER_THAN_50_CHARACTERS - biz partner contact last name cannot be longer than 50 characters
  • BIZ_CORE:NICK_NAME_CANNOT_BE_LONGER_THAN_30_CHARACTERS - biz partner contact nick name cannot be longer than 30 characters
  • BIZ_CORE:PARTNER_CONTACT_SALUTATION_NOT_SUPPORTED - Salutation of the Biz partner contact is not supported.
  • BIZ_CORE:TITEL_CANNOT_BE_LONGER_THAN_60_CHARACTERS - biz partner contact titel cannot be longer than 60 characters
  • BIZ_CORE:PARTNER_CONTACT_GENDER_NOT_SUPPORTED - Gender of the Biz partner contact is not supported.
  • BIZ_CORE:LANGUAGE_MUST_BE_2_CHARACTERS_LONG - Language must be 2 characters long.
  • BIZ_CORE:PARTNER_CONTACT_E_MAIL_BUSINESS_OUT_OF_LIMIT - Email business of the biz partner contact cannot be longer than 255 characters.
  • BIZ_CORE:PARTNER_CONTACT_E_MAIL_BUSINESS_NOT_VALID - Email business of the biz partner contact is not valid.
  • BIZ_CORE:PARTNER_CONTACT_E_MAIL_PRIVATE_OUT_OF_LIMIT - Email private of the biz partner contact cannot be longer than 255 characters.
  • BIZ_CORE:PARTNER_CONTACT_E_MAIL_PRIVATE_NOT_VALID - Email private of the biz partner contact is not valid.
  • BIZ_CORE:PARTNER_CONTACT_PHONE_OFFICE_DIRECT_OUT_OF_LIMIT - Phone office direct of the biz partner contact cannot be longer than 30 characters.
  • BIZ_CORE:PARTNER_CONTACT_PHONE_OFFICE_DIRECT_NOT_VALID -
  • BIZ_CORE:PARTNER_CONTACT_PHONE_OFFICE_CENTRAL_OUT_OF_LIMIT - Phone office central of the biz partner contact cannot be longer than 30 characters.
  • BIZ_CORE:PARTNER_CONTACT_PHONE_OFFICE_CENTRAL_NOT_VALID -
  • BIZ_CORE:PARTNER_CONTACT_MOBILE_OUT_OF_LIMIT - Mobile of the biz partner contact cannot be longer than 30 characters.
  • BIZ_CORE:PARTNER_CONTACT_MOBILE_NOT_VALID -
  • BIZ_CORE:PARTNER_CONTACT_MOBILE_BUSINESS_OUT_OF_LIMIT - Mobile business of the biz partner contact cannot be longer than 30 characters.
  • BIZ_CORE:PARTNER_CONTACT_MOBILE_BUSINESS_NOT_VALID -
  • BIZ_CORE:PARTNER_CONTACT_SKYPE_OUT_OF_LIMIT - Skype of the biz partner contact cannot be longer than 30 characters.
  • BIZ_CORE:PARTNER_PARTNER_BIRTHDAY_IS_NOT_VALID - Birthday of the biz partner contact is not valid.
  • BIZ_CORE:CONTACT_TYPE_ID_NOT_VALID - Contact type id is not valid.
  • BIZ_CORE:PARTNER_CONTACT_TYPE_NOT_FOUND - Partner contact type not found.
  • BIZ_CORE:PARTNER_CONTACT_CUSTOM_TYPE_NAME_OUT_OF_LIMIT - Custom type name of the biz partner contact cannot be longer than 30 characters.
  • BIZ_CORE:DEPARTMENT_ID_NOT_VALID - Department id is not valid.
  • BIZ_CORE:_PARTNER_DEPARTMENT_NOT_FOUND - Department of the biz partner contact not found.
  • BIZ_CORE:POSITION_ID_NOT_VALID - Position id is not valid.
  • BIZ_CORE:PARTNER_POSITION_NOT_FOUND - Position of the biz partner contact not found.
  • BIZ_CORE:PARTNER_CONTACT_CUSTOM_POSITION_NAME_OUT_OF_LIMIT - Custom position name of the biz partner contact cannot be longer than 50 characters.
  • BIZ_CORE:PARTNER_CONTACT_FAX_OUT_OF_LIMIT - Fax of the biz partner contact cannot be longer than 30 characters.
  • BIZ_CORE:PARTNER_CONTACT_FAX_NOT_VALID -
  • BIZ_CORE:PARTNER_CONTACT_ADDRESS_OUT_OF_LIMIT - Address of the biz partner contact cannot be longer than 150 characters.
  • BIZ_CORE:PARTNER_CONTACT_POSTAL_CODE_OUT_OF_LIMIT - Postal code of the biz partner contact cannot be longer than 20 characters.
  • BIZ_CORE:PARTNER_CONTACT_CITY_OUT_OF_LIMIT - City of the biz partner contact cannot be longer than 100 characters.
  • BIZ_CORE:COUNTRY_ID_NOT_VALID - Country id is not valid.
  • BIZ_CORE:PARTNER_COUNTRY_NOT_FOUND - Country of the biz partner contact not found.
  • BIZ_CORE:ATTRIBUTE_VALUE_CANNOT_BE_LONGER_THAN_255_CHARACTERS - Attribute value cannot be longer than 255 characters.
  • BIZ_CORE:CUSTOM_ATTR_NAME_CANNOT_BE_LONGER_THAN_50_CHARACTERS - Custom attr name cannot be longer than 50 characters.
  • BIZ_CORE:ATTRIBUTE_FOR_GIVEN_ID_NOT_FOUND - Attribute for given id not found.
Base URL
https://api-cpaas.sms.es/biz-core/v2
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Path parameters

idintegerrequired

id.

Body

application/json
addressstring
birthdaystring (date)
citystring
contactTypeIdinteger
countryIdinteger
customPositionNamestring
customTypeNamestring
departmentIdinteger
eMailBusinessstring
eMailPrivatestring
extraAttributesobject
Show child attributes
dataobject[]
Show child attributes
attributeIdinteger
attributeValuestring
customAttrNamestring
faxstring
firstNamestring
genderstring
languagestring
lastNamestring
mobilestring
mobileBusinessstring
nickNamestring
phoneOfficeCentralstring
phoneOfficeDirectstring
positionIdinteger
postalCodestring
salutationstring
skypestring
titelstring

Request example

cURL · cURL
curl -L -X POST "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{id}/contacts" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>" \
  --data-raw '{
  "address": "string",
  "birthday": "2026-01-01",
  "city": "string",
  "contactTypeId": 0,
  "countryId": 0,
  "customPositionName": "string",
  "customTypeName": "string",
  "departmentId": 0,
  "eMailBusiness": "string",
  "eMailPrivate": "string",
  "extraAttributes": {
    "data": [
      {
        "attributeId": 0,
        "attributeValue": "string",
        "customAttrName": "string"
      }
    ]
  },
  "fax": "string",
  "firstName": "string",
  "gender": "string",
  "language": "string",
  "lastName": "string",
  "mobile": "string",
  "mobileBusiness": "string",
  "nickName": "string",
  "phoneOfficeCentral": "string",
  "phoneOfficeDirect": "string",
  "positionId": 0,
  "postalCode": "string",
  "salutation": "string",
  "skype": "string",
  "titel": "string"
}'

Responses

Biz partner contact created successfully

application/json
addressstring
addressIdinteger
birthdaystring (date)
bizPartnerIdinteger
citystring
contactTypeIdinteger
contactTypeNamestring
countryIdinteger
countryNamestring
customPositionNamestring
customTypeNamestring
departmentIdinteger
departmentNamestring
eMailBusinessstring
eMailPrivatestring
extraAttributesobject
Show child attributes
dataobject[]
Show child attributes
attributeCodeNamestring
attributeIdinteger
attributeNamestring
attributeTypeIdinteger
attributeValuestring
customAttrNamestring
idinteger
sectionIdinteger
faxstring
firstNamestring
genderstring
Possible values: male, female, unknown
idinteger
languagestring
languageNamestring
lastNamestring
mobilestring
mobileBusinessstring
nickNamestring
notestring
partnerBriefNamestring
partnerNamestring
phoneOfficeCentralstring
phoneOfficeDirectstring
picturestring
positionIdinteger
positionNamestring
postalCodestring
salutationstring
Possible values: formal, informal
skypestring
statusstring
Possible values: active, inactive
statusDtstring (date-time)
titelstring
Example response
{
  "address": "string",
  "addressId": 0,
  "birthday": "2026-01-01",
  "bizPartnerId": 0,
  "city": "string",
  "contactTypeId": 0,
  "contactTypeName": "string",
  "countryId": 0,
  "countryName": "string",
  "customPositionName": "string",
  "customTypeName": "string",
  "departmentId": 0,
  "departmentName": "string",
  "eMailBusiness": "string",
  "eMailPrivate": "string",
  "extraAttributes": {
    "data": [
      {
        "attributeCodeName": "string",
        "attributeId": 0,
        "attributeName": "string",
        "attributeTypeId": 0,
        "attributeValue": "string",
        "customAttrName": "string",
        "id": 0,
        "sectionId": 0
      }
    ]
  },
  "fax": "string",
  "firstName": "string",
  "gender": "male",
  "id": 0,
  "language": "string",
  "languageName": "string",
  "lastName": "string",
  "mobile": "string",
  "mobileBusiness": "string",
  "nickName": "string",
  "note": "string",
  "partnerBriefName": "string",
  "partnerName": "string",
  "phoneOfficeCentral": "string",
  "phoneOfficeDirect": "string",
  "picture": "string",
  "positionId": 0,
  "positionName": "string",
  "postalCode": "string",
  "salutation": "formal",
  "skype": "string",
  "status": "active",
  "statusDt": "2026-01-01T12:00:00Z",
  "titel": "string"
}