Myle 0.1.0
dotnet add package Myle --version 0.1.0
NuGet\Install-Package Myle -Version 0.1.0
<PackageReference Include="Myle" Version="0.1.0" />
<PackageVersion Include="Myle" Version="0.1.0" />
<PackageReference Include="Myle" />
paket add Myle --version 0.1.0
#r "nuget: Myle, 0.1.0"
#:package Myle@0.1.0
#addin nuget:?package=Myle&version=0.1.0
#tool nuget:?package=Myle&version=0.1.0
Myle
The official .NET SDK of the Myle API: typed resources (records), one
exception class per error code, auto-pagination with IAsyncEnumerable<T>, idempotent retries, ETag /
If-Match, CancellationToken everywhere. .NET 8, HttpClient, System.Text.Json source generation (trimming
and native AOT safe), no dependency. Generated from the API's OpenAPI document by sdk/generator (Apache-2.0).
SDK version 0.1.0, built against Myle-API-Version: 2026-11-21.
dotnet add package Myle
Quick start
List, with pagination
using Myle;
using var client = new MyleClient(); // reads MYLE_API_KEY; or new MyleClient("…")
var me = await client.Me.GetAsync();
var org = client.Organization("organization_…");
// await foreach follows nextCursor page after page
await foreach (var product in org.Products.ListAsync(new ProductListParams { Status = [ProductStatus.Active] }))
Console.WriteLine($"{product.Number} {product.Name}");
Create
var product = await org.Products.CreateAsync(new ProductCreateParams
{
Number = "A0012",
Name = "Foin de prairie",
VatRate = "5.5",
UnitPrice = new Money { Amount = "12.50", Currency = "EUR" },
});
Console.WriteLine($"{product.Id} {product.ETag}");
Update with If-Match
// A merge patch: a member never assigned is not sent; null clears it.
var updated = await org.Products.UpdateAsync(product.Id,
new ProductUpdateParams { Name = "Foin de luzerne", AccountingNumber = null },
new RequestOptions { IfMatch = product }); // 412 CorePreconditionFailedException if it changed since
Handle errors
try
{
await org.Products.CreateAsync(new ProductCreateParams { Number = "A0012", Name = "Foin", VatRate = "5.5" });
}
catch (CoreConflictException e)
{
Console.WriteLine($"number taken: {e.Context.Name}");
}
catch (MyleApiException e)
{
Console.WriteLine($"{e.Status} {e.Code} {e.Message} {e.RequestId}");
}
Download a file (invoice, PDF)
var file = await org.Invoices.DownloadPdfAsync("invoice_…");
await file.SaveAsync(file.FileName ?? "invoice.pdf");
The client
var client = new MyleClient(new MyleClientOptions
{
ApiKey = "…", // default: MYLE_API_KEY (an organization or a user key, opaque)
ApiVersion = "2026-11-21", // the Myle-API-Version sent; default: this SDK's
BaseUrl = "https://api.myleapp.fr", // default: MYLE_BASE_URL, else this
MaxRetries = 2, // network errors, 429 and 5xx (when safe to repeat)
Timeout = TimeSpan.FromSeconds(60), // per attempt, body included; Timeout.InfiniteTimeSpan for none
AcceptLanguage = "fr", // the language of error messages; English by default
OnDeprecation = notice => Log(notice), // once per operation served with an older behavior; null: silent
HttpClient = httpClient, // yours (IHttpClientFactory, a proxy); never disposed by the SDK
});
Resources follow the API's paths: client.Organization(id).Products is /organizations/{id}/products,
client.Me is /me. Every method takes the ids of its path first, then one parameters object
(ProductCreateParams: the body's members and the query parameters, PascalCase), then RequestOptions
(IfMatch, IdempotencyKey, Timeout, MaxRetries, Headers, AcceptLanguage), then a
CancellationToken; overloads let you leave out what you do not need (GetAsync(ct)). Resources come back as
records with ETag and LastResponse; members this SDK does not know yet are kept in ExtensionData, and
enums are open (ProductStatus wraps its string: an unknown value arrives as it is, IsKnown tells).
Merge patches (UpdateAsync) take Optional<T> members: never assigned, the member is not sent; assigned
null, it is sent as null and cleared; assigned a value, it is sent. Values convert implicitly
(Name = "x", Tags = new[] { "bio" }); from a variable of an interface type, use Optional.Of(list).
Lists
A list method returns a Paginator<T> (an IAsyncEnumerable<T>): await foreach follows nextCursor.
await foreach (var company in org.Companies.ListAsync(new CompanyListParams { Q = "gaec" }, ct))
Console.WriteLine(company.Name);
var page = await org.Products.ListAsync(new ProductListParams { Limit = 200 }).FirstPageAsync(ct);
Console.WriteLine($"{page.Data.Count} {page.HasMore}");
var next = await page.NextPageAsync(ct);
var firstThousand = await org.Products.ListAsync().ToListAsync(max: 1000, ct);
Errors
Every error answer of the API is thrown as a MyleApiException subclass: the class of its error code, which
extends the class of its HTTP status (ConflictException, NotFoundException…). Code is stable, Context
is typed on a code's class (the raw JsonElement on MyleApiException), Message is the human sentence
(French or English: never parse it), RequestId is what support asks for, RetryAfter is set on 429. A
network failure is a MyleConnectionException (MyleTimeoutException for a timeout); a canceled token throws
OperationCanceledException, never retried. MyleErrorCatalog.ExceptionTypes maps every code to its class.
| Code | Status | Class |
|---|---|---|
core.bad-request |
400 | CoreBadRequestException |
core.api-version-unsupported |
— | CoreApiVersionUnsupportedException |
core.module-required |
402 | CoreModuleRequiredException |
core.subscription-required |
402 | CoreSubscriptionRequiredException |
core.plan-limit-reached |
402 | CorePlanLimitReachedException |
core.not-found |
404 | CoreNotFoundException |
core.method-not-allowed |
405 | CoreMethodNotAllowedException |
core.not-acceptable |
406 | CoreNotAcceptableException |
core.conflict |
409 | CoreConflictException |
core.precondition-failed |
412 | CorePreconditionFailedException |
core.payload-too-large |
413 | CorePayloadTooLargeException |
core.unsupported-media-type |
415 | CoreUnsupportedMediaTypeException |
core.validation-failed |
422 | CoreValidationFailedException |
core.idempotency-key-reused |
422 | CoreIdempotencyKeyReusedException |
core.idempotency-key-in-use |
409 | CoreIdempotencyKeyInUseException |
core.rate-limited |
429 | CoreRateLimitedException |
core.internal-error |
500 | CoreInternalException |
core.bad-gateway |
502 | CoreBadGatewayException |
core.unavailable |
503 | CoreUnavailableException |
auth.credential.missing |
401 | AuthCredentialMissingException |
auth.credential.invalid |
401 | AuthCredentialInvalidException |
auth.credential.expired |
401 | AuthCredentialExpiredException |
auth.credential.revoked |
401 | AuthCredentialRevokedException |
auth.right.missing |
403 | AuthRightMissingException |
auth.email.unconfirmed |
403 | AuthEmailUnconfirmedException |
auth.session.refused |
403 | AuthSessionRefusedException |
auth.api-key.organization-not-allowed |
403 | AuthApiKeyOrganizationNotAllowedException |
auth.session.required |
403 | AuthSessionRequiredException |
auth.step-up.required |
403 | AuthStepUpRequiredException |
auth.api-key.limit-reached |
409 | AuthApiKeyLimitReachedException |
products.barcode.duplicate |
409 | ProductBarcodeDuplicateException |
products.barcode.outside-company-prefix |
422 | ProductBarcodeOutsideCompanyPrefixException |
crm.company.identifier-required |
422 | CrmCompanyIdentifierRequiredException |
crm.company.invalid-identifier |
422 | CrmCompanyInvalidIdentifierException |
crm.company.invalid-siret |
422 | CrmCompanyInvalidSiretException |
crm.company.accounting-number-taken |
409 | CrmCompanyAccountingNumberTakenException |
crm.postal-address.referenced |
409 | CrmPostalAddressReferencedException |
billing.invoice.not-a-draft |
409 | BillingInvoiceNotADraftException |
billing.invoice.stripe-imported |
409 | BillingInvoiceStripeImportedException |
billing.invoice.foreign-product |
422 | BillingInvoiceForeignProductException |
billing.invoice.out-of-scope-reference |
422 | BillingInvoiceOutOfScopeReferenceException |
billing.invoice.partial-credit-note |
409 | BillingInvoicePartialCreditNoteException |
billing.invoice.facturx-unavailable |
409 | BillingInvoiceFacturxUnavailableException |
billing.invoice.not-payable |
409 | BillingInvoiceNotPayableException |
billing.invoice.already-paid |
409 | BillingInvoiceAlreadyPaidException |
billing.invoice.credit-note-linked |
409 | BillingInvoiceCreditNoteLinkedException |
billing.payment.not-removable |
409 | BillingPaymentNotRemovableException |
billing.payment.stripe-collected |
409 | BillingPaymentStripeCollectedException |
billing.invoice.not-creditable |
409 | BillingInvoiceNotCreditableException |
billing.invoice.already-credited |
409 | BillingInvoiceAlreadyCreditedException |
billing.invoice.deposit-deducted |
409 | BillingInvoiceDepositDeductedException |
billing.invoice.einvoice-required |
409 | BillingInvoiceEinvoiceRequiredException |
billing.invoice.recipient-unsubscribed |
— | BillingInvoiceRecipientUnsubscribedException |
billing.invoice.transition-refused |
409 | BillingInvoiceTransitionRefusedException |
billing.invoice.generated-credit-note |
409 | BillingInvoiceGeneratedCreditNoteException |
billing.invoice.not-editable |
409 | BillingInvoiceNotEditableException |
billing.invoice.not-reinvoiceable |
409 | BillingInvoiceNotReinvoiceableException |
billing.invoice.already-reinvoiced |
409 | BillingInvoiceAlreadyReinvoicedException |
billing.invoice.not-a-credit-note |
409 | BillingInvoiceNotACreditNoteException |
billing.invoice.correction-fixed |
409 | BillingInvoiceCorrectionFixedException |
billing.invoice.not-correctable |
409 | BillingInvoiceNotCorrectableException |
billing.invoice.not-duplicable |
— | BillingInvoiceNotDuplicableException |
quotations.quotation.transition-refused |
409 | QuotationQuotationTransitionRefusedException |
quotations.quotation.not-extendable |
409 | QuotationQuotationNotExtendableException |
quotations.quotation.converted |
409 | QuotationQuotationConvertedException |
quotations.quotation.already-invoiced |
409 | QuotationQuotationAlreadyInvoicedException |
quotations.quotation.has-deposits |
409 | QuotationQuotationHasDepositsException |
quotations.quotation.not-editable |
409 | QuotationQuotationNotEditableException |
quotations.quotation.foreign-product |
422 | QuotationQuotationForeignProductException |
quotations.quotation.out-of-scope-reference |
422 | QuotationQuotationOutOfScopeReferenceException |
quotations.quotation.recipient-unsubscribed |
— | QuotationQuotationRecipientUnsubscribedException |
orders.order.transition-refused |
409 | OrderOrderTransitionRefusedException |
orders.order.not-deletable |
409 | OrderOrderNotDeletableException |
orders.order.not-editable |
409 | OrderOrderNotEditableException |
orders.order.foreign-product |
422 | OrderOrderForeignProductException |
orders.order.out-of-scope-reference |
422 | OrderOrderOutOfScopeReferenceException |
orders.order.already-invoiced |
409 | OrderOrderAlreadyInvoicedException |
orders.order.has-deposits |
409 | OrderOrderHasDepositsException |
orders.order.shop-billed |
409 | OrderOrderShopBilledException |
orders.order.recipient-unsubscribed |
— | OrderOrderRecipientUnsubscribedException |
einvoicing.organization.paid-plan-required |
402 | EinvoicingOrganizationPaidPlanRequiredException |
einvoicing.organization.not-subject |
409 | EinvoicingOrganizationNotSubjectException |
einvoicing.connection.not-connected |
409 | EinvoicingConnectionNotConnectedException |
einvoicing.routing-address.not-published |
422 | EinvoicingRoutingAddressNotPublishedException |
einvoicing.einvoice.not-eligible |
409 | EinvoicingEinvoiceNotEligibleException |
einvoicing.einvoice.not-retryable |
409 | EinvoicingEinvoiceNotRetryableException |
einvoicing.einvoice.credit-note-reference-missing |
409 | EinvoicingEinvoiceCreditNoteReferenceMissingException |
einvoicing.incoming-einvoice.already-settled |
409 | EinvoicingIncomingEinvoiceAlreadySettledException |
einvoicing.incoming-einvoice.not-on-platform |
409 | EinvoicingIncomingEinvoiceNotOnPlatformException |
einvoicing.incoming-einvoice.not-accepted |
409 | EinvoicingIncomingEinvoiceNotAcceptedException |
payments.account.not-connected |
409 | PaymentAccountNotConnectedException |
payments.account.demo |
409 | PaymentAccountDemoException |
payments.account.suspended |
409 | PaymentAccountSuspendedException |
payments.collection.disabled |
409 | PaymentCollectionDisabledException |
payments.collection.paused |
409 | PaymentCollectionPausedException |
payments.plan.collection-required |
402 | PaymentPlanCollectionRequiredException |
payments.mandate.missing |
409 | PaymentMandateMissingException |
payments.mandate.foreign-iban |
409 | PaymentMandateForeignIbanException |
payments.mandate.invitations-throttled |
429 | PaymentMandateInvitationsThrottledException |
payments.debit.not-debitable |
409 | PaymentDebitNotDebitableException |
payments.debit.nothing-due |
409 | PaymentDebitNothingDueException |
payments.debit.below-minimum |
409 | PaymentDebitBelowMinimumException |
payments.debit.above-maximum |
409 | PaymentDebitAboveMaximumException |
payments.debit.quota-reached |
409 | PaymentDebitQuotaReachedException |
payments.refund.nothing-to-refund |
409 | PaymentRefundNothingToRefundException |
Files
An operation that answers a file (a PDF…) has a method of its own that returns a FileDownload: Content
(the bytes, as received, never decoded), FileName (from Content-Disposition: only its last path segment,
or null), ContentType and LastResponse; SaveAsync(path) writes the bytes. It is never parsed as the
JSON resource; its errors are thrown as for any call.
Idempotency, retries, concurrency
- Operations that accept
Idempotency-Keyget one generated per call, reused by its retries: a create retried after a network error never creates twice. SetRequestOptions.IdempotencyKeyto choose it (an order number makes a call safe to repeat across runs).LastResponse.IdempotentReplayedtells a replay. - Retries (
MaxRetries, 2 by default): network errors and 5xx when the call is safe to repeat (GET,PUT,DELETE, or a write with an idempotency key); 429 always, afterRetry-After(seconds or an HTTP date; one above 60 s is not waited for); backoff with jitter otherwise. - Every single resource comes with its
ETag. Pass the resource, or itsETag, asRequestOptions.IfMatchtoUpdateAsync/DeleteAsync: if someone changed it since, the call throwsCorePreconditionFailedException(412) and changes nothing.
Versioning
Each SDK release pins the contract date it was generated against (MyleClient.DefaultApiVersion,
2026-11-21 here) and sends it as Myle-API-Version: an API change never changes what this code receives.
When the API answers an operation with an older behavior (Deprecation, Sunset headers), OnDeprecation
is called once per operation and client (a line on the standard error by default).
Methods
client.Rights
| Method | HTTP | Summary |
|---|---|---|
ListAsync() |
GET /rights |
List the rights |
client.Products
| Method | HTTP | Summary |
|---|---|---|
SearchAsync(SearchProductSearchParams) |
GET /products |
Search the products across organizations |
client.Companies
| Method | HTTP | Summary |
|---|---|---|
SearchAsync(SearchCompanySearchParams) |
GET /companies |
Search the companies across organizations |
client.Invoices
| Method | HTTP | Summary |
|---|---|---|
SearchAsync(SearchInvoiceSearchParams) |
GET /invoices |
Search the invoices across organizations |
client.Quotations
| Method | HTTP | Summary |
|---|---|---|
SearchAsync(SearchQuotationSearchParams) |
GET /quotations |
Search the quotations across organizations |
client.Orders
| Method | HTTP | Summary |
|---|---|---|
SearchAsync(SearchOrderSearchParams) |
GET /orders |
Search the orders across organizations |
client.Me
| Method | HTTP | Summary |
|---|---|---|
GetAsync() |
GET /me |
Get the signed-in user |
client.Me.ApiKeys
| Method | HTTP | Summary |
|---|---|---|
ListAsync() |
GET /me/api-keys |
List my API keys |
CreateAsync(MyApiKeyCreateParams) |
POST /me/api-keys |
Create a user key |
GetAsync(apiKeyId, MyApiKeyGetParams) |
GET /me/api-keys/{apiKeyId} |
Get one of my API keys |
RevokeAsync(apiKeyId) |
DELETE /me/api-keys/{apiKeyId} |
Revoke one of my API keys |
UpdateAsync(apiKeyId, MyApiKeyUpdateParams) |
PATCH /me/api-keys/{apiKeyId} |
Change one of my API keys |
RotateAsync(apiKeyId) |
POST /me/api-keys/{apiKeyId}/rotate |
Rotate one of my API keys |
client.Organization("organization_…")
| Method | HTTP | Summary |
|---|---|---|
GetAsync() |
GET /organizations/{id} |
Get an organization |
client.Organization("organization_…").ApiKeys
| Method | HTTP | Summary |
|---|---|---|
ListAsync() |
GET /organizations/{id}/api-keys |
List the organization's API keys |
CreateAsync(ApiKeyCreateParams) |
POST /organizations/{id}/api-keys |
Create an organization key |
GetAsync(apiKeyId) |
GET /organizations/{id}/api-keys/{apiKeyId} |
Get one of the organization's API keys |
RevokeAsync(apiKeyId) |
DELETE /organizations/{id}/api-keys/{apiKeyId} |
Revoke one of the organization's API keys |
UpdateAsync(apiKeyId, ApiKeyUpdateParams) |
PATCH /organizations/{id}/api-keys/{apiKeyId} |
Change one of the organization's API keys |
RotateAsync(apiKeyId) |
POST /organizations/{id}/api-keys/{apiKeyId}/rotate |
Rotate one of the organization's API keys |
client.Organization("organization_…").Products
| Method | HTTP | Summary |
|---|---|---|
ListAsync(ProductListParams) |
GET /organizations/{id}/products |
List the products |
CreateAsync(ProductCreateParams) |
POST /organizations/{id}/products |
Create a product |
ListTagsAsync() |
GET /organizations/{id}/products/tags |
List the products' tags |
GetAsync(productId) |
GET /organizations/{id}/products/{productId} |
Get a product |
DeleteAsync(productId) |
DELETE /organizations/{id}/products/{productId} |
Delete a product |
UpdateAsync(productId, ProductUpdateParams) |
PATCH /organizations/{id}/products/{productId} |
Change a product |
GetNeighborsAsync(productId, ProductGetNeighborsParams) |
GET /organizations/{id}/products/{productId}/neighbors |
Get a product's neighbors in the list |
client.Organization("organization_…").Products.Barcodes
| Method | HTTP | Summary |
|---|---|---|
CreateAsync(productId, ProductBarcodeCreateParams) |
POST /organizations/{id}/products/{productId}/barcodes |
Add a barcode to a product |
GetAsync(productId, barcodeId) |
GET /organizations/{id}/products/{productId}/barcodes/{barcodeId} |
Get a barcode of a product |
DeleteAsync(productId, barcodeId) |
DELETE /organizations/{id}/products/{productId}/barcodes/{barcodeId} |
Remove a barcode from a product |
UpdateAsync(productId, barcodeId, ProductBarcodeUpdateParams) |
PATCH /organizations/{id}/products/{productId}/barcodes/{barcodeId} |
Change a barcode of a product |
client.Organization("organization_…").Companies
| Method | HTTP | Summary |
|---|---|---|
ListTagsAsync() |
GET /organizations/{id}/companies/tags |
List the companies' tags |
GetNeighborsAsync(companyId, CompanyGetNeighborsParams) |
GET /organizations/{id}/companies/{companyId}/neighbors |
Get a company's neighbors in a list |
ListAsync(CompanyListParams) |
GET /organizations/{id}/companies |
List the companies |
CreateAsync(CompanyCreateParams) |
POST /organizations/{id}/companies |
Create a company |
GetAsync(companyId) |
GET /organizations/{id}/companies/{companyId} |
Get a company |
DeleteAsync(companyId) |
DELETE /organizations/{id}/companies/{companyId} |
Delete a company |
UpdateAsync(companyId, CompanyUpdateParams) |
PATCH /organizations/{id}/companies/{companyId} |
Change a company |
GetEinvoicingRoutingAsync(companyId) |
GET /organizations/{id}/companies/{companyId}/einvoicing-routing |
Get a customer's e-invoicing routing |
ReplaceEinvoicingRoutingAsync(companyId, CompanyReplaceEinvoicingRoutingParams) |
PUT /organizations/{id}/companies/{companyId}/einvoicing-routing |
Choose a customer's electronic address |
GetSepaMandateAsync(companyId) |
GET /organizations/{id}/companies/{companyId}/sepa-mandate |
Get a customer's SEPA mandate |
client.Organization("organization_…").Companies.EmailAddresses
| Method | HTTP | Summary |
|---|---|---|
CreateAsync(companyId, CompanyEmailAddressCreateParams) |
POST /organizations/{id}/companies/{companyId}/email-addresses |
Add an e-mail address to a company |
DeleteAsync(companyId, companyEmailAddressId) |
DELETE /organizations/{id}/companies/{companyId}/email-addresses/{companyEmailAddressId} |
Remove an e-mail address from a company |
UpdateAsync(companyId, companyEmailAddressId, CompanyEmailAddressUpdateParams) |
PATCH /organizations/{id}/companies/{companyId}/email-addresses/{companyEmailAddressId} |
Change an e-mail address of a company |
ResubscribeAsync(companyId, companyEmailAddressId) |
POST /organizations/{id}/companies/{companyId}/email-addresses/{companyEmailAddressId}/resubscribe |
Subscribe an e-mail address of a company again |
client.Organization("organization_…").Companies.PostalAddresses
| Method | HTTP | Summary |
|---|---|---|
CreateAsync(companyId, CompanyPostalAddressCreateParams) |
POST /organizations/{id}/companies/{companyId}/postal-addresses |
Add a postal address to a company |
GetAsync(companyId, postalAddressId) |
GET /organizations/{id}/companies/{companyId}/postal-addresses/{postalAddressId} |
Get a postal address of a company |
DeleteAsync(companyId, postalAddressId) |
DELETE /organizations/{id}/companies/{companyId}/postal-addresses/{postalAddressId} |
Remove a postal address from a company |
UpdateAsync(companyId, postalAddressId, CompanyPostalAddressUpdateParams) |
PATCH /organizations/{id}/companies/{companyId}/postal-addresses/{postalAddressId} |
Change a postal address of a company |
client.Organization("organization_…").Companies.SepaMandate
| Method | HTTP | Summary |
|---|---|---|
CreateInvitationAsync(companyId, CompanySepaMandateCreateInvitationParams) |
POST /organizations/{id}/companies/{companyId}/sepa-mandate/invitation |
Invite a customer to sign a SEPA mandate |
RevokeAsync(companyId) |
POST /organizations/{id}/companies/{companyId}/sepa-mandate/revoke |
Revoke a customer's SEPA mandate |
client.Organization("organization_…").Invoices
| Method | HTTP | Summary |
|---|---|---|
ListAsync(InvoiceListParams) |
GET /organizations/{id}/invoices |
List the invoices |
CreateAsync(InvoiceCreateParams) |
POST /organizations/{id}/invoices |
Create a draft invoice |
ListTagsAsync() |
GET /organizations/{id}/invoices/tags |
List the invoices' tags |
GetEligibilityAsync(InvoiceGetEligibilityParams) |
GET /organizations/{id}/invoices/eligibility |
Count what each batch would act on |
GetAsync(invoiceId) |
GET /organizations/{id}/invoices/{invoiceId} |
Get an invoice |
DownloadPdfAsync(invoiceId, GetInvoicePdfParams) |
GET /organizations/{id}/invoices/{invoiceId} (Accept: application/pdf) |
Get an invoice as a PDF file |
DeleteAsync(invoiceId) |
DELETE /organizations/{id}/invoices/{invoiceId} |
Delete a draft invoice |
UpdateAsync(invoiceId, InvoiceUpdateParams) |
PATCH /organizations/{id}/invoices/{invoiceId} |
Change a draft invoice |
GetNeighborsAsync(invoiceId, InvoiceGetNeighborsParams) |
GET /organizations/{id}/invoices/{invoiceId}/neighbors |
Get an invoice's neighbors in the list |
ValidateAsync(invoiceId) |
POST /organizations/{id}/invoices/{invoiceId}/validate |
Validate an invoice |
BatchValidateAsync(InvoiceBatchValidateParams) |
POST /organizations/{id}/invoices/batch-validate |
Validate several invoices |
BatchShareAsync(InvoiceBatchShareParams) |
POST /organizations/{id}/invoices/batch-share |
Mark several invoices as handed to their customers |
BatchCreatePaymentsAsync(InvoiceBatchCreatePaymentsParams) |
POST /organizations/{id}/invoices/batch-payments |
Record payments on several invoices |
BatchCreateCreditNotesAsync(InvoiceBatchCreateCreditNotesParams) |
POST /organizations/{id}/invoices/batch-credit-notes |
Cancel several invoices with credit notes |
BatchDuplicateAsync(InvoiceBatchDuplicateParams) |
POST /organizations/{id}/invoices/batch-duplicate |
Duplicate several invoices as drafts |
SendAsync(invoiceId, InvoiceSendParams) |
POST /organizations/{id}/invoices/{invoiceId}/send |
Send an invoice by e-mail |
EditAsync(invoiceId, InvoiceEditParams) |
POST /organizations/{id}/invoices/{invoiceId}/edit |
Change a draft's lines, customer or description |
GetEditabilityAsync(invoiceId) |
GET /organizations/{id}/invoices/{invoiceId}/editability |
Tell whether a draft can still be changed |
ShareAsync(invoiceId, InvoiceShareParams) |
POST /organizations/{id}/invoices/{invoiceId}/share |
Mark an invoice as handed to its customer |
MarkLostAsync(invoiceId) |
POST /organizations/{id}/invoices/{invoiceId}/mark-lost |
Write an invoice off as lost |
UnpayAsync(invoiceId) |
POST /organizations/{id}/invoices/{invoiceId}/unpay |
Take an invoice back to unpaid |
ReinvoiceAsync(invoiceId) |
POST /organizations/{id}/invoices/{invoiceId}/reinvoice |
Re-bill a credit note as a new draft |
SetCorrectedInvoiceAsync(invoiceId, InvoiceSetCorrectedInvoiceParams) |
POST /organizations/{id}/invoices/{invoiceId}/set-corrected-invoice |
Name the invoice a credit note corrects |
GetEinvoiceAsync(invoiceId) |
GET /organizations/{id}/invoices/{invoiceId}/einvoice |
Get an invoice's e-invoice |
SubmitEinvoiceAsync(invoiceId) |
POST /organizations/{id}/invoices/{invoiceId}/submit-einvoice |
Submit an invoice through the e-invoicing network |
DebitAsync(invoiceId) |
POST /organizations/{id}/invoices/{invoiceId}/debit |
Debit an invoice by SEPA |
RefundAsync(invoiceId) |
POST /organizations/{id}/invoices/{invoiceId}/refund |
Refund an invoice's Stripe payments |
GetPaymentStatusAsync(invoiceId) |
GET /organizations/{id}/invoices/{invoiceId}/payment-status |
Get an invoice's payment status |
client.Organization("organization_…").Invoices.CreditNotes
| Method | HTTP | Summary |
|---|---|---|
CreateAsync(invoiceId) |
POST /organizations/{id}/invoices/{invoiceId}/credit-notes |
Cancel an invoice with a credit note |
client.Organization("organization_…").Invoices.CorrectableInvoices
| Method | HTTP | Summary |
|---|---|---|
ListAsync(invoiceId, InvoiceCorrectableInvoiceListParams) |
GET /organizations/{id}/invoices/{invoiceId}/correctable-invoices |
List the invoices a credit note can correct |
client.Organization("organization_…").Invoices.StatusHistory
| Method | HTTP | Summary |
|---|---|---|
ListAsync(invoiceId) |
GET /organizations/{id}/invoices/{invoiceId}/status-history |
List an invoice's status history |
client.Organization("organization_…").Invoices.Payments
| Method | HTTP | Summary |
|---|---|---|
ListAsync(invoiceId) |
GET /organizations/{id}/invoices/{invoiceId}/payments |
List an invoice's payments |
CreateAsync(invoiceId, InvoicePaymentCreateParams) |
POST /organizations/{id}/invoices/{invoiceId}/payments |
Record a payment on an invoice |
GetAsync(invoiceId, paymentId) |
GET /organizations/{id}/invoices/{invoiceId}/payments/{paymentId} |
Get a payment of an invoice |
DeleteAsync(invoiceId, paymentId) |
DELETE /organizations/{id}/invoices/{invoiceId}/payments/{paymentId} |
Remove a payment of an invoice |
client.Organization("organization_…").Quotations
| Method | HTTP | Summary |
|---|---|---|
ListAsync(QuotationListParams) |
GET /organizations/{id}/quotations |
List the quotations |
CreateAsync(QuotationCreateParams) |
POST /organizations/{id}/quotations |
Create a quotation |
ListTagsAsync() |
GET /organizations/{id}/quotations/tags |
List the quotations' tags |
GetEligibilityAsync(QuotationGetEligibilityParams) |
GET /organizations/{id}/quotations/eligibility |
Count what each batch would act on |
GetAsync(quotationId) |
GET /organizations/{id}/quotations/{quotationId} |
Get a quotation |
DownloadPdfAsync(quotationId) |
GET /organizations/{id}/quotations/{quotationId} (Accept: application/pdf) |
Get a quotation as a PDF file |
DeleteAsync(quotationId) |
DELETE /organizations/{id}/quotations/{quotationId} |
Delete a quotation |
UpdateAsync(quotationId, QuotationUpdateParams) |
PATCH /organizations/{id}/quotations/{quotationId} |
Change a quotation |
GetNeighborsAsync(quotationId, QuotationGetNeighborsParams) |
GET /organizations/{id}/quotations/{quotationId}/neighbors |
Get a quotation's neighbors in the list |
EditAsync(quotationId, QuotationEditParams) |
POST /organizations/{id}/quotations/{quotationId}/edit |
Change a quotation's lines, customer or description |
GetEditabilityAsync(quotationId) |
GET /organizations/{id}/quotations/{quotationId}/editability |
Tell whether a quotation can still be changed |
ShareAsync(quotationId) |
POST /organizations/{id}/quotations/{quotationId}/share |
Mark a quotation as handed to its customer |
ApproveAsync(quotationId) |
POST /organizations/{id}/quotations/{quotationId}/approve |
Record that the customer accepted a quotation |
BatchShareAsync(QuotationBatchShareParams) |
POST /organizations/{id}/quotations/batch-share |
Mark several quotations as handed to their customers |
BatchApproveAsync(QuotationBatchApproveParams) |
POST /organizations/{id}/quotations/batch-approve |
Record that customers accepted several quotations |
BatchOrderAsync(QuotationBatchOrderParams) |
POST /organizations/{id}/quotations/batch-order |
Turn several accepted quotations into orders |
CancelAsync(quotationId) |
POST /organizations/{id}/quotations/{quotationId}/cancel |
Cancel a quotation (refused or withdrawn) |
ExtendAsync(quotationId, QuotationExtendParams) |
POST /organizations/{id}/quotations/{quotationId}/extend |
Extend a quotation's validity |
OrderAsync(quotationId) |
POST /organizations/{id}/quotations/{quotationId}/order |
Turn an accepted quotation into an order |
InvoiceAsync(quotationId) |
POST /organizations/{id}/quotations/{quotationId}/invoice |
Bill an accepted quotation |
SendAsync(quotationId, QuotationSendParams) |
POST /organizations/{id}/quotations/{quotationId}/send |
Send a quotation by e-mail |
client.Organization("organization_…").Quotations.StatusHistory
| Method | HTTP | Summary |
|---|---|---|
ListAsync(quotationId) |
GET /organizations/{id}/quotations/{quotationId}/status-history |
List a quotation's status history |
client.Organization("organization_…").Orders
| Method | HTTP | Summary |
|---|---|---|
ListAsync(OrderListParams) |
GET /organizations/{id}/orders |
List the orders |
CreateAsync(OrderCreateParams) |
POST /organizations/{id}/orders |
Create an order |
ListTagsAsync() |
GET /organizations/{id}/orders/tags |
List the orders' tags |
GetEligibilityAsync(OrderGetEligibilityParams) |
GET /organizations/{id}/orders/eligibility |
Count what each batch would act on |
GetAsync(orderId) |
GET /organizations/{id}/orders/{orderId} |
Get an order |
DownloadPdfAsync(orderId) |
GET /organizations/{id}/orders/{orderId} (Accept: application/pdf) |
Get an order as a PDF file |
DeleteAsync(orderId) |
DELETE /organizations/{id}/orders/{orderId} |
Delete an order |
UpdateAsync(orderId, OrderUpdateParams) |
PATCH /organizations/{id}/orders/{orderId} |
Change an order |
GetNeighborsAsync(orderId, OrderGetNeighborsParams) |
GET /organizations/{id}/orders/{orderId}/neighbors |
Get an order's neighbors in the list |
EditAsync(orderId, OrderEditParams) |
POST /organizations/{id}/orders/{orderId}/edit |
Change an order's lines, customer, delivery address or description |
GetEditabilityAsync(orderId) |
GET /organizations/{id}/orders/{orderId}/editability |
Tell whether an order can still be changed |
ShareAsync(orderId) |
POST /organizations/{id}/orders/{orderId}/share |
Mark an order as handed to its customer |
ApproveAsync(orderId) |
POST /organizations/{id}/orders/{orderId}/approve |
Record that the customer confirmed an order |
MarkWaitingForDeliveryAsync(orderId) |
POST /organizations/{id}/orders/{orderId}/mark-waiting-for-delivery |
Mark an order as prepared, waiting for its delivery |
CancelAsync(orderId) |
POST /organizations/{id}/orders/{orderId}/cancel |
Cancel an order |
BatchShareAsync(OrderBatchShareParams) |
POST /organizations/{id}/orders/batch-share |
Mark several orders as handed to their customers |
BatchApproveAsync(OrderBatchApproveParams) |
POST /organizations/{id}/orders/batch-approve |
Record that customers confirmed several orders |
GetStockAvailabilityAsync(orderId) |
GET /organizations/{id}/orders/{orderId}/stock-availability |
List the stocks an order's goods can leave from |
DeliverAsync(orderId, OrderDeliverParams) |
POST /organizations/{id}/orders/{orderId}/deliver |
Deliver an order: make its delivery note |
InvoiceAsync(orderId, OrderInvoiceParams) |
POST /organizations/{id}/orders/{orderId}/invoice |
Bill an order |
SendAsync(orderId, OrderSendParams) |
POST /organizations/{id}/orders/{orderId}/send |
Send an order by e-mail |
client.Organization("organization_…").Orders.StatusHistory
| Method | HTTP | Summary |
|---|---|---|
ListAsync(orderId) |
GET /organizations/{id}/orders/{orderId}/status-history |
List an order's status history |
client.Organization("organization_…").DeliveryNotes
| Method | HTTP | Summary |
|---|---|---|
GetAsync(deliveryNoteId) |
GET /organizations/{id}/delivery-notes/{deliveryNoteId} |
Get a delivery note |
client.Organization("organization_…").Einvoicing
| Method | HTTP | Summary |
|---|---|---|
GetAsync() |
GET /organizations/{id}/einvoicing |
Get the organization's e-invoicing |
ConnectAsync() |
POST /organizations/{id}/einvoicing/connect |
Start connecting the organization to SuperPDP |
DisconnectAsync() |
POST /organizations/{id}/einvoicing/disconnect |
Disconnect the organization from SuperPDP |
SyncAsync() |
POST /organizations/{id}/einvoicing/sync |
Read the verification statuses from SuperPDP |
GetAddressAsync() |
GET /organizations/{id}/einvoicing/address |
Get the organization's electronic address |
ReplaceAddressAsync(EinvoicingResourceReplaceAddressParams) |
PUT /organizations/{id}/einvoicing/address |
Choose the organization's electronic address |
client.Organization("organization_…").Einvoices
| Method | HTTP | Summary |
|---|---|---|
ListOutgoingFailuresAsync() |
GET /organizations/{id}/einvoices/outgoing-failures |
List the failed submissions |
client.Organization("organization_…").IncomingEinvoices
| Method | HTTP | Summary |
|---|---|---|
ListAsync(IncomingEinvoiceListParams) |
GET /organizations/{id}/incoming-einvoices |
List the incoming e-invoices |
GetAsync(incomingEinvoiceId) |
GET /organizations/{id}/incoming-einvoices/{incomingEinvoiceId} |
Get an incoming e-invoice |
DownloadPdfAsync(incomingEinvoiceId) |
GET /organizations/{id}/incoming-einvoices/{incomingEinvoiceId} (Accept: application/pdf) |
Get an incoming e-invoice as a PDF file |
DownloadXmlAsync(incomingEinvoiceId) |
GET /organizations/{id}/incoming-einvoices/{incomingEinvoiceId} (Accept: application/xml) |
Get an incoming e-invoice as a XML file |
AcceptAsync(incomingEinvoiceId) |
POST /organizations/{id}/incoming-einvoices/{incomingEinvoiceId}/accept |
Accept an incoming e-invoice |
RefuseAsync(incomingEinvoiceId, IncomingEinvoiceRefuseParams) |
POST /organizations/{id}/incoming-einvoices/{incomingEinvoiceId}/refuse |
Refuse an incoming e-invoice |
DisputeAsync(incomingEinvoiceId, IncomingEinvoiceDisputeParams) |
POST /organizations/{id}/incoming-einvoices/{incomingEinvoiceId}/dispute |
Dispute an incoming e-invoice |
AcceptPartiallyAsync(incomingEinvoiceId, IncomingEinvoiceAcceptPartiallyParams) |
POST /organizations/{id}/incoming-einvoices/{incomingEinvoiceId}/accept-partially |
Accept an incoming e-invoice in part |
MarkPaidAsync(incomingEinvoiceId, IncomingEinvoiceMarkPaidParams) |
POST /organizations/{id}/incoming-einvoices/{incomingEinvoiceId}/mark-paid |
Mark an incoming e-invoice paid |
client.Organization("organization_…").PaymentsAccount
| Method | HTTP | Summary |
|---|---|---|
GetAsync() |
GET /organizations/{id}/payments-account |
Get the organization's Stripe account |
StartOnboardingAsync(PaymentsAccountResourceStartOnboardingParams) |
POST /organizations/{id}/payments-account/onboarding |
Start or resume the Stripe onboarding |
CreateDashboardLinkAsync() |
POST /organizations/{id}/payments-account/dashboard-link |
Open the Stripe dashboard |
GetOnlinePaymentSettingAsync() |
GET /organizations/{id}/payments-account/online-payment |
Get the online payment of invoices |
ReplaceOnlinePaymentSettingAsync(PaymentsAccountResourceReplaceOnlinePaymentSettingParams) |
PUT /organizations/{id}/payments-account/online-payment |
Turn the online payment of invoices on or off |
ListSepaFeesAsync(PaymentsAccountResourceListSepaFeesParams) |
GET /organizations/{id}/payments-account/sepa-fees |
List the SEPA debits' fees |
GetSepaQuotaAsync() |
GET /organizations/{id}/payments-account/sepa-quota |
Get the SEPA quota |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 0 | 11/26/2026 |