Skip to content

Examples

Sondre Haugen edited this page Oct 25, 2023 · 46 revisions

A few shipping products and services do require additional input from the user. A few of those special cases are illustrated with examples here. Please contact us if you are going to use such a service that is not listed here. Most other services has no other attributes.They are only specified with an id attribute on the <service> element like this:

<service id="postnord_notification_sms" />
Bring - Betale ved utlevering (COD)
<service id="bring2_cash_on_delivery">
  <amount>4571</amount>
  <account>34541024533</account>
  <currency>NOK</currency>
  <reference>1000076353545222</referenced> <-- Optional -->
</service>
DHL Express - Electronic Invoice

All possible values shown here. Please contact DHL Express for further details

<service id="dhl_express_electronic_invoice_edi">
   <consignor_eori_no></consignor_eori_no>
   <consignor_tax_id_vat_no></consignor_tax_id_vat_no>
   <consignor_ioss_osr_lvg_voec_no>string</consignor_ioss_osr_lvg_voec_no>
   <consignor_ioss_osr_lvg_voec_country>string</consignor_ioss_osr_lvg_voec_country>
   <consignee_tax_id_vat_no></consignee_tax_id_vat_no>
   <consignee_ioss_osr_lvg_voec_no>string</consignee_ioss_osr_lvg_voec_no>
   <consignee_eori_no>string</consignee_eori_no>
   <billed_to_name>Mr Joe</billed_to_name>
   <billed_to_address1>Street 3</billed_to_address1>
   <billed_to_address2></billed_to_address2>
   <billed_to_country>IT</billed_to_country>
   <billed_to_postcode>232522</billed_to_postcode>
   <billed_to_city>Roma</billed_to_city>
   <billed_to_phone></billed_to_phone>
   <billed_to_tax_id_vat_no></billed_to_tax_id_vat_no>
   <billed_to_contact_name>string</billed_to_contact_name>
   <billed_to_email>string</billed_to_email>
   <billed_to_eori_no>string</billed_to_eori_no>
   <billed_to_ioss_osr_lvg_voec_no>string</billed_to_ioss_osr_lvg_voec_no>
   <billed_to_ioss_osr_lvg_voec_country>string</billed_to_ioss_osr_lvg_voec_country>
   <bank_inn></bank_inn>
   <bank_ogrn></bank_ogrn>
   <bank_kpp></bank_kpp>
   <bank_okpo></bank_okpo>
   <bank_settlement_account_usd_eur></bank_settlement_account_usd_eur>
   <bank_settlement_account_rur></bank_settlement_account_rur>
   <bank_name></bank_name>
   <invoice_number></invoice_number>
   <exporter_id></exporter_id>
   <exporter_code></exporter_code>
   <exporter_name>string</exporter_name>
   <exporter_address1>string</exporter_address1>
   <exporter_address2>string</exporter_address2>
   <exporter_country>string</exporter_country>
   <exporter_postcode>string</exporter_postcode>
   <exporter_city>string</exporter_city>
   <exporter_phone>string</exporter_phone>
   <exporter_contact_name>string</exporter_contact_name>
   <exporter_email>string</exporter_email>
   <exporter_tax_id_vat_no>string</exporter_tax_id_vat_no>
   <exporter_eori_no>string</exporter_eori_no>
   <exporter_ioss_osr_lvg_voec_no>string</exporter_ioss_osr_lvg_voec_no>
   <exporter_ioss_osr_lvg_voec_country>string</exporter_ioss_osr_lvg_voec_country>
   <other_remarks></other_remarks>
   <reason_for_export>ENUM</reason_for_export> <!-- REQUIRED -->
   <type_of_export>ENUM</type_of_export> <!-- REQUIRED -->
   <other_charges></other_charges>
   <freight_cost></freight_cost>
   <insurance_cost></insurance_cost>
   <total_goods_value>decimal</total_goods_value>
   <currency_code></currency_code>
   <terms_of_payment></terms_of_payment>
   <payer_of_gst_vat></payer_of_gst_vat>
   <duty_taxes_acct>Receiver Will Pay</duty_taxes_acct>
   <duty_tax_billing_service></duty_tax_billing_service>
   <requiere_pedimento></requiere_pedimento>
   <ultimate_consignee></ultimate_consignee>
   <exemption_citation></exemption_citation>
   <type_of_invoice>ENUM</type_of_invoice> <!-- choose between proforma or commercial -->
   <eea_declaration>true</eea_declaration>
   <authorization_number>65655522</authorization_number>
   <place_of_incoterms>string</place_of_incoterms>
   <signature>string</signature>
   <signature_name>string</signature_name>
   <invoice_date_time>DateTime: Eks: 2023-02-21T12:05</invoice_date_time>
   <export_or_import>ENUM</export_or_import>
   <commercial_or_personal>ENUM</commercial_or_personal>
   <origin_eeclaration_text_with_or_without_exporter_id>string</origin_eeclaration_text_with_or_without_exporter_id>
   <data>
        {
            "items": [
              {
                "description": "Batteries",
                "commodity_code": "BT123",
                "quantity": 300,
                "unit_value": 0.5,
                "sub_total_value": 150,
                "net_weight": 10,
                "gross_weight": 15,
                "country_of_origin": "DK"
                "part_number": "string",
                "eccn_number": "string",
                "sku_number": "string",
                "gst_paid": boolean,
                "original_export_date": "string: eks: 2022-01-01",
                "original_outbound_carrier": "string",
                "original_export_tracking_id": "string",
              },
              {
                "description": "Flux Capacitor",
                "commodity_code": "FX3000",
                "quantity": 1,
                "unit_value": 10,
                "sub_total_value": 10,
                "net_weight": 500,
                "gross_weight": 500,
                "country_of_origin": "DE"
                "part_number": "string",
                "eccn_number": "string",
                "sku_number": "string",
                "gst_paid": boolean,
                "original_export_date": "string: eks: 2022-01-01",
                "original_outbound_carrier": "string",
                "original_export_tracking_id": "string",
              },
              {
                "description": "Units",
                "commodity_code": "XX99",
                "quantity": 45,
                "unit_value": 1.99,
                "sub_total_value": 89.55,
                "net_weight": 2,
                "gross_weight": 3.5,
                "country_of_origin": "FI"
                "part_number": "string",
                "eccn_number": "string",
                "sku_number": "string",
                "gst_paid": boolean,
                "original_export_date": "string: eks: 2022-01-01",
                "original_outbound_carrier": "string",
                "original_export_tracking_id": "string",
              }
            ]
          }
   </data>
