Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Current »

Operation

Information of the operation

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


Request


PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter
Unique identificator of the chain.
offsetIntegerfalserequest  parameter0Offset of the array of results.
limitIntegerfalserequest parameter10Limit of results.
sortstringfalserequest parameteridProperty of the entity to sort by.
sortModestringfalserequest parameterAscMode of sorting.

Example request

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


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

{
  "count": 1273,
  "offset": 0,
  "limit": 10,
  "list": [
    {
      "id": 1022,
      "name": "Gabtype",
      "code": "GABTY1",
      "taxId": "844031000",
      "companyEmailList": [
        {
          "id": 1022,
          "primary": true,
          "emailAddressType": {
            "id": 1,
            "code": "1",
            "name": "Personal",
            "nameI18n": "Personal"
          },
          "email": "irobinsonrr@etsy.com",
          "remark": null
        }
      ],
      "companyAddressList": [
        {
          "id": 1022,
          "primary": true,
          "communicationLocationType": {
            "id": 1,
            "code": "1",
            "name": "Home",
            "nameI18n": "Home"
          },
          "street": "70 Sage Way",
          "city": "Ogden",
          "stateProvName": "La Coruña",
          "stateProvCode": "ES-C",
          "postalCode": "84403",
          "countryCode": "ES",
          "remark": "Address Remark"
        }
      ],
      "companyPhoneList": [
        {
          "id": 1022,
          "primary": true,
          "phoneLocationType": {
            "id": 6,
            "code": "6",
            "name": "Home",
            "nameI18n": "Home"
          },
          "phoneTechType": {
            "id": 1,
            "code": "1",
            "name": "Voice",
            "nameI18n": "Voice"
          },
          "countryAccessCode": "+34",
          "areaCityCode": "B",
          "phoneNumber": "1-(801)295-4667",
          "extension": "1",
          "remark": "Phone Remark"
        }
      ],
      "companyTaxAddress": {
        "id": 1003,
        "communicationLocationType": null,
        "street": "70 Sage Way",
        "city": "Ogden",
        "stateProvName": "Jaén",
        "stateProvCode": "ES-J",
        "municipalityName": null,
        "municipalityCode": null,
        "postalCode": "84403",
        "countryCode": "ES",
        "remark": "Address Remark"
      },
      "remark": "Company Remarks",
      "assignedUser": null,
      "profileType": {
        "id": 2,
        "code": "2",
        "name": "Company",
        "nameI18n": "Company",
        "colorCode": "#00ACC1"
      },
      "companyCustomFieldValueList": [
        {
          "id": null,
          "code": "NATIONAL",
          "name": "National",
          "customFieldId": 5,
          "booleanValue": null,
          "numberValue": null,
          "stringValue": null,
          "dateValue": null,
          "selectValue": null,
          "multiSelectValueList": null
        }
      ],
      "customerProfileList": null,
      "extendedName": null,
      "paymentType": {
        "id": 5,
        "code": "AG",
        "name": "Pay Agency Guest"
      },
      "payment": null,
      "paymentMode": null,
      "taxDocumentType": {
        "id": 1,
        "code": "00",
        "name": "National Id Document",
        "nameI18n": "National Id Document"
      },
      "chainSource": null,
      "chainSegment": null,
      "chainChannel": null,
      "language": null,
      "chainProfileGroup": null,
      "reservationPriceModelType": null
    }
  ]
}
  • No labels