{
  "openapi": "3.1.1",
  "info": {
    "title": "ManagerServer | get-withholding-tax-receipt-view",
    "version": "1.0.0+c6d1f1e3306702a9f3c52e59bee7a51638b30e7c"
  },
  "paths": {
    "/api4/withholding-tax-receipt-view": {
      "get": {
        "parameters": [
          {
            "name": "Key",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Referrer",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Language",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Handler",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Business",
            "in": "query",
            "description": "Name of business. If you are calling API from an extension running within IFRAME, then business does not have to be provided. Manager will automatically inject current business. This is useful when extension doesn't know business name which is typically the case.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionView"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Business": {
        "type": "object",
        "properties": {
          "logo": {
            "type": [
              "null",
              "string"
            ]
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "address": {
            "type": [
              "null",
              "string"
            ]
          },
          "custom_fields": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CustomField"
            }
          }
        }
      },
      "Cell": {
        "type": "object",
        "properties": {
          "value": { },
          "canBeHidden": {
            "type": "boolean"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "image": {
            "$ref": "#/components/schemas/Image"
          }
        }
      },
      "Column": {
        "type": "object",
        "properties": {
          "label": {
            "type": [
              "null",
              "string"
            ]
          },
          "align": {
            "type": [
              "null",
              "string"
            ]
          },
          "nowrap": {
            "type": "boolean"
          },
          "total": {
            "type": "boolean"
          },
          "emphasis": {
            "type": "boolean"
          },
          "minWidth": {
            "type": "boolean"
          },
          "alwaysShow": {
            "type": "boolean"
          },
          "sum": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "sumText": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CustomField": {
        "type": "object",
        "properties": {
          "key": {
            "type": [
              "null",
              "string"
            ]
          },
          "label": {
            "type": [
              "null",
              "string"
            ]
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "value": { },
          "displayAtTheTop": {
            "type": "boolean"
          },
          "image": {
            "$ref": "#/components/schemas/Image"
          }
        }
      },
      "Emphasis": {
        "type": "object",
        "properties": {
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "positive": {
            "type": "boolean"
          },
          "negative": {
            "type": "boolean"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Field": {
        "type": "object",
        "properties": {
          "key": {
            "type": [
              "null",
              "string"
            ]
          },
          "label": {
            "type": [
              "null",
              "string"
            ]
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "emphasis": {
            "type": "boolean"
          }
        }
      },
      "Image": {
        "type": "object",
        "properties": {
          "url": {
            "type": [
              "null",
              "string"
            ]
          },
          "width": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "height": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "Recipient": {
        "type": "object",
        "properties": {
          "code": {
            "type": [
              "null",
              "string"
            ]
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "address": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "telephone": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Row": {
        "type": "object",
        "properties": {
          "cells": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/Cell"
            }
          }
        }
      },
      "Table": {
        "type": "object",
        "properties": {
          "columns": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/Column"
            }
          },
          "rows": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/Row"
            }
          },
          "totals": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/Total"
            }
          }
        }
      },
      "Total": {
        "type": "object",
        "properties": {
          "class": {
            "type": [
              "null",
              "string"
            ]
          },
          "key": {
            "type": [
              "null",
              "string"
            ]
          },
          "label": {
            "type": [
              "null",
              "string"
            ]
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "number": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "emphasis": {
            "type": "boolean"
          }
        }
      },
      "TransactionView": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "key": {
            "type": "string",
            "format": "uuid"
          },
          "custom_theme": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "direction": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "reference": {
            "type": [
              "null",
              "string"
            ]
          },
          "emphasis": {
            "$ref": "#/components/schemas/Emphasis"
          },
          "fields": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/Field"
            }
          },
          "custom_fields": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CustomField"
            }
          },
          "table": {
            "$ref": "#/components/schemas/Table"
          },
          "business": {
            "$ref": "#/components/schemas/Business"
          },
          "recipient": {
            "$ref": "#/components/schemas/Recipient"
          },
          "timestamp": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "footers": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "serviceLink": {
            "type": [
              "null",
              "string"
            ]
          },
          "legacyQrCodeForSaudiArabia": {
            "type": "boolean"
          },
          "emailVariables": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}