Account information changed

This event occurs when account information in the custom fields changes.
Generated by: Update account custom fields
More information: Create or update account

Type: object
Domain: account
Event: account_change
Version: 2

|
account_id required

Title: Account ID
Description: Unique ID used to retrieve account details in the Pismo platform APIs.
Type: integer
Example:
100602614

old_account required

Title: Account object
Description: Object with account information
Type: object

custom_fields

Title: Custom fields
Description: Metadata field with any key-value pairs.
Type: object or null
Example:

{
    "credit_score": 800,
    "legacy_system_id": "17f43184-f1b5-4bac-9fba-49e2d178d1a4"
}
division_id

Title: Account's administrative division ID
Type: integer
Example:
2856813

account_name

Title: Account name
Description: Custom account name
Type: string or null
Max length: 60

parent_account_id

Title: Parent account ID
Description: Unique ID of the associated parent account.
Type: integer or null
Example:
20

new_account required

Title: Account object
Description: Object with account information
Type: object

custom_fields

Title: Custom fields
Description: Metadata field with any key-value pairs.
Type: object or null
Example:

{
    "credit_score": 800,
    "legacy_system_id": "17f43184-f1b5-4bac-9fba-49e2d178d1a4"
}
division_id

Title: Account's administrative division ID
Type: integer
Example:
2856813

account_name

Title: Account name
Description: Custom account name
Type: string or null
Max length: 60

parent_account_id

Title: Parent account ID
Description: Unique ID of the associated parent account.
Type: integer or null
Example:
20

{
    "$schema": "http://json-schema.org/draft-07/schema",
    "type": "object",
    "title": "Account information changed",
    "description": "This event occurs when account information in the custom fields changes.<br>Generated by: <a href='https://developers.pismo.io/pismo-docs/reference/patch-accounts-v1-accounts' target='_blank'>Update account custom fields</a> <br>More information: <a href='https://developers.pismo.io/pismo-docs/docs/create-an-account' target='_blank'>Create or update account</a>",
    "required": [
        "account_id",
        "old_account",
        "new_account"
    ],
    "properties": {
        "account_id": {
            "type": "integer",
            "title": "Account ID",
            "description": "Unique ID used to retrieve account details in the Pismo platform APIs.",
            "examples": [
                100602614
            ]
        },
        "old_account": {
            "$ref": "#/definitions/account"
        },
        "new_account": {
            "$ref": "#/definitions/account"
        }
    },
    "definitions": {
        "account": {
            "type": "object",
            "title": "Account object",
            "description": "Object with account information",
            "properties": {
                "custom_fields": {
                    "type": [
                        "object",
                        "null"
                    ],
                    "title": "Custom fields",
                    "description": "Metadata field with any key-value pairs.",
                    "examples": [
                        {
                            "credit_score": 800,
                            "legacy_system_id": "17f43184-f1b5-4bac-9fba-49e2d178d1a4"
                        }
                    ]
                },
                "division_id": {
                    "type": "integer",
                    "title": "Account's administrative division ID",
                    "example": 2856813
                },
                "account_name": {
                    "title": "Account name",
                    "description": "Custom account name",
                    "type": [
                        "string",
                        "null"
                    ],
                    "maxLength": 60
                },
                "parent_account_id": {
                    "title": "Parent account ID",
                    "description": "Unique ID of the associated parent account.",
                    "type": [
                        "integer",
                        "null"
                    ],
                    "minimum": 0,
                    "maximum": 99999999999,
                    "examples": [
                        20
                    ]
                }
            }
        }
    }
}