Skip to content

Commit

Permalink
Merge pull request #161 from hmrc/CTDA-1710
Browse files Browse the repository at this point in the history
CTDA-1710 cleaned up sidebar and made content corrections
  • Loading branch information
RobertLaverick authored Nov 30, 2021
2 parents 7f220e2 + 941d2e8 commit ddbb519
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 385 deletions.
24 changes: 0 additions & 24 deletions source/documentation/arrivals-diagram.html.md.erb

This file was deleted.

Binary file removed source/documentation/ctc-traders-api-xsds.zip
Binary file not shown.
73 changes: 0 additions & 73 deletions source/documentation/end-to-end-happy-path.html.md.erb

This file was deleted.

29 changes: 0 additions & 29 deletions source/documentation/get-support.html.md.erb

This file was deleted.

55 changes: 35 additions & 20 deletions source/documentation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Guidance on using the Developer Hub and GitHub. Including end points, access tok

***

#Getting Started
##Getting Started

These steps must be followed before you can use your software in the live environment and access our live API:

Expand All @@ -86,6 +86,7 @@ These steps must be followed before you can use your software in the live enviro
12. **Get your customers ready** by asking them to apply for an [EORI number](https://www.gov.uk/eori) and a [Government Gateway account](https://www.gov.uk/log-in-register-hmrc-online-services).

##Happy Path Diagram

The end-to-end process of transporting goods using the CTC Traders API.

It shows at what stage in the process each message is sent, and which type of office each message is sent to and from.
Expand All @@ -108,7 +109,7 @@ Details of the IE messages valid for use in the CTC Traders API are available in

See some examples below.

##Validate XML posted into the API:
##XSDs for POST messages:

<table>
<tr>
Expand All @@ -133,7 +134,7 @@ See some examples below.
</tr>
</table>

##Validate arrivals XML from NCTS:
##XSDs for GET arrivals messages:

<table>
<tr>
Expand All @@ -158,7 +159,7 @@ See some examples below.
</tr>
</table>

##Validate departures XML from NCTS:
##XSDs for GET departures messages:

<table>
<tr>
Expand Down Expand Up @@ -204,7 +205,7 @@ See some examples below.
</table>


###Clarifications and omissions
##Clarifications and omissions
It should be note there are some known omissions which are detailed in the [mapping document](https://developer.service.hmrc.gov.uk/guides/common-transit-convention-traders-testing-guide/figures/xml-2-edifact-mapping-updated12112020.pdf). These include :

`NumOfLoaLisHEA304` has been included in error in:
Expand All @@ -220,6 +221,8 @@ You can ignore this field.

Use [our XSD files](https://developer.service.hmrc.gov.uk/guides/common-transit-convention-traders-service-guide/documentation/xsd-reference.html) to validate your XML. You should note you must not include the MesSenMES3 XML element when sending your message to our API. Our system will automatically populate that data element for you.

##Example XML Requests

[Postman Scripts](https://developer.service.hmrc.gov.uk/guides/common-transit-convention-traders-testing-guide/#how-to-test-using-sample-test-scripts)

If you are seeking examples of the XML, you can find them in our repo on Github. To use the XML directly use Postman or you can also refer to all four XML examples.
Expand All @@ -228,34 +231,43 @@ If you are seeking examples of the XML, you can find them in our repo on Github.

cURL commands simulate your software application’s actions and messages, and those that come back from NCTS. You will need these to test your software.

###API features

- Default Guarantee Insertion
- Our system will automatically insert a default guarantee amount of 10,000 Euros for any transit movement where the trader has not specified a guarantee value.
- Rate limits
- Our API Platform’s standard rate limit is [3 requests per second](https://developer.service.hmrc.gov.uk/api-documentation/docs/reference-guide#rate-limiting). If you need a higher rate limit, you must give us more information about data and limit forecasts when filling in the [Application for Production Credentials checklist](https://developer.service.hmrc.gov.uk/guides/common-transit-convention-traders-testing-guide/figures/CTC_Traders_API_Application_for_Productions_Credentials.docx) form.
- Data cap and using filters
- When you submit a request to 'GET all movements' against a single EORI enrolment, we’ll limit the number of movements you get back to 5,000.
- This affects the ‘[GET all movements arrivals](https://developer.service.hmrc.gov.uk/api-documentation/docs/api/service/common-transit-convention-traders/1.0#_get-all-movement-arrivals_get_accordion)’ and ‘[GET all movement departure](https://developer.service.hmrc.gov.uk/api-documentation/docs/api/service/common-transit-convention-traders/1.0#_get-all-movement-departures_get_accordion)’ endpoints (remove links) More information can be viewed on our API CTC Traders
documentation page (check APi definition -link to RAML).
- You can use filters so that you only get the movements that have been updated since a specified date and time.
- You can use the updatedSince parameter in order to retrieve new messages since you last polled.
##API features

**Default Guarantee Insertion**

Our system will automatically insert a default guarantee amount of 10,000 Euros for any transit movement where the trader has not specified a guarantee value.

**Rate limits**

Our API Platform’s standard rate limit is [3 requests per second](https://developer.service.hmrc.gov.uk/api-documentation/docs/reference-guide#rate-limiting). If you need a higher rate limit, you must give us more information about data and limit forecasts when filling in the [Application for Production Credentials checklist](https://developer.service.hmrc.gov.uk/guides/common-transit-convention-traders-testing-guide/figures/CTC_Traders_API_Application_for_Productions_Credentials.docx) form.

**Data cap and using filters**

When you submit a request to 'GET all movements' against a single EORI enrolment, we’ll limit the number of movements you get back to 5,000.

This affects the ‘[GET all movements arrivals](https://developer.service.hmrc.gov.uk/api-documentation/docs/api/service/common-transit-convention-traders/1.0#_get-all-movement-arrivals_get_accordion)’ and ‘[GET all movement departure](https://developer.service.hmrc.gov.uk/api-documentation/docs/api/service/common-transit-convention-traders/1.0#_get-all-movement-departures_get_accordion)’ endpoints (remove links) More information can be viewed on our API CTC Traders documentation page (check APi definition -link to RAML).

You can use filters so that you only get the movements that have been updated since a specified date and time.

You can use the updatedSince parameter in order to retrieve new messages since you last polled.

If you do not use filters:

- you’ll only get up to the most recently updated 5,000 movements, within the last 28 days
- you will not get any additional movements above this cap, within the last 28 days

In order to manage the limit you need to regularly poll using a filter date and time of the last poll. This will ensure your list of movements requested is less than 5,000.

You must also note:

- the amount of responses that we send back to you will be capped at 5,000 for one single Economic Operator Registration and Identification (EORI) enrolment
- the EORI enrolment for your application might not be the same as the trader’s EORI associated with a movement
- the cap is not related to the movement EORI in the XML message
- if your movements are split over multiple EORI enrolments then each enrolment will have a separate 5,000 cap
- if you do get results over the 5,000 capped limit, the JSON payload will tell you this cap has happened and how many movements have not been sent to you. For example, the JSON message will state that 5,000 movements of a total of 6,433
- only the most recent 5,000 data movements in the last 28 days will be returned. This is because we only store message data from the last 28 days

###Push pull notifications
**Push pull notifications**
Our automated service can send you notification updates about new messages from NCTS. This functionality will send you a notification each time there is a new message for you to read.

This means your:
Expand All @@ -271,11 +283,11 @@ You should also note:

For more information on how to configure and test this functionality follow the step by step instructions in our [Guide to Testing](https://developer.service.hmrc.gov.uk/guides/common-transit-convention-traders-testing-guide/).

###For legacy users migrating to XML
##For legacy users migrating to XML

If you are still using EDIFACT, you will need to know how to translate from EDIFACT to XML. We’ve created a [mapping document](https://developer.service.hmrc.gov.uk/guides/common-transit-convention-traders-testing-guide/figures/xml-2-edifact-mapping-updated12112020.pdf) to show you how to convert EDIFACT and XML versions of movement messages into the other format of messages. This will help you get ready to use our CTC Traders API.

##Comparison between the existing and the new API
###Comparison between the existing and the new API

**The table shows how the API uses different coding compared to the existing NCTS XML API**

Expand Down Expand Up @@ -313,6 +325,8 @@ The diagrams show the difference between the current EDIFACT and XML payloads fo
![Post Message](/figures/post-message.png)
![Get Message](/figures/get-message.png)

##Get Support

Before you get in touch, find out if there are any planned API downtime or technical issues by checking:
- [HMRC API Platform availability](https://api-platform-status.production.tax.service.gov.uk/)
- [NCTS service availability](https://www.gov.uk/government/publications/new-computerised-transit-system-ncts-web-service-availability-and-issues/new-computerised-transit-system-ncts-web-service-availability-and-issues)
Expand All @@ -324,6 +338,7 @@ You’ll get an initial response in 2 working days.
Email us your questions to [[email protected]](mailto:[email protected]). We might ask for more detailed information when we respond.

**Useful Links**

- [CTC Traders API service roadmap](https://developer.service.hmrc.gov.uk/roadmaps/common-transit-convention-traders-roadmap/)
- [CTC Traders API documentation](https://developer.service.hmrc.gov.uk/api-documentation/docs/api/service/common-transit-convention-traders/1.0)
- [CTC Traders API Testing Guide](https://developer.service.hmrc.gov.uk/guides/common-transit-convention-traders-testing-guide/)
Loading

0 comments on commit ddbb519

Please sign in to comment.