POST
/
accounting
/
bookingProposals
curl --request POST \
  --url https://api.maesn.dev/accounting/bookingProposals \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-ACCOUNT-KEY: <x-account-key>' \
  --header 'X-API-KEY: <x-api-key>' \
  --form 'files=[
  null
]' \
  --form bookingType=INVOICE \
  --form 'bookingProposal={
  "id": "BP-12345",
  "accountName ": "Payroll",
  "addresses ": [
    {
      "city": "city"
    }
  ],
  "bookingProposalDate": "2021-01-01T00:00:00Z",
  "contactAccountNumber": "12345",
  "contactName ": "John Doe",
  "currency": "EUR",
  "deliveryDate": "2021-01-01T00:00:00Z",
  "dueDate": "2021-01-01T00:00:00Z",
  "lineItems": [
    {
      "id": "Item-112233",
      "accountNumber": "1234",
      "description": "Item A",
      "taxRatePercentage": "19",
      "totalGrossAmount": "500"
    }
  ],
  "totalGrossAmount": "500"
}'
{
  "meta": {
    "warnings": [
      "Field not used by target system"
    ],
    "pagination": {
      "total": 123,
      "perPage": 123,
      "currentPage": 123,
      "totalPages": 123
    }
  },
  "data": {
    "id": "BP-12345",
    "accountName ": "Payroll",
    "addresses ": [
      {
        "city": "city"
      }
    ],
    "bookingProposalDate": "2021-01-01T00:00:00Z",
    "contactAccountNumber": "12345",
    "contactName ": "John Doe",
    "createdDate": "2021-01-01T00:00:00Z",
    "currency": "EUR",
    "deliveryDate": "2021-01-01T00:00:00Z",
    "dueDate": "2021-01-01T00:00:00Z",
    "files": [
      "file1.pdf"
    ],
    "lineItems": [
      {
        "id": "Item-112233",
        "accountNumber": "1234",
        "createdDate": "2021-01-01T00:00:00Z",
        "description": "Item A",
        "taxRatePercentage": "19",
        "totalGrossAmount": "500",
        "updatedDate": "2021-01-01T00:00:00Z"
      }
    ],
    "taskId": "ADHUR74BCBSW8399DCN",
    "totalGrossAmount": "500",
    "updatedDate": "2021-01-01T00:00:00Z"
  }
}

Test Api token:

663222ee

Test Account token:

85b30b51

Field support per integration

Headers

X-API-KEY
string
required

API key

Example:

"example value"

X-ACCOUNT-KEY
string
required

Account key

Example:

"example value"

Query Parameters

companyId
string

Body

multipart/form-data
files
file[]

Array of files to upload

bookingType
enum<string>
Available options:
INVOICE,
BILL,
CREDIT_NOTE
bookingProposal
object

Response

200 - application/json
meta
object
data
object