Account cancelled

Type: object
Domain: audit
Event: account_cancellation
Version: 1

|
method required

Title: Operation HTTP method
Type: string
Example:
PUT

uri required

Title: API operation URI
Type: string
Example:
/v2/accounts/:accountId/status

email required

Title: Operator email
Type: string
Example:
[email protected]

roles required

Title: Operator roles
Type: array
Example:

[
    "backoffice-operator",
    "crm-operator",
    "geroficios-operator",
    "inspetoria-master",
    "inspetoria-operator",
    "itibackoffice-master",
    "itibackoffice-operator",
    "itinivel1-operator",
    "treasury-operator"
]
origin required

Title: Event come from
Type: string
Example:
CRM

object required

Title: Audit data message
Type: object

account_id required

Title: Account id
Type: integer
Example:
171238

reason_description required

Title: Reason description
Type: string or null
Example:
DETERMINACAO LEGAL / JUDICIAL

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "title": "Account cancelled",
    "required": [
        "method",
        "uri",
        "email",
        "roles",
        "origin",
        "object"
    ],
    "properties": {
        "method": {
            "type": "string",
            "title": "Operation HTTP method",
            "examples": [
                "PUT"
            ]
        },
        "uri": {
            "type": "string",
            "title": "API operation URI",
            "examples": [
                "/v2/accounts/:accountId/status"
            ]
        },
        "email": {
            "type": "string",
            "title": "Operator email",
            "examples": [
                "[email protected]"
            ]
        },
        "roles": {
            "type": "array",
            "title": "Operator roles",
            "items": {
                "type": "string",
                "title": "Roles",
                "examples": [
                    "backoffice-operator",
                    "crm-operator",
                    "geroficios-operator",
                    "inspetoria-master",
                    "inspetoria-operator",
                    "itibackoffice-master",
                    "itibackoffice-operator",
                    "itinivel1-operator",
                    "treasury-operator"
                ]
            }
        },
        "origin": {
            "type": "string",
            "title": "Event come from",
            "examples": [
                "CRM"
            ]
        },
        "object": {
            "type": "object",
            "title": "Audit data message",
            "required": [
                "account_id",
                "reason_description"
            ],
            "properties": {
                "account_id": {
                    "type": "integer",
                    "title": "Account id",
                    "examples": [
                        171238
                    ]
                },
                "reason_description": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "title": "Reason description",
                    "examples": [
                        "DETERMINACAO LEGAL / JUDICIAL"
                    ]
                }
            }
        }
    }
}
{
    "method": "PUT",
    "uri": "/v2/accounts/:accountId/status",
    "email": "[email protected]",
    "roles": [
        "backoffice-operator",
        "crm-operator",
        "geroficios-operator",
        "inspetoria-master",
        "inspetoria-operator",
        "itibackoffice-master",
        "itibackoffice-operator",
        "itinivel1-operator",
        "treasury-operator"
    ],
    "origin": "CRM",
    "object": {
        "account_id": 171238,
        "reason_description": "DETERMINACAO LEGAL / JUDICIAL"
    }
}