---
title: 'Customer by code'
url: 'https://documentation.netstorming.net/twoways/search-customers/customer-by-code'
markdown: 'https://documentation.netstorming.net/twoways/search-customers/customer-by-code.md'
date: '2026-11-10'
description: "This API is meant to obtain customer's data through the customer code. Request The type attribute has to be set to track. The product attribute has to be set to customer. <envelope> <header> <actor>test</actor> <user>test</user> <pa…"
taxonomy:
  category:
    - docs
---

# Customer by code

[](#)  [ TwoWays ](https://documentation.netstorming.net/twoways)     [ Search customers ](https://documentation.netstorming.net/twoways/search-customers)      Customer by code    

This API is meant to obtain customer's data through the customer code.

##### Request

The **type** attribute has to be set to *track*.

The **product** attribute has to be set to *customer*.

```xml
<envelope>
    <header>
        <actor>test</actor>
        <user>test</user>
        <password>test</password>
        <version>1.0.0</version>
        <timestamp>202307311450</timestamp>
    </header>
    <query type="track" product="customer">
        <filters>
            <filter type="customer" code="demo_client"/>
        </filters>
    </query>
</envelope>
```

##### Response

```xml
<?xml version="1.0" encoding="UTF-8"?>  
<envelope>
    <header>
        <version>1.0.0</version>
        <timestamp>202307311450</timestamp>
    </header>
    <response type="track" product="customer">
        <customer>

            <name value="DEMO CLIENT"/>
            <corporatename value="Demo client"/>
            <active value="A"/>
            <lastmodified value="2025-04-28 11:59:16"/>
            <mailstaff value="info@netstorming.net"/>
            <mailaccountability value=""/>
            <commercial id="271" name="Mario Rossi"/>
            <country value="ITALIA"/>
            <city value="VENEZIA"/>
            <address value="VIA BRUNACCI 9/B"/>
            <zip value="30175"/>
            <province value="VE"/>
            <accountability value=""/>
            <tax value=""/>
            <genre value="ADV"/>
            <sdi value=""/>
            <thirdparts_info>
                <thirdpart name="aves" code="0007106"/>
            </thirdparts_info>
        </customer>
    </response>
</envelope>
```

 [ ](https://documentation.netstorming.net/twoways/search-customers/get-all-customers) [](https://documentation.netstorming.net/twoways/search-suppliers)

---

## Navigation

- Parent: [Search customers](https://documentation.netstorming.net/twoways/search-customers.md)
- Previous: [Get all customers](https://documentation.netstorming.net/twoways/search-customers/get-all-customers.md)
