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 XML File to import in AKANEA Customs software from an invoice
  • JSON REQUEST FORMAT
  1. E-CUSTOMS SERVICES
  2. Documents import services

H7 Declaration (Akanea)

Get XML File to import in AKANEA Customs software from an invoice

Get XML File to import in AKANEA Customs software from an invoice

STEP 1

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

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/h7Declaration/{timestamp}

Get export invoice result

Headers

Name
Value

Content-Type

application/json

Authorization

id token from cognito

Path parameters

Name
Type
Description

timestamp

string

timestamp in millis

Response

<CustomsH7DeclarationMessage>
    <Header>
        <CustomsHeader>
            <DecHeader>
                <DecLrn>TNICOLASB1718491591353</DecLrn>
            </DecHeader>
        </CustomsHeader>
        <InternalHeader>
            <DatTimMsg>2024-06-15T22:46:31</DatTimMsg>
            <UsrGroupe>TRANSITEO</UsrGroupe>
            <UsrCode>TRANSITEO_DEMO</UsrCode>
            <DecSchemaIntern>1</DecSchemaIntern>
            <DecAppId>H7T</DecAppId>
            <DecRefintdos>2022-02-11</DecRefintdos>
            <CusActCod>1</CusActCod>
            <IntActCod>0</IntActCod>
        </InternalHeader>
    </Header>
    <Declaration>
        <DecTypDec>CO</DecTypDec>
        <DecAddDecTyp>A</DecAddDecTyp>
        <DecAgrNum>12341234</DecAgrNum>
        <DecDeclOffice>FRA12345</DecDeclOffice>
        <DecPresOffice>FRA12345</DecPresOffice>
        <DecLocGds>STORE WAREHOUSE</DecLocGds>
        <DecGroMass>120</DecGroMass>
        <DecImporter>
            <DecImpName>Ma compagnie</DecImpName>
            <DecImpCountry>FRA</DecImpCountry>
            <DecImpPostcode>65000</DecImpPostcode>
            <DecImpCity>Tarbes</DecImpCity>
            <DecImpStreet>Rue du maréchal Foch</DecImpStreet>
        </DecImporter>
        <DecExporter>
            <DecExpName>Ma compagnie</DecExpName>
            <DecExpCountry>FRA</DecExpCountry>
            <DecExpPostcode>65000</DecExpPostcode>
            <DecExpCity>Tarbes</DecExpCity>
            <DecExpStreet>Rue du maréchal Foch</DecExpStreet>
        </DecExporter>
        <DecRepresentative>
            <DecRepStatus>1</DecRepStatus>
            <DecRepConName>NICOLAS BERTUOL</DecRepConName>
            <DecRepConPhone>+33601020304</DecRepConPhone>
            <DecRepConEmail>n.icola.s.b.ertuo.l@gmail.com</DecRepConEmail>
        </DecRepresentative>
        <DecDeclarant>
            <DecDecName>Ma compagnie</DecDecName>
            <DecDecCountry>FRA</DecDecCountry>
            <DecDecPostcode>65000</DecDecPostcode>
            <DecDecCity>Tarbes</DecDecCity>
            <DecDecStreet>Rue du maréchal Foch</DecDecStreet>
            <DecDecConName>NICOLAS BERTUOL</DecDecConName>
            <DecDecConPhone>+33601020304</DecDecConPhone>
            <DecDecConEmail>n.icola.s.b.ertuo.l@gmail.com</DecDecConEmail>
        </DecDeclarant>
        <GoodsList>
            <Goods>
                <GdsIteNum>1</GdsIteNum>
                <GdsAddProc1>F48</GdsAddProc1>
                <GdsNbPackages>1</GdsNbPackages>
                <GdsDescription>Smartphone</GdsDescription>
                <GdsNomenc>8517130000</GdsNomenc>
                <GdsIntrValue>14400</GdsIntrValue>
                <GdsIntrValueCur>EUR</GdsIntrValueCur>
                <GdsTrspCost>0</GdsTrspCost>
                <GdsTrspCostCur>EUR</GdsTrspCostCur>
                <GdsGroMass>120</GdsGroMass>
            </Goods>
        </GoodsList>
    </Declaration>
    <requestType>1</requestType>
</CustomsH7DeclarationMessage>
{
    "message": "The incoming token has expired"
}
{
    "code": "UNEXPECTED_ERROR",
    "httpCode": 500,
    "reason": "Please try again or contact our service",
}
PreviousExport invoiceNextDuty & Taxes Calculator

Last updated 11 months ago