Common Transit Convention Traders Test Support API
|Version and status|
|Available in Sandbox||Yes|
|Sandbox base URL||https://test-api.service.hmrc.gov.uk|
|Available in Production||No|
Use the CTC Traders Test Support API to inject departure and arrival movement notifications as if they have come from a customs office of departure or destination through the New Computerised Transit System (NCTS).
You should read:
- Roadmap to review our progress and to learn about what you can test
- Tutorials to learn how to develop your own client applications, including example clients, for this API
You can find the changelog in the common-transit-convention-traders-test-support GitHub wiki.
How to get set up for testing
Follow these steps:
Register for a developer account.
Create an application.
Subscribe to any API you might be working on. We suggest the Create Test User API, the CTC Traders API and this API.
Create a Client ID and Client Secret.
Use the Create Test User API to get a user ID, password, EORI enrolment and other test details.
How to use this API
This API is not connected to the NCTS core, so you can use it for any test scenario you choose.
It’s up to you to trigger the response messages in the order you require. Valid response message types are listed below.
Follow these steps:
Use the CTC Traders API to send messages from a trader to the NCTS.
Use this API to inject a response. See the table below for a list of supported messages that you can inject.
Use the CTC Traders API to retrieve a list of your messages for this movement. This will include both your trader and your injected NCTS messages.
Messages you can inject now
|Inject an amendment acceptance message (IE004)||Inject an amendment acceptance message from the office of departure (IE004)||Specify "IE004" for the |
|Inject an invalidation decision message (IE009)||Inject an invalidation decision message to be sent to the holder of the transit procedure (IE009)||Specify "IE009" for the |
|Inject declaration received message (IE928)||Inject a positive acknowledgement of a departure declaration message (IE015)||Specify "IE928" for the |
|Inject a goods release notification (IE025)||Inject a message from the office at destination that the trader can release the goods||Specify "IE025" for the
|Inject an MRN allocated message (IE028)||Inject a message from the office at departure allocating a Movement Reference Number (MRN)||Specify "IE028" for the |
|Inject a goods released for transit message (IE029)||Inject a message from the office at departure to say the goods are released for transit||Specify "IE029" for the |
|Inject a control decision notification (IE060)||Inject a message from the office at departure to tell the trader they wish to carry out a control of the goods||Specify "IE060" for the
|Inject an unloading permission (IE043)||Inject an unloading permission message to inform the trader that they are authorised to unload the goods at the authorised place||Specify "IE043" for the
|Inject a rejection from office of departure (IE056)||Inject a rejection from office of departure message to inform the trader that the office of departure has rejected the message||Specify "IE056" for the
|Inject a rejection from office of destination (IE057)||Inject a rejection from office of destination message to inform the trader that the office of destination has rejected the message||Specify "IE057" for the
|Inject a request on non-arrived movement (IE140)||Inject a non-arrived movement message to the trader indicating that there is insufficient information to discharge the transit||Specify "IE140" for the
|Inject a request on recovery notification (IE035)||Inject a recovery notification from office of departure to inform the trader about recovery||Specify "IE035" for the
|Inject a no release for transit message (IE051)||IInject a message from the office at departure that the movement cannot be released for transit||Specify "IE051" for the
|Inject a guarantee not valid message (IE055)||Inject a message from the office of departure to the trader at departure that their guarantee is not valid||Specify "IE055" for the
|Inject a Write-Off notification message (IE045)||Inject a message from the office at departure that the transit movement has been discharged||Specify "IE045" for the
|Inject a Discrepancies message (IE019)||Inject a message from the office at departure that the transit movement has major discrepancies||Specify "IE019" for the
|Inject a Forwarded Incident Notification To ED message (IE182)||Inject a message from the office at departure that the transit movement require investigation by a custom officer||Specify "IE182" for the
Our XSD files
You can check your XML files against our XSD files.
NCTS Phase 5 Technical Interface Specification
The specification provides a list of messages, message details, and process flow diagrams.
The way we show Common Transit Convention Traders Test Support API v2.0 endpoints has changed, which might look different to other Developer Hub APIs.
The API has not changed. You do not need to make any updates to your application if you already use this API.