# What is the correct field to load the carrier from?

**URL:** <https://developer-forum.veeqo.com/t/what-is-the-correct-field-to-load-the-carrier-from/1071>\
**Category:** API Queries (How To)\
**Created:** [June 12, 2024, 5:07pm UTC](https://developer-forum.veeqo.com/t/what-is-the-correct-field-to-load-the-carrier-from/1071 "2024-06-12T17:07:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thopkirk](https://avatars.discourse-cdn.com/v4/letter/t/FF9900/32.png) [@thopkirk](https://developer-forum.veeqo.com/u/thopkirk)\
**Post date:** [June 12, 2024, 5:07pm UTC](https://developer-forum.veeqo.com/t/what-is-the-correct-field-to-load-the-carrier-from/1071/1 "2024-06-12T17:07:00Z")

</div>

Dumb question probably, but what is the correct field to load the carrier from on a shipment? Under the Shipment object, there are all of these.

```
    "shipment": {
      "id": 207603116,
      "updated_at": "2024-01-11T20:36:38.030Z",
      "created_at": "2024-01-11T20:36:37.941Z",
      "allocation_id": 210207206,
      "carrier_id": 33,
      "shipped_by_id": 95712,
      "parcel_format": null,
      "postal_class": null,
      "weight": 1111.3013065,
      "collection_manifest_id": null,
      "carrier_service_id": null,
      "service_type": "amazon_shipping_v2-a0d64236-e314-453b-9eca-f651241e104d",
      "service_name": "USPS Priority Mail Legal Flat Rate Envelope",
      "short_service_name": "USPS Priority Mail Legal Flat Rate Envelope",
      "service_carrier_name": "usps",
      "sub_carrier_id": "USPS",

```

but then also this

```
      "carrier": {
        "id": 33,
        "created_at": "2022-05-10T09:20:24.056Z",
        "updated_at": "2023-03-16T09:38:43.263Z",
        "provider_type": "amazon_shipping_v2",
        "slug": "buy-shipping",
        "name": "Buy Shipping",
        "is_configured?": true,
        "is_integrated?": true,
        "show_when_shipping?": true,
        "inbound_supported": true,
        "shipping_service_options": null

```

---

<div class="post-metadata">

**Author:** ![fullsam](https://avatars.discourse-cdn.com/v4/letter/f/232F3E/32.png) [@fullsam](https://developer-forum.veeqo.com/u/fullsam)\
**Post date:** [June 17, 2024, 1:12pm UTC](https://developer-forum.veeqo.com/t/what-is-the-correct-field-to-load-the-carrier-from/1071/2 "2024-06-17T13:12:12Z")

</div>

Hey @thopkirk,  
The `shipment` object contains the information about the carrier, including the name of the service and any value added services.  
If you purchase a label through Buy Shipping then the `carrier` object will contain information about the Buy Shipping carrier. If you bought the label through your own carrier account then the `carrier` object will contain information about the carrier pertaining to your account.

---

<div class="post-metadata">

**Author:** ![thopkirk](https://avatars.discourse-cdn.com/v4/letter/t/FF9900/32.png) [@thopkirk](https://developer-forum.veeqo.com/u/thopkirk)\
**Post date:** [June 17, 2024, 5:26pm UTC](https://developer-forum.veeqo.com/t/what-is-the-correct-field-to-load-the-carrier-from/1071/3 "2024-06-17T17:26:18Z")

</div>

@fullsam Thanks for your reply. So this was the same shipment, label bought through Buy Shipping for USPS. So then I assume the “sub\_carrier\_id” field in the shipment object would be the way to go? That way regardless of if the label was bought through Buy Shipping or the shipper used their own account, the Shipment object would always have the correct carrier value?
