p2m contract data updated

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

|
method required

Title: Method
Description: The HTTP Method of contract data change operation
Type: string
Example:
POST

uri required

Title: URI
Description: The URI of contract data change operation
Type: string
Example:
/v1/clientes/:merchantDocument/contratos/:contractCode
null

email

Title: E-mail
Description: The operator email of contract data change operation
Type: string
Example:
[email protected]
null

operator_profile

Title: Operator profile
Description: The operator profile of contract data change operation
Type: string
Example:
[email protected]
null

object required

Title: Object
Description: The object that represents the contract data change operation
Type: object

contract_code required

Title: Contract code
Description: The contract code identifier
Type: string
Example:
7405aa2c-eb79-4eef-acac-52093bb2d344

merchant_document required

Title: Merchant document
Description: The merchant reference document
Type: string
Example:
99999999999999
99999999999

old_account

Title: Old account
Description: The account original data
Type: object

bank

Title: Bank
Description: The bank identifier
Type: string
Example:
341
null

agency

Title: Agency
Description: The agency identifier
Type: string
Example:
0500

account_number

Title: Account number
Description: identifier of a specific user's bank account
Type: string
Example:
999999999

account_digit

Title: Account digit
Description: The account digit
Type: string
Example:
9

new_account

Title: The account new data
Type: object

bank

Title: Bank
Description: The bank identifier
Type: string
Example:
341
null

agency

Title: Agency
Description: The agency identifier
Type: string
Example:
0500

account_number

Title: Account number
Description: identifier of a specific user's bank account
Type: string
Example:
999999999

account_digit

Title: Account digit
Description: The account digit
Type: string
Example:
9

{
    "type": "object",
    "title": "p2m contract data updated",
    "required": [
        "method",
        "uri",
        "object"
    ],
    "properties": {
        "method": {
            "type": "string",
            "title": "Method",
            "description": "The HTTP Method of contract data change operation",
            "examples": [
                "POST"
            ]
        },
        "uri": {
            "type": "string",
            "title": "URI",
            "description": "The URI of contract data change operation",
            "examples": [
                "/v1/clientes/:merchantDocument/contratos/:contractCode",
                null
            ]
        },
        "email": {
            "type": "string",
            "title": "E-mail",
            "description": "The operator email of contract data change operation",
            "examples": [
                "[email protected]",
                null
            ]
        },
        "operator_profile": {
            "type": "string",
            "title": "Operator profile",
            "description": "The operator profile of contract data change operation",
            "examples": [
                "[email protected]",
                null
            ]
        },
        "object": {
            "type": "object",
            "title": "Object",
            "description": "The object that represents the contract data change operation",
            "required": [
                "contract_code",
                "merchant_document",
                "old_account",
                "new_account"
            ],
            "properties": {
                "contract_code": {
                    "type": "string",
                    "title": "Contract code",
                    "description": "The contract code identifier",
                    "examples": [
                        "7405aa2c-eb79-4eef-acac-52093bb2d344"
                    ]
                },
                "merchant_document": {
                    "type": "string",
                    "title": "Merchant document",
                    "description": "The merchant reference document",
                    "examples": [
                        "99999999999999",
                        "99999999999"
                    ]
                },
                "old_account": {
                    "type": "object",
                    "title": "Old account",
                    "description": "The account original data",
                    "properties": {
                        "bank": {
                            "type": "string",
                            "title": "Bank",
                            "description": "The bank identifier",
                            "examples": [
                                "341",
                                null
                            ]
                        },
                        "agency": {
                            "type": "string",
                            "title": "Agency",
                            "description": "The agency identifier",
                            "examples": [
                                "0500"
                            ]
                        },
                        "account_number": {
                            "type": "string",
                            "title": "Account number",
                            "description": "identifier of a specific user's bank account",
                            "examples": [
                                "999999999"
                            ]
                        },
                        "account_digit": {
                            "type": "string",
                            "title": "Account digit",
                            "description": "The account digit",
                            "examples": [
                                "9"
                            ]
                        }
                    }
                },
                "new_account": {
                    "type": "object",
                    "title": "The account new data",
                    "properties": {
                        "bank": {
                            "type": "string",
                            "title": "Bank",
                            "description": "The bank identifier",
                            "examples": [
                                "341",
                                null
                            ]
                        },
                        "agency": {
                            "type": "string",
                            "title": "Agency",
                            "description": "The agency identifier",
                            "examples": [
                                "0500"
                            ]
                        },
                        "account_number": {
                            "type": "string",
                            "title": "Account number",
                            "description": "identifier of a specific user's bank account",
                            "examples": [
                                "999999999"
                            ]
                        },
                        "account_digit": {
                            "type": "string",
                            "title": "Account digit",
                            "description": "The account digit",
                            "examples": [
                                "9"
                            ]
                        }
                    }
                }
            }
        }
    }
}
{
    "method": "POST",
    "uri": "/v1/clientes/:merchantDocument/contratos/:contractCode",
    "email": "[email protected]",
    "operator_profile": "[email protected]",
    "object": {
        "contract_code": "7405aa2c-eb79-4eef-acac-52093bb2d344",
        "merchant_document": "99999999999999",
        "old_account": {
            "bank": "341",
            "agency": "0500",
            "account_number": "999999999",
            "account_digit": "9"
        },
        "new_account": {
            "bank": "341",
            "agency": "0500",
            "account_number": "999999999",
            "account_digit": "9"
        }
    }
}