PAN updated

Event happen when Pan Update process finishes.

Type: object
Domain: cards-tokenization
Event: pan_update
Version: 1

|
account_id required

Title: Accound ID
Description: Pismo account ID.
Type: integer
Example:
24146066

old_card_id required

Title: Old card ID
Description: The old card to be updated
Type: integer
Example:
42488842

new_card_id required

Title: New card ID
Description: The new card of migrated tokens
Type: integer
Example:
42488843

migrated_tokens required

Title: Migrated tokens
Description: The list of tokens that were migrated from the old card to the new one
Type: array
Example:

[
    [
        876841,
        876842,
        876843
    ]
]
status required

Title: Processing status
Description: Processing status
Type: string
Example:
SUCCESS
FAILURE

reason

Title: Reason
Description: Return the reason in case of failure reason
Type: string or null
Example:
Error processing request

reason_code

Title: Reason Code
Description: Return the reason code in case of failure reason
Type: string or null
Example:
ERR7655

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "title": "PAN updated",
    "description": "Event happen when Pan Update process finishes.",
    "properties": {
        "account_id": {
            "type": "integer",
            "title": "Accound ID",
            "description": "Pismo account ID.",
            "examples": [
                24146066
            ]
        },
        "old_card_id": {
            "title": "Old card ID",
            "description": "The old card to be updated",
            "type": "integer",
            "examples": [
                42488842
            ]
        },
        "new_card_id": {
            "title": "New card ID",
            "description": "The new card of migrated tokens",
            "type": "integer",
            "examples": [
                42488843
            ]
        },
        "migrated_tokens": {
            "title": "Migrated tokens",
            "description": "The list of tokens that were migrated from the old card to the new one",
            "type": "array",
            "examples": [
                [
                    876841,
                    876842,
                    876843
                ]
            ]
        },
        "status": {
            "type": "string",
            "title": "Processing status",
            "description": "Processing status",
            "examples": [
                "SUCCESS",
                "FAILURE"
            ]
        },
        "reason": {
            "title": "Reason",
            "description": "Return the reason in case of failure reason",
            "type": [
                "string",
                "null"
            ],
            "examples": [
                "Error processing request"
            ]
        },
        "reason_code": {
            "title": "Reason Code",
            "description": "Return the reason code in case of failure reason",
            "type": [
                "string",
                "null"
            ],
            "examples": [
                "ERR7655"
            ]
        }
    },
    "required": [
        "account_id",
        "old_card_id",
        "new_card_id",
        "migrated_tokens",
        "status"
    ]
}
{
    "account_id": 24146066,
    "old_card_id": 42488842,
    "new_card_id": 42488843,
    "migrated_tokens": [
        [
            876841,
            876842,
            876843
        ]
    ],
    "status": "SUCCESS",
    "reason": "Error processing request",
    "reason_code": "ERR7655"
}