| POST | /recurringPayments/card | ||
|---|---|---|---|
| POST | /recurringPayments/{Id}/card |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | path | int | No | |
| PaymentTokenId | body | string | No | |
| Phone | body | string | No | |
| Token | body | string | No | |
| PanLastFour | body | string | No | |
| ExpYear | body | string | No | |
| ExpMonth | body | string | No | |
| Via | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Ok | form | bool | No | |
| Id | form | int | No | |
| Effect | form | string | No | |
| PriorStatus | form | string | No | |
| Status | form | string | No | |
| Resumed | form | bool | No | |
| NextPayment | form | DateTime? | No | |
| StatusCode | form | int | No | |
| Message | form | string | 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 /recurringPayments/card HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id":0,"paymentTokenId":"String","phone":"String","token":"String","panLastFour":"String","expYear":"String","expMonth":"String","via":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ok":false,"id":0,"effect":"String","priorStatus":"String","status":"String","resumed":false,"nextPayment":"0001-01-01T00:00:00.0000000","statusCode":0,"message":"String"}