Syntch Gateway API

<back to all web services

GetCustomer

Administration - Customer Management
Requires Authentication
Requires any of the roles:Reseller, Merchant
The following routes are available for this service:
GET/customers/{customerKey}Get customer info
GetCustomer Parameters:
NameParameterData TypeRequiredDescription
CustomerKeypathintegerYesUnique identifier assigned to the customer record by the system at the time the customer record is created.
CustomerDetail Parameters:
NameParameterData TypeRequiredDescription
CustomerKeymodelintNoUnique identifier generated by the system for the customer
CustomerIDmodelstringYesUnique identifier, assigned by the merchant, as a friendly way to identify the customer
CustomerNamemodelstringNoCustomer's full name. Can be first+last name for an individual, or the business name if applicable.
ActivationStatusmodelActivationStatus?YesIndicates 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
MerchantKeymodelint?YesThe merchant key for the customer
CreationTimestampformDateTimeNoCustomer creation timestamp.
LastUpdateTimestampformDateTimeNoLast customer update timestamp.
DefaultContactmodelContactNoThe link to this customer's default contact
BillingAddressmodelBillingAddressNoThe link to this customer's billing address
ShippingAddressmodelShippingAddressNoThe link to this customer's shipping address
ActivationStatus Enum:
Pending
Active
Inactive
Deleted
Contact Parameters:
NameParameterData TypeRequiredDescription
LastNamemodelstringNoThe last name, max 50 chars
FirstNamemodelstringNoThe first name, max 50 chars
JobTitlemodelstringNoThe job title, max 50 chars
DepartmentNamemodelstringNoThe department name, max 50 chars
EmailAddressmodelstringNoThe e-mail address, max 100 chars
DaytimeTelephoneNumbermodelstringNoThe daytime telephone number, max 25 chars
NighttimeTelephoneNumbermodelstringNoThe nighttime telephone number, max 25 chars
FaxNumbermodelstringNoThe fax number, max 25 chars
MobileTelephoneNumbermodelstringNoThe mobile telephone number, max 25 chars
BillingAddressmodelAddressNoBilling address for the primary contact.
ShippingAddressmodelAddressNoShipping address for the primary contact
Address Parameters:
NameParameterData TypeRequiredDescription
StreetAddress1modelstringYesThe street address, max 50 chars
StreetAddress2modelstringNoThe street address 2, max 50 chars
StreetAddress3modelstringNoThe street address 3, max 50 chars
CitymodelstringNoThe city, max 50 chars
StateOrProvinceCodemodelstringYesThe CHAR-2 USA state and CAN province codes

Allowable Values

  • AK
  • AL
  • AR
  • AZ
  • CA
  • CO
  • CT
  • DC
  • DE
  • FL
  • GA
  • HI
  • IA
  • ID
  • IL
  • IN
  • KS
  • KY
  • LA
  • MA
  • MD
  • ME
  • MI
  • MN
  • MO
  • MS
  • MT
  • NC
  • ND
  • NE
  • NH
  • NJ
  • NM
  • NV
  • NY
  • OH
  • OK
  • OR
  • PA
  • RI
  • SC
  • SD
  • TN
  • TX
  • UT
  • VA
  • VT
  • WA
  • WI
  • WV
  • WY
  • AB
  • BC
  • MB
  • NB
  • NL
  • NS
  • NT
  • NU
  • ON
  • PE
  • QC
  • SK
  • YT
PostalCodemodelstringYesThe postal code, max 30 chars
CountryCodemodelstringYesThe ISO Alpha-3 USA or CAN country codes

Allowable Values

  • USA
  • CAN

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /customers/{customerKey} HTTP/1.1 
Host: syntch.simpay.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	CustomerKey: 0,
	CustomerID: String,
	CustomerName: String,
	ActivationStatus: Pending,
	MerchantKey: 0,
	CreationTimestamp: 0001-01-01,
	LastUpdateTimestamp: 0001-01-01,
	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
	}
}