NVWA - Update a request
Use an update to change an NVWA export certificate request that you sent earlier with ImportDossier.
The update has its own endpoint and its own JSON structure.
How to create a request is in the article NVWA Overview.
Before you start
- The request already exists in Shipment.
- You have the
applicationReferenceIdthat you used when you created it. - You have the JSON that you sent then.
Endpoint
POST {base-url}/erpservices/v1/EcertNL/UpdateCertificateRequest
Keep /v1 in this path. Without it, you get HTTP 404.
Replace {base-url} with the URL of your product and environment:
| Product and environment | {base-url} |
| Stratech Shipment – Test | https://test-{prefix}.shipment-stratech.nl |
| Stratech Shipment – Production | https://{prefix}.stratechshipment.nl |
| Beurtvaartadres ShipmentManager – Test | https://{prefix}.accshipmentmanager.eu |
| Beurtvaartadres ShipmentManager – Production | https://{prefix}.shipmentmanager.eu |
Structure
An update contains one request.applicationReferenceId and exportConsignment are at the top level of the JSON.
There is no dossierNumber and no array nvwaExportCertificateRequests.
Create (ImportDossier), shortened:
{
"dossierNumber": "ORDER-10001",
"nvwaExportCertificateRequests": [
{
"applicationReferenceId": "ORDER-10001-NVWA-1",
"doSubmitWhenValid": false,
"doNotSaveWhenInvalid": false,
"exportConsignment": {
"sectorCode": "CZZ",
"branchLocationInternalCode": "YOUR_BRANCH_CODE",
"exportExitDateTime": "2029-06-12T11:00:00Z",
"referenceNumber": "10001"
}
}
]
}
Update (UpdateCertificateRequest), shortened:
{
"applicationReferenceId": "ORDER-10001-NVWA-1",
"doSubmitWhenValid": false,
"doNotSaveWhenInvalid": false,
"exportConsignment": {
"exportExitDateTime": "2029-06-12T11:00:00Z",
"referenceNumber": "10001"
}
}
The examples only show the structure. In a real update, send the complete consignment.
Update a request step by step
- Take the JSON that you used to create the request.
- Keep only the object inside
nvwaExportCertificateRequests. RemovedossierNumberand the array around the object.
If you created more than one request at once, send a separate update for each request. - Remove
sectorCodeandbranchLocationInternalCodefromexportConsignment. You can't change them with an update. - Enter the original
applicationReferenceIdas a fixed value. Shipment uses it to find the request.
Don't use a variable that creates a new value, such asin Postman. - Change the data. Keep all other data of the consignment in the JSON.
- Set
doSubmitWhenValidanddoNotSaveWhenInvalid. - Send the JSON to the update endpoint.
- Check
isSavedanderrorsin the response, and check the request in Shipment.
Fields
| JSON field | Type | Req. | Description |
applicationReferenceId |
string |
✓ | The reference of the original request. An update is not a new request, so this is not a reuse. |
exportConsignment |
object |
✓ | The consignment with the new data. |
exportConsignment.exportExitDateTime |
datetime |
✓ | The only field inside exportConsignment that the API requires. Shipment also validates the rest of the request. |
doSubmitWhenValid |
boolean |
Default false. true: Shipment sends the request to e-CertNL when it is valid. |
|
doNotSaveWhenInvalid |
boolean |
Default false: an invalid update is saved. true: an invalid update is not saved. |
|
fullUserNameOfSubmitter |
string(64) |
Full name of the user who submits the request. |
The other fields of exportConsignment are the same as when you create a request.
They are in the article NVWA Overview and in the Request fields article of your sector.
Response
The response is one result object. It is not inside nvwaExportResults.
| Field | Description |
applicationReferenceId |
The reference you sent. |
isSaved |
Whether the update was saved. |
isSubmitted |
Whether the request was sent to e-CertNL. |
errors |
Validation errors. |
HTTP 200 does not mean that the update is valid. Always check isSaved and errors.
When can you still change a request?
e-CertNL can lock a request, for example after an inspection is requested or after you request the documents.
Much of the data can then no longer be changed. This differs per sector.
Common errors
| Error | Cause and solution |
missing required properties including: 'exportConsignment', 'applicationReferenceId'The request field is required. |
The JSON still has the structure of ImportDossier. Put applicationReferenceId and exportConsignment at the top level. |
| HTTP 404 | The path is wrong. Check that it contains /v1. |
| The JSON can't be read | Check that the JSON is valid. JSON doesn't allow comments such as // or a comma after the last field. |