| Requires the role: | Merchant |
| PUT | /merchants/{merchantKey}/tokens/cards/{token} | Replaces a card token for the merchant. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| MerchantKey | path | integer | Yes | The key of the merchant. |
| Token | path | string | Yes | The card token. |
| CardNumber | model | string | Yes | The card number. |
| ExpirationDate | model | string | Yes | The expiration date, formatted as MMYY. |
| NameOnCard | model | string | No | The name on the card. |
| StreetAddress | model | string | No | The street address for the card. |
| PostalCode | model | string | No | The postal code for the card. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| MerchantKey | model | int? | No | The merchant key. |
| CustomerKey | model | int? | No | The customer key. |
| CardNumber | model | string | No | The card number. |
| ExpirationDate | model | string | No | The expiration date, formatted as MMYY. |
| CardType | model | string | No | The card type. |
| NameOnCard | model | string | No | The name on the card. |
| StreetAddress | model | string | No | The street address for the card. |
| PostalCode | model | string | No | The postal code for the card. |
| Token | model | string | No | The token for the card. |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /merchants/{merchantKey}/tokens/cards/{token} HTTP/1.1
Host: syntch.simpay.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
MerchantKey: 0,
Token: String,
CardNumber: String,
ExpirationDate: String,
NameOnCard: String,
StreetAddress: String,
PostalCode: String
}
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
}