Package. Clone Package POST

Clone package (with or without applications and payment drafts in it)

# ENDPOINT
/api/package/clonePackage/packageCloneRequest
# REQUEST BODY
# RESPONSE
        						
# REQUEST BODY
Schema: packageCloneRequest
Type: object
Variable Name Type Format Usage Description
cancelled_applications_only Cancelled applications only integer
client_code Client code string Unique client identifier. Issued automatically by the System upon new Customer registration.
id id integer INT64 Record's sequence number generated in the system.
uncompleted_applications_only Uncompleted applications only integer
# REQUEST BODY EXAMPLE
							{
    "client_code": "EN00000CY",
    "id"           : "21362",
    "uncompleted_applications_only" : "0",
    "cancelled_applications_only"   : "0" 
}						
# NEGATIVE RESPONSE

200 - Response with error when status is ERROR

Schema: HeaderResponseStatusError
Type: object
Variable Name Type Format Description
status status string Request execution status
error_description Error Description string Description of error
error Error Code string Error code
data_type data_type string Type of data
total_records total_records string Total count of records
data data object Empty object
# POSITIVE RESPONSE

200 - Response successfully when status is OK

Schema: HeaderResponseStatusOk
Type: object
Variable Name Type Format Description
status status string Request execution status
error_description Error Description string Description of error
error Error Code string Error code
data_type data_type string Type of data
total_records total_records string Total count of records
data data object Empty object
# RESPONSE POSITIVE EXAMPLE
							{
    "status": "ok",
    "error_description": "",
    "error": {},
    "data_type": "system.api.package.packageModel",
    "total_records": 1,
    "data": {
        "client_code": "EN00000CY",
        "oauth_access_token": "",
        "processing_date": "2021-12-03",
        "processing_status": "NEW",
        "processing_step": "NORMAL",
        "error_description": "",
        "checksum": "020040BLGq7U27aQ86O0SV7PL7YIqcbmoFtl9oqwomuuUoZVwKZV/fmyCTWS2rZ1bauB7tYO3OVo/tPlAJmqyu6V8Q1w==",
        "payment_import_initiation_id": 0,
        "uid": "e32f8984-bba3-a29e-8c14-1f3d18c7d0e4",
        "id": 21856,
        "version": 1183974258,
        "state": 0,
        "create_user": "root",
        "create_date": "2021-12-03T10:33:20.424",
        "modify_user": "root",
        "modify_date": "2021-12-03T10:33:20.460"
    }
}