Rules of Origin Calculator
Test preferential origin for a C/O: regional value content (direct / indirect, build-up / build-down, MaxNOM), CC / CTH / CTSH per material, de minimis.
Result
Press “Run” to see the result.
Send the agreement (fta: atiga, acfta, akfta, ajcep, vjepa, vkfta, aanzfta, aifta, rcep, cptpp, evfta, ukvfta), the HS code of the finished good, its FOB value (ex_works for EVFTA / UKVFTA) and the bill of materials (materials: [{hs, value, origin}], origin as an ISO country code or originating: true/false). Optional costs {labour, overhead, profit, other} enable the direct / build-up formula.
The result gives RVC by every method of the agreement (ASEAN direct and indirect, RCEP build-up / build-down, CPTPP focused value, build-down and build-up, EU MaxNOM), the tariff-shift test of each non-originating material at chapter, heading or subheading level, the de minimis or tolerance (10 % of FOB / ex-works), and a pass / fail for every alternative of the rule.
Without rule the general rule of the agreement is used (RVC40 or CTH for ATIGA, ACFTA, AKFTA, AJCEP, VJEPA, VKFTA, AANZFTA; RVC35 and CTSH for AIFTA). RCEP, CPTPP, EVFTA and UKVFTA only have product-specific rules: pass rule such as RVC40 or CTH, RVC45(BD) or RVC35(BU) or CTH or MaxNOM70 from the PSR annex. PSR tables are not bundled; textile rules by weight are not computed.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/vn-fta-origin" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fta":"atiga","hs":"9403.60.90","fob":100,"materials":[{"name":"Gỗ xẻ","hs":"4407.11","value":30,"origin":"VN"},{"name":"Vít","hs":"7318.15","value":5,"origin":"CN"},{"name":"Vải bọc","hs":"5407.52","value":15,"origin":"CN"}],"costs":{"labour":10,"overhead":5,"profit":10}}'const res = await fetch('https://apibox.io.vn/v1/vn-fta-origin', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"fta": "atiga",
"hs": "9403.60.90",
"fob": 100,
"materials": [
{
"name": "Gỗ xẻ",
"hs": "4407.11",
"value": 30,
"origin": "VN"
},
{
"name": "Vít",
"hs": "7318.15",
"value": 5,
"origin": "CN"
},
{
"name": "Vải bọc",
"hs": "5407.52",
"value": 15,
"origin": "CN"
}
],
"costs": {
"labour": 10,
"overhead": 5,
"profit": 10
}
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/vn-fta-origin",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"fta": "atiga", "hs": "9403.60.90", "fob": 100, "materials": [{"name": "Gỗ xẻ", "hs": "4407.11", "value": 30, "origin": "VN"}, {"name": "Vít", "hs": "7318.15", "value": 5, "origin": "CN"}, {"name": "Vải bọc", "hs": "5407.52", "value": 15, "origin": "CN"}], "costs": {"labour": 10, "overhead": 5, "profit": 10}},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-fta-origin');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"fta":"atiga","hs":"9403.60.90","fob":100,"materials":[{"name":"Gỗ xẻ","hs":"4407.11","value":30,"origin":"VN"},{"name":"Vít","hs":"7318.15","value":5,"origin":"CN"},{"name":"Vải bọc","hs":"5407.52","value":15,"origin":"CN"}],"costs":{"labour":10,"overhead":5,"profit":10}}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
What is the difference between the direct and indirect RVC formula?
Direct (build-up) adds originating materials, labour, overhead, profit and other costs and divides by FOB; indirect (build-down) is (FOB − value of non-originating materials) / FOB.
How does de minimis work?
Non-originating materials that fail the tariff shift are tolerated if their total value stays within 10 % of FOB (ex-works for EVFTA / UKVFTA).
Are materials from partner countries originating?
Only with proof under the same agreement (C/O or supplier declaration); the API treats party-country materials as originating unless you send originating: false.