{
 "read": "26-10-2026",
 "host": "https://sbx.kra.go.ke",
 "note": "One call per case, Bearer token from client credentials; no credential or token is kept here.",
 "calls": {
  "calc-car": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/calculate",
    "body": {
     "value": 15000,
     "quantity": 1,
     "currency": "USD",
     "movement": "IM",
     "nmctcode": "8703239000"
    }
   },
   "status": 200,
   "ms": 1140,
   "answer": {
    "IDF": 2.5,
    "Tax": "1,953,223.00",
    "RDL": 2,
    "Levies": 87676,
    "CustomsValueKes": "1,948,350.00",
    "CurrencyValue": 129.89,
    "success": 1
   }
  },
  "calc-computer-ex": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/calculate",
    "body": {
     "value": 1000,
     "quantity": 1,
     "currency": "USD",
     "movement": "EX",
     "nmctcode": "8471900000"
    }
   },
   "status": 200,
   "ms": 998,
   "answer": {
    "CustomsValueKes": "129,890.00",
    "CurrencyValue": 129.89,
    "Tax": "0.00",
    "success": 1
   }
  },
  "calc-doc-example": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/calculate",
    "body": {
     "value": 5000,
     "quantity": 10,
     "currency": "USD",
     "movement": "IM",
     "nmctcode": "01011010",
     "complementary": {}
    }
   },
   "status": 500,
   "ms": 730,
   "answer": {
    "requestId": "8cb7f362-83f2-4b48-bdf5-4c7e1a67dbcb15446632",
    "errorCode": "500",
    "errorMessage": "Internal Server Error"
   }
  },
  "calc-doc-no-complementary": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/calculate",
    "body": {
     "value": 5000,
     "quantity": 10,
     "currency": "USD",
     "movement": "IM",
     "nmctcode": "01011010"
    }
   },
   "status": 200,
   "ms": 1020,
   "answer": {
    "IDF": 2.5,
    "Tax": "29,226.00",
    "RDL": 2,
    "Levies": 29226,
    "CustomsValueKes": "649,450.00",
    "CurrencyValue": 129.89,
    "success": 1
   }
  },
  "calc-horse-10digit": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/calculate",
    "body": {
     "value": 5000,
     "quantity": 10,
     "currency": "USD",
     "movement": "IM",
     "nmctcode": "0101210000"
    }
   },
   "status": 200,
   "ms": 1090,
   "answer": {
    "IDF": 2.5,
    "Tax": "29,226.00",
    "RDL": 2,
    "Levies": 29226,
    "CustomsValueKes": "649,450.00",
    "CurrencyValue": 129.89,
    "success": 1
   }
  },
  "calc-lowercase": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/calculate",
    "body": {
     "value": 1000,
     "quantity": 1,
     "currency": "USD",
     "movement": "im",
     "nmctcode": "8471900000"
    }
   },
   "status": 400,
   "ms": 740,
   "answer": "Incorrect movement format"
  },
  "calc-rice-8digit": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/calculate",
    "body": {
     "value": 10000,
     "quantity": 25000,
     "currency": "USD",
     "movement": "IM",
     "nmctcode": "10063000"
    }
   },
   "status": 200,
   "ms": 1043,
   "answer": {
    "IDF": 2.5,
    "Tax": "707,901.00",
    "RDL": 2,
    "Levies": 58451,
    "CustomsValueKes": "1,298,900.00",
    "CurrencyValue": 129.89,
    "success": 1
   }
  },
  "calc-rice-kes": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/calculate",
    "body": {
     "value": 1000000,
     "quantity": 25000,
     "currency": "KES",
     "movement": "IM",
     "nmctcode": "1006300000"
    }
   },
   "status": 200,
   "ms": 1201,
   "answer": {
    "IDF": 2.5,
    "Tax": "694,450.00",
    "RDL": 2,
    "Levies": 45000,
    "CustomsValueKes": "1,000,000.00",
    "CurrencyValue": 1,
    "success": 1
   }
  },
  "calc-rice-ksh": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/calculate",
    "body": {
     "value": 1000000,
     "quantity": 25000,
     "currency": "KSH",
     "movement": "IM",
     "nmctcode": "1006300000"
    }
   },
   "status": 500,
   "ms": 975,
   "answer": {
    "requestId": "8cb7f362-83f2-4b48-bdf5-4c7e1a67dbcb15446659",
    "errorCode": "500",
    "errorMessage": "Internal Server Error"
   }
  },
  "calc-rice-usd": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/calculate",
    "body": {
     "value": 10000,
     "quantity": 25000,
     "currency": "USD",
     "movement": "IM",
     "nmctcode": "1006300000"
    }
   },
   "status": 200,
   "ms": 1091,
   "answer": {
    "IDF": 2.5,
    "Tax": "707,901.00",
    "RDL": 2,
    "Levies": 58451,
    "CustomsValueKes": "1,298,900.00",
    "CurrencyValue": 129.89,
    "success": 1
   }
  },
  "calc-unknown-code": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/calculate",
    "body": {
     "value": 1000,
     "quantity": 1,
     "currency": "USD",
     "movement": "IM",
     "nmctcode": "9999999999"
    }
   },
   "status": 200,
   "ms": 986,
   "answer": {
    "IDF": 2.5,
    "Tax": "5,846.00",
    "RDL": 2,
    "Levies": 5846,
    "CustomsValueKes": "129,890.00",
    "CurrencyValue": 129.89,
    "success": 1
   }
  },
  "desc-rice": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/searchByDesc",
    "body": {
     "desc": "rice"
    }
   },
   "status": 200,
   "ms": 787,
   "answer": {
    "success": 1,
    "hscodesList": [
     {
      "nmctcode": "1006300000",
      "nmctdesc": "Semi-milled or wholly milled rice, whether or not polished or glazed.",
      "stmucode": "KGM",
      "taxDetails": null
     },
     {
      "nmctcode": "1102901000",
      "nmctdesc": "--- Rice flour",
      "stmucode": "KGM",
      "taxDetails": null
     },
     {
      "nmctcode": "1006400000",
      "nmctdesc": "Broken rice.",
      "stmucode": "KGM",
      "taxDetails": null
     },
     {
      "nmctcode": "1006100000",
      "nmctdesc": "Rice in the husk (paddy or rough)",
      "stmucode": "KGM",
      "taxDetails": null
     },
     {
      "nmctcode": "1006200000",
      "nmctdesc": "Husked (brown) rice.",
      "stmucode": "KGM",
      "taxDetails": null
     },
     {
      "nmctcode": "1905909000",
      "nmctdesc": "          Other; Bread, pastry, cakes, biscuits and other bakers  wares, whether or not containing cocoa; communion wafers,sealing wafers, rice paper and similar products.\r\n",
      "stmucode": "KGM",
      "taxDetails": null
     }
    ],
    "soursuccessce": "cache"
   }
  },
  "details-get-1006": {
   "request": {
    "method": "GET",
    "path": "/api/v1/taxCalculator/details",
    "body": {
     "nmctcode": "1006300000"
    }
   },
   "status": 404,
   "ms": 762,
   "answer": {
    "requestId": "8cb7f362-83f2-4b48-bdf5-4c7e1a67dbcb15446614",
    "errorCode": "404",
    "errorMessage": "Resource Not Found"
   }
  },
  "details-post-1006": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/details",
    "body": {
     "nmctcode": "1006300000"
    }
   },
   "status": 200,
   "ms": 930,
   "answer": {
    "success": 1,
    "details": {
     "nmctcode": "10063000",
     "nmctdesc": "Semi-milled or wholly milled rice, whether or not polished or glazed.",
     "stmucode": "KGM",
     "taxDetails": [
      {
       "taxType": "P_DUTY_RATE",
       "taxDesc": "P_DUTY_RATE",
       "taxRate": "  35.00%",
       "calcMethod": "Percentage",
       "calcCurrency": "KSH",
       "movementType": false
      },
      {
       "taxType": "P_DUTY_SPEC_RATE_USD",
       "taxDesc": "DUTY SPECIFIC RATE IN USD PER MT",
       "taxRate": "200",
       "calcMethod": "Per KGM",
       "calcCurrency": "USD",
       "movementType": false
      },
      {
       "taxType": "P_VAT_RATE",
       "taxDesc": "P_VAT_RATE",
       "taxRate": "    .00%",
       "calcMethod": "Percentage",
       "calcCurrency": "KSH",
       "movementType": false
      },
      {
       "taxType": "P_EXCISE_RATE",
       "taxDesc": "P_EXCISE_RATE",
       "taxRate": "    .00%",
       "calcMethod": "Percentage",
       "calcCurrency": "KSH",
       "movementType": false
      },
      {
       "taxType": "P_EXCISE_SPEC_RATE",
       "taxDesc": "EXCISE SPECIFIC RATE",
       "taxRate": "0",
       "calcMethod": "Per KGM",
       "calcCurrency": "KSH",
       "movementType": false
      },
      {
       "taxType": "P_EXPORT_DUTY_RATE",
       "taxDesc": "P_EXPORT_DUTY_RATE",
       "taxRate": "    .00%",
       "calcMethod": "Percentage",
       "calcCurrency": "KSH",
       "movementType": true
      },
      {
       "taxType": "P_EXPORT_SPEC_RATE_USD",
       "taxDesc": "DUTY SPECIFIC RATE",
       "taxRate": "0",
       "calcMethod": "Per KGM",
       "calcCurrency": "USD",
       "movementType": true
      }
     ]
    }
   }
  },
  "details-post-8703": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/details",
    "body": {
     "nmctcode": "8703239000"
    }
   },
   "status": 200,
   "ms": 906,
   "answer": {
    "success": 1,
    "details": {
     "nmctcode": "87032390",
     "nmctdesc": "Other vehicles, with spark-ignition internal combustion reciprocating piston engine, of a cylinder capacity exceeding 1,500 cc but not exceeding 3,000 cc, assembled.",
     "stmucode": "UNT",
     "taxDetails": [
      {
       "taxType": "P_EXPORT_SPEC_RATE_USD",
       "taxDesc": "DUTY SPECIFIC RATE",
       "taxRate": "0",
       "calcMethod": "Per UNT",
       "calcCurrency": "USD",
       "movementType": true
      },
      {
       "taxType": "P_DUTY_RATE",
       "taxDesc": "P_DUTY_RATE",
       "taxRate": "  35.00%",
       "calcMethod": "Percentage",
       "calcCurrency": "KSH",
       "movementType": false
      },
      {
       "taxType": "P_DUTY_SPEC_RATE",
       "taxDesc": "DUTY SPECIFIC RATE",
       "taxRate": "0",
       "calcMethod": "Per UNT",
       "calcCurrency": "KSH",
       "movementType": false
      },
      {
       "taxType": "P_VAT_RATE",
       "taxDesc": "P_VAT_RATE",
       "taxRate": "  16.00%",
       "calcMethod": "Percentage",
       "calcCurrency": "KSH",
       "movementType": false
      },
      {
       "taxType": "P_EXCISE_RATE",
       "taxDesc": "P_EXCISE_RATE",
       "taxRate": "  25.00%",
       "calcMethod": "Percentage",
       "calcCurrency": "KSH",
       "movementType": false
      },
      {
       "taxType": "P_EXCISE_SPEC_RATE",
       "taxDesc": "EXCISE SPECIFIC RATE",
       "taxRate": "0",
       "calcMethod": "Per UNT",
       "calcCurrency": "KSH",
       "movementType": false
      },
      {
       "taxType": "P_EXPORT_DUTY_RATE",
       "taxDesc": "P_EXPORT_DUTY_RATE",
       "taxRate": "    .00%",
       "calcMethod": "Percentage",
       "calcCurrency": "KSH",
       "movementType": true
      }
     ]
    }
   }
  },
  "hs-010": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/searchByHSCode",
    "body": {
     "HSCode": "010"
    }
   },
   "status": 400,
   "ms": 818,
   "answer": "Code param is too short. Must be at least 4 digits."
  },
  "hs-0101": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/searchByHSCode",
    "body": {
     "HSCode": "0101"
    }
   },
   "status": 200,
   "ms": 2113,
   "answer": {
    "success": 1,
    "hscodesList": [
     {
      "nmctcode": "01013010",
      "nmctdesc": "---Pure-bred breeding asses",
      "stmucode": "UNT",
      "taxDetails": null
     },
     {
      "nmctcode": "01012900",
      "nmctdesc": "--other horses",
      "stmucode": "UNT",
      "taxDetails": null
     },
     {
      "nmctcode": "01019010",
      "nmctdesc": "---Other pure-bred breeding animals",
      "stmucode": "UNT",
      "taxDetails": null
     },
     {
      "nmctcode": "01013090",
      "nmctdesc": "---Other asses.",
      "stmucode": "UNT",
      "taxDetails": null
     },
     {
      "nmctcode": "01012100",
      "nmctdesc": "--pure-bred breeding horses.",
      "stmucode": "UNT",
      "taxDetails": null
     },
     {
      "nmctcode": "01019090",
      "nmctdesc": "---Mules and Hinnies",
      "stmucode": "UNT",
      "taxDetails": null
     }
    ]
   }
  },
  "hs-847190": {
   "request": {
    "method": "POST",
    "path": "/api/v1/taxCalculator/searchByHSCode",
    "body": {
     "HSCode": "8471900000"
    }
   },
   "status": 200,
   "ms": 1136,
   "answer": {
    "success": 1,
    "hscodesList": [
     {
      "nmctcode": "84719000",
      "nmctdesc": "Magnetic or optical readers, machines for transcribing data onto data media in coded form and machines for processing such data, not elsewhere specified or included.",
      "stmucode": "UNT",
      "taxDetails": null
     }
    ]
   }
  }
 }
}