Skip to main content

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 typeSupported
DEFERRED_PAYMENTYES
PAY_IN_THREEYES
Application stateAvailability
REJECTEDNO
CANCELLEDNO
PROCESSINGYES
READYYES *(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 codeCodeExplanation
400INVALID_REQUESTRequest was not well formatted (malformed request syntax, size too large, etc.)
404OBJECT_NOT_FOUNDThe requested resource could not be found
422UNPROCESSABLEThe request was well-formed but was unable to be followed due to semantic errors
422APPLICATION_REJECTEDWhen you try to cancel Application already REJECTED, which is not allowed
422APPLICATION_ALREADY_CANCELLEDWhen you try to cancel Application that has been cancelled already
422APPLICATION_VALIDATION_IN_PROGRESSWhen you try to cancel Application which undergoes validation
422APPLICATION_PAIDWhen you try to cancel Application already paid, which is not allowed
422NOT_SUPPORTEDThe request was well-formed but server was not able to change application state due internal rules

Request

Responses

Application was cancelled