# GET.CUST

Read Time: 2 minute(s)

This endpoint retrieves Customer Detail as a JSON encoded repsonse.

# POST Request Attributes

Attribute Description Required
atoken Authorization token to allow access to the service and dictate which customers and fields will be returned ✔️
entity This tells the api what database to use ✔️
debug If flag is set then error messages will be more verbose. Also used for internal testing

# Example Request

{
    "atoken" : "atoken",
    "entity" : "entity",
    "debug"  : "0"
}
1
2
3
4
5

# Example Response

Attribute Description
id Internal Customer ID
lname Last Name
fname First Name
addr Address Array (two lines)
city City
state State
zip Postal Code
country Country
day.phone Daytime Phone Number
night.phone Nighttime Phone Number
ship.name Shipping Name
ship.addr Shipping Address Array (two lines)
ship.city Shipping City
ship.state Shipping State
ship.zip Shipping Postal Code
ship.country Shipping Country
status Status Code (null, Active, Inactive, Deletable)
email Email Address
type Customer Type
dep.id DEP ID
{
    "customers": [
        {
            "id": "cust1",
            "lname": "One",
            "fname": "Customer",
            "addr": [
                "Address Line 1",
                "Address Line 2",
            ],
            "city": "CITY",
            "state": "ST",
            "zip": "12345",
            "country": "US",
            "day.phone": "800-800-1234",
            "night.phone": "800-800-1234",
            "ship.name": "Customer One",
            "ship.addr": [
                "Address Line 1",
                "Address Line 2",
            ],
            "ship.city": "CITY",
            "ship.state": "ST",
            "ship.zip": "12345",
            "ship.country": "US",
            "status": "",
            "email": "custone@email.address.com",
            "type": "A",
            "depid": "123456",
        },
        {
            "id": "cust2",
            "lname": "Two",
            "fname": "Customer",
            "addr": [
                "Address Line 1",
                "Address Line 2",
            ],
            "city": "CITY",
            "state": "ST",
            "zip": "12345",
            "country": "US",
            "day.phone": "800-800-1234",
            "night.phone": "800-800-1234",
            "ship.name": "Customer Two",
            "ship.addr": [
                "Address Line 1",
                "Address Line 2",
            ],
            "ship.city": "CITY",
            "ship.state": "ST",
            "ship.zip": "12345",
            "ship.country": "US",
            "status": "",
            "email": "custtwo@email.address.com",
            "type": "A",
            "depid": "789012",
        },
    ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60