{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Payout Item",
    "description": "PayPal payout item json schema",
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "recipient_type": {
                "type": "string",
                "enum": [
                    "EMAIL",
                    "PHONE",
                    "PAYPAL_ID"
                ]
            },
            "amount": {
                "type": "object",
                "properties": {
                    "currency": {
                        "type": "string",
                        "maxLength": 3
                    },
                    "value": {
                        "type": "string"
                    }
                },
                "required": [
                    "currency",
                    "value"
                ]
            },
            "note": {
                "type": "string"
            },
            "receiver": {
                "type": "string"
            },
            "sender_item_id": {
                "type": "string"
            }
        },
        "required": [
            "amount",
            "receiver"
        ]
    }
}