United States Postal Service · JSON Structure

Domestic Prices Extra Service Rate Request Structure

Request parameters for extra service rate search.

Type: object Properties: 5 Required: 2
GovernmentPostal ServiceShippingLogisticsAddress ValidationPackage Tracking

ExtraServiceRateRequest is a JSON Structure definition published by United States Postal Service, describing 5 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

originZIPCode destinationZIPCode extraServiceCode mailClass weight

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/united-states-postal-service/refs/heads/main/json-structure/domestic-prices-extra-service-rate-request-structure.json",
  "name": "ExtraServiceRateRequest",
  "description": "Request parameters for extra service rate search.",
  "properties": {
    "originZIPCode": {
      "description": "5-digit origin ZIP Code.",
      "example": "20212",
      "type": "string"
    },
    "destinationZIPCode": {
      "description": "5-digit destination ZIP Code.",
      "example": "90210",
      "type": "string"
    },
    "extraServiceCode": {
      "description": "Code identifying the extra service.",
      "example": "955",
      "type": "string"
    },
    "mailClass": {
      "description": "USPS mail class.",
      "example": "PRIORITY_MAIL",
      "type": "string"
    },
    "weight": {
      "description": "Package weight in pounds.",
      "example": 1.5,
      "type": "double"
    }
  },
  "required": [
    "extraServiceCode",
    "mailClass"
  ],
  "type": "object"
}