GET | /api/companies/lookup/{ChamberNr} |
---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class CompanyLookupDetails:
chamber_nr: Optional[str] = None
chamber_establishment_number: Optional[str] = None
company_legal_name: Optional[str] = None
company_trade_name: Optional[str] = None
chamber_city: Optional[str] = None
chamber_founding_date: Optional[datetime.datetime] = None
establishment_street: Optional[str] = None
establishment_house_nr: Optional[str] = None
establishment_house_nr_addition: Optional[str] = None
establishment_postal_code: Optional[str] = None
establishment_city: Optional[str] = None
establishment_country_t_l_a: Optional[str] = None
correspondence_p_o_box: Optional[str] = None
correspondence_postal_code: Optional[str] = None
correspondence_city: Optional[str] = None
correspondence_country_t_l_a: Optional[str] = None
website: Optional[str] = None
telephone: Optional[str] = None
mobile: Optional[str] = None
e_mail: Optional[str] = None
debtor_in_possession: Optional[bool] = None
bankrupt: Optional[bool] = None
extra_fields: Optional[Dict[str, Object]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetCompanyLookupDetails:
chamber_nr: Optional[str] = None
chamber_establishment_number: Optional[str] = None
Python GetCompanyLookupDetails DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/companies/lookup/{ChamberNr} HTTP/1.1 Host: digiofficeapigateway.deltares.nl Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CompanyLookupDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.CompanyLookup.DTO"> <Bankrupt>false</Bankrupt> <ChamberCity>String</ChamberCity> <ChamberEstablishmentNumber>String</ChamberEstablishmentNumber> <ChamberFoundingDate>0001-01-01T00:00:00</ChamberFoundingDate> <ChamberNr>String</ChamberNr> <CompanyLegalName>String</CompanyLegalName> <CompanyTradeName>String</CompanyTradeName> <CorrespondenceCity>String</CorrespondenceCity> <CorrespondenceCountryTLA>String</CorrespondenceCountryTLA> <CorrespondencePOBox>String</CorrespondencePOBox> <CorrespondencePostalCode>String</CorrespondencePostalCode> <DebtorInPossession>false</DebtorInPossession> <EMail>String</EMail> <EstablishmentCity>String</EstablishmentCity> <EstablishmentCountryTLA>String</EstablishmentCountryTLA> <EstablishmentHouseNr>String</EstablishmentHouseNr> <EstablishmentHouseNrAddition>String</EstablishmentHouseNrAddition> <EstablishmentPostalCode>String</EstablishmentPostalCode> <EstablishmentStreet>String</EstablishmentStreet> <ExtraFields xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringanyType> <d2p1:Key>String</d2p1:Key> <d2p1:Value /> </d2p1:KeyValueOfstringanyType> </ExtraFields> <Mobile>String</Mobile> <Telephone>String</Telephone> <Website>String</Website> </CompanyLookupDetails>