Overslaan naar inhoud
  • Er zijn geen suggesties want het zoekveld is leeg.

Test scenarios

Test your integration in the Test environment before you go live. This article lists the scenarios we recommend, and how to test the processing of status updates.

Before you start

  • You have credentials for the Test environment.
  • The modules you need are active in the Test environment.
  • If you use status updates: your endpoint is reachable from the internet and accepts IP address 20.61.240.121.

Basic scenarios (all modules)

# Scenario Expected result
1 Request a token with valid credentials HTTP 200 with access_token
2 Send a valid declaration with doSubmitWhenValid false HTTP 200, isSaved true, isSubmitted false
3 Send a valid declaration with doSubmitWhenValid true HTTP 200, isSaved true, isSubmitted true
4 Send a declaration with a missing required field HTTP 200 with errors
5 Send the same applicationReferenceId twice HTTP 409 the second time
6 Send more than 10 declarations in one request HTTP 413
7 Send a request with an expired token HTTP 401
8 Send two declarations with the same dossierNumber Both in the same dossier in Shipment

Status updates (optional)

# Scenario Expected result
9 Receive a status update Your endpoint returns HTTP 200 and stores the status
10 Your endpoint is unavailable Shipment retries the status update, up to 36 times over about 7 days
11 Verify the signature Your platform accepts updates with a valid signature and rejects others
12 Process a release (status 3 or 4) Your platform stores the MRN
13 Process a rejection (status 23) Your platform shows a warning with the rejection code

In the Test environment of Stratech Shipment you trigger status updates with the test tool. It simulates the responses of Customs based on the gross and net weight of the declaration. See the scenarios below.

Note: the test tool is only available in Stratech Shipment. Beurtvaartadres ShipmentManager has no connection with the test tool, whichever package you have. Status updates themselves work the same in both products.

How the test tool works

  • Trigger: the gross and net weight of item 1 select the scenario. Put the values from the tables below on item 1. With more items, the total gross weight must match the items.
  • Technical statuses first: every declaration first gets 1 InternallyInProcessing, 41 MessageSent and 44 Delivered from Shipment. The statuses in the tables follow after that.
  • Timing: by default the test tool sends the simulated Customs messages 2 seconds apart. To slow it down, add a timer to item 1. DMS: "supplementaryUnits": 15 [VERIFY: value in seconds]. DVA Departure: an additional reference with "typeCode": "1999" and "identification": "000030" for 30 seconds.
  • Order: Customs and Shipment can send messages at the same time, so your platform may receive them in a different order. For example, a DMS Import can get 3 Cleared before or after 36 FinalTax. Make your platform handle both.
  • Follow-up scenarios: some scenarios continue from another one, after an action of the user in Shipment. The column What you do says which.

DMS Import

# Scenario Gross weight Net weight Statuses, in order What you do
22 Happy flow: released at once, with the tax assessment 429 0 20 Acceptance, 3 Cleared, 36 FinalTax None.
23 Insufficient deferred payment credit 428 427 20 Acceptance, 31 InsufficientDeferredPayment, 36 FinalTax Contact Customs.
24 Insufficient credit, with a reminder 428 426 20 Acceptance, 31 InsufficientDeferredPayment, 36 FinalTax, 32 InsufficientDeferredPaymentReminder Contact Customs.
25 Document check, no provisional release 460 105 20 Acceptance, 24 ControlNotificationDocuments Send the requested documents to Customs. The goods must wait.
26 Document check, no provisional release, documents too late 460 106 20 Acceptance, 24 ControlNotificationDocuments, 22 ReminderProvidingRequestedDocuments Send the requested documents to Customs.
27 Document check with provisional release 460 107 20 Acceptance, 24 ControlNotificationDocuments, 4 ReleaseOfGoods, 36 FinalTax Send the requested documents to Customs.
28 Functional rejection 460 19 23 FunctionalRejection Correct the declaration and send it again.
29 Response to an RFI accepted 429 425 35 Received, 30 Amendments, 3 Cleared, 36 FinalTax None. Follows scenario 31.
30 Document check with provisional release, documents too late 460 108 20 Acceptance, 24 ControlNotificationDocuments, 4 ReleaseOfGoods, 36 FinalTax, 22 ReminderProvidingRequestedDocuments Send the requested documents to Customs.
31 Document check followed by a request for information (RFI) 460 0 20 Acceptance, 24 ControlNotificationDocuments, 33 RequestForInformation Send a CRI message from Shipment, then continue with scenario 29.

DMS Export

