Customers
BETA
BETA
Operation | Type | Object | Dto |
---|---|---|---|
Mutation | createCustomers |
CustomersCreateGLDtoInput |
|
Mutation | updateCustomers |
CustomersUpdateGLDtoInput |
|
Query | customerById |
CustomersGLDto |
|
Query | customers |
CustomersGLDto |
Description
Customers management
Header
Key | Value |
---|---|
Authorization |
Bearer Current access Token |
X-TenantId |
Current tenant id obtained from userProfile |
X-OrganizationId |
Current organization Id |
x-api-key |
Primary or secondary subscription key of your app |
customers
Fields | Type | Description | Length |
---|---|---|---|
id | UUID | Id | |
modificationDate |
datetime | Modification date | |
creationDate |
datetime | Creation date | |
countryAcronym |
string | Country |
2 |
documentTypeId |
UUID | DocumentType Id |
|
documentId | string | Identification number |
25 |
code |
string | Code customer | 17 |
socialName |
string | customer Name | 70 |
tradeName | string | Trade Name |
70 |
disabled | boolean | Inactive |
|
disabledDate | datetime | Inactive date | |
status |
|
Status | |
defaultAccountingAccountId | UUID | Main account | |
comments | string | Comments | 2000 |
vatNumber | string | VAT Number intracommunity | 25 |
nafApeCode | string | Code NAF/APE | 7 |
gdprApplied | boolean | GDPR action | |
gdprAppliedDate | datetime | GDPR date action | |
thirdPayerName |
string | Name of third Payer | |
thirdPayerId | UUID | Id of third Payer | |
businessAreaId | UUID | Business areas Id | |
addresses[] | Array | List of addresses | |
contacts[] | Array | List of contacts | |
paymentTermLines[] | Array | List of payement terms lines |
Info
- countryAcronym : ISO2 country code, is mandatory.
For the particular case of Northern Ireland should containXI
and notGB
. - documentTypeId : Id of an allowed document type, values may be different depending on legislationCode.
France (FR)Spain (ES)Germany (DE)
CountryAcronym Allowed document types (code name) FR 01 SIRET VIES 02 TVA Intracommunautaire Other 06 Autre document justificatif CountryAcronym Allowed document types (code name) DE 01 Steur-IdN VIES 02 USt-IdNr Other 06 Another supporting document CountryAcronym Allowed document types (code name) ES 01 NIF/DNI VIES 02 NIF/IVA Other 03 Pasaporte Other 04 Documento oficial emitido en el país de residencia Other 05 Certificado de residencia Other 06 Otro documento probatorio - documentId : Identification number, value formats may differ depending on legislationCode.
France (FR)Spain (ES)Germany (DE)
- For country FR, you can fill any SIREN of 9 characters or any SIRET of 14 characters.
- For VIES countries, the format is described at this FAQ N° 11 https://ec.europa.eu/taxation_customs/vies/#/faq
- For country DE, you can fill any Steur-Idn of 11 characters
- For VIES countries, the format is described at this FAQ N° 11 https://ec.europa.eu/taxation_customs/vies/#/faq
- For country ES, you need to fill a valid NIF number.
- For VIES countries, the format is described at this FAQ N° 11 https://ec.europa.eu/taxation_customs/vies/#/faq
For your tests :
- disabled : If
true
the third can no longer be used, but will remain in the existing information. - tradeName : Can be used to fill in a shorter name than socialName
customers/addresses
Attention, only one address is authorized, even if the representation is an array of addresses
Fields | Type | Description | Length |
---|---|---|---|
id |
UUID | Id | |
countryId | UUID | Id Country | |
countryName |
string | CountryName | |
name | string | Code | 50 |
firstLine | string | First Line | 35 |
secondLine | string | Second Line | 35 |
city | string | Town | 35 |
zipCode | string | Postal Code | 9 |
province | string | Province | 25 |
customers/contacts
Fields | Type | Description | Length |
---|---|---|---|
id |
UUID | Id | |
isDefault | boolean | Main contact | |
jobAreaId | UUID | Job areas Id | |
jobName | string | Job name | 35 |
name | string | First name | 35 |
courtesy |
|
Type | |
surname | string | Family name | 35 |
emails[] | Array | List of emails | |
phones[] | Array | List of phones | |
socialMedias[] | Array | List Social Networking |
customers/contacts/emails
Fields | Type | Description | Length |
---|---|---|---|
id |
UUID | Id | |
emailAddress | string | Email address | 70 |
usage |
|
Type | |
isDefault | boolean | Main mail |
customers/contacts/phones
Fields | Type | Description | Length |
---|---|---|---|
id |
UUID | Id | |
number | string | Phone | 20 |
type |
|
Type | |
isDefault | boolean | Main phone |
customers/contacts/socialMedias
Fields | Type | Description | Length |
---|---|---|---|
id |
UUID | UUID | |
name | string | Name | 30 |
link | string | Link | 100 |
customers/paymentTermLines
Payment terms, used to define the list of payment terms for Customers
Example :
- Advance payment by check 30%
- 30% by transfer at 30 days net
- the balance of 40% by bank transfer at 60 days end of month
Fields | Type | Description |
---|---|---|
id |
UUID | Id |
order |
int | classification of lines from 0 to n. |
paymentMeanId | UUID | Id of the payment mean |
Type |
|
Type of calculation |
value |
decimal | Value |
condition |
|
To calculate due date |
day | int | Number of days |
payDays[] | Array | optional due days |
Info
- order : If
REMAINING_AMOUNT
, must always be last with the code 9999. - payDays : Array of optional due days. The day contained in the array closest to the number of days defined in day will be used to calculate the Due Date.