We're announcing ๐Ÿง‘โ€๐Ÿš€ inter-galactic shipping โœจ for 3025!
Cosmo Cargo Inc.
Interplanetary Shipping API

Schemas


InterplanetaryShipment

  • originPlanetstringย ยทย enumย ยทย required
    Enum values:
    Earth
    Mars
    Venus
    Mercury
    Jupiter
  • destinationPlanetstringย ยทย enumย ยทย required
    Enum values:
    Earth
    Mars
    Venus
    Mercury
    Jupiter
  • cargoobjectย ยทย required
  • shippingClassstringย ยทย enumย ยทย required

    Shipping speed class

    Enum values:
    STANDARD
    EXPRESS
    PRIORITY
  • idstringย ยทย uuidย ยทย readOnly
  • radiationShieldingboolean

    Whether cargo needs radiation shielding

    Default: true
  • statusstringย ยทย enumย ยทย readOnly
    Enum values:
    SCHEDULED
    LAUNCHED
    IN_TRANSIT
    APPROACHING
    LANDED
    DELIVERED
  • estimatedDeliverystringย ยทย date-timeย ยทย readOnly
  • trackingNumberstringย ยทย readOnly
  • createdAtstringย ยทย date-timeย ยทย readOnly

Cargo

  • weightnumberย ยทย floatย ยทย required

    Weight in metric tons

  • volumenumberย ยทย floatย ยทย required

    Volume in cubic meters

  • categorystringย ยทย enumย ยทย required
    Enum values:
    GENERAL
    HAZARDOUS
    BIOLOGICAL
    MINERAL
    EQUIPMENT
  • metadataobject

    Simple string-to-string dictionary for cargo metadata

    Example: {"manufacturer":"SpaceTech Inc","batchNumber":"ST-2024-001"}
  • safetyChecksobject

    Dictionary with fixed keys and complex value types

    Example: {"default":"Standard equipment check","radiation":{"procedure":"Radiation level check","frequency":"DAILY"}}
  • temperatureControlobject

SafetyCheck

  • procedurestring
  • frequencystringย ยทย enum
    Enum values:
    DAILY
    WEEKLY
    MONTHLY

SpecializedCargo

  • weightnumberย ยทย floatย ยทย required

    Weight in metric tons

  • volumenumberย ยทย floatย ยทย required

    Volume in cubic meters

  • categorystringย ยทย enumย ยทย required
    Enum values:
    GENERAL
    HAZARDOUS
    BIOLOGICAL
    MINERAL
    EQUIPMENT
  • specializationobjectย ยทย required
  • metadataobject

    Simple string-to-string dictionary for cargo metadata

    Example: {"manufacturer":"SpaceTech Inc","batchNumber":"ST-2024-001"}
  • safetyChecksobject

    Dictionary with fixed keys and complex value types

    Example: {"default":"Standard equipment check","radiation":{"procedure":"Radiation level check","frequency":"DAILY"}}
  • temperatureControlobject

ShippingRoute

  • routeTypestringย ยทย enumย ยทย required
    Enum values:
    DIRECT
    MULTI_HOP
  • routerequired
  • requirementsarray

Error

  • codestringย ยทย required
  • messagestringย ยทย required

PaymentMethod

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object ยท type="credit_card" ยท requires: cardNumber, expiryDate, cvv
type = object ยท type="bank_transfer" ยท requires: accountNumber, routingNumber, bankName
type = object ยท type="crypto" ยท requires: currency, walletAddress
Properties for Credit Card:
  • typestringย ยทย constย ยทย required
    Const value: credit_card
  • cardNumberstringย ยทย pattern: ^[0-9]{16}$ย ยทย required
  • expiryDatestringย ยทย pattern: ^(0[1-9]|1[0-2])/[0-โ€ฆย ยทย required
  • cvvstringย ยทย pattern: ^[0-9]{3,4}$ย ยทย required

CargoContents

anyOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object ยท state="liquid" ยท requires: viscosity, density
type = object ยท state="solid" ยท requires: hardness
type = object ยท state="gas" ยท requires: pressure
Properties for Liquid Cargo:

Properties specific to liquid cargo

  • statestringย ยทย constย ยทย required
    Const value: liquid
  • viscositynumberย ยทย min: 0ย ยทย required

    Viscosity in cP

  • densitynumberย ยทย min: 0ย ยทย required

    Density in kg/mยณ

  • flammableboolean

PrimitiveUnion

anyOf
At least one variant must match. Multiple variants may match simultaneously.

Decision Table

VariantMatching Criteria
type = string
type = number
type = boolean
Properties for Variant 1:

Text identifier

string

Text identifier

NullableString

anyOf
At least one variant must match. Multiple variants may match simultaneously.

Decision Table

VariantMatching Criteria
type = string
type = null
Properties for Variant 1:
stringย ยทย minLength: 1

FlexibleArray

anyOf
At least one variant must match. Multiple variants may match simultaneously.

Decision Table

VariantMatching Criteria
type = string
type = number
type = object ยท requires: id, value
Properties for Variant 1:
string

MixedRequirements

anyOf
At least one variant must match. Multiple variants may match simultaneously.

Decision Table

VariantMatching Criteria
type = object ยท requires: common, optionA
type = object ยท requires: common, optionB, specificToB
type = object ยท requires: common
Properties for Option A:
  • commonstringย ยทย required

    Common field across all variants

  • optionAstringย ยทย required
  • specificToAnumberย ยทย min: 0

LargeUnion

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object ยท type=1 ยท requires: data
type = object ยท type=2 ยท requires: data
type = object ยท type=3 ยท requires: data
type = object ยท type=4 ยท requires: data
type = object ยท type=5 ยท requires: data
Properties for Type 1:
  • typeconstย ยทย required
    Const value: 1
  • datastringย ยทย required

EnhancedShipment

  • originPlanetstringย ยทย enumย ยทย required
    Enum values:
    Earth
    Mars
    Venus
    Mercury
    Jupiter
  • destinationPlanetstringย ยทย enumย ยทย required
    Enum values:
    Earth
    Mars
    Venus
    Mercury
    Jupiter
  • cargoobjectย ยทย required
  • shippingClassstringย ยทย enumย ยทย required

    Shipping speed class

    Enum values:
    STANDARD
    EXPRESS
    PRIORITY
  • premiumFeaturesrequired
  • idstringย ยทย uuidย ยทย readOnly
  • radiationShieldingboolean

    Whether cargo needs radiation shielding

    Default: true
  • statusstringย ยทย enumย ยทย readOnly
    Enum values:
    SCHEDULED
    LAUNCHED
    IN_TRANSIT
    APPROACHING
    LANDED
    DELIVERED
  • estimatedDeliverystringย ยทย date-timeย ยทย readOnly
  • trackingNumberstringย ยทย readOnly
  • createdAtstringย ยทย date-timeย ยทย readOnly
  • securityOptions

    Additional security measures for the shipment

ComplexRoute

  • routeIdstringย ยทย uuidย ยทย required
  • configurationobjectย ยทย required