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
  1. E-CUSTOMS SERVICES
  2. Duty & Taxes Calculator

Reverse Landed Cost Calculator

POST https://api.transiteo.io/v1/reverseLandedCost

This endpoint allows to get a reverse landed cost

Headers

Name
Type
Description

Content-Type

String

application/json

Authorization

String

idToken

# landed cost request : ecommerce_type = MARKETPLACE
{
    "refund": [
        {
            "order_id": "My_Order_0000001",
            "identification": {
                "type": "HSCODE",
                "value": "6505009090"
            },
            "product_statut": "Autorisé à l'importation dans ce pays",
            "amount_exclusive": 1013,
            "amount_inclusive_vat": 1215.6,
            "amount_duty_and_tax": 202.6,
            "amount_ecoTax": 0,
            "amount_total": 1215.6,
            "percentage_duty_and_tax": 20,
            "duty": {
                "label": "duty",
                "percentage": 0,
                "product_taxes_amount": 0,
                "shipping_taxes_amount": 0,
                "packaging_taxes_amount": 0,
                "insurance_taxes_amount": 0,
                "message": "Votre marchandise n'est pas soumise aux droits et taxes de douanes dans la même union douanière",
                "vat_product_taxes_amount": 0,
                "vat_shipping_taxes_amount": 0,
                "vat_packaging_taxes_amount": 0,
                "vat_insurance_taxes_amount": 0,
                "vat_taxes_amount": 0,
                "agreement": "No agreement"
            },
            "transit_fees": null,
            "special_taxes": [],
            "vat": [
                {
                    "label": "VAT",
                    "percentage": 20,
                    "product_taxes_amount": 200,
                    "shipping_taxes_amount": 2,
                    "packaging_taxes_amount": 0.6,
                    "insurance_taxes_amount": 0,
                    "message": null
                }
            ]
        },
        {
            "order_id": "My_Order_0000002",
            "identification": {
                "type": "HSCODE",
                "value": "6505009090"
            },
            "product_statut": "Restreint à l'importation dans ce pays",
            "amount_exclusive": 613,
            "amount_inclusive_vat": 741.73,
            "amount_duty_and_tax": 128.74,
            "amount_ecoTax": 0,
            "amount_total": 741.73,
            "percentage_duty_and_tax": 21.01,
            "duty": {
                "label": "duty",
                "percentage": 0,
                "product_taxes_amount": 0,
                "shipping_taxes_amount": 0,
                "packaging_taxes_amount": 0,
                "insurance_taxes_amount": 0,
                "message": "Votre marchandise n'est pas soumise aux droits et taxes de douanes dans la même union douanière",
                "vat_product_taxes_amount": 0,
                "vat_shipping_taxes_amount": 0,
                "vat_packaging_taxes_amount": 0,
                "vat_insurance_taxes_amount": 0,
                "vat_taxes_amount": 0,
                "agreement": "No agreement"
            },
            "transit_fees": null,
            "special_taxes": [],
            "vat": [
                {
                    "label": "VAT",
                    "percentage": 21,
                    "product_taxes_amount": 126,
                    "shipping_taxes_amount": 2.1,
                    "packaging_taxes_amount": 0.63,
                    "insurance_taxes_amount": 0,
                    "message": null
                }
            ]
        }
    ],
    "landedCostResponse": [
        {
            "orders": [
                {
                    "order_id": "My_Order_0000001",
                    "identification": {
                        "type": "HSCODE",
                        "value": "6112499000"
                    },
                    "product_statut": "Autorisé à l'importation dans ce pays",
                    "amount_exclusive": 10013,
                    "amount_inclusive_vat": 12015.6,
                    "amount_duty_and_tax": 2002.61,
                    "amount_ecoTax": 0,
                    "amount_total": 12015.6,
                    "percentage_duty_and_tax": 20.01,
                    "duty": {
                        "label": "duty",
                        "percentage": 0,
                        "product_taxes_amount": 0,
                        "shipping_taxes_amount": 0,
                        "packaging_taxes_amount": 0,
                        "insurance_taxes_amount": 0,
                        "message": "Votre marchandise n'est pas soumise aux droits et taxes de douanes dans la même union douanière",
                        "vat_product_taxes_amount": 0,
                        "vat_shipping_taxes_amount": 0,
                        "vat_packaging_taxes_amount": 0,
                        "vat_insurance_taxes_amount": 0,
                        "vat_taxes_amount": 0,
                        "agreement": "No agreement"
                    },
                    "transit_fees": null,
                    "special_taxes": [],
                    "vat": [
                        {
                            "label": "VAT",
                            "percentage": 20,
                            "product_taxes_amount": 2000,
                            "shipping_taxes_amount": 2,
                            "packaging_taxes_amount": 0.6,
                            "insurance_taxes_amount": 0,
                            "message": null
                        }
                    ]
                }
            ],
            "incoterm": "CIF",
            "global": {
                "amount": 2002.6,
                "amount_exclusive": 10013,
                "amount_inclusive_vat": 12015.6,
                "amount_total": 12015.6,
                "amount_duty_and_tax": 2002.61,
                "percentage_duty_and_tax": 20.01,
                "amount_ecoTax": 0
            },
            "timestamp": 1661377002588
        }
    ],
    "global_refund": {
        "amount": 331.33,
        "amount_duty_and_tax": 331.34,
        "amount_exclusive": 1626,
        "amount_inclusive_vat": 1957.33,
        "amount_total": 1957.33,
        "amount_ecoTax": 0
    }
}



