Use this method to cancel (i.e. "reject") a money request from the user with the associated access token.
HTTP Method: POST
Scope Required: 'Request'
Requires Authentication: YES
https://www.dwolla.com/oauth/rest/requests/{request_id}/cancel
Request
Response
(click Submit to query the API)
| |
Param |
Description |
| * |
oauth_token |
A valid OAuth token |
| * |
request_id |
The request ID to cancel
|
POST https://www.dwolla.com/oauth/rest/requests/{request_id}/cancel
Content-Type: 'application/json'
{
"oauth_token": "",
}
{"Success":true,"Message":"Success","Response":""}
| Literal String |
Explanation |
| "Invalid request ID." |
The specific request ID is either empty or invalid. |
| "Request not found for account." |
Could not find a request with the specified ID for the given OAuth token. |
| "Request is not in Pending status." |
You may only cancel requests that are in the 'pending' state. |
| "Access token is empty." |
No OAuth access token has been supplied. |
| "Invalid access token." |
The OAuth access token supplied is invalid or incorrect. |
| "Token does not have access to requested resource. Token must have {...} scope access." |
The given OAuth token does not have access to the requested scope used. Please review the scopes list. |
| "Invalid account status for user of this access token." |
The account associated with the given OAuth token is in an invalid status. |
| "Application is either not verified or suspended." |
The application used to generate the OAuth token has been unverified or suspended. |
| "Account temporarily locked" |
Too many failed attempts have been made to access this account. The account has been temporarily locked for 30 minutes. |
| "Unexpected error has occurred." |
Something unexpected happened. It has been logged on our end and will be reviewed shortly. |
Literal strings returned in the API do no include the quotation marks used above.