# List income documents 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/partner/api/documents/income` - Production: your partner domain: `GET https://.keep.co.il/partner/api/documents/income` ## Credentials - Header `Authorization: Bearer ` Retrieve a list of income documents for a seller ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `sellerPaymeId` | query | string | no | Seller PayMe ID. One of `sellerPaymeId` or `sellerId` is required. | | `sellerId` | query | string | no | Keep seller UUID (v4). One of `sellerPaymeId` or `sellerId` is required. | | `docNum` | query | string | no | Document number, digits only. Matches the regulation number of the document (`docRegulationId`). | | `page` | query | integer | no | Page number. Minimum 0, default 0. | | `limit` | query | integer | no | Items per page. Positive number, at most 500; use a whole-number item count. Default 10. | ## Code samples ### curl ```bash curl -X GET 'https://.keep.co.il/partner/api/documents/income' \ -H 'Authorization: Bearer ' ``` ### Node.js ```javascript const response = await fetch("https://.keep.co.il/partner/api/documents/income", { method: "GET", headers: { "Authorization": "Bearer ", }, }); console.log(await response.text()); ``` ### Python ```python import requests response = requests.get( "https://.keep.co.il/partner/api/documents/income", headers={ "Authorization": "Bearer ", }, ) print(response.text) ``` ### PHP ```php .keep.co.il/partner/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 (success) | Field | Type | Description | | --- | --- | --- | | `payload` | object | | | `payload.page` | integer | | | `payload.limit` | integer | | | `payload.total` | integer | | | `payload.items` | array | Each item also contains the fields sent when the document was created. | | `payload.items[].id` | string | | | `payload.items[].url` | string | | ### 400 — Bad Request. Messages include `At least one of sellerPaymeId or sellerId should exists` and `Bad seller identifier`. (error) | Field | Type | Description | | --- | --- | --- | | `statusCode` | integer | HTTP status code | | `message` | string | Error message(s) | | `error` | string | Error type | ```json { "statusCode": 400, "message": [ "Validation failed" ], "error": "Bad Request" } ``` ### 401 — Unauthorized (error) | Field | Type | Description | | --- | --- | --- | | `statusCode` | integer | | | `message` | string | | ```json { "statusCode": 401, "message": "Unauthorized" } ```