Check EORI numbers
Checks GB EORI numbers with HMRC: whether each is valid, with the trader’s name and address when they agreed to share them.
@lainstack/uk-eori/check-numbers · Customs · Available on Lainstack Cloud
How to use it
Section titled “How to use it”Use Check EORI numbers to ask HMRC whether GB EORI numbers are valid, for example before you declare goods for a trader or when you add a customer. It uses HMRC’s public Check an EORI Number service and needs no connection.
Good to know:
- EORI numbers takes one number, several separated by commas or new lines, or a List from an earlier step. Spaces are ignored and letters are read as upper case. Up to 500 distinct numbers per step; a repeated number is checked once.
- A GB EORI number is GB followed by 12 to 15 digits. A number in any other form is not sent to HMRC and comes back with the outcome wrong_format.
- HMRC’s service checks GB numbers only. A Northern Ireland number (XI) is not sent and comes back as xi_not_checked. Check it with the European Commission’s EORI validation service instead.
- Each result says whether the number is Valid, with its Outcome: valid, not_valid (HMRC does not hold it as a valid number), wrong_format or xi_not_checked.
- Trader name and Address are filled only when the trader agreed to let HMRC share them. A valid number without them is still valid.
- The block leaves on All valid when HMRC confirmed every number, and on Some not valid otherwise. Not valid lists the numbers HMRC did not confirm, including any it could not check.
- HMRC takes 10 numbers per request and 3 requests per second, so a long list takes a few seconds. To check many numbers, give them to one step as a List rather than running one step per number.
- Rate limits and server errors fail the step and can be retried. An empty list, or more than 500 numbers, fails the step. Requests time out after 20 seconds.
- If HMRC refuses a check (HTTP 403), the step fails with a message saying so. HMRC can refuse some made-up or test numbers, so check the numbers and run the step again.
Settings
Section titled “Settings”| Setting | Key | Type | Details |
|---|---|---|---|
| EORI numbers (required) | eoris |
Value | A GB EORI number, several separated by commas or new lines, or a List of them from an earlier step. Up to 500. |
Outputs
Section titled “Outputs”| Output | Path | Type |
|---|---|---|
| Results | results |
List |
| Not Valid | notValid |
List |
| Exit | Port | Notes |
|---|---|---|
| All valid | all_valid |
|
| Some not valid | some_not_valid |