Create Snapshot of Cashflow Detail Curves
POST /ws/rest/service/v2/cashflow/snapshot
Purpose
Create a snapshot in an existing cashflow detail curve in specific shell from different system.
A successful API call creates the snapshot with the provided name in the specified curve, with an entry in the snapshot log.
Prerequisite
You must have Full Access and Update permissions to use this REST service.
Request Format
Send an API request as a JSON Map with the following structure:
{
"options":{
"project_number": "<value>",
"name": "<value>"
},
"data":["snapshotName1":"<value>", "snapshotName2": "<value>"]
}
Request Parameters
In the options map, the following parameters can be included:
Parameter | Required? | Data Type | Description |
---|---|---|---|
project_number | Yes | String | A valid project number. |
name | Yes | String | A valid cashflow name. |
snapshot_name | Yes | String | A valid snapshot name. |
Response Format
A JSON object is returned in the following format.
{
"data": [],
"message": [<list of messages>],
"status": <REST status code value>,
"rest_audit_id": <id from the audit table>
}
A successful response displays a status code 200.
A failed response displays a message with a status code.
Sample Request
To create a May 8th snapshot for a cashflow, called CashFlow By CBS, send a request in the following format:
{
"options"
: {
"project_number" :1001,
"name" : "CashFlow By CBS",
},
"
data":[
{"snapshot_name":"May8th snapshot"}]
}
Sample Success Response
A successful response with status code 200 displays in the following format:
{
"data" : [ ] ,
"status: : 200,
"message": "success",
"rest_audit_id": 1210
}
Supported Validation Messages and Status Codes
The following messages and status codes can display in the response:
Field Name | Use-Case | Status | Message |
---|---|---|---|
project_number | Project number is not provided. | 13001 | Project/Shell number is mandatory and is missing in the input request. |
project_number | The project number is invalid. | 602 | Project/Shell Number is not correct. |
project_number | Project is not active. | 1219 ( get - existing code) | Create/Update/Delete cannot be performed when project/shell status is Inactive or View-Only or On-Hold. |
curve_name | Curve name is not provided. | 13002 | Cashflow curve name is mandatory and is missing in the input request. |
curve_name | Curve name provided no longer exists. | 13003 | Invalid curve name provided in input request. |
curve_name | curve name provided is a summary curve. | 13011 | Cashflow name provided in input request is not a summary curve. |
snapshot_name | Snapshot name is not provided. | 13004 | Provide a snapshot name. |
snapshot_name | When the snapshot name already exists. | 13005 | Snapshot name already exists. |
snapshot_name | Snapshot name has unsupported characters |
| Snapshot name specified does not exist in the cashflow <name>. |
Related Topics
Snapshots of Cashflow Detail Curves
Delete an Existing Snapshot for Cashflow Summary Curves
Get Snapshot Names for Existing Summary Curves
Last Published Wednesday, April 9, 2025