Get started
Integrations
Use cases
API reference
- Accounting
- Overview
- Accounts
- Async Task
- Bills
- Bill Lines
- Bookings
- Booking Proposals
- Contacts
- Customers
- Dimensions
- Expenses
- Files
- Invoices
- Invoice Lines
- Items
- Journals
- Journal Entries
- Offers
- Offer Lines
- Payments
- Payment Terms
- Projects
- Sales Orders
- Sales Order Lines
- Suppliers
- Tax Rates
- Transactions
- Vendor Credits
- Authentication
- Tenant Management
- User
Payments
Create payment
POST
/
accounting
/
payments
curl --request POST \
--url https://api.maesn.dev/accounting/payments \
--header 'Content-Type: application/json' \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>' \
--data '{
"currency": "EUR",
"journalCode": "journal code",
"paymentType": "payment type",
"paymentLines": [
{
"amount": "100",
"accountId": "account id",
"description": "description",
"invoiceId": "invoice id"
}
]
}'
{
"meta": {
"warnings": [
"Field not used by target system"
],
"pagination": {
"total": 123,
"perPage": 123,
"currentPage": 123,
"totalPages": 123
}
},
"data": {
"id": "payment id",
"currency": "EUR",
"createdDate": "2021-01-01",
"journalCode": "journal code",
"updatedDate": "2021-01-01",
"paymentType": "payment type",
"paymentLines": [
{
"amount": "100",
"accountId": "account id",
"description": "description",
"invoiceId": "invoice id"
}
]
}
}
Field support per integration
If you’re not using the Interactive Authentication Flow, make sure the query parameter companyId
is correctly populated.
You can obtain this value by using the GET Companies
endpoint available under the Authentication section.
Supported Request Fields:
Headers
API key
Example:
"example value"
Account key
Example:
"example value"
Query Parameters
Body
application/json
Response
200 - application/json
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.maesn.dev/accounting/payments \
--header 'Content-Type: application/json' \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>' \
--data '{
"currency": "EUR",
"journalCode": "journal code",
"paymentType": "payment type",
"paymentLines": [
{
"amount": "100",
"accountId": "account id",
"description": "description",
"invoiceId": "invoice id"
}
]
}'
{
"meta": {
"warnings": [
"Field not used by target system"
],
"pagination": {
"total": 123,
"perPage": 123,
"currentPage": 123,
"totalPages": 123
}
},
"data": {
"id": "payment id",
"currency": "EUR",
"createdDate": "2021-01-01",
"journalCode": "journal code",
"updatedDate": "2021-01-01",
"paymentType": "payment type",
"paymentLines": [
{
"amount": "100",
"accountId": "account id",
"description": "description",
"invoiceId": "invoice id"
}
]
}
}