Every scenario except 17, 20 and 21 starts with status 20 (Acceptance): DMS has technically accepted the declaration.

# Scenario Gross weight Net weight Statuses, in order What you do
14 Physical inspection with a request for documents 560 560 20 Acceptance, 25 ControlNotificationPhysicalControl, 29 ReminderProvidingAdditionalDocuments Send the requested documents to Customs.
15 Physical inspection with provisional release 560 559 20 Acceptance, 25 ControlNotificationPhysicalControl, 4 ReleaseOfGoods, 3 Cleared Wait until the inspection is completed.
16 Inspection followed by a request for information (RFI) 560 557 20 Acceptance, 25 ControlNotificationPhysicalControl, 33 RequestForInformation Send a CRE message from Shipment, then continue with scenario 17.
17 Response to an RFI accepted 560 556 35 Received, 30 Amendments, 3 Cleared None. Follows scenario 16.
18 Happy flow: released, then exit confirmed 599 0 20 Acceptance, 3 Cleared, 28 ExportNotification None.
19 Alternative proof of exit requested 582 0 20 Acceptance, 3 Cleared, 27 AlternativeEvidenceRequested Send alternative proof of exit, then continue with scenario 20.
20 Alternative proof of exit accepted – – 35 Received, 28 ExportNotification None. Follows scenario 19.
21 Functional rejection 556 0 23 FunctionalRejection Correct the declaration and send it again.

DMS EIDR Warehouse

# Scenario Gross weight Net weight Statuses, in order What you do
1 Functional rejection 456 0 23 FunctionalRejection Correct the declaration and send it again.
2 Happy flow: accepted at once 429 0 5 ReleaseForEIDR None.
3 Document check, documents too late 460 0 24 ControlNotificationDocuments, 22 ReminderProvidingRequestedDocuments Send the requested documents to Customs.
4 Document check followed by a request for information (RFI) 461 0 24 ControlNotificationDocuments, 33 RequestForInformation Send the requested documents to Customs. Then send a CRI message from Shipment and continue with scenario 5 or 6.
5 Response to an RFI accepted, goods released 501 0 35 Received, 30 Amendments, 5 ReleaseForEIDR None. Follows scenario 4.
6 Response to an RFI processed, no release – 500 35 Received, 30 Amendments Contact Customs. Follows scenario 4.

DMS EIDR

The supplementary declaration first gets 18 Planned: Shipment sends it after the number of days you set.

# Scenario Gross weight Net weight Statuses, in order What you do
7 Response to an RFI accepted 500 499 18 Planned, 35 Received, 30 Amendments, 3 Cleared, 36 FinalTax None. Follows scenario 11.
8 Functional rejection of the supplementary declaration 456 455 18 Planned, 23 FunctionalRejection Correct the declaration and send it again.
9 Happy flow: supplementary declaration with tax assessment 850 0 18 Planned, 36 FinalTax None.
10 Document check 460 459 18 Planned, 24 ControlNotificationDocuments Send the requested documents to Customs.
11 Document check followed by a request for information (RFI) 461 460 18 Planned, 24 ControlNotificationDocuments, 33 RequestForInformation Send the requested documents to Customs. Then send a CRI message from Shipment and continue with scenario 7.
12 Supplementary declaration overdue (after 10 days by default) 700 0 18 Planned, 3 Cleared, 21 SupplementaryDeclarationOverdue Check the supplementary declaration.
13 Insufficient deferred payment credit 701 699 18 Planned, 31 InsufficientDeferredPayment Contact Customs.

DVA Departure

Scenarios DVA_D_9 to DVA_D_14 need a help scenario first. Send the help scenario with the API, then do the action in Shipment.

