Submit an application

This endpoint is used to submit an application for review, transitioning its status from DRAFT mode to SUBMITTED mode. Once submitted, the application becomes uneditable and enters the review process.



Request


Endpoint


Required Keys

ParameterDescription
{id}The unique application identifier returned during application creation or listing endpoints.
bearer tokenThe auth token returned by `/oauth2/token

Prerequisite

Make sure the application is DRAFT mode before submission





Response

Field Definitions

Field NameTypeDescription
statusStringStatus of the API request (SUCCESS, FAILED).
successBooleanIndicates if the API request was successful.
resultStringThe result of the API request (e.g., "Application submitted successfully").
statusCodeString (Optional)The HTTP status code of the API response.
errorsArray of StringsAny errors encountered during the API request.
customPropertiesObject (Optional)Additional custom properties for the API response.


❗️

Notes

  • After a successful submission, the application status will change to SUBMITTED and cannot be edited further.
  • Notify relevant internal teams (e.g., Risk and Operations) of the submission for processing.

Payload Examples

Request

cURL Request Example

curl --request POST \
     --url https://api-sandbox.flex-charge.com/v1/application/{id}/submit \
     --header 'Authorization: bearer {the token returned by /oauth2}' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '

Response

JSON Example for a Successful Submission

{
   "status": "SUCCESS",
   "success": true,
   "result": "Application submitted successfully.",
   "statusCode": "200",
   "errors": [],
   "customProperties": {}
}

JSON Example for a Failed Submission

{
   "status": "FAILED",
   "success": false,
   "result": null,
   "statusCode": "400",
   "errors": [
       "Application is already submitted.",
       "Invalid application ID."
   ],
   "customProperties": {}
}

Updating Application Status

After receiving a successful response, update the application status in your CRM or internal system to SUBMITTED for accurate tracking.