Update Partner data

PUT/partners/{id}

Update Partner data by id.

Privileges:

  • biz-core.manage

Audit event:

  • biz.core.v2.partner.update

Errors:

  • BIZ_CORE:PARTNER_NOTFOUND - Partner with given id not found.
  • BIZ_CORE:BIZ_SETTINGS_NOTFOUND - Biz settings with given instance_id not found.

Validation errors:

  • BIZ_CORE:OWNER_BP_ID_CANNOT_BE_EMPTY - Owner bp id cannot be empty.
  • BIZ_CORE:OWNER_BP_ID_CANNOT_BE_0 - Owner bp id cannot be 0.
  • BIZ_CORE:CO_OWNER_HAS_PARTNERS - Co-owner bp id cannot be changed for this partner because it is owner of some other partners.
  • BIZ_CORE:OWNER_BP_DOES_NOT_EXIST - Partner does not exist for given owner bp id.
  • BIZ_CORE:GIVEN_PARTNER_IS_NOT_CO_OWNER_OR_OWNER - Given partner is not co-owner or owner.
  • BIZ_CORE:OWNER_BP_ID_CANNOT_BE_EQUAL_TO_0 - Owner bp id cannot be equal to 0.
  • BIZ_CORE:PARTNER_NAME_REQUIRED - Name of the Partner must be provided.
  • BIZ_CORE:PARTNER_NAME_OUT_OF_LIMIT - Name of the Partner cannot be longer than 150 characters.
  • BIZ_CORE:PARTNER_COUNTRY_NOT_SUPPORTED - Country of the Partner is not supported.
  • BIZ_CORE:PARTNER_COUNTRY_NOT_ACTIVE - Country of the Partner is not active.
  • BIZ_CORE:PARTNER_VAT_NUMBER_OUT_OF_LIMIT - Vat number of the Partner cannot be longer than 30 characters.
  • BIZ_CORE:PARTNER_VAT_APPLY_NOT_SUPPORTED - Vat apply of the Partner is not supported.
  • BIZ_CORE:PARTNER_REG_NUMBER_OUT_OF_LIMIT - Reg number of the Partner cannot be longer than 30 characters.
  • BIZ_CORE:PARTNER_LEGAL_FORM_NOT_SUPPORTED - Legal form of the Partner is not supported.
  • BIZ_CORE:PARTNER_LEGAL_FORM_NOT_ACTIVE - Legal form of the Partner is not active.
  • BIZ_CORE:PARTNER_LANGUAGE_NOT_SUPPORTED - Language of the Partner is not supported.
  • BIZ_CORE:PARTNER_LANGUAGE_NOT_ACTIVE - Language of the Partner is not active.
  • BIZ_CORE:PARTNER_BRIEF_NAME_REQUIRED - Brief name of the Partner must be provided.
  • BIZ_CORE:PARTNER_BRIEF_NAME_OUT_OF_LIMIT - Brief name of the Partner cannot be longer than 50 characters.
  • BIZ_CORE:PARTNER_EXTERNAL_REF_OUT_OF_LIMIT - External ref of the Partner cannot be longer than 100 characters.
  • BIZ_CORE:PARTNER_PARTNER_TYPE_NOT_SUPPORTED - Partner type of the Partner is not supported.
  • BIZ_CORE:PARTNER_PARTNER_TYPE_NOT_ACTIVE - Partner type of the Partner is not active.
  • BIZ_CORE:PARTNER_IS_INTERCOMPANY_NOT_SUPPORTED - Is intercompany of the Partner is not supported.
  • BIZ_CORE:PARTNER_DUNS_NUMBER_OUT_OF_LIMIT - Duns number of the Partner cannot be longer than 20 characters.
  • BIZ_CORE:PARTNER_FOUNDING_DATE_IS_NOT_VALID - Founding date of the Partner is not valid.
  • BIZ_CORE:PARTNER_FOUNDING_DATE_SHOULD_BE_LESS_THAN_TODAY - Founding date of the Partner should be less than today.
  • BIZ_CORE:PARTNER_INDUSTRY_NOT_SUPPORTED - Industry of the Partner is not supported.
  • BIZ_CORE:PARTNER_INDUSTRY_NOT_ACTIVE - Industry of the Partner is not active.
  • BIZ_CORE:PARTNER_COMPANY_SIZE_NOT_SUPPORTED - Company size of the Partner is not supported.
  • BIZ_CORE:PARTNER_COMPANY_SIZE_NOT_ACTIVE - Company size of the Partner is not active.
  • BIZ_CORE:PARTNER_E_MAIL_OUT_OF_LIMIT - Email of the Partner cannot be longer than 255 characters.
  • BIZ_CORE:PARTNER_E_MAIL_NOT_VALID - Email of the Partner is not valid.
  • BIZ_CORE:PARTNER_PHONE_OUT_OF_LIMIT - Phone of the Partner cannot be longer than 30 characters.
  • BIZ_CORE:PARTNER_PHONE_NOT_VALID - Phone of the Partner is not valid.
  • BIZ_CORE:PARTNER_FAX_OUT_OF_LIMIT - Fax of the Partner cannot be longer than 30 characters.
  • BIZ_CORE:PARTNER_FAX_NOT_VALID - Fax of the Partner is not valid.
  • BIZ_CORE:PARTNER_CREATION_NOT_SUPPORTED - Creation of the Partner is not supported.
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 required

