This is a variant of POST /partner/api/tax-authority/setup — Setup tax authority for seller; the request and responses below are the ones documented for Internal API.
POST https://sandbox.payme.io/api/partner/api/tax-authority/setupPOST https://live.payme.io/api/partner/api/tax-authority/setupNo credentials are documented for this endpoint.
Configure tax authority integration for a seller including business type and authorization file.
This endpoint takes no path, query or header parameters.
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
seller_email |
string | yes | Seller email address |
seller_id_number |
string | yes | Seller Israeli ID number |
osek_type |
string | yes | Business type |
file_name |
string | yes | Authorization file name |
file_path |
string | yes | Authorization file path |
{
"seller_email": "seller@example.com",
"seller_id_number": "123456789",
"osek_type": "OsekMurshe",
"file_name": "authorization.pdf",
"file_path": "uploads/tax-auth/authorization.pdf"
}
curl -X POST 'https://sandbox.payme.io/api/partner/api/tax-authority/setup' \
-H 'Content-Type: application/json' \
--data-raw '{
"seller_email": "seller@example.com",
"seller_id_number": "123456789",
"osek_type": "OsekMurshe",
"file_name": "authorization.pdf",
"file_path": "uploads/tax-auth/authorization.pdf"
}'
const response = await fetch("https://sandbox.payme.io/api/partner/api/tax-authority/setup", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"seller_email": "seller@example.com",
"seller_id_number": "123456789",
"osek_type": "OsekMurshe",
"file_name": "authorization.pdf",
"file_path": "uploads/tax-auth/authorization.pdf"
}),
});
console.log(await response.text());
import requests
response = requests.post(
"https://sandbox.payme.io/api/partner/api/tax-authority/setup",
json={
"seller_email": "seller@example.com",
"seller_id_number": "123456789",
"osek_type": "OsekMurshe",
"file_name": "authorization.pdf",
"file_path": "uploads/tax-auth/authorization.pdf",
},
)
print(response.text)
<?php
$body = <<<'BODY'
{
"seller_email": "seller@example.com",
"seller_id_number": "123456789",
"osek_type": "OsekMurshe",
"file_name": "authorization.pdf",
"file_path": "uploads/tax-auth/authorization.pdf"
}
BODY;
$ch = curl_init('https://sandbox.payme.io/api/partner/api/tax-authority/setup');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
| Field | Type | Description |
|---|---|---|
statusCode |
integer | |
message |
string | |
error |
string |
{
"statusCode": 400,
"message": [
"Validation failed"
],
"error": "Bad Request"
}
| Field | Type | Description |
|---|---|---|
statusCode |
integer | |
message |
string | |
error |
string |
{
"statusCode": 401,
"message": "Unauthorized",
"error": "Unauthorized"
}