Import Business Partners

POST/biz-partners-reg/import

Import Business Partners.

Privileges:

  • biz-core.manage
  • auth.resource.add

Audit event:

  • biz.core.v2.biz.partner.registration.import

Errors:

  • BIZ_CORE_IMPORT_BIZ_PARTNER_FILE_NAME_TOO_LONG - File name is too long
  • BIZ_CORE:BIZ_SETTINGS_NOTFOUND - Biz settings with given instance_id not found
  • BIZ_CORE_IMPORT_BIZ_PARTNER_HEADER_NOT_FOUND - header not found in given file
  • BIZ_CORE_IMPORT_BIZ_PARTNER_NO_PARTNERS_IN_FILE - at least one biz partner must exists in given file
  • BIZ_CORE_VAT_APPLY_VALUE_NOT_SUPPORTED - The given value for the vat apply field is not supported
  • BIZ_CORE_VAT_NUMBER_REQUIRED - The VAT number field is required and cannot be empty
  • BIZ_CORE_TAX_EXEMPT_REQUIRED - The tax exempt number field is required and cannot be empty
  • BIZ_CORE:PARTNER_ATTRIBUTE_ATTRIBUTE_SECTION_NOT_ACTIVE - The attribute section is not active
  • BIZ_CORE_IMPORT_BIZ_PARTNER_NOT_SUPPORTED_CUSTOM_FIELDS - The given custom fields are not supported
  • BIZ_CORE_CUSTOM_FIELD_NOT_FOUND - The given custom field is not found
  • BIZ_CORE_ATTRIBUTE_SECTION_NOT_SUPPORTED - The given attribute section is not supported
  • BIZ_CORE_CUSTOM_FIELD_VALUE_TOO_LONG - The given custom field value is too long
  • BIZ_CORE_ATTRIBUTE_SHORT_SECTION_NAME_NOT_SUPPORTED - The given attribute short section name is not supported

For other errors, check errors in /biz-partners-reg endpoint

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

multipart/form-data
filestring (binary)

Request example

cURL · cURL
curl -L -X POST "https://api-cpaas.sms.es/biz-core/v2/biz-partners-reg/import" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>" \
  -F "file=@/path/to/file"

Responses

Business Partners imported

application/json
dataobject[]

List of successful import business partners

Show child attributes
bizPartnerInstanceUidstring
bizPartnerUidstring
briefNamestring
businessPartnerProductsobject
Show child attributes
dataobject[]
Show child attributes
accountManagerIdinteger
accountManagerNamestring
bizPartnerBriefNamestring
bizPartnerIdinteger
customerTypestring
disabledDtstring (date-time)
enabledDtstring (date-time)
idinteger
notesstring
productBulkSmsobject
Show child attributes
announcementDaysinteger
bankGuaranteenumber (float64)
billingCycleinteger
billingCycleUnitstring
bizpProductIdinteger
creditLimitnumber (float64)
currencyCodestring
currencyIdinteger
currencyNamestring
depositnumber (float64)
disputePercentnumber (float64)
idinteger
invoiceTriggerAmountnumber (float64)
maxDisputenumber (float64)
overdraftLimitnumber (float64)
sellingPaymentDueinteger
sellingPaymentTypestring
validFromDstring (date)
productCodeNamestring
productIdinteger
productNamestring
productTypeCodeNamestring
productTypeNamestring
relationTypeCodeNamestring
relationTypeIdinteger
relationTypeNamestring
serviceCategoryIdinteger
serviceProductNamestring
statusstring
statusDtstring (date-time)
companySizestring
companySizeIdinteger
countryinteger
countryNamestring
detailsIdinteger
dunsNumberstring
eMailstring
externalRefIdstring
extraAttributesobject
Show child attributes
dataobject[]
Show child attributes
attributeCodeNamestring
attributeIdinteger
attributeNamestring
attributeTypeIdinteger
attributeValuestring
customAttrNamestring
idinteger
sectionIdinteger
faxstring
foundingDstring (date)
hasAttributesstring
idinteger
industryIdinteger
industryNamestring
instanceIdinteger
instanceOwnerNamestring
instanceRolestring
isIntercompanystring
languagestring
languageNamestring
legalAddressobject
Show child attributes
addressstring
addressTypeCodeNamestring
addressTypeIdinteger
addressTypeNamestring
attnPersonstring
bizPartnerBriefNamestring
bizPartnerIdinteger
bizPartnerNamestring
branchNamestring
citystring
copyOfAddressesobject[]
Show child attributes
addressstring
addressTypeCodeNamestring
addressTypeIdinteger
addressTypeNamestring
attnPersonstring
attributesobject[]

