Corporate division created (deprecated)

Type: object
Domain: corporate
Event: division_creation
Version: 1

|
id required

Title: Division unique identifier
Description: Division unique identifier generated by Pismo
Type: string
Min length: 1
Max length: 36
Example:
7c6138a3-0daa-4a49-aa76-fa03294146b2

division_code required

Title: Division code unique identifier
Description: Code string that uniquely identifies the division within your organization.
Type: string
Max length: 36
Example:
division-code-123

hierarchy_id required

Title: Hierarchy unique identifier
Type: string
Min length: 1
Max length: 36
Example:
775f2caa-8c8c-40dd-908d-0d192f2e0144

level_id required

Title: Level unique identifier
Type: string
Min length: 1
Max length: 36
Example:
21a44048-4097-4a79-a663-46e357497ed8

name required

Title: Division name
Type: string
Min length: 1
Max length: 40
Example:
uk-london-01

allow_weekends_transactions

Title: Allow weekends transactions
Description: A flag describes whether or not transactions should be allowed on weekends
Type: boolean or null
Example:
true

description

Title: Division description
Type: string
Min length: 1
Max length: 80
Example:
UK - London

holidays

Type: array or null

day required

Title: Day of the month
Description: The day of the month, in integer form from 1 to 31
Type: integer
Example:
31

month required

Title: Month
Description: The month, in integer form from 1 to 12
Type: integer
Example:
12

description

Title: Holiday description
Type: string
Min length: 1
Max length: 80
Example:
New year's eve

parent_code

Title: The division code that represents the parent of the division.
Type: string
Min length: 1
Max length: 36
Example:
parent-division-code-01

program_ids

Type: array or null
Example:

[ 15, 20 ]
schema

Title: Schema
Description: A valid JSON schema as specified in https://json-schema.org/specification.html
Type: object or null
Additional properties: true
Example:

{ "$id": "https://example.com/custom-data.schema.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "Custom Data", "type": "object", "properties": { "custom_info": { "type": "string", "description": "Custom information" } } }
timezone

Title: Timezone
Description: The timezone of this division. This value will be used when calculating holidays, weekends and daily balances. The format is based on timezone database standards.
Type: string or null
Min length: 0
Max length: 255
Example:
America/Sao_Paulo
US/Central
America/New_York