{
	"$schema": "http://json-schema.org/draft-07/schema#",
	"$id": "http://json-schema.int.adscore.com/transaction/invoice/read_many.schema.json",
	"title": "Transaction Invoice Read Many",
	"description": "Generate PDF invoice for multiple transactions",
	"type": "object",
	"required": [
		"route_params", "body"
	],
	"properties": {
		"route": {
			"type": "object",
			"properties": {
				"path": {
					"const": "/account/{account_id}/transaction/invoice"
				},
				"methods": {
					"const": ["POST"]
				}
			}
		},
		"route_params": {
			"type": "object",
			"description": "Route attributes",
			"required": [
				"account_id"
			],
			"properties": {
				"account_id": {
					"type": "integer"
				}
			}
		},
		"body": {
			"type": "object",
			"description": "Request body",
			"required": [
				"transaction_id"
			],
			"properties": {
				"transaction_id": {
					"description": "Transaction ID or array of IDs",
					"anyOf": [
						{
							"type": "integer"
						}, 
						{
							"type": "array",
							"uniqueItems": true,
							"items": {
								"type": "integer"
							}
						}
					]
				}
			}
		}
	}
}
		
