List of biz partner addresses

GET/biz-partners/{id}/addresses

Returns list of biz partner addresses. This endpoint accepts query parameters for filtering biz partner addresses described at URL Filtering Guidelines .

Privileges:

  • biz-core.view
  • biz-core.own.view

Audit event:

  • biz.core.v2.biz.partner.addresses.list

Sorting:

  • id
  • bizPartnerId
  • addressTypeId
  • addressTypeName
  • country
  • countryName
  • name
  • branchName
  • address
  • poBox
  • postalCode
  • city
  • province
  • attnPerson
  • eMail
  • phone
  • fax
  • bizPartnerBriefName
  • addressTypeCodeName

Filtering:

  • id
  • bizPartnerId
  • addressTypeId
  • addressTypeName
  • country
  • countryName
  • name
  • branchName
  • address
  • poBox
  • postalCode
  • city
  • province
  • attnPerson
  • eMail
  • phone
  • fax
  • bizPartnerBriefName
  • addressTypeCodeName

Search:

  • id
  • bizPartnerId
  • bizPartnerName
  • addressTypeId
  • addressTypeName
  • country
  • countryName
  • status
  • name
  • branchName
  • address
  • address2
  • poBox
  • postalCode
  • city
  • province
  • attnPerson
  • eMail
  • fax
  • detBriefName
  • addressTypeCodeName
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.

Query parameters

allstring

Return all records for given criteria (disables pagination)

Possible values: yes, no
page_sizeinteger

Page size

Default: 10
page_numberinteger

Page number

Default: 1
pagingstring

Paging options in form of &paging=page_num,page_size e.g. paging=1,10

sortstring

Sort options in form of sort=-attribute1,attribute2,-attribute3 (prefix - for descending)

qstring

Full-text search criteria

operator(fieldName)string

Search criteria can be specified using the following operators and attributes:

Available Operators:

  • isnull, isnotnull
  • isempty, isnotempty
  • eq, neq
  • startswith, endswith, contains, doesnotcontain
  • lt, lte, gt, gte
  • in, notin
  • between, notbetween

Special Cases:

  1. For operators [isnull, isnotnull, isempty, isnotempty]: field value can be omitted.
  2. For operators [in, notin]: field value must be a comma-separated list. Example: in(status)=active,inactive
  3. For operators [between, notbetween]: field value must be two comma-separated values. Example: between(insertDt)=2024-01-01,2024-12-31

Default Behavior:

  • If operator is omitted, 'eq' is assumed
  • Example: fieldName=fieldValue is equivalent to eq(fieldName)=fieldValue

Example Usage:

  • startswith(name)=EUR # Find records where name starts with "EUR"
  • in(status)=active,inactive # Find records with active or inactive status
  • gt(maxAllowedPrice)=0.05 # Find records where max allowed price is greater than 0.05

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{id}/addresses" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

List of biz partner addresses

application/json
dataobject[]required
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
metaobjectrequired
Show child attributes
paginationobjectrequired
Show child attributes
countintegerrequired
current_pageintegerrequired
linksobjectrequired
Show child attributes
firststring
laststring
nextstring
prevstring
per_pageintegerrequired
totalintegerrequired
total_pagesintegerrequired
Example response
{
  "data": [
    {
      "address": "string",
      "addressTypeCodeName": "string",
      "addressTypeId": 0,
      "addressTypeName": "string",
      "attnPerson": "string",
      "attributes": [
        {
          "attributeCodeName": "string",
          "attributeId": 0,
          "attributeName": "string",
          "attributeTypeCodeName": "string",
          "attributeTypeName": "string",
          "attributeValue": "string",
          "bizPartnerId": 0,
          "canBeChanged": true,
          "customAttrName": "string",
          "dbCodeName": "string",
          "id": 0,
          "jsonValue": {
            "value": "string"
          },
          "sectionCodeName": "string",
          "sectionId": 0,
          "sectionName": "string",
          "sectionRowId": 0,
          "status": "active",
          "statusDt": "2026-01-01T12:00:00Z",
          "valueType": "simple"
        }
      ],
      "bizPartnerBriefName": "string",
      "bizPartnerId": 0,
      "bizPartnerName": "string",
      "branchName": "string",
      "city": "string",
      "copyToAddresses": [
        {
          "addressTypeId": 0,
          "branchName": "string",
          "id": 0,
          "name": "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"
    }
  ],
  "meta": {
    "pagination": {
      "count": 0,
      "current_page": 0,
      "links": {
        "first": "string",
        "last": "string",
        "next": "string",
        "prev": "string"
      },
      "per_page": 0,
      "total": 0,
      "total_pages": 0
    }
  }
}