# Scenario Gross weight Net weight Statuses, in order What you do
DVA_D_1 Happy flow (short): approved, goods may leave 10015 10001 34 RegistrationNotification, 20 Acceptance, 4 ReleaseOfGoods None.
DVA_D_2 Functional rejection 10015 10002 6 Rejected Correct the declaration and send it again.
DVA_D_3 Physical and/or document inspection announced 10015 10003 34 RegistrationNotification, 20 Acceptance, 24 ControlNotificationDocuments Wait for the inspection.
DVA_D_4 Not enough guarantee left on the authorisation 10015 10004 34 RegistrationNotification, 20 Acceptance, 68 GuaranteeNotValid Check the guarantee.
DVA_D_5 Happy flow (full): released, arrival at destination, movement written off 10015 10005 34 RegistrationNotification, 20 Acceptance, 4 ReleaseOfGoods, 57 ArrivalAdvice, 63 WriteOffMovement None.
DVA_D_6 Released and arrived, Customs reports discrepancies 10015 10006 34 RegistrationNotification, 20 Acceptance, 4 ReleaseOfGoods, 57 ArrivalAdvice, 77 Discrepancies Correct the declaration.
DVA_D_7 No release: goods may not leave 10015 10007 34 RegistrationNotification, 20 Acceptance, 13 NoRelease Contact Customs.
DVA_D_8 Physical inspection announced 10015 10008 34 RegistrationNotification, 20 Acceptance, 58 ControlDecisionNotification Wait for the inspection.
DVA_HELPSCENARIO_1 Help scenario for DVA_D_11 to DVA_D_14 10015 9001 34 RegistrationNotification Continue with DVA_D_11, 12, 13 or 14.
DVA_HELPSCENARIO_2 Help scenario for DVA_D_9 and DVA_D_10 10015 9002 34 RegistrationNotification, 20 Acceptance Continue with DVA_D_9 or 10.
DVA_D_9 Invalidation request accepted – – 19 InvalidationGranted Open the declaration of help scenario 2. In Overzicht (Overview), choose Buitenwerking stellen (Invalidate), enter 10001 as reason and choose Indienen (Submit).
DVA_D_10 Invalidation request refused – – 6 Rejected As DVA_D_9, with reason 10002.
DVA_D_11 Presentation notification accepted – – 20 Acceptance Open the declaration of help scenario 1. In Overzicht (Overview), choose Aanbrengbericht opstellen (Create presentation notification), enter seal number 10001 and link it to all items, then choose Indienen (Submit).
DVA_D_12 Presentation notification rejected – – 6 Rejected As DVA_D_11, with seal number 10002.
DVA_D_13 Amendment of a T1 type D declaration accepted, goods released – – 26 AmmendmentsAcceptance, 20 Acceptance, 4 ReleaseOfGoods Open the declaration of help scenario 1. In Overzicht (Overview), choose Aangifte wijzigen (Amend declaration), set gross weight 10013 and net weight 10001 on item 1, then choose Indienen (Submit). [VERIFY: help scenario 1 or 2]
DVA_D_14 Amendment of a T1 type D declaration refused – – 6 Rejected As DVA_D_13, with net weight 10002.

DVA Arrival

First send a DVA Departure with scenario DVA_D_1. Put the MRN from its status updates in declarationData.mrn of the arrival notification, and the postal code of the scenario in declarationData.goodsLocation.postcode. There are no weights in an arrival notification.

# Scenario Postal code Statuses, in order What you do
DVA_A_1 Happy flow (short): unloading permitted 1001 TT 74 UnloadingPermission None. This is the starting point for DVA_A_6 to DVA_A_10.
DVA_A_2 Arrival notification rejected 1002 TT 6 Rejected Correct the notification and send it again. The goods may not be unloaded.
DVA_A_3 Physical inspection, no unloading 1003 TT 58 ControlDecisionNotification Wait for the inspection.
DVA_A_4 Physical inspection, then unloading permitted 1004 TT 58 ControlDecisionNotification, 74 UnloadingPermission Wait for the inspection.
DVA_A_6 Unloading remarks sent, unloading permitted again – 74 UnloadingPermission Open the arrival notification of DVA_A_1, enter 1001 in Overige opmerkingen (Other remarks) and choose Indienen (Submit).
DVA_A_7 Unloading remarks rejected – 6 Rejected Open the arrival notification of DVA_A_1, enter 1002 in Overige opmerkingen (Other remarks) and choose Indienen (Submit).
DVA_A_8 Happy flow (full): unloading remarks without findings, all goods released – 65 GoodsReleasedForTransit Open the arrival notification of DVA_A_1, enter 1003 in Overige opmerkingen (Other remarks) and choose Indienen (Submit).
DVA_A_9 Part of the goods released – 79 GoodsPartialReleased, 80 GoodsPartialReleasedMovementClosed Open the arrival notification of DVA_A_1, enter 1004 in Overige opmerkingen (Other remarks) and choose Indienen (Submit). The departure declaration needs at least 2 items.
DVA_A_10 No goods released – 66 GoodsNotReleasedForTransit Open the arrival notification of DVA_A_1, enter 1005 in Overige opmerkingen (Other remarks) and choose Indienen (Submit).

Ready for go-live?

  • All scenarios that apply to your integration give the expected result.
  • Your platform logs requests and responses, so you can troubleshoot later.
  • You have separate credentials for Production.
  • The URLs in your platform point to Production of the right product.