# landed cost request with ecommerce_type != MARKETPLACE
{
    "refund": [
        {
            "order_id": "My_Order_0000001",
            "identification": {
                "type": "HSCODE",
                "value": "6505009090"
            },
            "product_statut": "Autorisé à l'importation dans ce pays",
            "amount_exclusive": 1013,
            "amount_inclusive_vat": 1215.6,
            "amount_duty_and_tax": 202.6,
            "amount_ecoTax": 0,
            "amount_total": 1215.6,
            "percentage_duty_and_tax": 20,
            "duty": {
                "label": "duty",
                "percentage": 0,
                "product_taxes_amount": 0,
                "shipping_taxes_amount": 0,
                "packaging_taxes_amount": 0,
                "insurance_taxes_amount": 0,
                "message": "Votre marchandise n'est pas soumise aux droits et taxes de douanes dans la même union douanière",
                "vat_product_taxes_amount": 0,
                "vat_shipping_taxes_amount": 0,
                "vat_packaging_taxes_amount": 0,
                "vat_insurance_taxes_amount": 0,
                "vat_taxes_amount": 0,
                "agreement": "No agreement"
            },
            "transit_fees": null,
            "special_taxes": [],
            "vat": [
                {
                    "label": "VAT",
                    "percentage": 20,
                    "product_taxes_amount": 200,
                    "shipping_taxes_amount": 2,
                    "packaging_taxes_amount": 0.6,
                    "insurance_taxes_amount": 0,
                    "message": null
                }
            ]
        },
        {
            "order_id": "My_Order_0000002",
            "identification": {
                "type": "HSCODE",
                "value": "6505009090"
            },
            "product_statut": "Autorisé à l'importation dans ce pays",
            "amount_exclusive": 613,
            "amount_inclusive_vat": 735.6,
            "amount_duty_and_tax": 122.61,
            "amount_ecoTax": 0,
            "amount_total": 735.6,
            "percentage_duty_and_tax": 20.01,
            "duty": {
                "label": "duty",
                "percentage": 0,
                "product_taxes_amount": 0,
                "shipping_taxes_amount": 0,
                "packaging_taxes_amount": 0,
                "insurance_taxes_amount": 0,
                "message": "Votre marchandise n'est pas soumise aux droits et taxes de douanes dans la même union douanière",
                "vat_product_taxes_amount": 0,
                "vat_shipping_taxes_amount": 0,
                "vat_packaging_taxes_amount": 0,
                "vat_insurance_taxes_amount": 0,
                "vat_taxes_amount": 0,
                "agreement": "No agreement"
            },
            "transit_fees": null,
            "special_taxes": [],
            "vat": [
                {
                    "label": "VAT",
                    "percentage": 20,
                    "product_taxes_amount": 120,
                    "shipping_taxes_amount": 2,
                    "packaging_taxes_amount": 0.6,
                    "insurance_taxes_amount": 0,
                    "message": null
                }
            ]
        }
    ],
    "landedCostResponse": {
        "orders": [
            {
                "order_id": "My_Order_0000001",
                "identification": {
                    "type": "HSCODE",
                    "value": "6112499000"
                },
                "product_statut": "Autorisé à l'importation dans ce pays",
                "amount_exclusive": 10013,
                "amount_inclusive_vat": 12015.6,
                "amount_duty_and_tax": 2002.61,
                "amount_ecoTax": 0,
                "amount_total": 12015.6,
                "percentage_duty_and_tax": 20.01,
                "duty": {
                    "label": "duty",
                    "percentage": 0,
                    "product_taxes_amount": 0,
                    "shipping_taxes_amount": 0,
                    "packaging_taxes_amount": 0,
                    "insurance_taxes_amount": 0,
                    "message": "Votre marchandise n'est pas soumise aux droits et taxes de douanes dans la même union douanière",
                    "vat_product_taxes_amount": 0,
                    "vat_shipping_taxes_amount": 0,
                    "vat_packaging_taxes_amount": 0,
                    "vat_insurance_taxes_amount": 0,
                    "vat_taxes_amount": 0,
                    "agreement": "No agreement"
                },
                "transit_fees": null,
                "special_taxes": [],
                "vat": [
                    {
                        "label": "VAT",
                        "percentage": 20,
                        "product_taxes_amount": 2000,
                        "shipping_taxes_amount": 2,
                        "packaging_taxes_amount": 0.6,
                        "insurance_taxes_amount": 0,
                        "message": null
                    }
                ]
            }
        ],
        "shipping_global": {
            "vat": null,
            "duty": null,
            "special_taxes": null
        },
        "packaging_global": {
            "vat": null,
            "duty": null,
            "special_taxes": null
        },
        "insurance_global": {
            "vat": null,
            "duty": null,
            "special_taxes": null
        },
        "transit_fees_global": null,
        "incoterm": "CIF",
        "global": {
            "amount": 2002.6,
            "amount_exclusive": 10013,
            "amount_inclusive_vat": 12015.6,
            "amount_total": 12015.6,
            "amount_duty_and_tax": 2002.61,
            "percentage_duty_and_tax": 20.01,
            "amount_ecoTax": 0
        },
        "timestamp": 1661377132600
    },
    "global_refund": {
        "amount": 325.2,
        "amount_duty_and_tax": 325.2,
        "amount_exclusive": 1626,
        "amount_inclusive_vat": 1951.2,
        "amount_total": 1951.2,
        "amount_ecoTax": 0
    }
}
value in json is not recognized or incorrect

