| POST | /UpdateCreditCard | Updates details of a saved Credit Card. | Updates a Client Credit Card. Accessible only to authenticated users, user indentified from the session context |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CreditCardId | body | int | No | CreditCardId |
| CardTypeId | body | int | No | CardTypeId |
| AccountName | body | string | No | AccountName |
| ExpiryDate | body | DateTime | No | ExpiryDate |
| Pan | body | string | No | Pan |
| IsDefault | body | bool | No | IsDefault |
| BPayBillerCode | body | string | No | BPayBillerCode |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ErrorNo | form | int | No | |
| Message | form | string | No | |
| Identity | form | long? | No |
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /UpdateCreditCard HTTP/1.1
Host: tstextweb20.np.bluebet.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"CreditCardId":0,"CardTypeId":0,"AccountName":"String","ExpiryDate":"0001-01-01T00:00:00.0000000Z","Pan":"String","IsDefault":false,"BPayBillerCode":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ErrorNo":0,"Message":"String","Identity":0}