Customer by ID [GET]

Operation

This endpoint returns the information of a customer given an specific customer ID

Information of the operation

GET
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/customer/{customerId}


Request


PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter
Unique identificator of the chain.
customerIdIntegertruepath parameter
The customer to retrieve.

Example request

GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/customer/1


Response

PropertyTypeRequiredDescription
PagePagetrueDescription of the response of the success operation

Entity



FieldTypeRequiredDescription
idinttrue (only in UPDATE proccess)Id of the Company.
namestringtrueName of the Company.
codestringtrueGenerated code from the name of the company.
taxIdstringtrueTaxId of the Company.

companyEmailList

List of CompanyEmailfalse

companyAddressList

List of CompanyAddressfalse

companyPhoneList

List of CompanyPhonefalse

companyTaxAddress

CompanyTaxAddressfalse
remarkStringfalse
assignedUserUserfalseonly show: userName
profileTypeprofileTypefalse
companyCustomFieldValueListList of CompanyCustomFieldValuefalse
customerProfileListList of CustomerProfile

false


extendedNameStringfalse
paymentTypePaymentTypefalse
paymentPaymentfalse
paymentModePaymentModefalse
taxDocumentTypeTaxDocumentTypefalse
chainSourceChainSourcefalse
chainSegmentChainSegmentfalse
chainChannelChainSegmentfalse
languageLanguagefalse
chainProfileGroupChainProfileGroupfalse
reservationPriceModelTypeReservationPriceModelTypefalse

Example response

{
  "id": 1321,
  "name": "Amanda Göstaa Torres",
  "customerDocumentList": [
    {
      "id": 48,
      "primary": true,
      "documentType": {
        "id": 5,
        "code": "5",
        "name": "National identity document"
      },
      "number": "DOC 1",
      "givenName": "Amanda",
      "secondSurName": "Göstaa",
      "surName": "Torres",
      "genderType": {
        "id": 1,
        "code": "M",
        "name": "Male"
      },
      "birthDate": "2000-01-01",
      "birthCountryCode": "ES",
      "birthPlace": "Augusta",
      "effectiveDate": "2015-06-15",
      "expireDate": "2020-01-01",
      "street": null,
      "city": null,
      "stateProvName": "Georgia",
      "stateProvCode": null,
      "countryCode": "TK",
      "postalCode": "30911",
      "nationalityCountryCode": "TK",
      "ocr": null,
      "remark": "Document Remark"
    }
  ],
  "customerEmailList": [
    {
      "id": 1323,
      "primary": true,
      "emailAddressType": {
        "id": 1,
        "code": "1",
        "name": "Personal"
      },
      "email": "atorresgu@clickbank.net",
      "remark": null
    }
  ],
  "customerAddressList": [
    {
      "id": 1288,
      "primary": true,
      "communicationLocationType": {
        "id": 1,
        "code": "1",
        "name": "Home"
      },
      "street": "95 Armistice Alley",
      "city": "Augusta",
      "stateProvName": "Georgia",
      "stateProvCode": null,
      "postalCode": "30911",
      "countryCode": "AU",
      "remark": "Address Remark"
    }
  ],
  "customerPhoneList": [
    {
      "id": 1323,
      "primary": true,
      "phoneLocationType": {
        "id": 6,
        "code": "6",
        "name": "Home"
      },
      "phoneTechType": {
        "id": 1,
        "code": "1",
        "name": "Voice"
      },
      "countryAccessCode": "+34",
      "areaCityCode": "B",
      "phoneNumber": "1-(706)821-6121",
      "extension": "1",
      "remark": "Phone Remark"
    }
  ],
  "remark": "Customer Remarks",
  "profileType": {
    "code": "1",
    "name": "Customer",
    "nameI18n": "Customer",
    "colorCode": "#00ACC1"
  },
  "customerProfileList": [
        {
            "id": 314,
            "allowMarketing": true,
            "allowThirdParty": false
        }
    ],
    "customerLoyaltyList": [
        {
            "id": 16,
            "chainLoyalty": {
                "id": 1,
                "programId": "IB",
                "name": "IberiaPlus",
                "propertyLoyaltyList": [
                    {
                        "id": 1,
                        "active": true,
                        "inactiveReason": null
                    } ...
                ]
            },
            "membershipId": "33333333333A"
        } ...
    ],
    "chainVIPLevel": {
        "id": 4,
        "chainId": 1,
        "code": "VI",
        "name": "Vino",
        "colorCode": "#6D4C41",
        "remark": "Set de Vino en la habitación",
        "active": false,
        "createdDate": "2024-03-13T09:48:53.3007728",
        "modifiedDate": null
    }
}