| PUT | /fundingsources/creditcards/{CreditCardId} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CreditCardId | path | string | Yes | The credit card identifier |
| ExpirationMonth | body | string | No | |
| ExpirationYear | body | string | No | |
| RequestReference | body | RequestReference | No | Attribution values associated to the request if any |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CampaignId | form | string | No | |
| RetailChannelId | form | string | Yes | |
| ReferenceId | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CreditCardId | form | string | No | |
| CardToken | form | string | No | |
| Token | form | string | No | |
| CardholderName | form | string | No | |
| CardType | form | CreditCardType | No | |
| UniqueNumberIdentifier | form | string | No | |
| ExpirationMonth | form | string | No | |
| ExpirationYear | form | string | No | |
| Bin | form | string | No | |
| LastFour | form | string | No | The last 4 digits of the credit card number |
| IsDefault | form | bool | No | |
| Disabled | form | bool | No | |
| LastModified | form | DateTime | No |
| Unknown |
| AmericanExpress |
| CarteBlanche |
| ChinaUnionPay |
| DinersClub |
| Discover |
| JCB |
| Laser |
| Maestro |
| MasterCard |
| Solo |
| Switch |
| Visa |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /fundingsources/creditcards/{CreditCardId} HTTP/1.1
Host: azs-stg-lotteries-web.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"creditCardId":"String","expirationMonth":"String","expirationYear":"String","requestReference":{"campaignId":"String","retailChannelId":"String","referenceId":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"creditCardId":"String","cardToken":"String","token":"String","cardholderName":"String","cardType":"Unknown","uniqueNumberIdentifier":"String","expirationMonth":"String","expirationYear":"String","bin":"String","lastFour":"String","isDefault":false,"disabled":false,"lastModified":"0001-01-01T00:00:00.0000000"}