> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maesn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get bill document

## Field support per integration

<AccordionGroup>
  <Note>
    Please note that the content in output is base64-encoded.
  </Note>

  <Accordion title="Lexware Office" icon={<svg width="24" height="24" transform="translate(-7,-4)" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 476 476" enable-background="new 0 0 476 476" xml:space="preserve"> <path fill="#FFFFFF" opacity="1.000000" stroke="none" d=" M477.000000,189.000000 C477.000000,285.308167 477.000000,381.116333 477.000000,476.962250 C318.400177,476.962250 159.800308,476.962250 1.100232,476.962250 C1.100232,318.441864 1.100232,159.883652 1.100232,1.162721 C159.666534,1.162721 318.333252,1.162721 477.000000,1.162721 C477.000000,63.532967 477.000000,126.016479 477.000000,189.000000 M446.995667,21.494019 C432.466522,8.986734 415.185760,3.189814 396.446228,3.135990 C295.961365,2.847371 195.475250,2.979640 94.989624,3.042453 C87.891098,3.046890 80.777168,3.464551 73.697624,4.030548 C53.210831,5.668432 36.344028,14.396834 22.628456,29.766514 C9.308527,44.692833 3.199280,62.425301 3.139154,81.873207 C2.835702,180.024948 2.972577,278.178162 3.043210,376.330780 C3.049997,385.762329 3.313016,395.221771 4.069869,404.618896 C5.702843,424.894073 14.409182,441.637695 29.634809,455.248077 C44.828835,468.830139 62.862339,474.841370 82.692390,474.888306 C184.677277,475.129669 286.663025,475.014343 388.648468,474.958130 C393.747284,474.955292 398.849792,474.394135 403.943665,474.002869 C424.643127,472.412781 441.651276,463.655182 455.463043,448.128998 C468.627167,433.330902 474.791534,415.753876 474.852203,396.487854 C475.169250,295.836517 475.019653,195.183655 474.957428,94.531364 C474.953156,87.599487 474.517944,80.653847 473.973846,73.738945 C472.330414,52.852646 463.415985,35.624752 446.995667,21.494019 z"/> <path fill="#FF4554" opacity="1.000000" stroke="none" d=" M447.251953,21.749489 C463.415985,35.624752 472.330414,52.852646 473.973846,73.738945 C474.517944,80.653847 474.953156,87.599487 474.957428,94.531364 C475.019653,195.183655 475.169250,295.836517 474.852203,396.487854 C474.791534,415.753876 468.627167,433.330902 455.463043,448.128998 C441.651276,463.655182 424.643127,472.412781 403.943665,474.002869 C398.849792,474.394135 393.747284,474.955292 388.648468,474.958130 C286.663025,475.014343 184.677277,475.129669 82.692390,474.888306 C62.862339,474.841370 44.828835,468.830139 29.634809,455.248077 C14.409182,441.637695 5.702843,424.894073 4.069869,404.618896 C3.313016,395.221771 3.049997,385.762329 3.043210,376.330780 C2.972577,278.178162 2.835702,180.024948 3.139154,81.873207 C3.199280,62.425301 9.308527,44.692833 22.628456,29.766514 C36.344028,14.396834 53.210831,5.668432 73.697624,4.030548 C80.777168,3.464551 87.891098,3.046890 94.989624,3.042453 C195.475250,2.979640 295.961365,2.847371 396.446228,3.135990 C415.185760,3.189814 432.466522,8.986734 447.251953,21.749489 M245.830063,196.670471 C229.240814,176.236420 212.603531,155.840958 196.125214,135.317841 C194.140945,132.846481 192.173462,131.909119 189.025299,131.925995 C164.531158,132.057373 140.035980,131.998642 115.541115,131.998672 C114.312561,131.998672 113.084007,131.998657 110.948524,131.998657 C140.137726,168.006500 168.637009,203.163269 197.279678,238.496902 C168.580673,273.907013 140.030655,309.133270 110.960907,345.000824 C138.221222,345.000824 164.377075,345.057922 190.531189,344.872437 C192.276718,344.860077 194.487534,343.400391 195.675735,341.952362 C212.476944,321.476807 229.147781,300.894135 245.830566,280.321533 C257.047455,266.489288 268.233368,252.631958 279.667694,238.495834 C268.439850,224.630234 257.348236,210.932877 245.830063,196.670471 M321.500000,131.997894 C310.669128,131.997894 299.835327,132.140366 289.009125,131.915695 C285.521240,131.843307 283.174988,132.786209 280.975769,135.572678 C271.688568,147.339783 262.272736,159.009521 252.678162,170.526764 C250.478699,173.166977 250.711716,174.762390 252.776138,177.243301 C261.405884,187.614075 269.824463,198.160416 278.333435,208.631821 C282.506378,213.767136 286.707794,218.879288 291.182983,224.352509 C316.193787,193.499420 340.854492,163.078232 366.049530,131.997894 C350.801788,131.997894 336.650909,131.997894 321.500000,131.997894 M281.165253,341.494324 C282.854797,344.413147 285.376343,345.092468 288.683350,345.074127 C312.820404,344.940186 336.958496,345.006805 361.096283,344.989197 C362.464722,344.988190 363.833038,344.803009 365.791565,344.660614 C340.728668,313.754456 316.129791,283.420532 291.373047,252.891907 C290.647675,253.558655 290.119812,253.936844 289.724365,254.422806 C277.225006,269.783569 264.790314,285.197479 252.198013,300.481567 C250.158096,302.957520 251.066422,304.396515 252.713669,306.404053 C262.108368,317.853607 271.392456,329.393951 281.165253,341.494324 z"/> <path fill="#FFFEFE" opacity="1.000000" stroke="none" d=" M246.043335,196.953003 C257.348236,210.932877 268.439850,224.630234 279.667694,238.495834 C268.233368,252.631958 257.047455,266.489288 245.830566,280.321533 C229.147781,300.894135 212.476944,321.476807 195.675735,341.952362 C194.487534,343.400391 192.276718,344.860077 190.531189,344.872437 C164.377075,345.057922 138.221222,345.000824 110.960907,345.000824 C140.030655,309.133270 168.580673,273.907013 197.279678,238.496902 C168.637009,203.163269 140.137726,168.006500 110.948524,131.998657 C113.084007,131.998657 114.312561,131.998672 115.541115,131.998672 C140.035980,131.998642 164.531158,132.057373 189.025299,131.925995 C192.173462,131.909119 194.140945,132.846481 196.125214,135.317841 C212.603531,155.840958 229.240814,176.236420 246.043335,196.953003 z"/> <path fill="#FFFEFE" opacity="1.000000" stroke="none" d=" M322.000000,131.997894 C336.650909,131.997894 350.801788,131.997894 366.049530,131.997894 C340.854492,163.078232 316.193787,193.499420 291.182983,224.352509 C286.707794,218.879288 282.506378,213.767136 278.333435,208.631821 C269.824463,198.160416 261.405884,187.614075 252.776138,177.243301 C250.711716,174.762390 250.478699,173.166977 252.678162,170.526764 C262.272736,159.009521 271.688568,147.339783 280.975769,135.572678 C283.174988,132.786209 285.521240,131.843307 289.009125,131.915695 C299.835327,132.140366 310.669128,131.997894 322.000000,131.997894 z"/> <path fill="#FFFEFE" opacity="1.000000" stroke="none" d=" M280.939697,341.198853 C271.392456,329.393951 262.108368,317.853607 252.713669,306.404053 C251.066422,304.396515 250.158096,302.957520 252.198013,300.481567 C264.790314,285.197479 277.225006,269.783569 289.724365,254.422806 C290.119812,253.936844 290.647675,253.558655 291.373047,252.891907 C316.129791,283.420532 340.728668,313.754456 365.791565,344.660614 C363.833038,344.803009 362.464722,344.988190 361.096283,344.989197 C336.958496,345.006805 312.820404,344.940186 288.683350,345.074127 C285.376343,345.092468 282.854797,344.413147 280.939697,341.198853 z"/></svg>}>
    Supported Response Fields:

    <ResponseField name="fileName" type="string" />

    <ResponseField name="contentType" type="string" />

    <ResponseField name="base64Encoded" type="boolean" />

    <ResponseField name="content" type="string" />
  </Accordion>

  <Accordion title="Qonto" icon={<svg width="80" height="50" viewBox="200 500 2900 1750"> <g transform="scale(0.14, -0.14) translate(0, -10000)"><path d="M1990 6372 c0 -25 29 -217 40 -267 23 -101 83 -262 138 -370 217 -425 615 -740 1072 -848 121 -29 171 -37 230 -37 l60 0 0 33 c0 50 -31 216 -58 317 -96 353 -351 704 -668 919 -63 42 -253 143 -289 153 -11 3 -51 17 -88 31 -90 34 -170 53 -296 72 -133 19 -141 19 -141 -3z"/><path d="M5110 6375 c-94 -15 -203 -40 -265 -60 -270 -89 -526 -255 -709 -460 -224 -252 -356 -532 -411 -872 -23 -140 -25 -133 44 -133 104 0 360 62 481 116 324 146 539 325 728 604 89 132 154 270 208 440 27 85 64 285 64 342 0 44 0 44 -140 23z"/><path d="M3375 4659 c-373 -68 -668 -221 -917 -475 -43 -44 -98 -106 -123 -139 -24 -33 -49 -65 -54 -71 -58 -70 -169 -297 -216 -439 -31 -94 -73 -315 -75 -387 0 -23 41 -23 160 -4 416 69 765 272 1024 596 104 129 161 225 239 400 23 51 73 207 86 265 6 28 15 71 21 97 5 26 10 74 10 107 l0 61 -52 -1 c-29 -1 -75 -5 -103 -10z"/><path d="M3710 4648 c0 -32 25 -180 45 -263 105 -455 429 -871 841 -1078 104 -53 170 -80 274 -113 82 -26 288 -64 344 -64 35 0 36 1 36 36 0 53 -38 259 -61 334 -141 457 -446 814 -869 1017 -169 81 -432 153 -560 153 -45 0 -50 -2 -50 -22z"/><path d="M1830 2227 c-105 -32 -174 -72 -247 -145 -203 -203 -244 -515 -104 -789 65 -129 222 -248 377 -287 67 -17 233 -21 280 -7 16 5 49 15 74 22 25 7 60 21 78 31 l33 18 82 -39 c88 -42 175 -68 199 -58 26 10 40 164 16 171 -7 3 -34 10 -59 17 -26 7 -55 18 -64 25 -16 12 -15 17 21 70 21 32 51 92 67 133 26 65 30 93 34 196 4 90 1 138 -11 190 -52 220 -218 397 -426 454 -104 29 -248 28 -350 -2z m300 -169 c59 -18 104 -44 158 -93 95 -85 142 -200 142 -344 0 -92 -14 -152 -56 -237 -42 -86 -49 -87 -104 -26 -26 29 -69 91 -95 138 -26 46 -51 87 -55 89 -7 5 -35 -6 -132 -48 -16 -7 -28 -18 -28 -25 0 -33 101 -194 174 -276 14 -16 26 -33 26 -37 0 -18 -81 -31 -171 -27 -115 4 -182 32 -262 107 -96 91 -137 192 -137 341 0 146 34 233 127 331 105 110 265 151 413 107z"/><path d="M4466 2055 c-10 -26 -7 -743 3 -812 17 -118 76 -210 162 -253 29 -15 58 -20 123 -20 46 0 91 3 100 6 13 5 16 23 16 89 l0 83 -68 -1 c-83 -1 -129 21 -155 76 -15 33 -17 63 -15 240 l3 202 118 3 118 3 -3 82 -3 82 -115 5 -115 5 -5 110 -5 110 -76 3 c-63 2 -78 0 -83 -13z"/><path d="M3020 1839 c-213 -58 -357 -284 -319 -505 29 -172 140 -300 308 -353 59 -19 214 -14 283 10 98 33 177 96 230 184 41 69 53 122 52 240 0 101 -3 115 -31 175 -78 167 -225 261 -407 259 -45 0 -97 -5 -116 -10z m228 -192 c53 -24 96 -66 124 -121 32 -60 31 -185 -1 -241 -55 -96 -127 -138 -236 -139 -80 0 -130 21 -181 76 -56 59 -69 94 -69 188 0 75 3 91 27 131 73 124 207 166 336 106z"/><path d="M5226 1829 c-184 -63 -296 -224 -296 -424 0 -196 103 -347 283 -414 82 -30 232 -30 314 0 127 47 215 136 262 262 30 81 29 218 -2 304 -44 126 -144 226 -270 270 -83 30 -208 31 -291 2z m250 -179 c126 -54 188 -213 134 -345 -41 -102 -128 -158 -245 -158 -106 -1 -188 53 -232 151 -99 224 119 448 343 352z"/><path d="M3647 1813 c-4 -3 -7 -195 -7 -425 l0 -418 85 0 85 0 0 251 c0 152 4 268 11 295 43 169 314 196 388 38 20 -41 21 -62 21 -314 l0 -271 88 3 87 3 3 250 c3 264 -4 335 -40 413 -28 58 -91 119 -158 151 -47 22 -69 26 -150 26 -90 0 -99 -2 -166 -37 -40 -20 -75 -34 -78 -31 -3 4 -6 21 -6 40 l0 33 -78 0 c-43 0 -82 -3 -85 -7z"/></g></svg>}>
    <Note>
      Please note that the content in output is the url to download the document.
    </Note>

    Supported Response Fields:

    <ResponseField name="id" type="string" />

    <ResponseField name="base64Encoded" type="boolean" />

    <ResponseField name="content" type="string" />

    <ResponseField name="contentType" type="string" />

    <ResponseField name="fileName" type="string" />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml get /accounting/bills/{billId}/document
openapi: 3.0.0
info:
  title: Maesn unified API
  description: The Maesn unified API description
  version: '1.0'
  contact: {}
servers:
  - url: https://api.maesn.dev
security: []
tags:
  - name: maesn
    description: ''
paths:
  /accounting/bills/{billId}/document:
    get:
      tags:
        - accounting
      operationId: getBillDocument
      parameters:
        - name: billId
          required: true
          in: path
          schema:
            type: string
        - name: X-API-KEY
          description: API key
          in: header
          schema:
            type: string
          required: true
        - name: X-ACCOUNT-KEY
          description: Account key
          in: header
          schema:
            type: string
          required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponseDto'
                  - properties:
                      data:
                        $ref: '#/components/schemas/DocumentResponseDto'
                        type: object
components:
  schemas:
    BaseResponseDto:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/MetaResponse'
        data:
          oneOf:
            - type: object
            - type: array
    DocumentResponseDto:
      type: object
      properties:
        id:
          type: string
          example: document id
        base64Encoded:
          type: boolean
          example: true
        content:
          type: string
          example: content
        contentType:
          type: string
          example: application/pdf
        fileName:
          type: string
          example: invoice.pdf
    MetaResponse:
      type: object
      properties:
        warnings:
          type: array
          items:
            type: string
            example: Field not used by target system
        pagination:
          $ref: '#/components/schemas/PaginationResponse'
    PaginationResponse:
      type: object
      properties:
        total:
          type: number
          example: 125
        perPage:
          type: number
          example: 50
        currentPage:
          type: number
          example: 1
        totalPages:
          type: number
          example: 3

````