Phone updated

This event occurs when a phone information changes.
Generated by: Update phone information
More information: Address and phone objects

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

|
method required

Title: The operation HTTP method
Type: string
Example:
PATCH

uri required

Title: The API operation URI
Type: string
Example:
/v1/accounts/:accountId/phones/:phoneId

email required

Title: The operator email
Type: string
Example:
[email protected]

roles required

Title: The 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: The Origin Schema
Type: string
Example:
CRM

object required

Title: The audit object message
Type: object

account_id required

Title: The Account identifier
Type: integer
Example:
32422

customer_id

Title: The Customer identifier
Type: integer or null
Example:
42422

area_code required

Title: The phone area code
Type: string or null
Example:
11

number required

Title: The Phone Number
Type: string or null
Example:
422742123

type required

Title: The Phone Type
Type: string
Example:
MOBILE

extension required

Title: The Extension type
Type: string or null
Example:
string

active required

Title: Is active or not
Type: boolean
Example:
true

country_code required

Title: The phone country code
Type: string or null
Example:
55

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "title": "Phone updated",
    "description": "This event occurs when a phone information changes. \n Generated by: <a href='https://developers.pismo.io/pismo-docs/reference/patch-accounts-v1-accounts-accountid-phones-phoneid' target='_blank'>Update phone information</a> \n More information: <a href='https://developers.pismo.io/pismo-docs/docs/address-and-phone-objects' target='_blank'>Address and phone objects</a>",
    "required": [
        "method",
        "uri",
        "email",
        "roles",
        "origin",
        "object"
    ],
    "properties": {
        "method": {
            "type": "string",
            "title": "The operation HTTP method",
            "default": "",
            "examples": [
                "PATCH"
            ]
        },
        "uri": {
            "type": "string",
            "title": "The API operation URI",
            "default": "",
            "examples": [
                " /v1/accounts/:accountId/phones/:phoneId"
            ]
        },
        "email": {
            "type": "string",
            "title": "The operator email",
            "default": "",
            "examples": [
                "[email protected]"
            ]
        },
        "roles": {
            "type": "array",
            "title": "The operator roles",
            "items": {
                "type": "string",
                "title": "The Roles",
                "default": "",
                "examples": [
                    "backoffice-operator",
                    "crm-operator",
                    "geroficios-operator",
                    "inspetoria-master",
                    "inspetoria-operator",
                    "itibackoffice-master",
                    "itibackoffice-operator",
                    "itinivel1-operator",
                    "treasury-operator"
                ]
            }
        },
        "origin": {
            "type": "string",
            "title": "The Origin Schema",
            "default": "",
            "examples": [
                "CRM"
            ]
        },
        "object": {
            "type": "object",
            "title": "The audit object message",
            "required": [
                "account_id",
                "area_code",
                "number",
                "type",
                "extension",
                "active",
                "country_code"
            ],
            "properties": {
                "account_id": {
                    "type": "integer",
                    "title": "The Account identifier",
                    "default": 0,
                    "examples": [
                        32422
                    ]
                },
                "customer_id": {
                    "type": [
                        "integer",
                        "null"
                    ],
                    "title": "The Customer identifier",
                    "examples": [
                        42422
                    ]
                },
                "area_code": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "title": "The phone area code",
                    "default": "",
                    "examples": [
                        "11"
                    ]
                },
                "number": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "title": "The Phone Number",
                    "default": "",
                    "examples": [
                        "422742123"
                    ]
                },
                "type": {
                    "type": "string",
                    "title": "The Phone Type",
                    "default": "",
                    "examples": [
                        "MOBILE"
                    ]
                },
                "extension": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "title": "The Extension type",
                    "default": "",
                    "examples": [
                        "string"
                    ]
                },
                "active": {
                    "type": "boolean",
                    "title": "Is active or not",
                    "default": false,
                    "examples": [
                        true
                    ]
                },
                "country_code": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "title": "The phone country code",
                    "examples": [
                        "55"
                    ]
                }
            }
        }
    }
}
{
    "method": "PATCH",
    "uri": " /v1/accounts/:accountId/phones/:phoneId",
    "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": 32422,
        "customer_id": 42422,
        "area_code": "11",
        "number": "422742123",
        "type": "MOBILE",
        "extension": "string",
        "active": true,
        "country_code": "55"
    }
}