v1
latestOpenAPI 3.0.32026-07-13947245.3 KBGoods records
Update an existing trader goods record
Update an existing TGP record
put/customs/traders/goods-profiles/{eori}/records/{recordId}
Path parameters
eoristring required
The traders' EORI number. The first 2 letters are the country code, like GB followed by 12 to 15 digits.
Example:GB123456789012
The traders' EORI number. The first 2 letters are the country code, like GB followed by 12 to 15 digits.
recordIdstring uuid required
ID of the record for the TGP Product in the TGP Core database (UUID)
Example:8ebb6b04-6ab0-4fe2-ad62-e6389a8a204f
ID of the record for the TGP Product in the TGP Core database (UUID)
Headers
Content-Typestring required
Example:application/json
Specifies the format of the request body, which must be JSON.
Acceptstring required
Example:application/vnd.hmrc.1.0+json
Specifies the response format and the version of the API to be used.
Authorizationstring required
Example:Bearer 59fc92c1cdf0b8ef1f138a702effdbd2
An OAuth 2.0 Bearer Token.
Request body
Example request
{
"actorId": "GB987654321098",
"traderRef": "SKU123456",
"comcode": "0810100000",
"goodsDescription": "Bananas",
"countryOfOrigin": "GB",
"category": 2,
"assessments": [
{
"assessmentId": "a06846e9a5f61fa4ecf2c4e3b23631fc",
"primaryCategory": 1,
"condition": {
"type": "certificate",
"conditionId": "Y923",
"conditionDescription": "Products not considered as waste according to Regulation (EC) No 1013/2006 as retained in UK law",
"conditionTraderText": "Excluded product"
}
}
],
"supplementaryUnit": 13,
"measurementUnit": "Kilograms",
"comcodeEffectiveFromDate": "2023-01-01T00:00:00Z",
"comcodeEffectiveToDate": "2028-01-01T00:00:00Z"
}Response
OK; Request completed successfully
Example response
{
"recordId": "8ebb6b04-6ab0-4fe2-ad62-e6389a8a204f",
"eori": "GB123456789012",
"actorId": "GB987654321098",
"traderRef": "SKU123456",
"comcode": "0810100000",
"adviceStatus": "Not Requested",
"goodsDescription": "Bananas",
"countryOfOrigin": "GB",
"category": 2,
"assessments": [
{
"assessmentId": "a06846e9a5f61fa4ecf2c4e3b23631fc",
"primaryCategory": 1,
"condition": {
"type": "certificate",
"conditionId": "Y923",
"conditionDescription": "Products not considered as waste according to Regulation (EC) No 1013/2006 as retained in UK law",
"conditionTraderText": "Excluded product"
}
}
],
"supplementaryUnit": 13,
"measurementUnit": "Kilograms",
"comcodeEffectiveFromDate": "2023-01-01T00:00:00Z",
"comcodeEffectiveToDate": "2028-01-01T00:00:00Z",
"version": 1,
"active": true,
"toReview": true,
"reviewReason": "The commodity code has expired. You'll need to change the commodity code and categorise the goods.",
"declarable": "Not Ready For Use",
"ukimsNumber": "XIUKIM47699357400020231115081800",
"nirmsNumber": "RMS-GB-123456",
"niphlNumber": "SP12345",
"createdDateTime": "2023-01-01T00:00:00Z",
"updatedDateTime": "2023-01-01T00:00:00Z"
}