{
  "openapi": "3.1.0",
  "info": {
    "title": "MoovMe container moving price",
    "version": "1.0.0",
    "description": "Today's all-in price to move household goods from an address in the USA to a destination abroad in a full 20ft or 40ft container. No key, no sign-up: open the URL. An estimate from the ocean carrier's live rate plus MoovMe's charges, confirmed in writing before booking. Shipping by Atlantic Express Corp, an FMC-licensed NVOCC.",
    "contact": {
      "email": "quote@moovme.net",
      "url": "https://moovme.net"
    }
  },
  "servers": [
    {
      "url": "https://moovme.net"
    }
  ],
  "paths": {
    "/api/agent/price": {
      "get": {
        "operationId": "getContainerPrice",
        "summary": "Price a full-container household move from the USA",
        "description": "Without from and to, returns instructions. The answer has a one-sentence summary, the all-in USD price, transit days, what is and is not included, and quoteUrl: the MoovMe calculator with the route filled in, where the customer books or asks for a confirmed quote.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": true,
            "description": "US city where the container is loaded at the customer address: \"Chicago\", \"Dallas, TX\" or a UN/LOCODE such as USCHI.",
            "schema": {
              "type": "string"
            },
            "example": "Chicago"
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "description": "Destination outside the USA: city or port name (\"Hamburg\", \"Vienna\", \"Split, HR\") or a UN/LOCODE such as DEHAM.",
            "schema": {
              "type": "string"
            },
            "example": "Hamburg"
          },
          {
            "name": "container",
            "in": "query",
            "description": "Container size.",
            "schema": {
              "type": "string",
              "enum": [
                "20",
                "40",
                "40HC"
              ],
              "default": "40"
            }
          },
          {
            "name": "units",
            "in": "query",
            "description": "Number of containers.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5,
              "default": 1
            }
          },
          {
            "name": "delivery",
            "in": "query",
            "description": "port: collected at the destination port; door: delivered to an address. Default: port for a seaport, otherwise door.",
            "schema": {
              "type": "string",
              "enum": [
                "port",
                "door"
              ]
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "json (default) or text.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "text"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A price (ok: true), or ok: false with a summary saying why and where to ask for a quote.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "price": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "currency": {
                          "type": "string",
                          "example": "USD"
                        },
                        "for": {
                          "type": "string"
                        }
                      }
                    },
                    "transitDays": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "pickup": {
                      "type": "string"
                    },
                    "delivery": {
                      "type": "string"
                    },
                    "includes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "notIncluded": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "quoteUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "estimateId": {
                      "type": "string"
                    },
                    "terms": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "A place or size not understood; summary says what to change."
          },
          "429": {
            "description": "Too many checks from one connection; try again in 15 minutes."
          }
        }
      }
    },
    "/api/agent/price/{from}/{to}/{container}/{delivery}": {
      "get": {
        "operationId": "getContainerPriceByPath",
        "summary": "The same price as a plain path, without ? or &",
        "description": "Example: /api/agent/price/USCHI/DEHAM/40/port or /api/agent/price/new-york/vienna/40/door. Names take hyphens for spaces. Same answer as the query form.",
        "parameters": [
          {
            "name": "from",
            "in": "path",
            "required": true,
            "description": "US city name or UN/LOCODE.",
            "schema": {
              "type": "string"
            },
            "example": "USCHI"
          },
          {
            "name": "to",
            "in": "path",
            "required": true,
            "description": "Destination city or port name, or UN/LOCODE.",
            "schema": {
              "type": "string"
            },
            "example": "DEHAM"
          },
          {
            "name": "container",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "20",
                "40",
                "40HC"
              ]
            },
            "example": "40"
          },
          {
            "name": "delivery",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "port",
                "door"
              ]
            },
            "example": "port"
          }
        ],
        "responses": {
          "200": {
            "description": "As for /api/agent/price."
          },
          "400": {
            "description": "A place or size not understood."
          }
        }
      }
    }
  }
}
