All URIs are relative to https://localhost:8080/RestAPI
| Method | HTTP request | Description |
|---|---|---|
| create_credit_note | POST /credit-notes | Create a credit note. |
| get_credit_note_by_id | GET /credit-notes/{credit-note-ID} | Returns a single credit-note, specified by the ID parameter. |
| get_credit_note_for_account | GET /credit-notes/account/{account-ID} | Returns credit notes for an account. |
| get_credit_note_for_invoice | GET /credit-notes/invoice/{invoice-ID} | Returns credit notes for an invoice. |
| get_credit_note_for_subscription | GET /credit-notes/subscription/{subscription-ID} | Returns credit notes for an subscription. |
| retire_credit_note | DELETE /credit-notes/{credit-note-ID} | Removes any remaining value from credit note |
CreditNotePagedMetadata create_credit_note(credit_note)
Create a credit note.
{"nickname":"Create a new credit note","request":"createCreditNoteRequest.html","response":"createCreditNoteResponse.html"}
import time
import billforward
from billforward.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = billforward.CreditnotesApi()
credit_note = billforward.CreditNote() # CreditNote | The credit note object to be created.
try:
# Create a credit note.
api_response = api_instance.create_credit_note(credit_note)
pprint(api_response)
except ApiException as e:
print "Exception when calling CreditnotesApi->create_credit_note: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| credit_note | CreditNote | The credit note object to be created. |
No authorization required
- Content-Type: application/json
- Accept: text/xml, application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreditNotePagedMetadata get_credit_note_by_id(credit_note_id, organizations=organizations)
Returns a single credit-note, specified by the ID parameter.
{"nickname":"Retrieve an existing credit note","response":"getCreditNoteByID.html"}
import time
import billforward
from billforward.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = billforward.CreditnotesApi()
credit_note_id = 'credit_note_id_example' # str | ID of the credit-note.
organizations = ['organizations_example'] # list[str] | A list of organization-IDs used to restrict the scope of API calls. (optional)
try:
# Returns a single credit-note, specified by the ID parameter.
api_response = api_instance.get_credit_note_by_id(credit_note_id, organizations=organizations)
pprint(api_response)
except ApiException as e:
print "Exception when calling CreditnotesApi->get_credit_note_by_id: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| credit_note_id | str | ID of the credit-note. | |
| organizations | list[str] | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
No authorization required
- Content-Type: text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreditNotePagedMetadata get_credit_note_for_account(account_id, organizations=organizations, offset=offset, records=records, order_by=order_by, order=order)
Returns credit notes for an account.
{"nickname":"Retrieve by account","response":"getCreditNotesByAccount.html"}
import time
import billforward
from billforward.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = billforward.CreditnotesApi()
account_id = 'account_id_example' # str | ID of the account.
organizations = ['organizations_example'] # list[str] | A list of organization-IDs used to restrict the scope of API calls. (optional)
offset = 0 # int | The offset from the first payment to return. (optional) (default to 0)
records = 10 # int | The maximum number of payments to return. (optional) (default to 10)
order_by = 'id' # str | Specify a field used to order the result set. (optional) (default to id)
order = 'DESC' # str | Ihe direction of any ordering, either ASC or DESC. (optional) (default to DESC)
try:
# Returns credit notes for an account.
api_response = api_instance.get_credit_note_for_account(account_id, organizations=organizations, offset=offset, records=records, order_by=order_by, order=order)
pprint(api_response)
except ApiException as e:
print "Exception when calling CreditnotesApi->get_credit_note_for_account: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | str | ID of the account. | |
| organizations | list[str] | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
| offset | int | The offset from the first payment to return. | [optional] [default to 0] |
| records | int | The maximum number of payments to return. | [optional] [default to 10] |
| order_by | str | Specify a field used to order the result set. | [optional] [default to id] |
| order | str | Ihe direction of any ordering, either ASC or DESC. | [optional] [default to DESC] |
No authorization required
- Content-Type: text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreditNotePagedMetadata get_credit_note_for_invoice(invoice_id, organizations=organizations, offset=offset, records=records, order_by=order_by, order=order)
Returns credit notes for an invoice.
{"nickname":"Retrieve by invoice","response":"getCreditNotesByInvoice.html"}
import time
import billforward
from billforward.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = billforward.CreditnotesApi()
invoice_id = 'invoice_id_example' # str | ID of the Invoice.
organizations = ['organizations_example'] # list[str] | A list of organization-IDs used to restrict the scope of API calls. (optional)
offset = 0 # int | The offset from the first payment to return. (optional) (default to 0)
records = 10 # int | The maximum number of payments to return. (optional) (default to 10)
order_by = 'id' # str | Specify a field used to order the result set. (optional) (default to id)
order = 'DESC' # str | Ihe direction of any ordering, either ASC or DESC. (optional) (default to DESC)
try:
# Returns credit notes for an invoice.
api_response = api_instance.get_credit_note_for_invoice(invoice_id, organizations=organizations, offset=offset, records=records, order_by=order_by, order=order)
pprint(api_response)
except ApiException as e:
print "Exception when calling CreditnotesApi->get_credit_note_for_invoice: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| invoice_id | str | ID of the Invoice. | |
| organizations | list[str] | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
| offset | int | The offset from the first payment to return. | [optional] [default to 0] |
| records | int | The maximum number of payments to return. | [optional] [default to 10] |
| order_by | str | Specify a field used to order the result set. | [optional] [default to id] |
| order | str | Ihe direction of any ordering, either ASC or DESC. | [optional] [default to DESC] |
No authorization required
- Content-Type: text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreditNotePagedMetadata get_credit_note_for_subscription(subscription_id, organizations=organizations, offset=offset, records=records, order_by=order_by, order=order)
Returns credit notes for an subscription.
{"nickname":"Retrieve by subscription","response":"getCreditNotesSubscription.html"}
import time
import billforward
from billforward.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = billforward.CreditnotesApi()
subscription_id = 'subscription_id_example' # str | ID of the subscription.
organizations = ['organizations_example'] # list[str] | A list of organization-IDs used to restrict the scope of API calls. (optional)
offset = 0 # int | The offset from the first payment to return. (optional) (default to 0)
records = 10 # int | The maximum number of payments to return. (optional) (default to 10)
order_by = 'id' # str | Specify a field used to order the result set. (optional) (default to id)
order = 'DESC' # str | Ihe direction of any ordering, either ASC or DESC. (optional) (default to DESC)
try:
# Returns credit notes for an subscription.
api_response = api_instance.get_credit_note_for_subscription(subscription_id, organizations=organizations, offset=offset, records=records, order_by=order_by, order=order)
pprint(api_response)
except ApiException as e:
print "Exception when calling CreditnotesApi->get_credit_note_for_subscription: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| subscription_id | str | ID of the subscription. | |
| organizations | list[str] | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
| offset | int | The offset from the first payment to return. | [optional] [default to 0] |
| records | int | The maximum number of payments to return. | [optional] [default to 10] |
| order_by | str | Specify a field used to order the result set. | [optional] [default to id] |
| order | str | Ihe direction of any ordering, either ASC or DESC. | [optional] [default to DESC] |
No authorization required
- Content-Type: text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreditNotePagedMetadata retire_credit_note(credit_note_id, organizations)
Removes any remaining value from credit note
{"nickname":"Removes remaining value from credit note","response":"deleteCreditNote.html"}
import time
import billforward
from billforward.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = billforward.CreditnotesApi()
credit_note_id = 'credit_note_id_example' # str | ID of the credit-note.
organizations = ['organizations_example'] # list[str] | A list of organization-IDs used to restrict the scope of API calls.
try:
# Removes any remaining value from credit note
api_response = api_instance.retire_credit_note(credit_note_id, organizations)
pprint(api_response)
except ApiException as e:
print "Exception when calling CreditnotesApi->retire_credit_note: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| credit_note_id | str | ID of the credit-note. | |
| organizations | list[str] | A list of organization-IDs used to restrict the scope of API calls. |
No authorization required
- Content-Type: text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]