1. U4 ERPx
  2. API Reference
  3. ObjectAPI
  4. Vertical sectioning
  5. Contact Points

Contact Points

Returning address information

In Unit4 ERPx master file, Enterprise Documents can have addresses attached to them. The corresponding Object API endpoints (Enterprise Documents) can return these addresses under the name ContactPoints (address information). See below for an example:

Samples

curl -X GET \
  "https://unit4-api-address/v1/objects/customers\
        ?companyId=EN\
        &select=companyId,customerId,customerName,contactPoints(*,address(*),additionalContactInfo(*),phoneNumber(*))\
        &filter=customerId eq '10000'" \
    -H "Authorization: Bearer YOUR_TOKEN_HERE" \
    -H "Accept-Encoding: gzip" \
    -H "Accept: application/schema+json"
[
    {
        "companyId": "EN",
        "contactPoints": [
            {
                "additionalContactInfo": {
                    "contactPerson": "",
                    "contactPosition": "Creamer 3",
                    "eMail": "",
                    "eMailCc": "",
                    "gtin": "",
                    "url": ""
                },
                "address": {
                    "countryCode": "GB",
                    "place": "",
                    "postcode": "",
                    "province": "",
                    "streetAddress": "Boulder 8"
                },
                "contactPointType": "1",
                "phoneNumber": {
                    "telephone1": "",
                    "telephone2": "",
                    "telephone3": "",
                    "telephone4": "",
                    "telephone5": "",
                    "telephone6": "",
                    "telephone7": ""
                },
                "sequenceNumber": 0
            }
        ],
        "customerId": "10000",
        "customerName": "Coffee & Cream Pottery"
    }
]