Skip to content

Latest commit

 

History

History
125 lines (86 loc) · 3.59 KB

InvoiceServiceApi.md

File metadata and controls

125 lines (86 loc) · 3.59 KB

madana_apiclient.InvoiceServiceApi

All URIs are relative to http://api.madana.io/rest

Method HTTP request Description
get_billing_portal_url GET /invoices/portal
get_invoices GET /invoices

get_billing_portal_url

file_type get_billing_portal_url()

Example

import time
import madana_apiclient
from madana_apiclient.api import invoice_service_api
from pprint import pprint
# Defining the host is optional and defaults to http://api.madana.io/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = madana_apiclient.Configuration(
    host = "http://api.madana.io/rest"
)


# Enter a context with an instance of the API client
with madana_apiclient.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = invoice_service_api.InvoiceServiceApi(api_client)

    # example, this endpoint has no required or optional parameters
    try:
        api_response = api_instance.get_billing_portal_url()
        pprint(api_response)
    except madana_apiclient.ApiException as e:
        print("Exception when calling InvoiceServiceApi->get_billing_portal_url: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

file_type

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_invoices

file_type get_invoices()

Example

import time
import madana_apiclient
from madana_apiclient.api import invoice_service_api
from pprint import pprint
# Defining the host is optional and defaults to http://api.madana.io/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = madana_apiclient.Configuration(
    host = "http://api.madana.io/rest"
)


# Enter a context with an instance of the API client
with madana_apiclient.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = invoice_service_api.InvoiceServiceApi(api_client)
    dayssince = "366" # str |  (optional) if omitted the server will use the default value of "366"

    # example passing only required values which don't have defaults set
    # and optional values
    try:
        api_response = api_instance.get_invoices(dayssince=dayssince)
        pprint(api_response)
    except madana_apiclient.ApiException as e:
        print("Exception when calling InvoiceServiceApi->get_invoices: %s\n" % e)

Parameters

Name Type Description Notes
dayssince str [optional] if omitted the server will use the default value of "366"

Return type

file_type

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]