Syntch Gateway API

<back to all web services

PostCardToken

Tokenization - Cards
Requires Authentication
Requires the role:Merchant
The following routes are available for this service:
POST/merchants/{merchantKey}/tokens/cardsCreates a card token for the merchant.
PostCardToken Parameters:
NameParameterData TypeRequiredDescription
MerchantKeypathintegerYesThe key of the merchant.
CustomerKeymodelintegerNoThe customer key.
CardNumbermodelstringYesThe card number.
ExpirationDatemodelstringYesThe expiration date, formatted as MMYY.
NameOnCardmodelstringNoThe name on the card.
StreetAddressmodelstringNoThe street address for the card.
PostalCodemodelstringNoThe postal code for the card.
TokenFormatmodelTokenFormat?NoThe token format for this card

Allowable Values

  • Uid
  • CardFormat
  • Integer
TokenFormat Enum:
NameValue
Uid1
Integer2
CardFormat3
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 .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.

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

{
	MerchantKey: 0,
	CustomerKey: 0,
	CardNumber: String,
	ExpirationDate: String,
	NameOnCard: String,
	StreetAddress: String,
	PostalCode: String,
	TokenFormat: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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