Cancel application
PUT/financing/v1/applications/:applicationId/cancel
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 |
|---|---|
DEFERRED_PAYMENT | YES |
PAY_IN_THREE | YES |
| Application state | Availability |
|---|---|
REJECTED | NO |
CANCELLED | NO |
PROCESSING | YES |
READY | YES *(available only when the Application's order is not marked as sent (via Mark order items as sent) or delivered (via Mark order items as delivered)) |
If the request was successfully processed, you receive HTTP status code 200 and object of information about cancelled order plus basic information about respective application (ID, state, substate).
In other cases, you may receive errors similar to the following ones:
| 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 | UNPROCESSABLE | The request was well-formed but was unable to be followed due to semantic errors |
| 422 | APPLICATION_REJECTED | When you try to cancel Application already REJECTED, which is not allowed |
| 422 | APPLICATION_ALREADY_CANCELLED | When you try to cancel Application that has been cancelled already |
| 422 | APPLICATION_VALIDATION_IN_PROGRESS | When you try to cancel Application which undergoes validation |
| 422 | APPLICATION_PAID | When you try to cancel Application already paid, which is not allowed |
| 422 | NOT_SUPPORTED | The request was well-formed but server was not able to change application state due internal rules |
Request
Responses
- 200
- 422
Application was cancelled
Application can not be cancelled