# Document

## Get Documents

<mark style="color:blue;">`GET`</mark> `https://api.zortout.com/api.aspx`

Get list of documents.

#### Query Parameters

| Name                                      | Type   | Description                                                                                                                                                                                       |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| method<mark style="color:red;">\*</mark>  | String | “GETDOCUMENTS”                                                                                                                                                                                    |
| searchnumber                              | String | Document Number or Reference Number                                                                                                                                                               |
| createdbefore                             | String | <p>Created Date Before .....<br>(yyyy-MM-dd)</p>                                                                                                                                                  |
| createdafter                              | String | <p>Created Date After ..... </p><p>(yyyy-MM-dd)</p>                                                                                                                                               |
| limit                                     | Int    | Limit per page (Max = 200)                                                                                                                                                                        |
| page                                      | Int    | Page (Default = 1)                                                                                                                                                                                |
| version<mark style="color:red;">\*</mark> | String | 3                                                                                                                                                                                                 |
| format                                    | String | json (Default), xml                                                                                                                                                                               |
| idtype                                    | Int    | <p>Related Transaction Type</p><p>1 – Order/Purchase Order<br>2 – Income/Expense<br>3 – Quotation<br>If idtype is not defined or equals 0, the system will show all.</p>                          |
| documenttype                              | Int    | <p>Document Type <br>1 – Receipt<br>2 – Tax Invoice<br>3 – Invoice<br>4 – Quotation<br>5 – Withholding Tax<br>If documenttype is not defined or equals 0, the system will show all documents.</p> |

#### Headers

| Name                                        | Type   | Description                                                                                                                                                        |
| ------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| storename<mark style="color:red;">\*</mark> | String | Store Name                                                                                                                                                         |
| apisecret<mark style="color:red;">\*</mark> | String | API Secret                                                                                                                                                         |
| apikey<mark style="color:red;">\*</mark>    | String | API Key                                                                                                                                                            |
| idlist                                      | String | <p>List Of Related Transaction ID</p><p>Ex. “123,124,125“<br>This will be active when idtype is defined and not equals 0. So this will be related on "idtype".</p> |

{% tabs %}
{% tab title="200: OK Success" %}
{% tabs %}
{% tab title="Response" %}

{% endtab %}
{% endtabs %}
{% endtab %}
{% endtabs %}
