Skip to content

Commit a2cb4e4

Browse files
committed
docs: add sandbox 500 note to get_vat_payer_status docstring and example
1 parent 969fbc4 commit a2cb4e4

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

examples/invoice_reference_data.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
def main():
1111
with InvoiceClient() as client:
12-
client.authenticate('your_username', 'your_password')
12+
client.authenticate('satesto2', '123456')
1313

1414
# Look up organization info
1515
org = client.get_org_info('206322102')
@@ -19,9 +19,10 @@ def main():
1919
print(f' VAT payer: {org.is_vat_payer}')
2020
print(f' Diplomat: {org.is_diplomat}')
2121

22-
# Check VAT payer status
23-
is_vat = client.get_vat_payer_status('206322102')
24-
print(f'\nVAT payer status: {is_vat}')
22+
# Check VAT payer status (standalone endpoint)
23+
# Note: this endpoint returns 500 on sandbox; use org.is_vat_payer instead
24+
# is_vat = client.get_vat_payer_status('206322102')
25+
# print(f'\nVAT payer status: {is_vat}')
2526

2627
# Get measurement units
2728
units = client.get_units()

rsge/invoice/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ def sign_out(self) -> bool:
161161
def get_vat_payer_status(self, tin: str, vat_date: str = '') -> bool:
162162
"""Check if an organization is a VAT payer.
163163
164+
Note:
165+
This endpoint returns 500 on the RS.ge sandbox environment.
166+
Use ``get_org_info(tin).is_vat_payer`` as an alternative.
167+
164168
Args:
165169
tin: Tax identification number (9 or 11 digits).
166170
vat_date: Optional date for historical check.

0 commit comments

Comments
 (0)