Syntch Gateway API

<back to all web services

GetAllTokens

Tokenization
Requires Authentication
Requires the role:Merchant
The following routes are available for this service:
GET/merchants/{merchantKey}/customers/{customerKey}/tokensGets a collection of card and check tokens for a customer.
GetAllTokens Parameters:
NameParameterData TypeRequiredDescription
MerchantKeypathintegerYesThe key of the merchant.
CustomerKeypathintegerYesThe key of the customer.
BeginningDatequeryDateTime?NoConstrain the records returned to those occurring on or after this value. Default is to apply no constraint.
EndingDatequeryDateTime?NoConstrain the records returned to those occurring on or before this value. Default is to apply no constraint.
SortFieldquerystringNoThe field by which the records will be sorted. Default is 'Date'.

Allowable Values

  • Date
  • CustomerKey
SortedRequestDto Parameters:
NameParameterData TypeRequiredDescription
SortDirectionformstringNo
SortFieldformstringNo
PaginatedRequestDto Parameters:
NameParameterData TypeRequiredDescription
PageSizeformshortNo
PageNumberformshortNo
TokenDetails Parameters:
NameParameterData TypeRequiredDescription
CardTokensmodelList<CardTokenDetail>NoA collection of card tokens.
CheckTokensmodelList<CheckTokenDetail>NoA collection of check tokens.
CardTokenDetail Parameters:
NameParameterData TypeRequiredDescription
MerchantKeymodelint?NoThe merchant key.
CustomerKeymodelint?NoThe customer key.
CardNumbermodelstringNoThe card number.
ExpirationDatemodelstringNoThe expiration date, formatted as MMYY.
CardTypemodelstringNoThe card type.
NameOnCardmodelstringNoThe name on the card.
StreetAddressmodelstringNoThe street address for the card.
PostalCodemodelstringNoThe postal code for the card.
TokenmodelstringNoThe token for the card.
CheckTokenDetail Parameters:
NameParameterData TypeRequiredDescription
MerchantKeymodelint?NoThe merchant key.
CustomerKeymodelint?NoThe customer key.
AccountNumbermodelstringNoThe account number.
RoutingNumbermodelstringNoThe routing number.
NameOnCheckmodelstringNoThe name on the check.
AccountTypemodelCheckAccountType?NoThe account type, checking or savings.

Allowable Values

  • Checking
  • Savings
CheckTypemodelCheckType?NoThe check type, personal or business.

Allowable Values

  • Personal
  • Business
TokenmodelstringNoThe token for this check.
CheckAccountType Enum:
NameValue
Checking1
Savings2
CheckType Enum:
NameValue
Personal1
Business2

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 /merchants/{merchantKey}/customers/{customerKey}/tokens HTTP/1.1 
Host: syntch.simpay.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	CardTokens: 
	[
		{
			MerchantKey: 0,
			CustomerKey: 0,
			CardNumber: String,
			ExpirationDate: String,
			CardType: String,
			NameOnCard: String,
			StreetAddress: String,
			PostalCode: String,
			Token: String
		}
	],
	CheckTokens: 
	[
		{
			MerchantKey: 0,
			CustomerKey: 0,
			AccountNumber: String,
			RoutingNumber: String,
			NameOnCheck: String,
			AccountType: 0,
			CheckType: 0,
			Token: String
		}
	]
}