Get customer
GET
https://api.light.inc/v1/customers/{customerId}
Returns a customer by ID
Returns the customer whatever its status, archived included. An unknown id, or one from another company, is 404.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
customerIdstring · uuidrequired
Response
-
idstring · uuidUnique identifier for the object
-
namestringName of the customer
-
emailstringEmail address of the customer
-
addressobjectDeprecated alias of
billingAddress: the two are one value.-
countrystring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
citystringCity.
-
statestringState or region, where the country uses one.
-
zipcodestringPostal code.
-
streetstringFirst address line.
-
street2stringSecond address line.
-
-
billingAddressobjectThe address printed on invoices.
-
countrystring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
citystringCity.
-
statestringState or region, where the country uses one.
-
zipcodestringPostal code.
-
streetstringFirst address line.
-
street2stringSecond address line.
-
-
shippingAddressobjectDelivery address, when different from the billing address.
-
countrystring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
citystringCity.
-
statestringState or region, where the country uses one.
-
zipcodestringPostal code.
-
streetstringFirst address line.
-
street2stringSecond address line.
-
-
statusstringCurrent status of the customer
ACTIVE- The customer is active and can be used in invoices and contractsARCHIVED- The customer is archived and cannot be used in new invoices or contracts
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACTIVEARCHIVED -
descriptionstringDescription or notes about the customer
-
vatNumberstringVAT number of the customer
-
businessRegistrationNumberstringBusiness registration number of the customer
-
easCodestringElectronic Address Scheme code used for sending e-invoices
-
einvoiceAddressstringE-invoice address for the customer
-
einvoiceNetworkstringE-invoice network the customer is registered on
FINVOICE- Finland Finvoice e-invoice networkFR_PA- France Plateforme Agréée (Chorus Pro / Annuaire) e-invoice networkMYDATA- Greece myDATA e-invoice networkNEMHANDEL- NemHandel e-invoice networkPEPPOL- Peppol e-invoice networkPORTUGUESE_TAX_REPORTING- Portuguese tax reporting (ATCUD) e-invoice networkSDI- SDI (Sistema di Interscambio) e-invoice networkVERIFACTU- Spain VERI*FACTU tax reporting e-invoice network
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
FINVOICEFR_PAMYDATANEMHANDELPEPPOLPORTUGUESE_TAX_REPORTINGSDIVERIFACTU -
typestringType of customer
BUSINESS- Business customerCONSUMER- Consumer customerGOVERNMENT- Government customer
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
BUSINESSCONSUMERGOVERNMENT -
representedCompanyEntityIdstring · uuidID of the company entity this business partner represents. Set only on system-managed intercompany counterparties, which Light creates and maintains; null for ordinary customers.
-
logoUrlstringURL to the customer's logo
-
domainstringDomain of the customer's website
-
externalSourceobjectThe external system where this product was synced from
Set when the customer was imported from another system: the system's name and the customer's id there.
-
namestringThe name of the external source
CHARGEBEE- Data synced from ChargebeeHUBSPOT- Data synced from HubSpotSALESFORCE- Data synced from SalesforceSTRIPE- Data synced from Stripe
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
CHARGEBEEHUBSPOTSALESFORCESTRIPE -
externalIdstringThe ID of the object in the external source system
-
-
createdAtstring · date-timeTimestamp when the customer was created
-
updatedAtstring · date-timeTimestamp when the customer was last updated
-
customPropertiesarray of objectList of custom properties associated with the customer
-
groupIdstring · uuidID of the custom property group
-
groupInternalNamestringInternal name of the custom property group
-
valuesarray of objectList of values. Note that this will be a single value unless the group input type supports multiple values
-
idstring · uuidUnique identifier for the object
-
groupIdstring · uuidID of the custom property group
-
groupInternalNamestringInternal name of the custom property group
-
companyIdstring · uuidID of the company
-
internalNamestringInternal name of the custom property value
-
labelstringLabel of the custom property value
-
contextstringContext/description of the custom property value
-
createdAtstring · date-timeTimestamp when the custom property value was created
-
updatedAtstring · date-timeTimestamp when the custom property value was last updated
-
-
-
recipientEmailsarray of stringBilling email recipients ("Send to") used when sending invoices to this customer
-
ccEmailsarray of stringBilling email CC recipients used when sending invoices to this customer