Breadcrumbs

API - Purchase Agreement Lines

Overview

The list page that contains the Receipt Agreement Lines in Wisefish.


Endpoint name

purchaseAgreementLines

Source table

"WiFi Purchase Agreement Line"

Fixed view

Only shows unposted purchases, i.e. where invoice has not been posted.

Requests allowed

GET, POST, PATCH, DELETE

Primary key

documentType, documentNo, lineNo

Record ID

systemId

Procedures

none

Data

Field List

Property

Type

Max Len

Description


1

systemId

string uuid



RECORD ID

2

documentType

string




3

documentNo

string

20



4

lineNo

integer




5

type

string




6

itemNo

string

20


Mandatory

7

description

string

100



8

productionDate

string



Mandatory

9

tradeItems

decimal




10

tradeItemUnitOfMeasure

string

10



11

quantityBase

decimal




12

quantity

decimal




13

unitOfMeasure

string

10



14

directUnitCost

integer




15

unitCost

integer




16

lineAmount

integer




17

lineDiscount

integer




18

lineDiscountAmount

integer




19

amount

integer




20

vat

integer




21

amountIncludingVAT

integer




22

originalProducer

string

20



23

netWeight

integer




24

netWeightBWU

integer




25

lastModified

date-time UTC




Example Object

JSON
{
    "@odata.etag": "W/\"JzIwOzE3MjI2NDI3NTI4MzQ1MzA1NzY2MTswMDsn\"",
    "systemId": "2559e15b-239a-f011-b41a-000d3adf9fc2",
    "documentType": "Receipt",
    "documentNo": "RA2000004",
    "lineNo": 10000,
    "type": "Item",
    "itemNo": "ZZZ1003",
    "description": "Lifur - lánað til Lýsi",
    "tradeItems": 100,
    "tradeItemUnitOfMeasure": "KG",
    "quantityBase": 100,
    "quantity": 100,
    "unitOfMeasure": "KG",
    "directUnitCost": 100,
    "unitCost": 100,
    "lineAmount": 10000,
    "lineDiscount": 0,
    "lineDiscountAmount": 0,
    "amount": 10000,
    "vat": 11,
    "amountIncludingVAT": 11100,
    "originalProducer": "",
    "productionDate": "2025-09-25",
    "netWeight": 0,
    "netWeightBWU": 100,
    "lastModified": "2025-10-02T13:18:31.53Z"
}