Crates.io | p7m-billing |
lib.rs | p7m-billing |
version | 0.1.1 |
source | src |
created_at | 2024-07-07 17:49:00.765917 |
updated_at | 2024-07-07 17:49:00.765917 |
description | Rust bindings for the billing API of P7M |
homepage | |
repository | https://github.com/projekt7m/billing-rust |
max_upload_size | |
id | 1295032 |
size | 79,252 |
The purpose of this API is to manage customers, articles, recurring billing, and payments.
The caller has to be authenticated with the system and provide a JWT token in the Authorization header of the HTTP request. When using the API you typically get this token by authenticating first with OAuth 2.0.
When you are trying this API using the Swagger interface, you need to click the Authorize
button and then again
the Authorize button in the pop-up that gets opened.
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
org.openapitools.codegen.languages.RustClientCodegen
Put the package under your project folder in a directory named p7m-billing
and add the following to Cargo.toml
under [dependencies]
:
p7m-billing = { path = "./p7m-billing" }
All URIs are relative to https://billing.api.p7m.de/v1
Class | Method | HTTP request | Description |
---|
BankAccountApi | get_bank_accounts | GET /bankaccounts | Get a list of all bank accounts BankAccountApi | post_bank_accounts | POST /bankaccounts | Create a new bank account CustomerApi | get_customers | GET /customers | Get a list of all customers CustomerApi | get_customers_id | GET /customers/{customer_id} | Request a single customer by its ID CustomerApi | post_customers | POST /customers | Create a new customer CustomerApi | pub_customers_id | PUT /customers/{customer_id} | Update an existing customer InvoiceApi | get_currencies | GET /currencies | Get a list of all (available) currencies InvoiceApi | get_invoices | GET /invoices | Get a list of all invoices InvoiceApi | get_invoices_id | GET /invoices/{invoice_id} | Get a single invoice by its ID InvoiceApi | post_invoices | POST /invoices | Create a new invoice InvoiceApi | post_invoices_invoice_id | POST /invoices/{invoice_id} | Create a new invoice position
To get access to the crate's generated documentation, use:
cargo doc --open