# Vendor code

Source: https://developer.avalara.com/avatax-for-ap/ljb6126595847789/

# Vendor code

**Element type:** Required

**Endpoints/models used:** [CreateTransactionModel](https://developer.avalara.com/api-reference/avatax/rest/v2/models/CreateTransactionModel/)

Your integration must include a field that allows users to input the merchant-facing customer code (number, ID) that will be passed to the AvaTax service in the transaction. This can be done using the `customerCode` field in the [CreateTransactionModel](https://developer.avalara.com/api-reference/avatax/rest/v2/models/CreateTransactionModel/). Customer codes are case sensitive and unique across your company. In addition, customer codes can be a maximum of 50 characters.

Some integrations have an internal GUID as a customer identifier along with a merchant-facing or vendor facing-customer identifier. In the UI, you see a customer ID. The back end contains another string that identifies that specific merchant or vendor. Your integration must provide a way to tie the vendor code to the AvaTax `customerCode`.

**View example**:

```
{
  "type": "SalesInvoice",
  "companyCode": "DEFAULT",
  "date": "2024-07-16",
  "code": "MyDocumentCode",
  "customerCode": "ABC",
  "purchaseOrderNo": "123456789",
  "commit": true,
  "currencyCode": "USD",
  "description": "Yarn",
  ...,
} 
```