This microservice notifies a ROSM user with an email regarding the outcome of their subscription (enrolment) with Customs.
This service is written in Scala and Play, and requires a Java 8 JRE to run.
HTTP Header | Acceptable value |
---|---|
Content-Type | application/json |
We don't validate Accept header to allow tax-enrolments callbacks.
Field Name | Size | Field Type | Description |
---|---|---|---|
url | String | Complete URL (with parameters expanded) which will allow details to be determined about the subscription (if successful) - the form bundle ID. (Not used) | |
state | 9 | String | Indicates success /failure: ["SUCCEEDED", "ERROR"] |
errorResponse | String | Body of GG/ETMP response in the case of state == "ERROR". (Not used) |
{
"url": "http://domain:port/tax-enrolments/subscriptions/72138873457",
"state": "ERROR",
"errorResponse": "...."
}
- 204 If the request is processed successful
- 400 This status code will be returned in case of incorrect data, incorrect data format, missing parameters etc are provided in the request
- 500 In case of a system error such as time out, server down etc, this HTTP status code will be returned
- 405 Any operation other than POST will be responded with "405 Method not allowed" HTTP error
HTTP Header | Acceptable value |
---|---|
Content-Type | application/json |
Accept | application/vnd.hmrc.1.0+json |
Authorization | Bearer SOME_TOKEN_VALUE |
{
"formBundleId": "formBundleId",
"recipienttDetails": {
"recipientFullName": "fullName",
"recipientEmailAddress": "[email protected]"
},
"sapNumber": "sapNumber"
}
- 204 If the request is processed successful
- 400 This status code will be returned in case of incorrect data, incorrect data format, missing parameters etc are provided in the request
- 406 This status code will be returned in case of invalid or missing accept header
- 415 This status code will be returned in case of invalid or missing content type header
- 500 In case of a system error such as time out, server down etc, this HTTP status code will be returned
- 405 Any operation other than POST will be responded with "405 Method not allowed" HTTP error
HTTP Header | Acceptable value |
---|---|
Content-Type | application/json |
Accept | application/vnd.hmrc.1.0+json |
{
"completionDate": "5 May 2017",
"journey": "GetYourEORI",
"orgName": "Test Company Name",
"recipientEmailAddress": "[email protected]",
"recipientFullName": "Full Name"
}
- 201 If the request is processed successful
- 400 This status code will be returned in case of incorrect data, incorrect data format, missing parameters etc are provided in the request
- 404 This status code will be returned in case of empty body
/save4later/id-1/key-1
{
"completionDate": "5 May 2017",
"journey": "GetYourEORI",
"orgName": "Test Company Name",
"recipientEmailAddress": "[email protected]",
"recipientFullName": "Full Name"
}
- 200 If the request is processed successful
- 404 This status code will be returned in case of id and key not found
/save4later/id-1/key-1
- 204 If the request is processed successful
- 404 This status code will be returned in case of id and key not found
/save4later/id-1
- 204 If the request is processed successful
- 404 This status code will be returned in case of id not found
HTTP Header | Acceptable value |
---|---|
Content-Type | application/json |
Accept | application/vnd.hmrc.1.0+json |
Authorization | Bearer SOME_TOKEN_VALUE |
{
"timestamp": "23-May-2019 20:10:10",
"name": "fullName",
"email": "[email protected]"
"eori": "GBXXXXXXXXX000"
}
- 204 If the request is processed successful
- 400 This status code will be returned in case of incorrect data, incorrect data format, missing parameters etc are provided in the request
- 406 This status code will be returned in case of invalid or missing accept header
- 415 This status code will be returned in case of invalid or missing content type header
- 500 In case of a system error such as time out, server down etc, this HTTP status code will be returned
- 405 Any operation other than POST will be responded with "405 Method not allowed" HTTP error
In the context of this application we use the following acronyms and define their meanings. Provided you will also find a web link to discover more about the systems and technology.
-
API: Application Programming Interface
-
JRE: Java Runtime Environment
-
JSON: JavaScript Object Notation
-
CDS: Custom Declaration Services
-
URL: Uniform Resource Locator
This code is open source software licensed under the Apache 2.0 License.