ops
ops-orders

Add invoices for an end customer by ops

post/ops/invoices

Request

  • Base URL
    https://api.topi-staging.eu
  • URL
    https://api.topi-staging.eu/ops/invoices
  • Auth
    OAuth 2
    Authorization code: /oauth2/authorize
    Token URL: /oauth2/token scopes: ops-invoice:edit

Request body

send_emailboolean required

Should adding invoices trigger email to the user

Example request

{
  "invoices": [
    {
      "amount": {
        "currency": "EUR",
        "gross": 119000,
        "net": 100000
      },
      "confirm_overwrite": false,
      "contract_type": "rent",
      "duration": 6,
      "encrypted_invoice_number": "abc123",
      "file": "abc123",
      "invoice_date": "abc123",
      "order_id": "739b63c2-9e58-4964-b38d-4ebb424de242",
      "seller_offer_reference": "abc123",
      "transaction_type": "invoice",
      "withdrawal_date": "1970-01-01T00:00:01Z"
    },
    {
      "amount": {
        "currency": "EUR",
        "gross": 119000,
        "net": 100000
      },
      "confirm_overwrite": false,
      "contract_type": "rent",
      "duration": 6,
      "encrypted_invoice_number": "abc123",
      "file": "abc123",
      "invoice_date": "abc123",
      "order_id": "739b63c2-9e58-4964-b38d-4ebb424de242",
      "seller_offer_reference": "abc123",
      "transaction_type": "invoice",
      "withdrawal_date": "1970-01-01T00:00:01Z"
    }
  ],
  "send_email": false
}

Response

OK response.

Changes

    • info

      api operation id invoice.addInvoices removed and replaced with invoice#addInvoices

    • info

      api operation id invoice#addInvoices removed and replaced with invoice.addInvoices

    • info

      api tag ops-orders added