# Endicia International Shipment

**URL:** <https://forums.ordoro.com/t/endicia-international-shipment/622>\
**Category:** Bug Reports\
**Created:** [November 20, 2020, 12:27pm UTC](https://forums.ordoro.com/t/endicia-international-shipment/622 "2020-11-20T12:27:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@robert](https://forums.ordoro.com/u/robert)\
**Post date:** [November 20, 2020, 12:27pm UTC](https://forums.ordoro.com/t/endicia-international-shipment/622/1 "2020-11-20T12:27:11Z")

</div>

We are having an issue with the Ordoro API for getting label for Endicia International.

this is the URL:  
[https://apiverson.ordoro.com/order/ordernumber/label/endicia](https://apiverson.ordoro.com/order/ordernumber/label/endicia)

```
{"shipper_id":210059,"packages":[{"box_shape":"Parcel","length":4,"height":8,"width":6,"weight":28.0}],"box_shape":"Parcel","delivery_confirmation":"DeliveryConfirmation",
"shipping_method":"FirstClassMailInternational","customs_info": [
    {
      "description": "item",
      "quantity": 1,
      "value": 1,
      "weight": 28.0,
      "country": "canada",
      "harmonization_code": ""
    }
  ]}

```

We are getting error below from the Webservice:  
{  
“error\_message”: “None is not one of [‘Documents’, ‘Gift’, ‘Merchandise’, ‘ReturnedGoods’, ‘Sample’, ‘Other’] (param: customs\_info.reason\_for\_export)”,  
“param”: “customs\_info.reason\_for\_export”  
}

Then when we add reason\_for\_export as requested, we get a different error below:

```
{"shipper_id":210059,"packages":[{"box_shape":"Parcel","length":4,"height":8,"width":6,"weight":164.0}],"box_shape":"Parcel","delivery_confirmation":"DeliveryConfirmation","shipping_method":"FirstClassPackageInternationalService",

"customs_info": [

    {

      "description": "item",

      "quantity": 1,

      "value": 1,

      "weight": 28.0,

      "country": "canada",

      "harmonization_code": ""

    }

  ],

  "reason_for_export": "MERCHANDISE"

  }

```

THIS IS THE ERROR WE GET

```
{

    "error_message": "Additional properties are not allowed ('reason_for_export' was unexpected)",

    "param": null

}
```

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [November 23, 2020, 6:40pm UTC](https://forums.ordoro.com/t/endicia-international-shipment/622/2 "2020-11-23T18:40:27Z")

</div>

Hi @robert - I believe the error message you received was from an internal carrier api, and the items you are wanting to include are found in the example body/json schema of the docs link provided.

- `contents_type` is specific to Endicia as their `reason_for_export` and `contents_explanation` would only be required if you used `Other` as the `contents_type`.

For example: `"contents_type": "MERCHANDISE"` rather than the reason for export line.

Hope this helps:  
json schema example:

```auto
        "contents_type": {
            "type": "string"
        },
        "contents_explanation": {
            "type": "string"
        },

```

---

<div class="post-metadata">

**Author:** ![robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@robert](https://forums.ordoro.com/u/robert)\
**Post date:** [November 23, 2020, 7:04pm UTC](https://forums.ordoro.com/t/endicia-international-shipment/622/3 "2020-11-23T19:04:30Z")

</div>

Hi @sophie - I added the “contents\_type”: “Merchandise” and now I’m getting this error, but in the documentation there is no ToCountry element.

{

```
"error_message": "Missing or invalid element: ToCountry. Error encountered (Log ID: 40696) (Status: 1001)",

"param": null

```

}

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [November 23, 2020, 7:17pm UTC](https://forums.ordoro.com/t/endicia-international-shipment/622/4 "2020-11-23T19:17:52Z")

</div>

You’ll need to include to and from addresses to create a label for the order.

---

<div class="post-metadata">

**Author:** ![robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@robert](https://forums.ordoro.com/u/robert)\
**Post date:** [November 23, 2020, 7:35pm UTC](https://forums.ordoro.com/t/endicia-international-shipment/622/5 "2020-11-23T19:35:36Z")

</div>

Sophie, I’m a bit confused about that requirement. For domestic orders we don’t to and from addresses as they are already in Ordoro and it uses those addresses. Why do you we have to send for international shipments?

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [November 23, 2020, 7:55pm UTC](https://forums.ordoro.com/t/endicia-international-shipment/622/6 "2020-11-23T19:55:10Z")

</div>

My apologies, your order’s ship to address needs to have a valid country in order for the request to work.
