# Retrieve By Id Actions Get Actions By Id Endpoint: GET /rest/2.0/CS_ACTION/{id} Version: 1.0 Security: JWT ## Path parameters: - `id` (integer, required) Id of the record ## Header parameters: - `sessionId` (string, required) ## Response 200 fields (application/json): - `retrieveResponse` (object) - `retrieveResponse.GenerateStatementFlag` (integer) Generate Statement: If checked cause this action to email a newly generate statement in accordance to the statement template and statement from and to dates on the day the action is due, leave unchecked to have the action email latest available statement. - `retrieveResponse.StatementTemplateId` (integer) Statement Template - `retrieveResponse.StatementFromDateFormula` (string) Statement From Date - `retrieveResponse.StatementEndDateFormula` (string) Statement To Date - `retrieveResponse.StrategyId` (integer) Strategy: Collection Strategy Id - `retrieveResponse.Priority` (string) Priority - `retrieveResponse.ActionTypeId` (integer) Collection Action - `retrieveResponse.ContactTypeId` (integer) Contact Category - `retrieveResponse.EmailTemplateId` (integer) Email Template: To create new templates, go to Setup > Templates > Email and create a new template using CS_ACCOUNT_ACTION as Base Entity. - `retrieveResponse.ManualFlag` (integer) Automatic: If checked, the system will complete the action on the day it becomes due. If the action is missing any elements without which it cannot be completed (e.g., Email template is deleted before action is executed) the action will fail and it will become a manual Pending action. - `retrieveResponse.AttachmentType` (string) Attachment: Invoice: Email will include all invoices past due at the time of executing the action.Statement: Email will include the statement of the account as of the date when the action is executed.Invoice + Statement: Both Statement and invoices will be added to the email. - `retrieveResponse.Created` (string) System controlled field: Date and time the record was created - `retrieveResponse.Updated` (string) System controlled field: Date and time the record was last updated - `retrieveResponse.Id` (string) Id: Primary key - `retrieveResponse.UpdatedUserId` (string) System controlled field: Id of the last user that updated the record - `retrieveResponse.CreatedUserId` (string) System controlled field: Id of the user that created the record - `retrieveResponse.DueOnDay` (string) Due On Day: Days after the strategy is triggered when the action will become due or automatically executed. E.g., If a strategy gets triggered on August 15th, an automatic action Due On Day 1 will be executed on that same day. - `retrieveResponse.ContactType` (string) Contact Type: When Exact Contact is selected, the first collections contact will be emailed/called when the action is executed. When All Contacts is selected, all contacts under the Account will be emailed/called where Contact Category = Collections Contact ## Response 400 fields (application/json): - `error` (string) Bad request - `message` (string) Bad request ## Response 401 fields (application/json): - `error` (string) Unauthorized - `message` (string) Unauthorized ## Response 404 fields (application/json): - `error` (string) Not found - `message` (string) Not found ## Response 429 fields (application/json): - `error` (string) Too many requests - `message` (string) Too many requests ## Response 500 fields (application/json): - `error` (string) Internal error - `message` (string) Internal error