Syntch Gateway API

<back to all web services

PostPnRefToken

Tokenization - CardsTokenization - Checks
Requires Authentication
Requires the role:Merchant
The following routes are available for this service:
POST/merchants/{merchantKey}/tokensCreates a card or check token from the PnRef.
PostPnRefToken Parameters:
NameParameterData TypeRequiredDescription
MerchantKeypathintegerYesThe key of the merchant.
CustomerKeymodelintegerNoThe customer key.
PnRefmodelintegerYesThe PnRef to create a token from.
TokenFormatmodelTokenFormat?NoThe token format for this card

Allowable Values

  • Uid
  • Integer
TokenFormat Enum:
NameValue
Uid1
Integer2
CardFormat3
PnRefTokenDetail Parameters:
NameParameterData TypeRequiredDescription
CardTokenmodelCardTokenDetailNoThe card token.
CheckTokenmodelCheckTokenDetailNoThe check token.
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 .csv suffix or ?format=csv

HTTP + CSV

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

POST /merchants/{merchantKey}/tokens HTTP/1.1 
Host: syntch.simpay.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"MerchantKey":0,"CustomerKey":0,"PnRef":0,"TokenFormat":"0"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"CardToken":{"MerchantKey":0,"CustomerKey":0,"CardNumber":"String","ExpirationDate":"String","CardType":"String","NameOnCard":"String","StreetAddress":"String","PostalCode":"String","Token":"String"},"CheckToken":{"MerchantKey":0,"CustomerKey":0,"AccountNumber":"String","RoutingNumber":"String","NameOnCheck":"String","AccountType":"0","CheckType":"0","Token":"String"}}