FTA Rules of Origin Calculator (RVC, CTC) API
Test preferential origin for a C/O: regional value content (direct / indirect, build-up / build-down, MaxNOM), CC / CTH / CTSH per material, de minimis.
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.
Markdown · OpenAPI · Postman · llms.txt
Parameters
| Name | In | Type | Required | Default | |
|---|---|---|---|---|---|
fta | body|query | string | yes | atiga, acfta, akfta, ajcep, vjepa, vkfta, aanzfta, aifta, rcep, cptpp, evfta, ukvfta (empty: list). | |
hs | body|query | string | yes | HS code of the finished good (4–10 digits). | |
fob | body|query | number | yes | FOB value (ex_works for EVFTA / UKVFTA). | |
materials | body | array | yes | [{name, hs, value, origin, originating?, focused?}] | |
costs | body | object | no | {labour, overhead, profit, other} for the direct / build-up formula. | |
rule | body|query | string | no | Product-specific rule, e.g. "RVC40 or CTH", "MaxNOM70", "RVC45(BD) or RVC35(BU)". |
Example
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));Response
{
"fta": {
"id": "atiga",
"form": "D",
"circular": "Thông tư 22/2016/TT-BCT (consolidated 29/VBHN-BCT 10/12/2024; Phụ lục replaced by TT 03/2023/TT-BCT)",
"de_minimis_pct": 10,
"de_minimis_base": "fob"
},
"product": {
"hs": "94036090",
"description_vi": "Đồ nội thất khác và các bộ phận của chúng > Đồ nội thất bằng gỗ khác: > Loại khác"
},
"fob": 100,
"originating": true,
"rule": {
"text": "RVC40 or CTH",
"source": "general rule of the agreement"
},
"alternatives": [
{
"rule": "RVC40",
"pass": true,
"terms": [
{
"term": "RVC40",
"pass": true,
"values": {
"direct": 55,
"indirect": 80
},
"threshold": 40,
"method_used": "direct"
}
]
},
{
"rule": "CTH",
"pass": true,
"terms": [
{
"term": "CTH",
"pass": true,
"de_minimis_used": false,
"failing_materials": [],
"detail": "Every non-originating material changes heading (4 digits)."
}
]
}
],
"rvc": {
"direct": 55,
"indirect": 80,
"cptpp_build_up": 30,
"cptpp_focused_value": 100,
"max_nom": 20
},
"confidence": "high_for_general_rule",
"disclaimer": "Reference only, not legal or tax advice; check the official text and your customs / verification body."
}
Use cases
- Check whether a product qualifies for Form D, E, AK or RCEP before applying for a C/O
- Explain the RVC calculation to a customs broker or buyer
- Simulate sourcing changes (switch a supplier to an FTA partner)
- Add an origin check to ERP / bill-of-materials software
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.
Related APIs
JSON Validator
Check JSON syntax with exact line and column of errors, and validate data against a JSON Schema (draft 4, 7, 2019-09 or 2020-12).
{ }JSON Formatter
Pretty print JSON with 0-8 spaces or tabs, minify it, or sort object keys recursively. Syntax errors are reported with line and column.
CSVCSV to JSON
Convert CSV into an array of JSON objects using the header row, with delimiter auto-detection, number and boolean typing, and row-level errors.