# Get financial checkpoints 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/checkpoints` - Production: your partner domain: `GET https://.keep.co.il/partner/api/statistic/checkpoints` ## Credentials - Header `Authorization: Bearer ` Retrieve financial checkpoints 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/checkpoints?socialId=&reportingYear=&reportingMonths%5B%5D=' \ -H 'Authorization: Bearer ' ``` ### Node.js ```javascript const response = await fetch("https://.keep.co.il/partner/api/statistic/checkpoints?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/checkpoints?socialId=&reportingYear=&reportingMonths%5B%5D=", headers={ "Authorization": "Bearer ", }, ) print(response.text) ``` ### PHP ```php .keep.co.il/partner/api/statistic/checkpoints?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 | One object for the requested months. The totals are summed over those months. | | `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 | | | `payload.directDebit` | object | Direct debit authorisation per authority, keys `tax-authority`, `vat-authority`, `social-security`. Values: `0` none, `1` started, `2` filled in, `3` authorised. | | `payload.paychecks` | object | Salary figures from the last checkpoint in the period. | | `payload.paychecks.totalIncome` | number | | | `payload.paychecks.totalTax` | number | | | `payload.paychecks.creditPoints` | number | | | `payload.paychecks.marginalTaxRate` | number | | | `payload.totalIncomesWithoutVat` | number | | | `payload.totalIncomesVat` | number | | | `payload.totalIncomesWithVat` | number | | | `payload.totalIncomesDebts` | number | | | `payload.totalIncomesDeposit` | number | | | `payload.totalIncomesOriginTaxDeduction` | number | | | `payload.totalExpensesWithoutVat` | number | | | `payload.totalExpensesWithVat` | number | | | `payload.totalDeductibleExpenses` | number | | | `payload.totalDeductibleExpensesVat` | number | | | `payload.refundPoints` | number | | | `payload.profit` | number | | | `payload.totalIncomesWithoutVatForPeriod` | number | | | `payload.totalIncomesOriginTaxDeductionForPeriod` | number | | | `payload.pendingExpensesTotalWithoutVat` | number | | | `payload.pendingExpensesTotalWithVat` | number | | | `payload.pendingExpensesTotalDeductible` | number | | | `payload.pendingExpensesTotalDeductibleVat` | number | | | `payload.pendingExpensesTotalDeductibleAssetVat` | 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 |