Create division [beta]

Create a division. The client chooses the division_code, which identifies the division in every Apex division operation, so divisions have no separate external ID. The division_code must be unique within the organization and cannot be changed after the division is created. The Pismo platform generates the division_id, and responses return both.

This endpoint generates a Corporate division created event.

The division belongs to the hierarchy identified by external_hierarchy_id, at the level identified by external_hierarchy_level_id, and its accounts can use the programs identified by external_program_ids. Its parent is the division identified by parent_division_code, which must be at a level of the same hierarchy with a lower index.

Notes:

  • If a division with this division_code already exists, the request fails with 409 and the code WAPX0140. This includes retrying a request that already succeeded or timed out: use Get division to read the division created.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length between 1 and 36
^[a-zA-Z0-9-]+$

Division code provided by the client, with only letters, numbers and hyphens. It is unique per organization and cannot be changed after the division is created.

string
required
length between 1 and 60
^[a-zA-Z0-9-]+$

Hierarchy ID provided by the client, unique per organization. It cannot be changed after the hierarchy is created.

string
required
length between 1 and 60
^[a-zA-Z0-9-]+$

Hierarchy level ID provided by the client, unique per organization. It cannot be changed after the hierarchy is created.

string
length between 1 and 80

Division description

external_program_ids
array of objects, unique
length ≤ 100

External program IDs of the programs that accounts in the division can use, validated when a transaction banking account is created. Without them, the division inherits the programs of its parent division, if it has one.

external_program_ids
string
length between 1 and 40

Division name

string
length between 1 and 36
^[a-zA-Z0-9-]+$

Division code that can be set as the parent of the division being created. The parent must be at a level with a lower index than the division being created. It must comply with the rule ^[a-zA-Z0-9-]+$.

schema
object

Valid JSON Schema as defined at https://json-schema.org/specification.html.
This schema validates the JSON custom fields used in the
Create transaction banking account process.
If this field is not set, the division inherits its schema from the parent
division, if one exists.
The example below is shown in YAML for readability; the API requires JSON.

string
length ≥ 1

Division timezone in timezone database format.

This value is used in the calculations for holidays, weekends, and daily balances. If a timezone is not specified, the division inherits the timezone from its parent division. If the parent division also lacks a specified timezone, Pismo defaults to using UTC.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json