Appearance
Get sales invoice details
Endpoints v1
https://app.passelimerit.fi/api/v1/getinvoice
Endpoints v2
https://app.passelimerit.fi/api/v2/getinvoice
Query Payload:
json
{
"Id": "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx",
"AddAttachment": true/false
}
Click to see the payload parameters
field | type | description | Required |
---|---|---|---|
Id | Guid | The user Id, sometimes called SIHId . | Required |
AddAttachment | bool | true/false (lowercase) | Required |
V1 Successful Result
json
{
"Header": {
// ...
},
"Lines": [
// ...
],
"Payments": [
// ...
],
"Attachment": null
}
Click to see the result parameters
Field Name | Type | Comment |
---|---|---|
Header | SalesHeader object | |
Lines | Array of Line objects | |
Payments | Array of Payment objects | |
Allocations | Project and Cost Center allocations (if existing) |
SalesHeaderObject
json
{
"Header": {
"Dimensions": [],
"SIHId": "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx",
"DepartmentCode": null,
"DepartmentName": null,
"ProjectCode": null,
"ProjectName": null,
"AccountingDoc": 0,
"BatchInfo": "MY-1",
"InvoiceNo": "TEST00001",
"DocumentDate": "2024-04-29T00:00:00",
"TransactionDate": "2024-04-29T00:00:00",
"CustomerId": "88d0362a-5e55-4184-b9ff-ace2a4f93da4",
"CustomerName": "Mari Maasikas",
"CustomerRegNo": null,
"HComment": null,
"FComment": null,
"DueDate": "2024-04-29T00:00:00",
"CurrencyCode": "EUR",
"CurrencyRate": 1.0000000,
"TaxAmount": 0.00,
"RoundingAmount": 5.00,
"TotalAmount": 375.00,
"ProfitAmount": 375.00,
"TotalSum": 380.00,
"UserName": "Merit API",
"ReferenceNo": "000013",
"PriceInclVat": false,
"VatRegNo": null,
"PaidAmount": 0.00,
"EInvSent": false,
"EmailSent": "1901-01-01T00:00:00",
"EInvOperator": 0,
"OfferId": "00000000-0000-0000-0000-000000000000",
"OfferDocType": null,
"OfferNo": null,
"FileExists": false,
"PerSHId": "00000000-0000-0000-0000-000000000000",
"ContractNo": null,
"Paid": false,
"Contact": null,
"YourReference": "ABC",
"OurReference": "DEF"
},
// ...
}
Click to see the SalesHeaderObject parameters
Field Name | Comment |
---|---|
SIHId | |
DepartmentCode | |
DepartmentName | |
ProjectCode | |
ProjectName | |
BatchInfo | GL transaction code and # |
InvoiceNo | |
DocumentDate | |
TransactionDate | |
CustomerName | |
HComment | |
FComment | |
DueDate | |
CurrencyCode | |
CurrencyRate | |
TaxAmount | VAT amount |
RoundingAmount | |
TotalAmount | Amount wo. VAT |
ProfitAmount | Margin amount |
TotalSum | Total amount with taxes and rounding |
UserName | |
ReferenceNo | |
PriceInclVat | |
VatRegNo | |
OfferId | |
OfferDocType | |
OfferNo | |
FileName | Str |
FileContent | File in base64 |
PerSHId | |
ContractNo | |
OurReference | Str 70 |
YourReference | Str 70 |
InvoiceRowObject
json
{
// ...
"Lines": [
{
"SILId": "c508f6ba-79b5-4272-8701-128371358063",
"ArticleCode": "MAAKLER",
"LocationCode": null,
"Quantity": 1.000,
"Price": 416.6700000,
"TaxName": "Ei veronalainen",
"TaxPct": 0.00,
"AmountExclVat": 375.00,
"AmountInclVat": 375.00,
"VatAmount": 0.00,
"AccountCode": "3010",
"DepartmentCode": null,
"DepartmentName": null,
"ItemCostAmount": 0.00,
"ProfitAmount": 375.00,
"DiscountPct": 10.00,
"DiscountAmount": 41.67,
"Description": "Maaklerteenus",
"UOMName": null,
"FixAsset": false,
"DimAllocation": []
}
],
// ...
}
Click to see the InvoiceRowObject parameters
Field Name | Comment |
---|---|
ArticleCode | |
LocationCode | |
Quantity | |
Price | |
TaxName | |
TaxPct | |
AmountExclVat | |
AmountInclVat | |
VatAmount | |
AccountCode | |
DepartmentCode | |
DepartmentName | |
ItemCostAmount | |
ProfitAmount | |
DiscountPct | |
DicountAmount | |
Description | |
UOMName | |
FixAsset | |
ProjectAllocation | Array(CostAllocation) |
CostCenterAllocation | Array(CostAllocation) |
PaymentObject
json
{
// ...
"Payments": [
{
"PaymDate": "2024-04-29T00:00:00",
"Amount": 380.00,
"PaymentMethod": "Pangalink",
"PaymentId": "00000000-0000-0000-0000-000000000000"
}
],
// ...
}
Click to see the PaymentObject parameters
Field Name | Comment |
---|---|
PaymDate | |
Amount | |
PaymentMethod | |
PaymentId |
CostAllocationObject
json
{
// ...
"Allocations": [
{
"Code": "101",
"AllocPct": 100.00,
"AllocAmount": 375.00
}
]
}
Click to see the CostAllocationObject parameters
Name | Type | Comment |
---|---|---|
Code | Str | Code of project / cost center |
AllocPct | Int | Allocation percentage |
AllocAmount | Int | Allocation amount |
V2 Successful Result
json
{
"Header": {
// ...
},
"Lines": [
// ...
],
"Payments": [],
"Attachment": null
}
Click to see the result parameters
Field | Type | Comment |
---|---|---|
Header | Header Object | |
Lines | Lines Object | |
Payments | Payment Object | |
Attachment | Attachment object |
InvoiceHeaderObject
json
{
"Header": {
"Dimensions": [],
"SIHId": "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx",
"DepartmentCode": null,
"DepartmentName": null,
"ProjectCode": null,
"ProjectName": null,
"AccountingDoc": 0,
"BatchInfo": "MY-1",
"InvoiceNo": "TEST00001",
"DocumentDate": "2024-04-29T00:00:00",
"TransactionDate": "2024-04-29T00:00:00",
"CustomerId": "88d0362a-5e55-4184-b9ff-ace2a4f93da4",
"CustomerName": "Mari Maasikas",
"CustomerRegNo": null,
"HComment": null,
"FComment": null,
"DueDate": "2024-04-29T00:00:00",
"CurrencyCode": "EUR",
"CurrencyRate": 1.0000000,
"TaxAmount": 0.00,
"RoundingAmount": 5.00,
"TotalAmount": 375.00,
"ProfitAmount": 375.00,
"TotalSum": 380.00,
"UserName": "Merit API",
"ReferenceNo": "000013",
"PriceInclVat": false,
"VatRegNo": null,
"PaidAmount": 0.00,
"EInvSent": false,
"EmailSent": "1901-01-01T00:00:00",
"EInvOperator": 0,
"OfferId": "00000000-0000-0000-0000-000000000000",
"OfferDocType": null,
"OfferNo": null,
"FileExists": false,
"PerSHId": "00000000-0000-0000-0000-000000000000",
"ContractNo": null,
"Paid": false,
"Contact": null
}
}
Click to see the InvoiceHeaderObject parameters
Field | Type | Comment |
---|---|---|
Dimensions | Array of Dmensions Objects | |
SIHId | Guid | |
DepartmentCode | Str | |
DepartmentName | Str | |
ProjectCode | Str | |
ProjectName | Str | |
AccountingDock | ||
BatchInfo | Str | |
InvoiceNo | Str | |
DocumentDate | Date | |
TransactionDate | Date | |
CustomerId | Guid | |
CustomerName | Str | |
CustomerRegNo | Str | |
HComment | Str | |
FComment | Str | |
DueDate | Date | |
CurrencyCode | Str | |
CurrencyRate | Dec | |
TaxAmount | Dec | |
RoundingAmount | Dec | |
TotalAmount | Dec | |
ProfitAmount | Dec | |
TotalSum | Dec | |
UserName | Str | |
ReferenceNo | Str | |
PriceInclVat | Bool | true/false |
VatRegNo | Str | |
PaidAmount | Dec | |
EInvSent | Bool | true/false |
EmailSent | Date | |
EInvOperator | Int | 1 – Not exist, 2 – E-invoices to the bank through Omniva, 3 – Bank ( full extent E-invoice), 4 - Bank (limited extent E-invoice) |
OfferId | Guid | |
OfferDocType | Int | 1=quote, 2=sales order, 3=prepayment invoice |
OfferNo | Str | |
FileExists | Bool | true/false |
PerSHId | Guid | |
ContractNo | Str | |
Paid | Bool | |
Contact | Str |
DimensionsObject
json
{
"header": {
"Dimensions": [
{
"DimId": "Dim1",
"DimValueId": "00000000-0000-0000-0000-000000000000",
"DimCode": "101"
}
]
// ...
}
}
Click to see the DimensionsObject parameters
Field | Type | Comment |
---|---|---|
DimId | Str | |
DimValueId | Guid | |
DimCode | Str |
InvoiceRowObject
json
{
// ...
"Lines": [
{
"SILId": "c508f6ba-79b5-4272-8701-128371358063",
"ArticleCode": "MAAKLER",
"LocationCode": null,
"Quantity": 1.000,
"Price": 416.6700000,
"TaxName": "Ei veronalainen",
"TaxPct": 0.00,
"AmountExclVat": 375.00,
"AmountInclVat": 375.00,
"VatAmount": 0.00,
"AccountCode": "3010",
"DepartmentCode": null,
"DepartmentName": null,
"ItemCostAmount": 0.00,
"ProfitAmount": 375.00,
"DiscountPct": 10.00,
"DiscountAmount": 41.67,
"Description": "Maaklerteenus",
"UOMName": null,
"FixAsset": false,
"DimAllocation": []
}
]
// ...
}
Click to see the InvoiceRowObject parameters
Field | Type | Comment |
---|---|---|
SILId | Guid | |
ArticleCode | Str | |
LocationCode | Str | |
Quantity | Dec | |
Price | Dec | |
TaxName | Str | |
TaxPct | Dec | |
AmountExclVat | Dec | |
AmountInclVat | Dec | |
VatAmount | Dec | |
AccountCode | Str | |
DepartmentCode | Str | |
DepartmentName | Str | |
ItemCostAmount | Dec | |
ProfitAmount | Dec | |
DiscountPct | Dec | |
DiscountAmount | Dec | |
Description | Str | |
UOMName | Str | |
FixAsset | Bool | true/false |
DimAllocation | Array of Dimensions Allocation Objects |
DimensionsAllocationObject
json
{
// ...
"Lines": [
{
// ...
"DimAllocation": [
{
"DimId": "Dim1",
"DimValueId": "00000000-0000-0000-0000-000000000000",
"DimCode": "101"
}
]
}
],
// ...
}
Click to see the DimensionsAllocationObject parameters
Field | Type | Comment |
---|---|---|
DimId | Str | |
Code | Str | |
AllocPct | Dec | |
AllocAmount | Dec |
PaymentObject
json
{
// ...
"Payments": [
{
"PaymDate": "2024-04-29T00:00:00",
"Amount": 380.00,
"PaymentMethod": "Pangalink",
"PaymentId": "00000000-0000-0000-0000-000000000000"
}
],
// ...
}
Click to see the PaymentObject parameters
Field | Type | Comment |
---|---|---|
PaymDate | Date | |
Amount | Dec | |
PaymentMethod | Str | |
PaymentId | Guid |
AttachmentObject
json
{
// ...
"Attachment": {
"Filename": "test.pdf",
"FileContent": "",
}
}
Click to see the AttachmentObject parameters
Field | Type | Comment |
---|---|---|
Filename | Str | |
FileContent | Str | File in base64 |