BexioApiClient. SalesOrderManagement
(bexio_api_client v2.0.0)
Copy Markdown
Bexio API for the sales order management part of the API.
Summary
Functions
Accept a quote.
Cancel an invoice.
Copy an invoice.
Copy a quote.
Create a comment
Create a default position
Create a delivery from an order.
Create a discount position
Create an invoice (id in order will be ignored). Be also aware: whether you need or must not send a document number depends on the settings in Bexio. It cannot be controlled by the API and as such will just send if it exists.
Create an invoice from an order.
Create an invoice from a quote.
Create a payment for an invoice.
Create a reminder for an invoice.
Create an item position
Create an order (id in order will be ignored). Be also aware: whether you need or must not send a document number depends on the settings in Bexio. It cannot be controlled by the API and as such will just send if it exists.
Create an order from a quote.
Create a pagebreak position
Create a quote (id in order will be ignored). Be also aware: whether you need or must not send a document number depends on the settings in Bexio. It cannot be controlled by the API and as such will just send if it exists.
Create a subposition position
Create a subtotal position.
Create a text position
Decline a quote.
Delete a default position.
Delete a discount position.
Delete an invoice.
Delete a payment of an invoice.
Delete a reminder of an invoice.
Delete a default position.
Delete an order.
Delete the repetition of an order.
Delete a pagebreak position.
Delete a quote.
Delete a subposition position.
Delete a subtotal position.
Delete a text position.
Edit a default position.
Edit a discount position.
Edit an invoice.
Edit an order.
Edit the repetition of an order.
Edit a pagebreak position.
Edit a quote.
Edit a subposition position.
Edit a subtotal position.
Edit a text position.
This action fetches a single comment.
This action fetches a list of comments.
This action fetches a single default position for a document.
This action fetches a list of all default positions for a document.
This action fetches a list of all deliveries.
This action fetches a single delivery
This action fetches a single discount position for a document.
This action fetches a list of all discount positions for a document.
Fetch a list of document settings
This action fetches a single invoice
This action fetches a single payment of an invoice.
This action fetches a list of all payments for an invoice.
This action fetches a single reminder of an invoice.
This action fetches a list of all reminders for an invoice.
This action fetches a list of all invoices.
This action fetches a single item position for a document.
This action fetches a list of all item positions for a document.
This action fetches a single order
This action fetches the repetition of an order.
This action fetches a list of all orders.
This action fetches a single pagebreak position for a document.
This action fetches a list of all pagebreak positions for a document.
This action fetches a single quote
This action fetches a list of all quotes.
This action fetches a single subposition position for a document.
This action fetches a list of all subposition positions for a document.
This action fetches a single subtotal position for a document.
This action fetches a list of all subtotal positions for a document.
This action fetches a single text position for a document.
This action fetches a list of all text positions for a document.
This action returns a pdf document of the quote
This action returns a pdf document of the reminder of an invoice.
Issues a delivery (only possible if it's in draft status!). The result whether the issue was successful or not
Issue an invoice.
Issue a quote.
Mark an invoice as sent.
Mark a reminder of an invoice as sent.
Mark a reminder of an invoice as unsent.
Mark a quote as sent.
This action returns a pdf document of the order
This action returns a pdf document of the quote
Reissue a quote.
Revert Issue an invoice.
Revert Issue a quote.
Search the reminders of an invoice via query. The following search fields are supported
Search invoices via query. The following search fields are supported
Search orders via query. The following search fields are supported
Search quotes via query. The following search fields are supported
Send an invoice by email.
Send a reminder of an invoice by email.
Send a quote by email.
Types
Functions
@spec accept_quote(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, boolean()} | api_error_type()
Accept a quote.
@spec cancel_invoice(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, boolean()} | api_error_type()
Cancel an invoice.
@spec copy_invoice( req :: Req.Request.t(), invoice_id :: pos_integer(), contact_id :: integer() | nil, opts :: [ contact_sub_id: integer() | nil, is_valid_from: Date.t() | nil, title: String.t() | nil ] ) :: {:ok, BexioApiClient.SalesOrderManagement.Invoice.t()} | api_error_type()
Copy an invoice.
@spec copy_quote( req :: Req.Request.t(), quote_id :: pos_integer(), contact_id :: integer() | nil, opts :: [ contact_sub_id: integer() | nil, is_valid_from: Date.t() | nil, pr_project_id: integer() | nil, title: String.t() | nil ] ) :: {:ok, BexioApiClient.SalesOrderManagement.Quote.t()} | api_error_type()
Copy a quote.
@spec create_comment( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), comment :: BexioApiClient.SalesOrderManagement.Comment.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.Comment.t()} | api_error_type()
Create a comment
@spec create_default_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position :: BexioApiClient.SalesOrderManagement.PositionDefault.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionDefault.t()} | api_error_type()
Create a default position
@spec create_delivery_from_order(req :: Req.Request.t(), order_id :: pos_integer()) :: {:ok, BexioApiClient.SalesOrderManagement.Delivery.t()} | api_error_type()
Create a delivery from an order.
@spec create_discount_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position :: BexioApiClient.SalesOrderManagement.PositionDiscount.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionDiscount.t()} | api_error_type()
Create a discount position
@spec create_invoice( req :: Req.Request.t(), invoice :: BexioApiClient.SalesOrderManagement.Invoice.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.Invoice.t()} | api_error_type()
Create an invoice (id in order will be ignored). Be also aware: whether you need or must not send a document number depends on the settings in Bexio. It cannot be controlled by the API and as such will just send if it exists.
@spec create_invoice_from_order(req :: Req.Request.t(), order_id :: pos_integer()) :: {:ok, BexioApiClient.SalesOrderManagement.Invoice.t()} | api_error_type()
Create an invoice from an order.
@spec create_invoice_from_quote(req :: Req.Request.t(), quote_id :: pos_integer()) :: {:ok, BexioApiClient.SalesOrderManagement.Invoice.t()} | api_error_type()
Create an invoice from a quote.
@spec create_invoice_payment( req :: Req.Request.t(), invoice_id :: pos_integer(), payment :: BexioApiClient.SalesOrderManagement.Payment.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.Payment.t()} | api_error_type()
Create a payment for an invoice.
@spec create_invoice_reminder(req :: Req.Request.t(), invoice_id :: pos_integer()) :: {:ok, BexioApiClient.SalesOrderManagement.Reminder.t()} | api_error_type()
Create a reminder for an invoice.
@spec create_item_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position :: BexioApiClient.SalesOrderManagement.PositionItem.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionItem.t()} | api_error_type()
Create an item position
@spec create_order( req :: Req.Request.t(), order :: BexioApiClient.SalesOrderManagement.Order.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.Order.t()} | api_error_type()
Create an order (id in order will be ignored). Be also aware: whether you need or must not send a document number depends on the settings in Bexio. It cannot be controlled by the API and as such will just send if it exists.
@spec create_order_from_quote(req :: Req.Request.t(), quote_id :: pos_integer()) :: {:ok, BexioApiClient.SalesOrderManagement.Order.t()} | api_error_type()
Create an order from a quote.
@spec create_pagebreak_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionPagebreak.t()} | api_error_type()
Create a pagebreak position
@spec create_quote( req :: Req.Request.t(), offer :: BexioApiClient.SalesOrderManagement.Quote.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.Quote.t()} | api_error_type()
Create a quote (id in order will be ignored). Be also aware: whether you need or must not send a document number depends on the settings in Bexio. It cannot be controlled by the API and as such will just send if it exists.
@spec create_subposition_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), text :: String.t(), show_pos_nr? :: boolean() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionSubposition.t()} | api_error_type()
Create a subposition position
@spec create_subtotal_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), text :: String.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionSubtotal.t()} | api_error_type()
Create a subtotal position.
@spec create_text_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), text :: String.t(), show_pos_nr? :: boolean() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionText.t()} | api_error_type()
Create a text position
@spec decline_quote(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, boolean()} | api_error_type()
Decline a quote.
@spec delete_default_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), id :: non_neg_integer() ) :: {:ok, boolean()} | api_error_type()
Delete a default position.
@spec delete_discount_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), id :: non_neg_integer() ) :: {:ok, boolean()} | api_error_type()
Delete a discount position.
@spec delete_invoice(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, boolean()} | api_error_type()
Delete an invoice.
@spec delete_invoice_payment( req :: Req.Request.t(), invoice_id :: pos_integer(), payment_id :: pos_integer() ) :: {:ok, boolean()} | api_error_type()
Delete a payment of an invoice.
@spec delete_invoice_reminder( req :: Req.Request.t(), invoice_id :: pos_integer(), reminder_id :: pos_integer() ) :: {:ok, boolean()} | api_error_type()
Delete a reminder of an invoice.
@spec delete_item_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), id :: non_neg_integer() ) :: {:ok, boolean()} | api_error_type()
Delete a default position.
@spec delete_order(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, boolean()} | api_error_type()
Delete an order.
@spec delete_order_repetition(req :: Req.Request.t(), order_id :: pos_integer()) :: {:ok, boolean()} | api_error_type()
Delete the repetition of an order.
@spec delete_pagebreak_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), id :: non_neg_integer() ) :: {:ok, boolean()} | api_error_type()
Delete a pagebreak position.
@spec delete_quote(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, boolean()} | api_error_type()
Delete a quote.
@spec delete_subposition_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), id :: non_neg_integer() ) :: {:ok, boolean()} | api_error_type()
Delete a subposition position.
@spec delete_subtotal_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), id :: non_neg_integer() ) :: {:ok, boolean()} | api_error_type()
Delete a subtotal position.
@spec delete_text_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), id :: non_neg_integer() ) :: {:ok, boolean()} | api_error_type()
Delete a text position.
@spec edit_default_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position :: BexioApiClient.SalesOrderManagement.PositionDefault.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionDefault.t()} | api_error_type()
Edit a default position.
@spec edit_discount_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position :: BexioApiClient.SalesOrderManagement.PositionDiscount.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionDiscount.t()} | api_error_type()
Edit a discount position.
@spec edit_invoice( req :: Req.Request.t(), invoice :: BexioApiClient.SalesOrderManagement.Invoice.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.Invoice.t()} | api_error_type()
Edit an invoice.
@spec edit_item_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position :: BexioApiClient.SalesOrderManagement.PositionItem.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionItem.t()} | api_error_type()
Edit an item.
@spec edit_order( req :: Req.Request.t(), order :: BexioApiClient.SalesOrderManagement.Order.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.Order.t()} | api_error_type()
Edit an order.
@spec edit_order_repetition( req :: Req.Request.t(), order_id :: pos_integer(), repetition :: BexioApiClient.SalesOrderManagement.OrderRepetition.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.OrderRepetition.t()} | api_error_type()
Edit the repetition of an order.
@spec edit_pagebreak_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position_id :: pos_integer(), pagebreak :: boolean() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionPagebreak.t()} | api_error_type()
Edit a pagebreak position.
@spec edit_quote( req :: Req.Request.t(), offer :: BexioApiClient.SalesOrderManagement.Quote.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.Quote.t()} | api_error_type()
Edit a quote.
@spec edit_subposition_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position_id :: pos_integer(), text :: String.t(), show_pos_nr? :: boolean() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionSubposition.t()} | api_error_type()
Edit a subposition position.
@spec edit_subtotal_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position_id :: pos_integer(), text :: String.t() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionSubtotal.t()} | api_error_type()
Edit a subtotal position.
@spec edit_text_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position_id :: pos_integer(), text :: String.t(), show_pos_nr? :: boolean() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionText.t()} | api_error_type()
Edit a text position.
@spec fetch_comment( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), comment_id :: pos_integer() ) :: {:ok, BexioApiClient.SalesOrderManagement.Comment.t()} | api_error_type()
This action fetches a single comment.
@spec fetch_comments( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.Comment.t()]} | api_error_type()
This action fetches a list of comments.
@spec fetch_default_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position_id :: pos_integer() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionDefault.t()} | api_error_type()
This action fetches a single default position for a document.
@spec fetch_default_positions( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.PositionDefault.t()]} | api_error_type()
This action fetches a list of all default positions for a document.
@spec fetch_deliveries( req :: Req.Request.t(), opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.Delivery.t()]} | api_error_type()
This action fetches a list of all deliveries.
@spec fetch_delivery(req :: Req.Request.t(), delivery_id :: pos_integer()) :: {:ok, BexioApiClient.SalesOrderManagement.Delivery.t()} | api_error_type()
This action fetches a single delivery
@spec fetch_discount_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position_id :: pos_integer() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionDiscount.t()} | api_error_type()
This action fetches a single discount position for a document.
@spec fetch_discount_positions( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.PositionDiscount.t()]} | api_error_type()
This action fetches a list of all discount positions for a document.
@spec fetch_document_settings( req :: Req.Request.t(), opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.DocumentSetting.t()]} | api_error_type()
Fetch a list of document settings
@spec fetch_invoice(req :: Req.Request.t(), invoice_id :: pos_integer()) :: {:ok, BexioApiClient.SalesOrderManagement.Quote.t()} | api_error_type()
This action fetches a single invoice
@spec fetch_invoice_payment( req :: Req.Request.t(), invoice_id :: pos_integer(), payment_id :: pos_integer() ) :: {:ok, BexioApiClient.SalesOrderManagement.Payment.t()} | api_error_type()
This action fetches a single payment of an invoice.
@spec fetch_invoice_payments( req :: Req.Request.t(), invoice_id :: pos_integer(), opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.Payment.t()]} | api_error_type()
This action fetches a list of all payments for an invoice.
@spec fetch_invoice_reminder( req :: Req.Request.t(), invoice_id :: pos_integer(), reminder_id :: pos_integer() ) :: {:ok, BexioApiClient.SalesOrderManagement.Reminder.t()} | api_error_type()
This action fetches a single reminder of an invoice.
@spec fetch_invoice_reminders(req :: Req.Request.t(), invoice_id :: pos_integer()) :: {:ok, [BexioApiClient.SalesOrderManagement.Reminder.t()]} | api_error_type()
This action fetches a list of all reminders for an invoice.
@spec fetch_invoices( req :: Req.Request.t(), opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.Invoice.t()]} | api_error_type()
This action fetches a list of all invoices.
@spec fetch_item_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position_id :: pos_integer() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionItem.t()} | api_error_type()
This action fetches a single item position for a document.
@spec fetch_item_positions( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.PositionItem.t()]} | api_error_type()
This action fetches a list of all item positions for a document.
@spec fetch_order(req :: Req.Request.t(), order_id :: pos_integer()) :: {:ok, BexioApiClient.SalesOrderManagement.Order.t()} | api_error_type()
This action fetches a single order
@spec fetch_order_repetition(req :: Req.Request.t(), order_id :: pos_integer()) :: {:ok, BexioApiClient.SalesOrderManagement.OrderRepetition.t()} | api_error_type()
This action fetches the repetition of an order.
@spec fetch_orders( req :: Req.Request.t(), opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.Order.t()]} | api_error_type()
This action fetches a list of all orders.
@spec fetch_pagebreak_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position_id :: pos_integer() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionPagebreak.t()} | api_error_type()
This action fetches a single pagebreak position for a document.
@spec fetch_pagebreak_positions( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.PositionPagebreak.t()]} | api_error_type()
This action fetches a list of all pagebreak positions for a document.
@spec fetch_quote(req :: Req.Request.t(), quote_id :: pos_integer()) :: {:ok, BexioApiClient.SalesOrderManagement.Quote.t()} | api_error_type()
This action fetches a single quote
@spec fetch_quotes( req :: Req.Request.t(), opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.Quote.t()]} | api_error_type()
This action fetches a list of all quotes.
@spec fetch_subposition_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position_id :: pos_integer() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionSubposition.t()} | api_error_type()
This action fetches a single subposition position for a document.
@spec fetch_subposition_positions( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.PositionSubposition.t()]} | api_error_type()
This action fetches a list of all subposition positions for a document.
@spec fetch_subtotal_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position_id :: pos_integer() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionSubtotal.t()} | api_error_type()
This action fetches a single subtotal position for a document.
@spec fetch_subtotal_positions( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.PositionSubtotal.t()]} | api_error_type()
This action fetches a list of all subtotal positions for a document.
@spec fetch_text_position( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), position_id :: pos_integer() ) :: {:ok, BexioApiClient.SalesOrderManagement.PositionText.t()} | api_error_type()
This action fetches a single text position for a document.
@spec fetch_text_positions( req :: Req.Request.t(), document_type :: :offer | :order | :invoice, document_id :: pos_integer(), opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.PositionText.t()]} | api_error_type()
This action fetches a list of all text positions for a document.
@spec invoice_pdf(req :: Req.Request.t(), invoice_id :: pos_integer()) :: {:ok, map()} | api_error_type()
This action returns a pdf document of the quote
@spec invoice_reminder_pdf( req :: Req.Request.t(), invoice_id :: pos_integer(), reminder_id :: pos_integer() ) :: {:ok, map()} | api_error_type()
This action returns a pdf document of the reminder of an invoice.
@spec issue_delivery(req :: Req.Request.t(), delivery_id :: integer()) :: {:ok, boolean()} | api_error_type()
Issues a delivery (only possible if it's in draft status!). The result whether the issue was successful or not
@spec issue_invoice(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, boolean()} | api_error_type()
Issue an invoice.
@spec issue_quote(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, boolean()} | api_error_type()
Issue a quote.
@spec mark_invoice_as_sent(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, boolean()} | api_error_type()
Mark an invoice as sent.
@spec mark_invoice_reminder_as_sent( req :: Req.Request.t(), invoice_id :: pos_integer(), reminder_id :: pos_integer() ) :: {:ok, boolean()} | api_error_type()
Mark a reminder of an invoice as sent.
@spec mark_invoice_reminder_as_unsent( req :: Req.Request.t(), invoice_id :: pos_integer(), reminder_id :: pos_integer() ) :: {:ok, boolean()} | api_error_type()
Mark a reminder of an invoice as unsent.
@spec mark_quote_as_sent(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, boolean()} | {:error, any()}
Mark a quote as sent.
@spec order_pdf(req :: Req.Request.t(), order_id :: pos_integer()) :: {:ok, map()} | api_error_type()
This action returns a pdf document of the order
@spec quote_pdf(req :: Req.Request.t(), quote_id :: pos_integer()) :: {:ok, map()} | api_error_type()
This action returns a pdf document of the quote
@spec reissue_quote(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, boolean()} | api_error_type()
Reissue a quote.
@spec revert_issue_invoice(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, boolean()} | api_error_type()
Revert Issue an invoice.
@spec revert_issue_quote(req :: Req.Request.t(), id :: non_neg_integer()) :: {:ok, boolean()} | api_error_type()
Revert Issue a quote.
@spec search_invoice_reminders( req :: Req.Request.t(), invoice_id :: pos_integer(), criteria :: [BexioApiClient.SearchCriteria.t()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.Reminder.t()]} | api_error_type()
Search the reminders of an invoice via query. The following search fields are supported:
- title
- reminder_level
- is_sent
- is_valid_from
- is_valid_to
@spec search_invoices( req :: Req.Request.t(), criteria :: [BexioApiClient.SearchCriteria.t()], opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.Invoice.t()]} | api_error_type()
Search invoices via query. The following search fields are supported:
- id
- kb_item_status
- document_nr
- title
- contact_id
- contact_sub_id
- user_id
- currency_id
- total_gross
- total_net
- total
- is_valid_from
- is_valid_to
- updated_at
@spec search_orders( req :: Req.Request.t(), criteria :: [BexioApiClient.SearchCriteria.t()], opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.Order.t()]} | api_error_type()
Search orders via query. The following search fields are supported:
- id
- kb_item_status
- document_nr
- title
- contact_id
- contact_sub_id
- user_id
- currency_id
- total_gross
- total_net
- total
- is_valid_from
- updated_at
@spec search_quotes( req :: Req.Request.t(), criteria :: [BexioApiClient.SearchCriteria.t()], opts :: [BexioApiClient.GlobalArguments.offset_arg()] ) :: {:ok, [BexioApiClient.SalesOrderManagement.Quote.t()]} | api_error_type()
Search quotes via query. The following search fields are supported:
- id
- kb_item_status
- document_nr
- title
- contact_id
- contact_sub_id
- user_id
- currency_id
- total_gross
- total_net
- total
- is_valid_from
- is_valid_until
- is_valid_to (?)
- updated_at
@spec send_invoice( req :: Req.Request.t(), invoice_id :: pos_integer(), recipient_email :: String.t(), subject :: String.t(), message :: String.t(), opts :: [mark_as_open: boolean(), attach_pdf: boolean()] ) :: {:ok, boolean()} | api_error_type()
Send an invoice by email.
@spec send_invoice_reminder( req :: Req.Request.t(), invoice_id :: pos_integer(), reminder_id :: pos_integer(), recipient_email :: String.t(), subject :: String.t(), message :: String.t() ) :: {:ok, boolean()} | api_error_type()
Send a reminder of an invoice by email.
@spec send_quote( req :: Req.Request.t(), quote_id :: pos_integer(), recipient_email :: String.t(), subject :: String.t(), message :: String.t(), opts :: [mark_as_open: boolean(), attach_pdf: boolean()] ) :: {:ok, boolean()} | api_error_type()
Send a quote by email.