| POST | /BraintreeEditCard | Edit credit/debit card - expiry and cardholder name. | Edit credit/debit card using braintree gateway |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PaymentMethodToken | body | string | No | payment method token for card to update |
| ExpiryMonth | body | string | No | card expiryMonth |
| ExpiryYear | body | string | No | card expiryYear |
| CardHolderName | body | string | No | card holder name |
| DeviceData | body | string | Yes | braintree generated device data |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ErrorNo | form | int | No | |
| Message | form | string | No | |
| Identity | form | long? | No | |
| ErrorSource | form | string | No | |
| DisplayOnUI | form | bool | 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 /BraintreeEditCard HTTP/1.1
Host: tstextweb20.np.bluebet.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"PaymentMethodToken":"String","ExpiryMonth":"String","ExpiryYear":"String","CardHolderName":"String","DeviceData":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ErrorNo":0,"Message":"String","Identity":0,"ErrorSource":"String","DisplayOnUI":false}