File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010def 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'\n VAT 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 ()
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments