Skip to content

Latest commit

 

History

History
197 lines (109 loc) · 5.58 KB

CreditNotesApi.md

File metadata and controls

197 lines (109 loc) · 5.58 KB

\CreditNotesApi

All URIs are relative to https://api.getlago.com/api/v1

Method HTTP request Description
create_credit_note POST /credit_notes Create a new Credit note
download_credit_note POST /credit_notes/{id}/download Download an existing credit note
find_all_credit_notes GET /credit_notes Find Credit notes
find_credit_note GET /credit_notes/{id} Find credit note
update_credit_note PUT /credit_notes/{id} Update an existing credit note
void_credit_note PUT /credit_notes/{id}/void Void existing credit note

create_credit_note

crate::models::CreditNote create_credit_note(credit_note_input) Create a new Credit note

Create a new credit note

Parameters

Name Type Description Required Notes
credit_note_input CreditNoteInput Credit note payload [required]

Return type

crate::models::CreditNote

Authorization

bearerAuth

HTTP request headers

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

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

download_credit_note

crate::models::CreditNote download_credit_note(id) Download an existing credit note

Download an existing credit note

Parameters

Name Type Description Required Notes
id uuid::Uuid ID of the existing Lago Credit note [required]

Return type

crate::models::CreditNote

Authorization

bearerAuth

HTTP request headers

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

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

find_all_credit_notes

crate::models::CreditNotes find_all_credit_notes(page, per_page, external_customer_id) Find Credit notes

Find all credit notes in certain organisation

Parameters

Name Type Description Required Notes
page Option<i32> Number of page
per_page Option<i32> Number of records per page
external_customer_id Option<String> External customer ID

Return type

crate::models::CreditNotes

Authorization

bearerAuth

HTTP request headers

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

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

find_credit_note

crate::models::CreditNote find_credit_note(id) Find credit note

Return a single credit note

Parameters

Name Type Description Required Notes
id String Id of the existing credit note [required]

Return type

crate::models::CreditNote

Authorization

bearerAuth

HTTP request headers

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

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

update_credit_note

crate::models::CreditNote update_credit_note(id, credit_note_update_input) Update an existing credit note

Update an existing credit note

Parameters

Name Type Description Required Notes
id String Id of the existing credit note [required]
credit_note_update_input CreditNoteUpdateInput Update an existing credit note [required]

Return type

crate::models::CreditNote

Authorization

bearerAuth

HTTP request headers

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

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

void_credit_note

crate::models::CreditNote void_credit_note(id) Void existing credit note

Void an existing credit note

Parameters

Name Type Description Required Notes
id uuid::Uuid ID of the existing Lago Credit note [required]

Return type

crate::models::CreditNote

Authorization

bearerAuth

HTTP request headers

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

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