Skip to content

Commit

Permalink
Update zra_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kazashim authored Jun 26, 2024
1 parent a33238d commit 24cf860
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion zra_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,20 @@ def submit_sales_invoice(self, invoice_data):
response = requests.post(url, data=json.dumps(invoice_data), headers=headers)
return response.json()

# We can Add other methods as required by the VSDC API
def get_standard_codes(self):
url = f"{self.BASE_URL}/standardCodes"
headers = {
'Authorization': f'Bearer {self.api_key}'
}
response = requests.get(url, headers=headers)
return response.json()

def get_tax_types(self):
url = f"{self.BASE_URL}/taxTypes"
headers = {
'Authorization': f'Bearer {self.api_key}'
}
response = requests.get(url, headers=headers)
return response.json()

# We Can Add other methods as required by the VSDC API

0 comments on commit 24cf860

Please sign in to comment.