Partner attributes for this address (custom fields, section ADDRESS, sectionRowId = address id)

Show child attributes
attributeCodeNamestring
attributeIdinteger
attributeNamestring
attributeTypeCodeNamestring
attributeTypeNamestring
attributeValuestring
bizPartnerIdinteger
canBeChangedboolean
customAttrNamestring
dbCodeNamestring
idinteger
jsonValueobject
Show child attributes
valuestring (JSON)
sectionCodeNamestring
sectionIdinteger
sectionNamestring
sectionRowIdinteger
statusstring
Possible values: active, deleted
statusDtstring (date-time)
valueTypestring
Possible values: simple, json
bizPartnerBriefNamestring
bizPartnerIdinteger
bizPartnerNamestring
branchNamestring
citystring
copyToAddressesobject[]
Show child attributes
addressTypeIdinteger
branchNamestring
idinteger
namestring
countryinteger
countryNamestring
eMailstring
faxstring
idinteger
latitudestring
longitudestring
namestring
phonestring
poBoxstring
postalCodestring
provincestring
countryinteger
countryNamestring
eMailstring
faxstring
idinteger
latitudestring
longitudestring
namestring
phonestring
poBoxstring
postalCodestring
provincestring
legalAddressIdstring
legalFormstring
legalFormIdinteger
namestring
ownerBpBriefNamestring
ownerBpIdinteger
ownerBpNamestring
parentIdinteger
partnerTypeIdinteger
partnerTypeNamestring
phonestring
regNumberstring
selfOwnerstring
Possible values: yes, no
statusstring
statusActiveDtstring (date-time)
statusDtstring (date-time)
taxExemptstring
vatApplystring
Possible values: yes, no
vatNumberstring
vatRatenumber (float)
Example: 8.25
errorsobject[]

List of failed to import partners

Show child attributes
codeinteger
descriptionstring
itemsobject[]
Show child attributes
descriptionstring
messagestring
namestring
messagestring
rowinteger
Example response
{
  "data": [
    {
      "bizPartnerInstanceUid": "string",
      "bizPartnerUid": "string",
      "briefName": "string",
      "businessPartnerProducts": {
        "data": [
          {
            "accountManagerId": 0,
            "accountManagerName": "string",
            "bizPartnerBriefName": "string",
            "bizPartnerId": 0,
            "customerType": "string",
            "disabledDt": "2026-01-01T12:00:00Z",
            "enabledDt": "2026-01-01T12:00:00Z",
            "id": 0,
            "notes": "string",
            "productBulkSms": {
              "announcementDays": 0,
              "bankGuarantee": 0,
              "billingCycle": 0,
              "billingCycleUnit": "string",
              "bizpProductId": 0,
              "creditLimit": 0,
              "currencyCode": "string",
              "currencyId": 0,
              "currencyName": "string",
              "deposit": 0,
              "disputePercent": 0,
              "id": 0,
              "invoiceTriggerAmount": 0,
              "maxDispute": 0,
              "overdraftLimit": 0,
              "sellingPaymentDue": 0,
              "sellingPaymentType": "string",
              "validFromD": "2026-01-01"
            },
            "productCodeName": "string",
            "productId": 0,
            "productName": "string",
            "productTypeCodeName": "string",
            "productTypeName": "string",
            "relationTypeCodeName": "string",
            "relationTypeId": 0,
            "relationTypeName": "string",
            "serviceCategoryId": 0,
            "serviceProductName": "string",
            "status": "string",
            "statusDt": "2026-01-01T12:00:00Z"
          }
        ]
      },
      "companySize": "string",
      "companySizeId": 0,
      "country": 0,
      "countryName": "string",
      "detailsId": 0,
      "dunsNumber": "string",
      "eMail": "string",
      "externalRefId": "string",
      "extraAttributes": {
        "data": [
          {
            "attributeCodeName": "string",
            "attributeId": 0,
            "attributeName": "string",
            "attributeTypeId": 0,
            "attributeValue": "string",
            "customAttrName": "string",
            "id": 0,
            "sectionId": 0
          }
        ]
      },
      "fax": "string",
      "foundingD": "2026-01-01",
      "hasAttributes": "string",
      "id": 0,
      "industryId": 0,
      "industryName": "string",
      "instanceId": 0,
      "instanceOwnerName": "string",
      "instanceRole": "string",
      "isIntercompany": "string",
      "language": "string",
      "languageName": "string",
      "legalAddress": {
        "address": "string",
        "addressTypeCodeName": "string",
        "addressTypeId": 0,
        "addressTypeName": "string",
        "attnPerson": "string",
        "bizPartnerBriefName": "string",
        "bizPartnerId": 0,
        "bizPartnerName": "string",
        "branchName": "string",
        "city": "string",
        "copyOfAddresses": [
          {
            "address": "string",
            "addressTypeCodeName": "string",
            "addressTypeId": 0,
            "addressTypeName": "string",
            "attnPerson": "string",
            "attributes": [
              {
                "attributeCodeName": null,
                "attributeId": null,
                "attributeName": null,
                "attributeTypeCodeName": null,
                "attributeTypeName": null,
                "attributeValue": null,
                "bizPartnerId": null,
                "canBeChanged": null,
                "customAttrName": null,
                "dbCodeName": null,
                "id": null,
                "jsonValue": null,
                "sectionCodeName": null,
                "sectionId": null,
                "sectionName": null,
                "sectionRowId": null,
                "status": null,
                "statusDt": null,
                "valueType": null
              }
            ],
            "bizPartnerBriefName": "string",
            "bizPartnerId": 0,
            "bizPartnerName": "string",
            "branchName": "string",
            "city": "string",
            "copyToAddresses": [
              {
                "addressTypeId": null,
                "branchName": null,
                "id": null,
                "name": null
              }
            ],
            "country": 0,
            "countryName": "string",
            "eMail": "string",
            "fax": "string",
            "id": 0,
            "latitude": "string",
            "longitude": "string",
            "name": "string",
            "phone": "string",
            "poBox": "string",
            "postalCode": "string",
            "province": "string"
          }
        ],
        "country": 0,
        "countryName": "string",
        "eMail": "string",
        "fax": "string",
        "id": 0,
        "latitude": "string",
        "longitude": "string",
        "name": "string",
        "phone": "string",
        "poBox": "string",
        "postalCode": "string",
        "province": "string"
      },
      "legalAddressId": "string",
      "legalForm": "string",
      "legalFormId": 0,
      "name": "string",
      "ownerBpBriefName": "string",
      "ownerBpId": 0,
      "ownerBpName": "string",
      "parentId": 0,
      "partnerTypeId": 0,
      "partnerTypeName": "string",
      "phone": "string",
      "regNumber": "string",
      "selfOwner": "yes",
      "status": "string",
      "statusActiveDt": "2026-01-01T12:00:00Z",
      "statusDt": "2026-01-01T12:00:00Z",
      "taxExempt": "string",
      "vatApply": "yes",
      "vatNumber": "string",
      "vatRate": 8.25
    }
  ],
  "errors": [
    {
      "code": 0,
      "description": "string",
      "items": [
        {
          "description": "string",
          "message": "string",
          "name": "string"
        }
      ],
      "message": "string",
      "row": 0
    }
  ]
}