All URIs are relative to https://api.billingo.hu/v3
Method | HTTP request | Description |
---|---|---|
create | POST /document-export | Create document export. |
download | GET /document-export/{id}/download | Return exported binary file. |
poll | GET /document-export/{id}/poll | Retrieve export state. |
DocumentExportId create(create_document_export)
Create document export.
Return with the id of the export.
- Api Key Authentication (api_key):
import clientapi_billingo
from clientapi_billingo.models.create_document_export import CreateDocumentExport
from clientapi_billingo.models.document_export_id import DocumentExportId
from clientapi_billingo.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.billingo.hu/v3
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_billingo.Configuration(
host = "https://api.billingo.hu/v3"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: api_key
configuration.api_key['api_key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# Enter a context with an instance of the API client
with clientapi_billingo.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = clientapi_billingo.DocumentExportApi(api_client)
create_document_export = clientapi_billingo.CreateDocumentExport() # CreateDocumentExport | Create document export body.
try:
# Create document export.
api_response = api_instance.create(create_document_export)
print("The response of DocumentExportApi->create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DocumentExportApi->create: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
create_document_export | CreateDocumentExport | Create document export body. |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Export job ID returned. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
400 | The request is malformed. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
401 | Authorization information is missing or invalid. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
402 | Authenticated user doesn't have subscription. | - |
403 | Authenticated user doesn't have access to the resource. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
422 | Validation errors occured. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
429 | Too many requests | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
500 | Internal server error. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bytearray download(id)
Return exported binary file.
Return the exported file.
- Api Key Authentication (api_key):
import clientapi_billingo
from clientapi_billingo.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.billingo.hu/v3
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_billingo.Configuration(
host = "https://api.billingo.hu/v3"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: api_key
configuration.api_key['api_key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# Enter a context with an instance of the API client
with clientapi_billingo.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = clientapi_billingo.DocumentExportApi(api_client)
id = 'id_example' # str | The ID from create document export endpoint.
try:
# Return exported binary file.
api_response = api_instance.download(id)
print("The response of DocumentExportApi->download:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DocumentExportApi->download: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The ID from create document export endpoint. |
bytearray
- Content-Type: Not defined
- Accept: application/*, application/json
Status code | Description | Response headers |
---|---|---|
200 | Document export file. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
400 | The request is malformed. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
401 | Authorization information is missing or invalid. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
402 | Authenticated user doesn't have subscription. | - |
422 | Validation errors occured. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
429 | Too many requests | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
500 | Internal server error. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
404 | Non-existent resource is requested. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DocumentExportStatus poll(id)
Retrieve export state.
Return state of the given export.
- Api Key Authentication (api_key):
import clientapi_billingo
from clientapi_billingo.models.document_export_status import DocumentExportStatus
from clientapi_billingo.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.billingo.hu/v3
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_billingo.Configuration(
host = "https://api.billingo.hu/v3"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: api_key
configuration.api_key['api_key'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# Enter a context with an instance of the API client
with clientapi_billingo.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = clientapi_billingo.DocumentExportApi(api_client)
id = 'id_example' # str | The ID from create document export endpoint.
try:
# Retrieve export state.
api_response = api_instance.poll(id)
print("The response of DocumentExportApi->poll:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DocumentExportApi->poll: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | The ID from create document export endpoint. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Export job status returned. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
400 | The request is malformed. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
401 | Authorization information is missing or invalid. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
402 | Authenticated user doesn't have subscription. | - |
422 | Validation errors occured. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
429 | Too many requests | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
500 | Internal server error. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
404 | Non-existent resource is requested. | * X-RateLimit-Limit - Request limit per minute. * X-RateLimit-Remaining - The number of requests left for the time window. * X-RateLimit-Reset - The timestamp at which the current rate limit window resets. * Retry-After - How many seconds you have to wait before making new request. |
[Back to top] [Back to API list] [Back to Model list] [Back to README]