POST
/
accounting
/
bills
curl --request POST \
  --url https://api.maesn.dev/accounting/bills \
  --header 'Content-Type: application/json' \
  --data '{
  "accountId": "1",
  "addresses": [
    {
      "addressLine1": "Street",
      "addressLine2": "Building",
      "city": "City",
      "postalCode": "12345",
      "countryCode": "DE",
      "type": "BILLING"
    }
  ],
  "billDate": "2021-01-01T00:00:00Z",
  "billNumber": "1",
  "contactId": "eaa28f49-6028-4b6e-bb12-d8f6278073fc",
  "currency": "EUR",
  "deliveryDate": "2021-01-01T00:00:00Z",
  "dueDate": "2021-01-01T00:00:00Z",
  "fileId": "93c6b8e0-80a4-4c22-a46c-18beebab82d6",
  "journalCode": "10",
  "lineItems": [
    {
      "accountId": "item id",
      "accountNumber": "item id",
      "description": "Line item description",
      "dimensions": [
        {
          "name": "C1",
          "categoryName": "CostCenter"
        }
      ],
      "itemId": "10",
      "itemName": "Item name",
      "quantity": 1,
      "taxCode": "tax code",
      "taxRatePercentage": 19,
      "totalDiscountAmount": 10,
      "totalDiscountPercentage": 10,
      "totalGrossAmount": 119,
      "totalNetAmount": 100,
      "totalTaxAmount": 19,
      "unitAmount": 100,
      "unitDiscountAmount": 10,
      "unitDiscountPercentage": 10,
      "unitName": "Unit name"
    }
  ],
  "name": "Bill name",
  "oneLineAddress": "Main street 45, Berlin",
  "paidDate": "2021-01-01T00:00:00Z",
  "paymentStatus": "PENDING",
  "paymentDays": 30,
  "reference": "REF-12345",
  "shippingDate": "2021-01-01T00:00:00Z",
  "shippingType": "SHIPPING",
  "status": "DRAFT",
  "taxRule": "NET",
  "taxText": "Tax text",
  "totalDiscountAmount": 0,
  "totalDiscountPercentage": 0,
  "totalGrossAmount": 109,
  "totalNetAmount": 100,
  "totalTaxAmount": 19
}'
{
  "meta": {
    "warnings": [
      "Field not used by target system"
    ],
    "pagination": {
      "total": 123,
      "perPage": 123,
      "currentPage": 123,
      "totalPages": 123
    }
  },
  "data": {
    "id": "ABC123",
    "accountId": "1",
    "addresses": [
      {
        "addressLine1": "Street",
        "addressLine2": "Building",
        "city": "City",
        "postalCode": "12345",
        "countryCode": "DE",
        "type": "BILLING"
      }
    ],
    "billDate": "2021-01-01T00:00:00Z",
    "billNumber": "1",
    "contactId": "eaa28f49-6028-4b6e-bb12-d8f6278073fc",
    "createdDate": "2021-01-01T00:00:00Z",
    "currency": "EUR",
    "deliveryDate": "2021-01-01T00:00:00Z",
    "dueDate": "2021-01-01T00:00:00Z",
    "fileId": "93c6b8e0-80a4-4c22-a46c-18beebab82d6",
    "journalCode": "10",
    "lineItems": [
      {
        "id": "1",
        "accountId": "item id",
        "accountNumber": "item id",
        "createdDate": "2021-01-01T00:00:00Z",
        "description": "Line item description",
        "dimensions": [
          {
            "name": "C1",
            "categoryName": "CostCenter"
          }
        ],
        "itemId": "10",
        "itemName": "Item name",
        "quantity": 1,
        "taxCode": "tax code",
        "taxRatePercentage": 19,
        "totalDiscountAmount": 10,
        "totalDiscountPercentage": 10,
        "totalGrossAmount": 119,
        "totalNetAmount": 100,
        "totalTaxAmount": 19,
        "unitAmount": 100,
        "unitDiscountAmount": 10,
        "unitDiscountPercentage": 10,
        "unitName": "Unit name",
        "updatedDate": "2021-01-01T00:00:00Z"
      }
    ],
    "name": "Bill name",
    "oneLineAddress": "Main street 45, Berlin",
    "paidDate": "2021-01-01T00:00:00Z",
    "paymentStatus": "PENDING",
    "paymentDays": 30,
    "reference": "REF-12345",
    "shippingDate": "2021-01-01T00:00:00Z",
    "shippingType": "SHIPPING",
    "status": "DRAFT",
    "taxRule": "NET",
    "taxText": "Tax text",
    "totalDiscountAmount": 0,
    "totalDiscountPercentage": 0,
    "totalGrossAmount": 109,
    "totalNetAmount": 100,
    "totalTaxAmount": 19,
    "updatedDate": "2021-01-01T00:00:00Z"
  }
}

Field support per integration

Headers

X-API-KEY
string

API key

X-ACCOUNT-KEY
string

Account key

Query Parameters

companyId
string
environmentName
string

Body

application/json

Response

200 - application/json

The response is of type object.