Skip to content

Create Vendor

Endpoints

https://app.passelimerit.fi/api/v2/sendvendor

Minimum Query Payload

json
{
  "Name":"testVendor",
  "VatAccountable":true,
  "CountryCode":"FI"
}
Click to see payload parameters
FieldTypeCommentRequired
IdGuid
NameStr 150Required when vendor is added.
The vendor name must be unique.
Required
RegNoStr 30
VatAccountableBoolRequired when vendor is added. Allowed true or false (lowercase).Required
VatRegNoStr 30
CurrencyCodeStr 4
PaymentDeadLineIntIf missing then taken from default settings.
OverDueChargeDecimal 5.2If missing then taken from default settings.
RefNoBaseStr36
AddressStr 100
CountryCodeStr 2Required, when adding a new vendor
CountyStr 100
CityStr 30
PostalCodeStr 15
PhoneNoStr 50
PhoneNo2Str 50
HomePageStr 80
EmailStr 80
DimensionsArray of DimensionsObjects
VendorTypeInt1 - vendor,
3 - the reporting entity

DimensionsObject

json
{
  // ...
  "Dimensions": [
    {
      "DimId": 1,
      "DimValueId": "00000000-0000-0000-0000-000000000000",
      "DimCode": "1"
    }
  ]
}
Click to see DimensionsObject parameters
FieldTypeCommentRequired
DimIdInt
DimValueIdGuid
DimCodeStr

Successful Result

json
{
  "Id": "be20f410-2af5-40b1-xxxx-xxxxxxxxxxxx",
  "Name": "Mart Mustikas"
}
Click to see the result parameters
FieldType
IdGuid
NameStr