SchemeIds

These scheme 'identifiers', aka SchemeIds, are used to specificy the resource for the value that is set as an Id. The inbound-deliveries api uses the 'old notation'. Use the reference guide below to see which schemeIds are used in api parameters and bodies:

API: Inbound Deliveries

1) Register an inbound delivery of a product for a grower by a supplier.

URL: /inbound-deliveries/v1/suppliers/{supplierSchemeId}/{supplierId}/growers/{growerSchemeId}/{growerId}/inbound-deliveries

Parameters:

supplierSchemeId: 'mps-supplier-code'

supplierId example: '200' (given to you by MPS after supplier validation)

growerSchemeId: 'mps-number'

growerId example: 12345 (growers mps number - grower can give permission to your software client via their registration environment)

Body

Location identification in the body is set via 'ThirdPartyIds'. This means you can either set your own schemeId and value. This will be used to uniquely identity the given location.

Product identification works in the same was as location. You can set your own identification which will be mapped to a MPS Product code. SchemeId can be set to 'com.yourcompany.products' with value '1234'. This combination will be mapped to a specific MPS product by the MPS administrators.

2) Register an inbound delivery by a grower

URL: https://mpsapim-acc.azure-api.net/inbound-deliveries/v1/growers/{growerSchemeId}/{growerId}/inbound-deliveries

Variant on the (1). Instead of setting the supplier in the URL the body property 'supplier' is used. SchemeIds are equal.

API: Tasks

growerSchemeId: 'com.mps.company-number'. Value is the grower's MPS number. Grower can give permission in their own registration environment to your software client. Check which mps-numbers have given you authorization via '/tasks/v1/growers.

1) Register a task with operations on a specific crop by a grower (In Dutch: teeltgebonden registratie)

URL: tasks/v1/growers/{growerSchemeId}/{growerId}/crops/{cropSchemeId}/{cropId}/tasks

Parameters:

growerSchemeId: [see above]

cropSchemeId: 'com.mps.cultivation'

cropId example: 1:12345 (retrieved via (3))

2) Register a non crop-specific task with operations on a production location by a grower

URL: /tasks/v1/growers/{growerSchemeId}/{growerId}/production-locations/{productionLocationSchemeId}/{productionLocationId}/tasks

Parameters:

growerSchemeId: [see above]

productionLocationSchemeId: 'com.my-mps.codelist.guid' (retrieved via (4))

productionLocationId example: 37620a8c-9497-4139-970c-6cd379bee6b4 (retrieved via (4))

3) Return the crops of a grower

URL: /tasks/v1/growers/{growerSchemeId}/{growerId}/crops

Parameters:

growerSchemeId: [see above]

4) Returns all productionlocations of a grower

URL: tasks/v1/growers/{growerSchemeId}/{growerId}/production-locations

Parameters:

growerSchemeId: [see above]

ListIds

Lists are options available in the ecrop model. These lists are maintained by agroconnect. Not all options in these lists are supported by MPS.

There's no official download for these lists available from agroconnect. Please contact us, or agroconnect, in order to obtain these lists. A new api endpoint will be available in the future for ease of use.

Countries

nl.agroconnect.codelist.cl250

Example: NL (Nederland)

Supported values: NL (Nederland), DE (Duitsland), BE (België).

GrowEnvironments

nl.agroconnect.codelist.cl299

Example: 5 (Greenhouse)

Supported values: 1 (onbedekt), 2 (bedekt), 5 (kas).

UnitOfMeasurements

nl.agroconnect.codelist.cl020

Example: LTR (Liter)

Supported values:
Mass: KGM (Kilogram), GRM (Gram), MGM (Milligram), MC (Microgram), LBR (Pound), TNE (Metric Ton).
Volume: LTR (Liter), MLT (Milliliter), MTQ (Cubic Meter), CMQ (Cubic Centimeter), GLL (Gallon), GLI (Imperial Gallon).
Area: MTK (Square Meter).