{
    "code": "INCORRECT_JSON",
    "name": "ClientError",
    "message": "Incorrect Json Request",
    "details": [
        {
            "parameter": {
                "name": "timestamp"
            },
            "causes": [
                "timestamp must be a positive number"
            ]
        }
    ]
}
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"
            ]
        }
    ]
}
DATA_NOT_FOUND when timestamp does not correspond to any User-Request-History-V2 landed cost

{
    "code": "DATA_NOT_FOUND",
    "name": "ClientError",
    "message": "Sorry, we did not find the data you are trying to retrieve",
    "details": []
}
{
    "code": "UNEXPECTED_ERROR",
    "httpCode": 500,
    "reason": "Please try again or contact our service",
}

JSON Body Request Exemple

{
    "timestamp": 1661361450508,
    "refund_items": [
        {
            "order_id": "My_Order_0000001",
            "items": [
                {
                    "identification": {
                        "type": "HSCODE",
                        "value": "6505009090"
                    }
                }
            ]
        },
        {
            "order_id": "My_Order_0000002",
            "items": [
                {
                    "identification": {
                        "type": "HSCODE",
                        "value": "6505009090"
                    }
                }
            ]
        }
    ]
}
PreviousUsing Product's barcodeNextLocals taxes Calculator

Last updated 2 years ago