Cancel application
PUT/financing/v1/applications/:uuid/cancel
Requires applications.cancel authority for authenticated user
If there is need to completely cancel customer's order, it is necessary to cancel respective
application. For this purpose use /financing/v1/applications/{applicationId}/cancel
resource where {applicationId} is the application ID you received in the response of
/financing/v1/applications after its creation.
| Financing type | Supported |
|---|---|
INSTALLMENT | YES |
| Application state | Availability |
|---|---|
REJECTED | YES |
CANCELED | YES |
PROCESSING | YES |
READY | YES |
If the request was successfully processed but the application had been already paid
(Application.stateReason = READY_PAID) you receive HTTP status code 202 ACCEPTED
that means the process of a cancelation of the application began. It SHOULD be
completed after fulfilment of several back office manual actions.
In other cases, when the request is successfully processed, you receive HTTP status code 200 OK.
You also receive at least following information about (soon to be) cancelled application in the response:
- Application unique ID
- Application type
- Application state
- Application substate
In other cases, you receive one of the following errors:
| Status code | Code | Explanation |
|---|---|---|
| 400 | INVALID_REQUEST | Request was not well formatted (malformed request syntax, size too large, etc.) |
| 404 | OBJECT_NOT_FOUND | The requested resource could not be found |
| 422 | NOT_SUPPORTED | Resource is not supported for given financing type |
| 422 | UNPROCESSABLE | The request was well-formed but was unable to be followed due to semantic errors |
| 422 | APPLICATION_REJECTED | When you try to cancel already REJECTED Application, which is not allowed |
| 500 | INTERNAL_SERVER_ERROR | Unexpected condition was encountered and no more specific message is suitable |
Request
Responses
- 200
- 201
- 401
- 403
- 404
OK
Created
Unauthorized
Forbidden
Not Found