Skip to content

Invoice

Operations Summary

Method Endpoint Description
POST /api/invoice/send-financial-report-by-mail/ Send financial report by mail

Send financial report by mail

1
2
3
4
5
6
7
http \
  POST \
  https://api.example.com/api/invoice/send-financial-report-by-mail/ \
  Authorization:"Token YOUR_API_TOKEN" \
  emails:='[]' \
  year=123 \
  month=123
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.financial_report_email_request import FinancialReportEmailRequest # (1)
from waldur_api_client.api.invoice import invoice_send_financial_report_by_mail # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = FinancialReportEmailRequest(
    emails=[],
    year=123,
    month=123
)
response = invoice_send_financial_report_by_mail.sync(
    client=client,
    body=body_data
)

print(response)
  1. Model Source: FinancialReportEmailRequest
  2. API Source: invoice_send_financial_report_by_mail
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
import { invoiceSendFinancialReportByMail } from 'waldur-js-client';

try {
  const response = await invoiceSendFinancialReportByMail({
  auth: "Token YOUR_API_TOKEN",
  body: {
    "emails": [],
    "year": 123,
    "month": 123
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Field Type Required
emails array of string (email)s
year integer
month integer

200 - No response body