Syntch Gateway API

<back to all web services

GetCardToken

Tokenization - Cards
Requires Authentication
Requires the role:Merchant
The following routes are available for this service:
GET/merchants/{merchantKey}/tokens/cards/{token}Gets a card token for the merchant.
GetCardToken Parameters:
NameParameterData TypeRequiredDescription
MerchantKeypathintegerYesThe key of the merchant.
TokenpathstringYesThe card 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.

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

HTTP + JSON

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

GET /merchants/{merchantKey}/tokens/cards/{token} HTTP/1.1 
Host: syntch.simpay.net 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"MerchantKey":0,"CustomerKey":0,"CardNumber":"String","ExpirationDate":"String","CardType":"String","NameOnCard":"String","StreetAddress":"String","PostalCode":"String","Token":"String"}