# CustomerAddressByCustomerId: Minox Customer Address by Customer ID Get the customer using its identity. - Catalog: `Minox` - Schema: `MasterDataCustomer` - Label: Customer Address by Customer ID The data in this table is partitioned per value of the `administration_code` column. This is a read-only table function. The Minox API may not support changing the data or the Invantive UniversalSQL driver for Minox does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Minox API. ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `CustomerAddressByCustomerId`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values. Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three. Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third. | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `administration_code` | `` | ☐ | | Partition to retrieve data from. | | `customer_id` | `` | ☑ | | The customer to access. | ## Columns of Table Function The columns of the table function `CustomerAddressByCustomerId` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `address_type` | `varchar2` | Address Type | ☐ | The address type. | | `aggregation_aggregation_level` | `int64` | Aggregation Level | ☐ | The level of the aggregation | | `aggregation_description` | `varchar2` | Aggregation Description | ☐ | The description of the aggregation. | | `bank_bic` | `varchar2` | Bank BIC | ☐ | The Business Identifier Code (BIC). Go to https://en.wikipedia.org/wiki/ISO_9362 for more information. | | `bank_city` | `varchar2` | Bank City | ☐ | The city the bank branch office is located in. | | `bank_iban` | `varchar2` | Bank IBAN | ☐ | The International Bank Account Number. Go to https://en.wikipedia.org/wiki/International_Bank_Account_Number for more information. | | `bank_name` | `varchar2` | Bank Name | ☐ | The name of the bank. | | `block_collection` | `char` | Block Collection | ☐ | Specifies whether debt collection (Dutch: 'incasso') is blocked for the customer. | | `block_sending_reminders` | `char` | Block Sending Reminders | ☐ | Specifies whether reminders are blocked for the customer. | | `blocked_active` | `char` | Blocked Active | ☐ | Indicates whether the customer is blocked. | | `blocked_reason` | `varchar2` | Blocked Reason | ☐ | The reason the customer is blocked. | | `chamber_of_commerce` | `varchar2` | Chamber Of Commerce | ☐ | The chamber of commerce (Dutch: 'KvK') number. | | `city` | `varchar2` | City | ☐ | The city of where it is located. | | `contact_name` | `varchar2` | Contact Name | ☐ | The name of the contact person. | | `country_code` | `varchar2` | Country Code | ☐ | An ISO-3166-1-alpha2 country code. See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements for more information. | | `currency_description` | `varchar2` | Currency Description | ☐ | | | `currency_exchange_rate` | `decimal` | Currency Exchange Rate | ☐ | | | `currency_id` | `varchar2` | Currency ID | ☐ | | | `extended_name` | `varchar2` | Extended Name | ☐ | The extended name of the company. | | `externalid` | `varchar2` | External ID | ☐ | The external identification that has been linked to the customer via third-party software. | | `id_2` | `int64` | | ☐ | The identifying number for a customer. Must fall within the range of one of the sales journals | | `id` | `varchar2` | ID | ☐ | The unique identifier of a delivery address. | | `is_one_time` | `char` | Is One-Time | ☐ | Specifies if a customer is used for one-time sales. | | `language` | `varchar2` | Language | ☐ | The language of the customer. Represented as an ISO-639-1 language code. | | `memo_active` | `char` | Memo Active | ☐ | Whether the memo is shown in the UI when this account is used. | | `memo_text` | `varchar2` | Memo Text | ☐ | The content of the memo. | | `name` | `varchar2` | Name | ☐ | The company name. | | `payment_term_days` | `decimal` | Payment Term Days | ☐ | | | `payment_term_description` | `varchar2` | Payment Term Description | ☐ | | | `payment_term_id` | `int64` | Payment Term ID | ☐ | | | `payment_term_mandate` | `varchar2` | Payment Term Mandate | ☐ | | | `payment_term_start` | `varchar2` | Payment Term Start | ☐ | | | `payment_term_terms_days` | `decimal` | Payment Term Terms Days | ☐ | | | `payment_term_terms_percentage` | `decimal` | Payment Term Terms Percentage | ☐ | | | `payment_term_terms_type` | `varchar2` | Payment Term Terms Type | ☐ | | | `postal_code` | `varchar2` | Postal Code | ☐ | The postal code. | | `sales_billoflading_type_attachment` | `char` | Sales Bill-of-lading Type Attachment | ☐ | Send as an attachment once a bill of lading has been generated for the customer. | | `sales_billoflading_type_email_with_pdf` | `char` | Sales Bill-of-lading Type Email with PDF | ☐ | Send an e-mail with the PDF once a bill of lading has been sent to the customer. | | `sales_billoflading_type_email` | `varchar2` | Sales Bill-of-lading Type Email | ☐ | The e-mail address to which the e-mail will be sent once a bill of lading has been sent to the customer. | | `sales_billoflading_type_pdf_download` | `char` | Sales Bill-of-lading Type PDF Download | ☐ | Download the PDF once a bill of lading has been sent to the customer. | | `sales_carrier_description` | `varchar2` | Sales Carrier Description | ☐ | [NOT IN USE] The description of the carrier. | | `sales_carrier_id` | `int64` | Sales Carrier ID | ☐ | The identifying number of the carrier. | | `sales_credit_limit` | `decimal` | Sales Credit Limit | ☐ | The credit limit. | | `sales_customer_type_description` | `varchar2` | Sales Customer Type Description | ☐ | [NOT IN USE] The description of the customer type | | `sales_customer_type_id` | `int64` | Sales Customer Type ID | ☐ | The identifying number of the customer type. | | `sales_delivery_address_description` | `varchar2` | Sales Delivery Address Description | ☐ | [NOT IN USE] The description of the delivery address. | | `sales_delivery_address_id` | `int64` | Sales Delivery Address ID | ☐ | The identifying number of the delivery address | | `sales_delivery_terms_description` | `varchar2` | Sales Delivery Terms Description | ☐ | [NOT IN USE] The description of the delivery term. | | `sales_delivery_terms_id` | `int64` | Sales Delivery Terms ID | ☐ | The identifying number of the delivery term. | | `sales_discount_group_description` | `varchar2` | Sales Discount Group Description | ☐ | [NOT IN USE] The description of the discount group. | | `sales_discount_group_id` | `int64` | Sales Discount Group ID | ☐ | The identifying number of the discount group. | | `sales_g_rekening_percentage` | `decimal` | Sales G-Account Percentage | ☐ | A 'G-rekening' is a frozen account that you can use solely to make payroll taxes or VAT payments to the Tax and Customs Administration. The recipient deposits the estimated amount of payroll taxes or VAT payments into your g account. You can use this amount solely to pay payroll taxes or VAT. In case there is a 'G-rekening', by default the percentage from the administration will be used. In case a customer has a custom percentage, this can be defined here. | | `sales_invoice_discount_percentage` | `decimal` | Sales Invoice Discount Percentage | ☐ | The discount percentage on an invoice. | | `sales_invoice_type_attachment` | `char` | Sales Invoice Type Attachment | ☐ | Send as an attachment once a sales invoice has been generated for the customer. | | `sales_invoice_type_email_with_pdf` | `char` | Sales Invoice Type Email with PDF | ☐ | Send an e-mail with the PDF once a sales invoice has been generated for the customer. | | `sales_invoice_type_email_with_ubl` | `char` | Sales Invoice Type Email with UBL | ☐ | Send an e-mail with the UBL once a sales invoice has been generated for the customer. | | `sales_invoice_type_email` | `varchar2` | Sales Invoice Type Email | ☐ | The e-mail address to which the e-mail will be sent once a sales invoice has been generated for the customer. | | `sales_invoice_type_pdf_download` | `char` | Sales Invoice Type PDF Download | ☐ | Download the PDF once a sales invoice has been generated for the customer. | | `sales_order_type_attachment` | `char` | Sales Order Type Attachment | ☐ | Send as an attachment once an order has been generated for the customer. | | `sales_order_type_email_with_pdf` | `char` | Sales Order Type Email with PDF | ☐ | Send an e-mail with the PDF once an order has been sent to the customer. | | `sales_order_type_email` | `varchar2` | Sales Order Type Email | ☐ | The e-mail address to which the e-mail will be sent once an order has been sent to the customer. | | `sales_order_type_pdf_download` | `char` | Sales Order Type PDF Download | ☐ | Download the PDF once an order has been sent to the customer. | | `sales_packinglist_type_attachment` | `char` | Sales Packinglist Type Attachment | ☐ | Send as an attachment once a packing list has been generated for the customer. | | `sales_packinglist_type_email_with_pdf` | `char` | Sales Packinglist Type Email with PDF | ☐ | Send an e-mail with the PDF once a packing list has been sent to the customer. | | `sales_packinglist_type_email` | `varchar2` | Sales Packinglist Type Email | ☐ | The e-mail address to which the e-mail will be sent once a packing list has been sent to the customer. | | `sales_packinglist_type_pdf_download` | `char` | Sales Packinglist Type PDF Download | ☐ | Download the PDF once a packing list has been sent to the customer. | | `sales_pricecode` | `int64` | Sales Price Code | ☐ | The type of selling price. If it is different than the normal selling price, a code between 1 and 9 will be returned. | | `sales_quotation_type_attachment` | `char` | Sales Quotation Type Attachment | ☐ | Send as an attachment once a quotation has been generated for the customer. | | `sales_quotation_type_email_with_pdf` | `char` | Sales Quotation Type Email with PDF | ☐ | Send an e-mail with the PDF once a quotation has been sent to the customer. | | `sales_quotation_type_email` | `varchar2` | Sales Quotation Type Email | ☐ | The e-mail address to which the e-mail will be sent once a quotation has been sent to the customer. | | `sales_quotation_type_pdf_download` | `char` | Sales Quotation Type PDF Download | ☐ | Download the PDF once a quotation has been sent to the customer. | | `sales_region_description` | `varchar2` | Sales Region Description | ☐ | The string representation of the region. | | `sales_region_id` | `int64` | Sales Region ID | ☐ | The identifying number of the region. | | `sales_reminder_type_email_with_pdf` | `char` | Sales Reminder Type Email With PDF | ☐ | Send an e-mail with the PDF once a reminder has been sent to the customer. | | `sales_reminder_type_email` | `varchar2` | Sales Reminder Type Email | ☐ | The e-mail address to which the e-mail will be sent once a reminder has been sent to the customer. | | `sales_reminder_type_pdf_download` | `char` | Sales Reminder Type PDF Download | ☐ | Download the PDF once a reminder has been sent to the customer. | | `sales_representative_description` | `varchar2` | Sales Representative Description | ☐ | [NOT IN USE] The description of the representative. | | `sales_representative_id` | `int64` | Sales Representative ID | ☐ | The identifying number of the representative. | | `sales_revenue_category` | `int64` | Sales Revenue Category | ☐ | The revenue category. *This can be one of the following values:* - 1 | NL - 2 | EU - 3 | non-EU - 4 | shifted (free1) - 5 | free2 - 6 | free3 - 7 | free4 - 8 | free5 | | `sales_statistics_code` | `varchar2` | Sales Statistics Code | ☐ | Together with the statistics code of the selling item, it can be decided how the revenue statistics are printed. *Possible values:* - C | Article code, the revenue will be split per customer per article code - G | Article group, the revenue will be split per customer per article group - N | Not split, the revenue will not be split per customer If the given value is not equal to one of those, the statistics code will be set to 'C'. | | `sales_subscription_type_attachment` | `char` | Sales Subscription Type Attachment | ☐ | Send as an attachment once a subscription has been generated for the customer. | | `sales_subscription_type_email_with_pdf` | `char` | Sales Subscription Type Email with PDF | ☐ | Send an e-mail with the PDF once a subscription has been sent to the customer. | | `sales_subscription_type_email` | `varchar2` | Sales Subscription Type Email | ☐ | The e-mail address to which the e-mail will be sent once a subscription has been sent to the customer. | | `sales_subscription_type_pdf_download` | `char` | Sales Subscription Type PDF Download | ☐ | Download the PDF once a subscription has been sent to the customer. | | `sales_track_sales_history` | `char` | Sales Track Sales History | ☐ | Specifies whether or not to track the sales history for the customer. | | `sales_vat_inclusive` | `char` | Sales VAT Inclusive | ☐ | Whether the selling price is VAT inclusive. | | `salutation` | `varchar2` | Salutation | ☐ | The salutation of the contact person. | | `search` | `varchar2` | Search | ☐ | The search name of the delivery address. | | `streetname_and_number` | `varchar2` | Street Name And Number | ☐ | The name of the street and house number. | | `vat_active` | `char` | VAT Active | ☐ | Whether an automatic VAT proposition will be made for the customer. | | `vat_suggested_gl_account` | `int64` | VAT Suggested GL Account | ☐ | The suggested GL account (Dutch: 'tegenrekening') that will be used when an automatic VAT proposition will be made. | | `vat_suggested_vat_id` | `int64` | VAT Suggested VAT ID | ☐ | The suggested VAT identification that will be used when an automatic VAT proposition will be made. | | `vat_vat_in_europe_gl_account` | `int64` | VAT In Europe GL Account | ☐ | The suggested GL account (Dutch: 'tegenrekening') that will be used when dealing with sales inside Europe. | | `vat_vat_registration_number` | `varchar2` | VAT Registration Number | ☐ | The identifying number of a VAT registration. This number is also used for sales tax. | | `www` | `varchar2` | www | ☐ | The website. |