Testing process
You must test the compatibility of your software with EMCS API.
After creating a Test User, use Postman or curl to call the API at:
https://test-api.service.hmrc.gov.uk/customs/excise/movements
- The Consignor ID should match the one used in the Test User process to be authorised to send an IE815 message.
- Follow details on the developer hub to get the user-restricted access token -
- Sign into government gateway with the Test User
- Give permission to EMCS
- Generate a token, and copy it.
- Use that token as bearer token in the IE815 message, replacing
[YOUR-USER-RESTRICTED-ACCESS-TOKEN]in the example below. - Replace
<urn:IE815>...</urn:IE815>with the relevant IE number and XML for the message you are testing.
For example:
POST /customs/excise/movements HTTP/1.1
Content-Type: application/xml
Accept: application/vnd.hmrc.1.0+json
Authorization: Bearer [YOUR-USER-RESTRICTED-ACCESS-TOKEN]
Host: test-api.service.hmrc.gov.uk
<urn:IE815>
...
</urn:IE815>
Make sure to test your software with all the messages and endpoints in the test scenarios.