customer.get
Requests the details of one or more customers. When no filter is set, 10 customers will be delivered. A LIMIT up to 100 customers is possible. The RESPONSE contains a "list of customers" and each of them with the following fields.
FILTER
| Tags | Description |
| CUSTOMER_ID |
A specific customer ID |
| CUSTOMER_NUMBER |
Assigned customer number |
| COUNTRY_CODE |
A country (ISO 3166 ALPHA-2) |
| CITY |
City |
| TERM |
Search term in one of the given fields: ORGANIZATION, FIRST_NAME, LAST_NAME, ADDRESS, ADDRESS_2, ZIPCODE, EMAIL, TAGS. |
RESPONSE
| Tags | Description |
| CUSTOMER_ID |
A specific customer ID |
| CUSTOMER_NUMBER |
Assigned customer number |
| DAYS_FOR_PAYMENT |
Days until date of payment |
| CREATED |
Date of Creation |
| PAYMENT_TYPE |
Payment type : 1 = transfer | 2 = direct debit | 3 = cash | 4 = paypal | 5 = advanced payment | 6 = credit card |
| BANK_NAME |
Bank name [REQUIRED] when PAYMENT_TYPE = 2 (direct debit) |
| BANK_ACCOUNT_NUMBER |
Bank account number |
| BANK_CODE |
Bank code |
| BANK_ACCOUNT_OWNER |
Bank account owner |
| BANK_IBAN |
IBAN [REQUIRED] when PAYMENT_TYPE = 2 (direct debit) |
| BANK_BIC |
BIC |
| BANK_ACCOUNT_MANDATE_REFERENCE |
Mandate reference number |
| SHOW_PAYMENT_NOTICE |
Show payment notice |
| CUSTOMER_TYPE |
Customer type: business | consumer |
| NEWSLETTER_OPTIN Deprecated |
Newsletter option: 0 = no | 1 = yes |
| ORGANIZATION |
Company name [REQUIRED] when CUSTOMER_TYPE = business |
| POSITION |
Position in the company |
| ACADEMIC_DEGREE |
Academic degree |
| SALUTATION |
Salutation: mr | mrs | family | "empty" |
| FIRST_NAME |
First name [REQUIRED] when CUSTOMER_TYPE = consumer |
| LAST_NAME |
Last name [REQUIRED] when CUSTOMER_TYPE = consumer |
| ADDRESS |
Address |
| ADDRESS_2 |
Address 2 |
| ZIPCODE |
ZIP code |
| CITY |
City |
| COUNTRY_CODE |
A country (ISO 3166 ALPHA-2) |
| SECONDARY_ADDRESS |
Delivery address |
| PHONE |
Phone |
| PHONE_2 |
Phone 2 |
| FAX |
Fax number |
| MOBILE |
Mobile phone number |
| EMAIL |
e-mail address |
| WEBSITE |
Website |
| VAT_ID |
VAT identification number |
| CURRENCY_CODE |
Currency code |
| LASTUPDATE |
Date of latest update |
| BUYER_REFERENCE |
Buyer Reference |
| GLN |
Global Location Number (GLN) — validated according to GS1 standard |
| TAGS |
Tags |
| DOCUMENT_HISTORY_URL |
URL to the document history of the customercenter |
| CUSTOMER_ACCOUNT |
Datev accounts receivable number |
customer.create
Creates a new customer. CUSTOMER_TYPE is always required. The remaining mandatory fields depend on it: for CUSTOMER_TYPE = business, ORGANIZATION is required; for CUSTOMER_TYPE = consumer, LAST_NAME is. If PAYMENT_TYPE = 2 (direct debit) is set, BANK_NAME and either BANK_IBAN or BANK_ACCOUNT_NUMBER are required as well.
DATA
| Tags | Description |
| CUSTOMER_NUMBER |
Assigned customer number |
| CUSTOMER_TYPE Required |
Customer type: business | consumer |
| ORGANIZATION |
Company name [REQUIRED] when CUSTOMER_TYPE = business |
| POSITION |
Position in the company |
| ACADEMIC_DEGREE |
Academic degree |
| SALUTATION |
Salutation: mr | mrs | family | "empty" |
| FIRST_NAME |
First name [REQUIRED] when CUSTOMER_TYPE = consumer |
| LAST_NAME |
Last name [REQUIRED] when CUSTOMER_TYPE = consumer |
| ADDRESS |
Address |
| ADDRESS_2 |
Address 2 |
| SECONDARY_ADDRESS |
Delivery address |
| ZIPCODE |
ZIP code |
| CITY |
City |
| COUNTRY_CODE |
A country (ISO 3166 ALPHA-2) |
| PHONE |
Phone |
| PHONE_2 |
Phone 2 |
| FAX |
Fax number |
| MOBILE |
Mobile phone number |
| EMAIL |
e-mail address |
| WEBSITE |
Website |
| CUSTOMER_ACCOUNT |
Datev accounts receivable number |
| CURRENCY_CODE |
Currency code |
| VAT_ID |
VAT identification number |
| DAYS_FOR_PAYMENT |
Days until date of payment
Only stored with PAYMENT_TYPE = 1 (bank transfer), otherwise 0.
|
| PAYMENT_TYPE |
Payment type : 1 = transfer | 2 = direct debit | 3 = cash | 4 = paypal | 5 = advanced payment | 6 = credit card |
| SHOW_PAYMENT_NOTICE |
Show payment notice |
| BANK_NAME |
Bank name [REQUIRED] when PAYMENT_TYPE = 2 (direct debit) |
| BANK_CODE |
Bank code |
| BANK_ACCOUNT_NUMBER |
Bank account number |
| BANK_ACCOUNT_OWNER |
Bank account owner |
| BANK_IBAN |
IBAN [REQUIRED] when PAYMENT_TYPE = 2 (direct debit) |
| BANK_BIC |
BIC |
| BANK_ACCOUNT_MANDATE_REFERENCE |
Mandate reference number |
| BUYER_REFERENCE |
Buyer Reference |
| GLN |
Global Location Number (GLN) — validated according to GS1 standard |
| TAGS |
Tags |
RESPONSE
| Tags | Description |
| STATUS |
Result of the action |
| CUSTOMER_ID |
A specific customer ID |
| CUSTOMER_NUMBER |
Assigned customer number |
customer.update
Updates the information of a customer.
DATA
| Tags | Description |
| CUSTOMER_ID Required |
A specific customer ID |
| See action |
customer.create |
RESPONSE
| Tags | Description |
| STATUS |
Result of the action |
| CUSTOMER_ID |
A specific customer ID |
customer.delete
Deletes a customer.
DATA
| Tags | Description |
| CUSTOMER_ID Required |
A specific customer ID |
RESPONSE
| Tags | Description |
| STATUS |
Result of the action |
contact.get
Requests the details of one or more contacts. When no filter is set, 10 contacts will be delivered.
FILTER
| Tags | Description |
| CUSTOMER_ID |
A specific customer ID |
| CUSTOMER_NUMBER |
Assigned customer number |
| TERM |
Search term in one of the given fields: ORGANIZATION, FIRST_NAME, LAST_NAME, ADDRESS, ADDRESS_2, ZIPCODE, EMAIL, TAGS. |
| CONTACT_ID |
Contact ID |
RESPONSE
| Tags | Description |
| CONTACT_ID |
Contact ID |
| CUSTOMER_ID |
A specific customer ID |
| ORGANIZATION |
Company name [REQUIRED] when CUSTOMER_TYPE = business |
| ACADEMIC_DEGREE |
Academic degree |
| POSITION |
Position in the company |
| SALUTATION |
Salutation: mr | mrs | family | "empty" |
| FIRST_NAME |
First name [REQUIRED] when CUSTOMER_TYPE = consumer |
| LAST_NAME |
Last name [REQUIRED] when CUSTOMER_TYPE = consumer |
| ADDRESS |
Address |
| ADDRESS_2 |
Address 2 |
| ZIPCODE |
ZIP code |
| CITY |
City |
| COUNTRY_CODE |
A country (ISO 3166 ALPHA-2) |
| SECONDARY_ADDRESS |
Delivery address |
| PHONE |
Phone |
| PHONE_2 |
Phone 2 |
| FAX |
Fax number |
| MOBILE |
Mobile phone number |
| EMAIL |
e-mail address |
| VAT_ID |
VAT identification number |
| CURRENCY_CODE |
Currency code |
| CREATED |
Date of Creation |
| TAGS |
Tags |
| WEBSITE |
Website |
| COMMENT |
Comment |
| LASTUPDATE |
Date of latest update |
contact.create
Creates a new contact.
DATA
| Tags | Description |
| CUSTOMER_ID Required |
A specific customer ID |
| ORGANIZATION |
Company name [REQUIRED] when CUSTOMER_TYPE = business |
| ACADEMIC_DEGREE |
Academic degree |
| POSITION |
Position in the company |
| SALUTATION |
Salutation: mr | mrs | family | "empty" |
| FIRST_NAME |
First name [REQUIRED] when CUSTOMER_TYPE = consumer |
| LAST_NAME |
Last name [REQUIRED] when CUSTOMER_TYPE = consumer |
| ADDRESS |
Address |
| ADDRESS_2 |
Address 2 |
| ZIPCODE |
ZIP code |
| CITY |
City |
| COUNTRY_CODE |
A country (ISO 3166 ALPHA-2) |
| SECONDARY_ADDRESS |
Delivery address |
| PHONE |
Phone |
| PHONE_2 |
Phone 2 |
| FAX |
Fax number |
| MOBILE |
Mobile phone number |
| EMAIL |
e-mail address |
| CURRENCY_CODE |
Currency code |
| TAGS |
Tags |
RESPONSE
| Tags | Description |
| STATUS |
Result of the action |
| CONTACT_ID |
Contact ID |
contact.update
Updates the information of a contact.
DATA
| Tags | Description |
| CONTACT_ID Required |
Contact ID |
| See action |
contact.create |
RESPONSE
| Tags | Description |
| STATUS |
Result of the action |
| ADDITIONAL_INFO |
Result of the update:
updated_old | Contact was updated |
create_new | Contact was locked and has been replaced by a new one |
|
| CONTACT_ID |
ID of the newly created contact. Only present with ADDITIONAL_INFO = create_new. |
contact.delete
Deletes a contact.
DATA
| Tags | Description |
| CUSTOMER_ID Required |
A specific customer ID |
| CONTACT_ID Required |
Contact ID |
RESPONSE
| Tags | Description |
| STATUS |
Result of the action |