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
This endpoint takes no path, query or header parameters.
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
seller_email |
string | yes | Seller email |
seller_id_number |
string | yes | Seller ID number |
osek_type |
string | yes | Business type (osek) |
file_name |
string | no | Authorization file name |
file_path |
string | no | Authorization file path |
No example is documented; this template is generated from the fields — replace the placeholder values.
{
"seller_email": "<seller_email>",
"seller_id_number": "<seller_id_number>",
"osek_type": "<osek_type>",
"file_name": "<file_name>",
"file_path": "<file_path>"
}
curl -X POST 'https://sandbox.payme.io/api/partner/api/tax-authority/setup' \
-H 'Content-Type: application/json' \
--data-raw '{
"seller_email": "<seller_email>",
"seller_id_number": "<seller_id_number>",
"osek_type": "<osek_type>"
}'
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_email>",
"seller_id_number": "<seller_id_number>",
"osek_type": "<osek_type>"
}),
});
console.log(await response.text());
import requests
response = requests.post(
"https://sandbox.payme.io/api/partner/api/tax-authority/setup",
json={
"seller_email": "<seller_email>",
"seller_id_number": "<seller_id_number>",
"osek_type": "<osek_type>",
},
)
print(response.text)
<?php
$body = <<<'BODY'
{
"seller_email": "<seller_email>",
"seller_id_number": "<seller_id_number>",
"osek_type": "<osek_type>"
}
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 | HTTP status code |
message |
string | Error message(s) |
error |
string | Error type |
{
"statusCode": 400,
"message": [
"Validation failed"
],
"error": "Bad Request"
}
| Field | Type | Description |
|---|---|---|
error |
string | |
error_description |
string |
{
"error": "unauthorized_client",
"error_description": "Client authentication failed"
}