# Get tax predictions 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/statistic/tax-predictions` - Production: your partner domain: `GET https://.keep.co.il/partner/api/statistic/tax-predictions` ## Credentials - Header `Authorization: Bearer ` Retrieve tax predictions for a seller ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `socialId` | query | string | yes | Seller's Israeli ID number: digits only, with a valid check digit. | | `reportingYear` | query | string | yes | Reporting year, 4 digits | | `reportingMonths[]` | query | string | yes | A month as a two-digit string, `01` to `12`. Repeat the parameter once per month, at most 12: `reportingMonths[]=06&reportingMonths[]=08`. Without the brackets (`reportingMonths=06`) the request is rejected with `400`. | ## Code samples ### curl ```bash curl -X GET 'https://.keep.co.il/partner/api/statistic/tax-predictions?socialId=&reportingYear=&reportingMonths%5B%5D=' \ -H 'Authorization: Bearer ' ``` ### Node.js ```javascript const response = await fetch("https://.keep.co.il/partner/api/statistic/tax-predictions?socialId=&reportingYear=&reportingMonths%5B%5D=", { method: "GET", headers: { "Authorization": "Bearer ", }, }); console.log(await response.text()); ``` ### Python ```python import requests response = requests.get( "https://.keep.co.il/partner/api/statistic/tax-predictions?socialId=&reportingYear=&reportingMonths%5B%5D=", headers={ "Authorization": "Bearer ", }, ) print(response.text) ``` ### PHP ```php .keep.co.il/partner/api/statistic/tax-predictions?socialId=&reportingYear=&reportingMonths%5B%5D='); 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.predictions` | array | | | `payload.predictions[].reportingYear` | string | | | `payload.predictions[].reportingMonth` | string | | | `payload.predictions[].totalIncomesWithoutVat` | number | | | `payload.predictions[].totalIncomesOriginTaxDeduction` | number | | | `payload.predictions[].totalDeductibleExpenses` | number | | | `payload.predictions[].yearlyPredictedProfit` | number | | | `payload.predictions[].predictedTaxAmount` | number | | | `payload.predictions[].paychecksPredictedSalary` | number | | | `payload.predictions[].paychecksPredictedTax` | number | | | `payload.predictions[].refundPointsValue` | number | | | `payload.predictions[].predictedTaxRateADV` | number | | | `payload.reportingYear` | string | | | `payload.reportingMonths` | array | | | `payload.seller` | object | | | `payload.seller.firstName` | string | | | `payload.seller.lastName` | string | | | `payload.seller.sellerStatus` | integer | Seller status: `-1` new, `0` closed, `1` active. | | `payload.seller.accountEmail` | string | | | `payload.seller.phone` | string | | | `payload.seller.businessNumber` | integer | | | `payload.seller.businessType` | integer | Business type, the same numeric codes as `businessType` in Create seller (`-1` other). | | `payload.seller.industryClassificationId` | integer | | | `payload.seller.idNumber` | integer | | | `payload.seller.socialSecurityAdvAmount` | number | | ### 400 — Bad Request (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" } ``` ### 404 — No seller has this ID number. Message: `Seller not found`. (error) | Field | Type | Description | | --- | --- | --- | | `statusCode` | integer | HTTP status code | | `message` | string | Error message(s) | | `error` | string | Error type |