ShipmentRate metafields

We provide a metafields array for ShipmentRate which includes additional information about a rate given to us by the carrier. For these fields we can't provide a standardized interface, but provide them through this array.

Querying the metafields

circle-info

We have removed all other fields in the mutation for brevity purposes.

mutation createShipment($input: ShipmentCreateInput!) {
  shipmentCreate(input: $input) {
    shipment {
      rates {
        metafields {
          key
          value
          valueType
        }
      }
    }
  }
}

Data reference

Metafield reference

Field

Type

​Description

key

String

The key name for a metafield.

value

String

The value of the metafield.

valueType

MetaFieldValue

Represents the metafield value type.

MetafieldValue reference values

Value

​Description

INTEGER

An integer.

JSON_STRING

A JSON string.

STRING

A string.

Carrier references

99minutos reference

Field

Type

​Description

packageSize

String

Size of the package that will be used and billed, can be: xs, s, m, l, xl

Last updated