# Get income document Building with an AI agent? Start at https://docs.payme.io/agents.md - Sandbox: your partner domain on the Keep sandbox: `GET https://.keep.co.il/seller/api/documents/income/{id}` - Production: your partner domain: `GET https://.keep.co.il/seller/api/documents/income/{id}` ## Credentials - Header `Authorization: Bearer ` Retrieve a specific income document by ID. Documents the seller created in the Keep app are returned too. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string | yes | Document ID | ## Code samples ### curl ```bash curl -X GET 'https://.keep.co.il/seller/api/documents/income/' \ -H 'Authorization: Bearer ' ``` ### Node.js ```javascript const response = await fetch("https://.keep.co.il/seller/api/documents/income/", { method: "GET", headers: { "Authorization": "Bearer ", }, }); console.log(await response.text()); ``` ### Python ```python import requests response = requests.get( "https://.keep.co.il/seller/api/documents/income/", headers={ "Authorization": "Bearer ", }, ) print(response.text) ``` ### PHP ```php .keep.co.il/seller/api/documents/income/'); curl_setopt_array($ch, [ CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer ', ], ]); $response = curl_exec($ch); curl_close($ch); echo $response; ``` ## Responses ### 200 — Successful response. When no document matches, `payload` is null. (success) | Field | Type | Description | | --- | --- | --- | | `payload` | object | | | `payload.id` | string | | | `payload.sellerId` | string | | | `payload.type` | string | | | `payload.clientId` | string | | | `payload.dueDate` | string | | | `payload.docValueDate` | string | | | `payload.title` | string | | | `payload.docLang` | string | | | `payload.items` | array | Document line items: `itemId`, `quantity`, `itemNetPrice`, `itemTotalPrice`, `itemCurrency`, `isNoItemVat`. The item name is not returned. | | `payload.currency` | string | | | `payload.discount` | number | | | `payload.totalWithoutVatAmount` | number | | | `payload.vatAmount` | number | | | `payload.totalAmount` | number | | | `payload.totalPaid` | number | | | `payload.originTaxDeduction` | number | | | `payload.cash` | object | Cash payment details | | `payload.cc` | object | Credit card payment: `date` and `amount`. | | `payload.bank-transfer` | object | Bank transfer payment details | | `payload.cheque` | object | Cheque payment details | | `payload.e-wallet` | object | E-wallet payment details | | `payload.comment` | string | | | `payload.url` | string | | | `payload.bankDetails` | object | Bank account details for payment | | `payload.docRegulationId` | string | | | `payload.payment` | object | Payment link settings | | `payload.createdAt` | string | | ### 400 — Bad Request. `id` is not a UUID. (error) ### 401 — Unauthorized (error) | Field | Type | Description | | --- | --- | --- | | `statusCode` | integer | HTTP status code | | `message` | string | Error message(s) | | `error` | string | Error type | ```json { "statusCode": 401, "message": "Unauthorized", "error": "Unauthorized" } ```