application/json
briefNamestring
max length: 50
companySizeIdinteger
countryinteger
creationstring
Possible values: manually, self_service
dunsNumberstring
max length: 20
eMailstring
max length: 150
externalRefIdstring
max length: 100
faxstring
max length: 30
foundingDstring (date)
industryIdinteger
isIntercompanystring
Possible values: yes, no
languagestring
legalFormIdinteger
namestring
max length: 150
ownerBpIdinteger
partnerTypeIdinteger
phonestring
max length: 30
regNumberstring
max length: 30
selfOwnerstring
Possible values: yes, no
taxExemptstring
vatApplystring
Possible values: yes, no, unknown
vatNumberstring
max length: 30

Request example

cURL · cURL
curl -L -X PUT "https://api-cpaas.sms.es/biz-core/v2/partners/{id}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>" \
  --data-raw '{
  "briefName": "string",
  "companySizeId": 0,
  "country": 0,
  "creation": "manually",
  "dunsNumber": "string",
  "eMail": "string",
  "externalRefId": "string",
  "fax": "string",
  "foundingD": "2026-01-01",
  "industryId": 0,
  "isIntercompany": "yes",
  "language": "string",
  "legalFormId": 0,
  "name": "string",
  "ownerBpId": 0,
  "partnerTypeId": 0,
  "phone": "string",
  "regNumber": "string",
  "selfOwner": "yes",
  "taxExempt": "string",
  "vatApply": "yes",
  "vatNumber": "string"
}'

Responses

Partner updated successfully

application/json
bizPartnerUidstring
briefNamestring
companySizestring
companySizeIdinteger
countryinteger
creationstring (date)
dunsNumberstring
emailstring
externalRefIdstring
faxstring
foundingDstring (date)
hasAttributesstring
Possible values: yes, no
idinteger
industryIdinteger
industryNamestring
instanceRolestring
isIntercompanystring
Possible values: yes, no
languagestring
legalAddressIdinteger
legalFormIdinteger
namestring
notificationAddressIdinteger
ownerBpBriefNamestring
ownerBpIdinteger
ownerBpNamestring
parentIdinteger
partnerDetailsIdinteger
partnerTypeIdinteger
partnerTypeNamestring
phonestring
regNumberstring
selfOwnerstring
Possible values: yes, no
statusstring
Possible values: potential, active, suspended, archived, deleted, misc, draft
statusActiveDtstring (date-time)
statusDtstring (date-time)
taxExemptstring
vatApplystring
Possible values: yes, no, unknown
vatNumberstring
Example response
{
  "bizPartnerUid": "string",
  "briefName": "string",
  "companySize": "string",
  "companySizeId": 0,
  "country": 0,
  "creation": "2026-01-01",
  "dunsNumber": "string",
  "email": "string",
  "externalRefId": "string",
  "fax": "string",
  "foundingD": "2026-01-01",
  "hasAttributes": "yes",
  "id": 0,
  "industryId": 0,
  "industryName": "string",
  "instanceRole": "string",
  "isIntercompany": "yes",
  "language": "string",
  "legalAddressId": 0,
  "legalFormId": 0,
  "name": "string",
  "notificationAddressId": 0,
  "ownerBpBriefName": "string",
  "ownerBpId": 0,
  "ownerBpName": "string",
  "parentId": 0,
  "partnerDetailsId": 0,
  "partnerTypeId": 0,
  "partnerTypeName": "string",
  "phone": "string",
  "regNumber": "string",
  "selfOwner": "yes",
  "status": "potential",
  "statusActiveDt": "2026-01-01T12:00:00Z",
  "statusDt": "2026-01-01T12:00:00Z",
  "taxExempt": "string",
  "vatApply": "yes",
  "vatNumber": "string"
}