POST https://sandbox.payme.io/api/partner/api/sellers/tax-balancePOST https://live.payme.io/api/partner/api/sellers/tax-balanceNo credentials are documented for this endpoint.
Set tax balance for a seller
This endpoint takes no path, query or header parameters.
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
socialId |
string | no | Seller social ID |
email |
string | no | Seller email |
id |
string | no | Seller ID |
balance |
number | yes | Balance amount |
reportingYear |
integer | no | Reporting year |
reportingMonth |
integer | no | Reporting month |
No example is documented; this template is generated from the fields — replace the placeholder values.
{
"socialId": "<socialId>",
"email": "<email>",
"id": "<id>",
"balance": 0,
"reportingYear": 0,
"reportingMonth": 0
}
curl -X POST 'https://sandbox.payme.io/api/partner/api/sellers/tax-balance' \
-H 'Content-Type: application/json' \
--data-raw '{
"balance": 0
}'
const response = await fetch("https://sandbox.payme.io/api/partner/api/sellers/tax-balance", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"balance": 0
}),
});
console.log(await response.text());
import requests
response = requests.post(
"https://sandbox.payme.io/api/partner/api/sellers/tax-balance",
json={
"balance": 0,
},
)
print(response.text)
<?php
$body = <<<'BODY'
{
"balance": 0
}
BODY;
$ch = curl_init('https://sandbox.payme.io/api/partner/api/sellers/tax-balance');
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"
}