| Requires any of the roles: | Reseller, Merchant |
| GET | /customers | Get List Of All Customers Of A Merchant |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SortField | query | string | No | The field name by which the records will be sorted. Default is 'CustomerId'.Allowable Values
|
| IncludeDeleted | query | bool | No | Whether to include deleted records in the response, defaults to false. |
| CustomerId | query | string | No | Filter the customer records based on a specific customer id. |
| CustomerName | query | string | No | Filter the customer records based on a specific customer name. |
| FirstName | query | string | No | Filter the customer records based on a specific contact first name. |
| LastName | query | string | No | Filter the customer records based on a specific contact last name. |
| query | string | No | Filter the customer records based on a specific contact email address. | |
| CustomerKey | query | int? | No | Filter the customer records based on a specific customer key. |
| MerchantKey | query | int? | No | Filter the customer records based on a specific merchant key. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SortDirection | query | string | No | The direction in which the records will be sorted. Default is 'asc'.Allowable Values
|
| SortField | query | string | No | The field name by which the records will be sorted. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PageSize | query | short | No | The number of records per page. Default is 20. |
| PageNumber | query | short | No | The page number to fetch. Default is 1. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CustomerKey | model | int | No | Unique identifier generated by the system for the customer |
| CustomerID | model | string | Yes | Unique identifier, assigned by the merchant, as a friendly way to identify the customer |
| CustomerName | model | string | No | Customer's full name. Can be first+last name for an individual, or the business name if applicable. |
| ActivationStatus | model | ActivationStatus? | Yes | Indicates whether the customer is currently active or inactive. Valid values are: 1: ACTIVE – Customers contracts are reviewed each day for pending payments 2: INACTIVE – Customer is not reviewed for pending payments |
| MerchantKey | model | int? | Yes | The merchant key for the customer |
| CreationTimestamp | form | DateTime | No | Customer creation timestamp. |
| LastUpdateTimestamp | form | DateTime | No | Last customer update timestamp. |
| DefaultContact | model | Contact | No | The link to this customer's default contact |
| BillingAddress | model | BillingAddress | No | The link to this customer's billing address |
| ShippingAddress | model | ShippingAddress | No | The link to this customer's shipping address |
| Pending | |
| Active | |
| Inactive | |
| Deleted |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| LastName | model | string | No | The last name, max 50 chars |
| FirstName | model | string | No | The first name, max 50 chars |
| JobTitle | model | string | No | The job title, max 50 chars |
| DepartmentName | model | string | No | The department name, max 50 chars |
| EmailAddress | model | string | No | The e-mail address, max 100 chars |
| DaytimeTelephoneNumber | model | string | No | The daytime telephone number, max 25 chars |
| NighttimeTelephoneNumber | model | string | No | The nighttime telephone number, max 25 chars |
| FaxNumber | model | string | No | The fax number, max 25 chars |
| MobileTelephoneNumber | model | string | No | The mobile telephone number, max 25 chars |
| BillingAddress | model | Address | No | Billing address for the primary contact. |
| ShippingAddress | model | Address | No | Shipping address for the primary contact |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| StreetAddress1 | model | string | Yes | The street address, max 50 chars |
| StreetAddress2 | model | string | No | The street address 2, max 50 chars |
| StreetAddress3 | model | string | No | The street address 3, max 50 chars |
| City | model | string | No | The city, max 50 chars |
| StateOrProvinceCode | model | string | Yes | The CHAR-2 USA state and CAN province codesAllowable Values
|
| PostalCode | model | string | Yes | The postal code, max 30 chars |
| CountryCode | model | string | Yes | The ISO Alpha-3 USA or CAN country codesAllowable Values
|
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /customers HTTP/1.1 Host: syntch.simpay.net Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"CustomerKey":0,"CustomerID":"String","CustomerName":"String","ActivationStatus":"Pending","MerchantKey":0,"CreationTimestamp":"0001-01-01T00:00:00.0000000","LastUpdateTimestamp":"0001-01-01T00:00:00.0000000","DefaultContact":{"LastName":"String","FirstName":"String","JobTitle":"String","DepartmentName":"String","EmailAddress":"String","DaytimeTelephoneNumber":"String","NighttimeTelephoneNumber":"String","FaxNumber":"String","MobileTelephoneNumber":"String","BillingAddress":{"StreetAddress1":"String","StreetAddress2":"String","StreetAddress3":"String","City":"String","StateOrProvinceCode":"String","PostalCode":"String","CountryCode":"String"},"ShippingAddress":{"StreetAddress1":"String","StreetAddress2":"String","StreetAddress3":"String","City":"String","StateOrProvinceCode":"String","PostalCode":"String","CountryCode":"String"}},"BillingAddress":{"StreetAddress1":"String","StreetAddress2":"String","StreetAddress3":"String","City":"String","StateOrProvinceCode":"String","PostalCode":"String","CountryCode":"String"},"ShippingAddress":{"StreetAddress1":"String","StreetAddress2":"String","StreetAddress3":"String","City":"String","StateOrProvinceCode":"String","PostalCode":"String","CountryCode":"String"}}