</service> 

Here is the list of ENUM values for those fields marked as ENUM above:

type_of_export: permanent, temporary, return, repair

reason_for_export: P, T, D, M, I, C, E, S, G, U, W, D, F, R

P PERMANENT

R RETURN FOR REPAIR T TEMPORARY

M USED EXIBITION GOODS TO ORIGIN

I INTERCOMPANY_USE

C COMMERCIAL PURPOSE/ SALE

E PERSONAL BELONGINGS/PERSONAL USE S SAMPLE G GIFT

U RETURN TO ORIGIN

W WARRANTY REPLACEMENT D DIPLOMATIC GOODS F DEFENCE MATERIAL

commercial_or_personal: commercial, personal

export_or_import: import, export

type_of_invoice: proforma, commercial

Example With Minimum Required Values

<service id="dhl_express_electronic_invoice_edi">
   <reason_for_export>R</reason_for_export>
   <type_of_export>repair</type_of_export>
   <invoice_number>74635533</invoice_number>
   <currency_code>EUR</currency_code>
   <export_or_import>export</export_or_import>
   <commercial_or_personal>personal</commercial_or_personal>
   <invoice_date_time>2023-02-21T12:05</invoice_date_time>
   <total_goods_value>342.50</total_goods_value>
   <data>
          {
            "items": [
              {
                "quantity": 300,
                "unit_value": 0.5,
                "sub_total_value": 150,
                "net_weight": 10
              }
            ]
          }
   </data>
