{
    "format": "tsv",
    "definitions": {},
    "delimiter": "tab",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://example.com/root.json",
    "type": "object",
    "title": "VEVO SonyStandardSales Schema",
    "header": [
        "record_type",
        "provider_key",
        "client_key",
        "report_start_date",
        "report_end_date",
        "vendor_name",
        "vendor_key",
        "country_key",
        "sales_type_key",
        "external_id",
        "upc",
        "sme_product",
        "isrc",
        "grid",
        "product_type_key",
        "returned_units",
        "wpu",
        "wpu_currency",
        "net_invoice_currency",
        "rpu",
        "rpu_currency",
        "vat_or_tax",
        "vat_or_tax_currency",
        "copyright_indicator",
        "distrobution_type_key",
        "transaction_type_key",
        "service_type_key",
        "participant_full_name",
        "product_title",
        "track_title",
        "media_key",
        "campaign_id",
        "customer_id",
        "customer_dob",
        "customer_gender",
        "customer_postal_code",
        "order_id",
        "transaction_date",
        "gross_units"
    ],
    "required": [
        "vendor_name",
        "country_key",
        "isrc",
        "gross_units"
    ],
    "properties": {
        "record_type": {
            "$id": "#/properties/record_type",
            "type": "string",
            "title": "record_type",
            "default": "",
            "examples": [
                "N"
            ],
            "pattern": "^[A-Z]*$"
        },
        "provider_key": {
            "$id": "#/properties/provider_key",
            "type": "string",
            "title": "provider_key",
            "default": "",
            "examples": [
                "PP24"
            ],
            "pattern": "^[A-Z0-9]+$"
        },
        "client_key": {
            "$id": "#/properties/client_key",
            "type": "string",
            "title": "client_key",
            "default": "",
            "examples": [
                "2222"
            ],
            "pattern": "^([\\d]+)$"
        },
        "report_start_date": {
            "$id": "#/properties/report_start_date",
            "type": "string",
            "title": "report_start_date",
            "default": "",
            "examples": [
                "20190829"
            ],
            "pattern": "^([\\d]+)$"
        },
        "report_end_date": {
            "$id": "#/properties/report_end_date",
            "type": "string",
            "title": "report_end_date",
            "default": "",
            "examples": [
                "20190829"
            ],
            "pattern": "^([\\d]+)$"
        },
        "vendor_name": {
            "$id": "#/properties/vendor_name",
            "type": "string",
            "title": "vendor_name",
            "default": "",
            "examples": [
                "Amazon Alexa Show"
            ],
            "pattern": "^[A-Z a-z]*$"
        },
        "vendor_key": {
            "$id": "#/properties/vendor_key",
            "type": "string",
            "title": "vendor_key",
            "default": "",
            "examples": [
                "PDU5"
            ],
            "pattern": "^[A-Z0-9]*$"
        },
        "country_key": {
            "$id": "#/properties/country_key",
            "type": "string",
            "title": "country_key",
            "default": "",
            "examples": [
                "US",
                "fi"
            ],
            "pattern": "^[A-Za-z]*$"
        },
        "sales_type_key": {
            "$id": "#/properties/sales_type_key",
            "type": "string",
            "title": "sales_type_key",
            "default": "",
            "examples": [
                "FG"
            ],
            "pattern": "^[A-Z]*$"
        },
        "external_id": {
            "$id": "#/properties/external_id",
            "type": "string",
            "title": "external_id",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^(.*)$"
        },
        "upc": {
            "$id": "#/properties/upc",
            "type": "string",
            "title": "upc",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^(.*)$"
        },
        "sme_product": {
            "$id": "#/properties/sme_product",
            "type": "string",
            "title": "sme_product",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^(.*)$"
        },
        "isrc": {
            "$id": "#/properties/isrc",
            "type": "string",
            "title": "isrc",
            "default": "",
            "examples": [
                "ARV101600385",
                "BXSPB1700014"
            ],
            "pattern": "^[A-Z0-9]*$"
        },
        "grid": {
            "$id": "#/properties/grid",
            "type": "string",
            "title": "grid",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^(.*)$"
        },
        "product_type_key": {
            "$id": "#/properties/product_type_key",
            "type": "string",
            "title": "product_type_key",
            "default": "",
            "examples": [
                "31"
            ],
            "pattern": "^([\\d]+)$"
        },
        "returned_units": {
            "$id": "#/properties/returned_units",
            "type": "string",
            "title": "returned_units",
            "default": "",
            "examples": [
                "0"
            ],
            "pattern": "^([\\d]+)$"
        },
        "wpu": {
            "$id": "#/properties/wpu",
            "type": "string",
            "title": "wpu",
            "default": "",
            "examples": [
                "0"
            ],
            "pattern": "^([\\d]+)$"
        },
        "wpu_currency": {
            "$id": "#/properties/wpu_currency",
            "type": "string",
            "title": "wpu_currency",
            "default": "",
            "examples": [
                "0"
            ],
            "pattern": "^([\\d]+)$"
        },
        "net_invoice_currency": {
            "$id": "#/properties/net_invoice_currency",
            "type": "string",
            "title": "net_invoice_currency",
            "default": "",
            "examples": [
                "0"
            ],
            "pattern": "^([\\d]+)$"
        },
        "rpu": {
            "$id": "#/properties/rpu",
            "type": "string",
            "title": "rpu",
            "default": "",
            "examples": [
                "0"
            ],
            "pattern": "^([\\d]+)$"
        },
        "rpu_currency": {
            "$id": "#/properties/rpu_currency",
            "type": "string",
            "title": "rpu_currency",
            "default": "",
            "examples": [
                "0"
            ],
            "pattern": "^([\\d]+)$"
        },
        "vat_or_tax": {
            "$id": "#/properties/vat_or_tax",
            "type": "string",
            "title": "vat_or_tax",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^(.*)$"
        },
        "vat_or_tax_currency": {
            "$id": "#/properties/vat_or_tax_currency",
            "type": "string",
            "title": "vat_or_tax_currency",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^(.*)$"
        },
        "copyright_indicator": {
            "$id": "#/properties/copyright_indicator",
            "type": "string",
            "title": "copyright_indicator",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^(.*)$"
        },
        "distribution_type_key": {
            "$id": "#/properties/distribution_type_key",
            "type": "string",
            "title": "distribution_type_key",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^(.*)$"
        },
        "transaction_type_key": {
            "$id": "#/properties/transaction_type_key",
            "type": "string",
            "title": "transaction_type_key",
            "default": "",
            "examples": [
                "10"
            ],
            "pattern": "^([\\d]+)$"
        },
        "service_type_key": {
            "$id": "#/properties/service_type_key",
            "type": "string",
            "title": "service_type_key",
            "default": "",
            "examples": [
                "40"
            ],
            "pattern": "^([\\d]+)$"
        },
        "participant_full_name": {
            "$id": "#/properties/participant_full_name",
            "type": "string",
            "title": "participant_full_name",
            "default": "",
            "examples": [
                "Los Caballeros De La Quema",
                "André e Felipe",
                "MAGIC!",
                "Mia."
            ],
            "pattern": "^.+$"
        },
        "product_title": {
            "$id": "#/properties/product_title",
            "type": "string",
            "title": "product_title",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^.+$"
        },
        "track_title": {
            "$id": "#/properties/track_title",
            "type": "string",
            "title": "track_title",
            "default": "",
            "examples": [
                "Hasta Estallar (En Vivo Provincia Emergente)",
                "Piriguete / Você Não Vale Nada",
                "Mädchen weine nicht (Dalli Dalli 05.11.1980) (VOD)"
            ],
            "pattern": "^.+$"
        },
        "media_key": {
            "$id": "#/properties/media_key",
            "type": "string",
            "title": "media_key",
            "default": "",
            "examples": [
                "VID"
            ],
            "pattern": "^[A-Z]*$"
        },
        "campaign_id": {
            "$id": "#/properties/campaign_id",
            "type": "string",
            "title": "campaign_id",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^.+$"
        },
        "customer_id": {
            "$id": "#/properties/customer_id",
            "type": "string",
            "title": "customer_id",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^.+$"
        },
        "customer_dob": {
            "$id": "#/properties/customer_dob",
            "type": "string",
            "title": "customer_dob",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^.+$"
        },
        "customer_gender": {
            "$id": "#/properties/customer_gender",
            "type": "string",
            "title": "customer_gender",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^.+$"
        },
        "customer_postal_code": {
            "$id": "#/properties/customer_postal_code",
            "type": "string",
            "title": "customer_postal_code",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^.+$"
        },
        "order_id": {
            "$id": "#/properties/order_id",
            "type": "string",
            "title": "order_id",
            "default": "",
            "examples": [
                ""
            ],
            "pattern": "^.+$"
        },
        "transaction_date": {
            "$id": "#/properties/transaction_date",
            "type": "string",
            "title": "transaction_date",
            "default": "",
            "examples": [
                "20190829"
            ],
            "pattern": "^([\\d]+)$"
        },
        "gross_units": {
            "$id": "#/properties/gross_units",
            "type": "string",
            "title": "gross_units",
            "default": "",
            "examples": [
                "1756"
            ],
            "pattern": "^([\\d]+)$"
        }
    }
}
