Public API Doc
  • Introduction
  • Authentification
  • E-CUSTOMS SERVICES
    • Product Infos Generator (A.I)
      • Harmonized System Code
      • United Nations Code
      • Dimensions & Weight
      • Carbon footprint
      • Eco Codes and Taxes
      • World Product Pricing
    • HSCode services
      • Link (HSCode > HSCode)
      • Nomenclature
      • RTC / BTI
      • Check
      • A.I Customs Code Control
    • Documents import services
      • Landed Cost
      • Taxes Invoice
      • Export invoice
      • H7 Declaration (Akanea)
    • Duty & Taxes Calculator
      • Landed Cost Calculator
        • For E-Commerce
        • For Marketplace
        • For Shipping Comparator
        • For International Carrier
        • Using Product's HS Code
        • Using Product's SKU
        • Using Product's description
        • Using Product's barcode
      • Reverse Landed Cost Calculator
      • Locals taxes Calculator
        • Using Product's HSCode
        • Using Product's SKU
        • Using Product's description
        • Using Product's barcode
    • Rates Data Generator
      • Duties
      • Locals Taxes (VAT, GST, ...)
      • Specials Taxes (OM, OMR, ...)
      • SalesTaxes (USA)
    • Export Docs Generator
      • Exports invoice
      • Rectified Export invoice
      • Credit Note
      • Tax invoice
      • Exports Marketplace invoice
      • Postal customs declarations
      • Lithium Battery
      • Taxes refund or discount
      • Certificat of origin
      • EORI Subscription
    • Shipping Infos Generator
      • World Shipping Pricing
      • Carbon Footprint
  • E-COMMERCE MANAGEMENT
    • Customers (CRM)
    • Products (PIM)
    • Orders (OMS)
    • Tax Account
  • FREE API CONSUMPTION
    • Duty & Taxes Free Calculation
  • Questions & Answers
  • Go to the Web App
  • Go to the Website
Powered by GitBook
On this page
  • Get duty and taxes calculation from an invoice pdf
  • JSON REQUEST FORMAT
  1. E-CUSTOMS SERVICES
  2. Documents import services

Landed Cost

Get duty and taxes calculation from an invoice pdf

Get duty and taxes calculation from an invoice pdf

STEP 1

POST https://api.transiteo.io/v1/importFileService/invoicePdf/landedCost

Get a timestamp to request the step 2

Headers

Name
Value

Content-Type

application/json

Authorization

id token from cognito

JSON REQUEST FORMAT

{
  "content": "data:application/pdf;base64,JVBERi0xLjQKJfbk/N8KMSAwIG9iago8PA..."
}

Response

{
    "timestamp": 1671483327236
}
Incorrect Json (json body request incorrect)
1. Max requests exceed
{
    "code": "MAX_REQUESTS_EXCEED",
    "httpCode": 403,
    "name": "ClientError",
    "message": "You've reached the max requests authorized for your account. Please contact our service to upgrade your account",
    "details": [
        {
            "parameter": {
                "name": "UserRequests",
                "value": "${leftCredits}"
            },
            "causes": [
                "Max requests authorized for your account is ${capacity}. Left credits is ${leftCredits}"
            ]
        }
    ]
}

2. TRIAL_LIMIT_EXCEED

{
    "code": "TRIAL_LIMIT_EXCEED",
    "httpCode": 403,
    "name": "ClientError",
    "message": "You have exceeded the trial limit. Please contact our service to upgrade your account",
    "details": [
        {
            "parameter": {
                "name": "UserTrialLimit",
                "value": "${validity} days"
            },
            "causes": [
                "User trial is limited to ${validity} days of usage"
            ]
        }
    ]
}
{
    "code": "UNEXPECTED_ERROR",
    "httpCode": 500,
    "reason": "Please try again or contact our service",
}

STEP 2

GET https://api.transiteo.io/v1/importFileService/invoicePdf/landedCost/{timestamp}

Get Duty and Taxes caclulation result

Headers

Name
Value

Content-Type

application/json

Authorization

id token from cognito

Path parameters

Name
Type
Description

timestamp

string

timestamp in millis

Response

{
    "dutyCalculationResponse": {
        "products": [
            {
                "identification": {
                    "type": "HSCODE",
                    "value": "6109100010"
                },
                "product_statut": "Authorized for importation into this country",
                "amount_exclusive": 998,
                "amount_inclusive_vat": 998,
                "amount_duty_and_tax": 0,
                "amount_total": 998,
                "percentage_duty_and_tax": 0,
                "duty": null,
                "special_taxes": [],
                "vat": []
            },
            {
                "identification": {
                    "type": "HSCODE",
                    "value": "9507900000"
                },
                "product_statut": "Restricted for importation into this country",
                "amount_exclusive": 998,
                "amount_inclusive_vat": 998,
                "amount_duty_and_tax": 0,
                "amount_total": 998,
                "percentage_duty_and_tax": 0,
                "duty": null,
                "special_taxes": [],
                "vat": []
            },
            {
                "identification": {
                    "type": "HSCODE",
                    "value": "9506999000"
                },
                "product_statut": "Restricted for importation into this country",
                "amount_exclusive": 998,
                "amount_inclusive_vat": 998,
                "amount_duty_and_tax": 0,
                "amount_total": 998,
                "percentage_duty_and_tax": 0,
                "duty": null,
                "special_taxes": [],
                "vat": []
            },
            {
                "identification": {
                    "type": "HSCODE",
                    "value": "6302910090"
                },
                "product_statut": "Authorized for importation into this country",
                "amount_exclusive": 937.5,
                "amount_inclusive_vat": 937.5,
                "amount_duty_and_tax": 0,
                "amount_total": 937.5,
                "percentage_duty_and_tax": 0,
                "duty": null,
                "special_taxes": [],
                "vat": []
            }
        ],
        "shipping_global": {
            "vat": null,
            "duty": null,
            "special_taxes": null,
            "amount_exclusive": 0,
            "amount_inclusive_vat": 0,
            "amount_total": 0,
            "amount_duty_and_tax": 0,
            "percentage_duty_and_tax": null
        },
        "packaging_global": {
            "vat": null,
            "duty": null,
            "special_taxes": null,
            "amount_exclusive": 0,
            "amount_inclusive_vat": 0,
            "amount_total": 0,
            "amount_duty_and_tax": 0,
            "percentage_duty_and_tax": null
        },
        "insurance_global": {
            "vat": null,
            "duty": null,
            "special_taxes": null,
            "amount_exclusive": 0,
            "amount_inclusive_vat": 0,
            "amount_total": 0,
            "amount_duty_and_tax": 0,
            "percentage_duty_and_tax": null
        },
        "transit_fees_global": null,
        "global": {
            "amount": 0,
            "amount_exclusive": 3931.5,
            "amount_inclusive_vat": 3931.5,
            "amount_total": 3931.5,
            "amount_duty_and_tax": 0,
            "percentage_duty_and_tax": 0
        }
    },
}
{
    "message": "The incoming token has expired"
}
{
    "code": "UNEXPECTED_ERROR",
    "httpCode": 500,
    "reason": "Please try again or contact our service",
}
PreviousDocuments import servicesNextTaxes Invoice

Last updated 11 months ago