</service>
DHL Express - Tollverdi
<service id="dhl_express_customs_value">
   <amount>670.00</amount> <!-- REQUIRED -->
   <currency>EUR</currency> <!-- REQUIRED -->
   <paid_by_custno>3252252</paid_by_custno>
</service>
DHL Express - Duties & Taxes Paid (DD)
<service id="dhl_express_dtp">
   <paid_by_custno>924232332</paid_by_custno> <!-- Optional -->
</service>
DHL Express - Forsikring
<service id="dhl_express_insurance">
   <amount>670.00</amount> <!-- REQUIRED -->
   <currency>eur</currency> 
</service>
DHL Express - Booking / Pickup

The aditional information is not required, but will help in terms of making a successful booking/pickup. DHL Express does not notify the sender if any requirements in terms of time, as described below, are not fulfillled. The booking will simply fail.

<service id="dhl_express_pickup">
   <pickup_time>2022-09-22T13:00</pickup_time> <!-- Note! It must be at least one hour until pickup is booked! -->
   <pickup_location>i.e. Oslo City, second floor.</pickup_location>
   <pickup_location_close_time>17:00</pickup_location_close_time> <!-- Note! Booking must be at least one hour before closing time! -->
   <pickup_instruction>i.e. Ask for Christopher.</pickup_instruction>
</service>
Postnord - Groupage Return

These parties are mandatory

<consignment>
  ...
  <product>stykkgods_innland_booking_me</product>
  ...
  <parts>
    <consignee freight_payer="true">
      <customer-number>3252512</customer-number>
      <name>Mitt Firma AS</name>
      <country>NO</country>
      <postcode>6412</postcode>
      <city>Molde</city>
    </consignee>

    <pickup_address>
      <name>Lagerplassen</name>
      <address1>Lagerveien 34</address1>
      <country>NO</country>
      <postcode>0068</postcode>
      <city>Oslo</city>
    </pickup_address>
  </parts>
</consignment>

</parts>
Postnord - Groupage Pickup-Delivery

These parties are mandatory

<consignment>
  ...
  <product>stykkgods_innland_booking_other</product>
  ...
  <parts>
    <consignee>
      <name>Leveringsfirma AS</name>
      <country>NO</country>
      <postcode>1338</postcode>
      <city>Sandvika</city>
    </consignee>

    <pickup_address>
      <name>Lagerplassen</name>
      <address1>Lagerveien 34</address1>
      <country>NO</country>
      <postcode>1412</postcode>
      <city>Sofiemyr</city>
    </pickup_address>

    <freight_payer_address>
      <customer-number>3252512</customer-number>
      <name>Mitt Firma AS</name>
      <address1>Betalerveien 34</address1>
      <country>NO</country>
      <postcode>0068</postcode>
      <city>Oslo</city>
    </freight_payer_address>

  </parts>
</consignment>
Postnord - Pallet

Postnord requries that you tell what type of Pallet you ship. You need to use one of these:

<consignment>
  ...
  <product>tg_pall</product>
  ...
  <items>
    <item type="palette" .....></item>
    <item type="1_4_palette" ....></item>
    <item type="1_2_palette" ....></item>
    <item type="1_1_palette" ....></item>
    <item type="x_palette" ....></item>
  </items>
  ...
</consignment>
Postnord - Utleveringsforbehold
<service id="tg_giro">
  <amount>4571</amount>
  <currency>NOK</currency>
  <kid>1000076353545222</kid> <-- optional -->
  <account_number>40542312211</account_number>
</service>
Postnord - Etterkrav
<service id="tg_etterkrav">
  <amount>4571</amount>
  <currency>NOK</currency>
  <kid>1000076353545222</kid> <-- optional -->
</service>
Postnord - COD Only to be used for some export products
<service id="cod">
   <amount>4571</amount>
   <currency>EUR</currency>
   <transaction_id>1000076353545222</transaction_id> <-- optional -->
   <account_number>40542312211</account_number>
   <account_type></account_type>
   <bic>DABAIE2D</bic>
   <iban>987654321</iban>
</service>
Postnord - Forsikring Only to be used for some export products
<service id="tg_insurance">
   <amount>4571</amount>
   <currency>nok</currency>
</service>

Clone this wiki locally