Check if legal name and vat are unique

POST/name-vat-unique-check

Check if legal name and vat are unique. Here we have excludedId parameter. It represents biz_core.biz_partner.id. The Api will search all ids except excludedID, if excludedID <> 0 it will skip this value. The default value is 0, which means that all IDs will be serached. CompareDate is a parameter when we have date for compare. If the date of briefName before compareDate we will not check this briefName. Default date is "2007-01-01".

Privileges: none

Audit event: biz.partners.put

Validation errors:

  • BIZ_CORE:NAME_MUST_BE_PROVIDED - Name must be provided.
  • BIZ_CORE:NAME_CANNOT_BE_LONGER_THAN_150_CHARACTERS - Name cannot be longer than 150 characters.
  • BIZ_CORE:PARTNER_COMPARE_DATE_IS_NOT_VALID - Compare date is not valid.
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

Body required

application/json
compareDatestring
excludedIdinteger
namestringrequired
vatNumberstringrequired

Request example

Responses

Legal name and vat are unique

application/json
excludedIdinteger
namestringrequired
uniquebooleanrequired
vatNumberstringrequired
Example response
{
  "excludedId": 0,
  "name": "string",
  "unique": true,
  "vatNumber": "string"
}