API key authentication using the ShippoToken scheme.
Format: Authorization: ShippoToken <API_TOKEN>
Example: Authorization: ShippoToken shippo_live_abc123
Headers
SHIPPO-API-VERSION
string
default:2018-02-08
Optional string used to pick a non-default API version to use. See our API version guide.
Example:
"2018-02-08"
SHIPPO-ACCOUNT-ID
string
Optional. The object ID of a Managed Shippo Account. Platform accounts set this to make the request on behalf of one of their managed accounts. See the Platform accounts guide.
Body
application/json
Order details.
placed_at
string
required
Date and time when the order was placed. This datetime can be different from the datetime of the order object creation on Shippo.
Example:
"2016-09-23T01:28:12Z"
to_address
object
required
Address object of the recipient / buyer. Will be returned expanded by default.
Show child attributes
currency
string
Required if total_price is provided
Currency of the total_price and total_tax amounts.
Example:
"USD"
notes
string
Custom buyer- or seller-provided notes about the order.
Example:
"This customer is a VIP"
order_number
string
An alphanumeric identifier for the order used by the seller/buyer. This identifier doesn't need to be unique.
Example:
"#1068"
order_status
enum<string>
Current state of the order. See the orders tutorial for the logic of how the status is handled.
Available options:
UNKNOWN,
AWAITPAY,
PAID,
REFUNDED,
CANCELLED,
PARTIALLY_FULFILLED,
SHIPPED
Example:
"PAID"
shipping_cost
string
Amount paid by the buyer for shipping. This amount can be different from the price the seller will actually pay for shipping.
Example:
"12.83"
shipping_cost_currency
string
Required if shipping_cost is provided
Currency of the shipping_cost amount.
Example:
"USD"
shipping_method
string
Shipping method (carrier + service or other free text description) chosen by the buyer.
This value can be different from the shipping method the seller will actually choose.
Example:
"USPS First Class Package"
subtotal_price
string
Example:
"12.1"
total_price
string
Total amount paid by the buyer for this order.
Example:
"24.93"
total_tax
string
Total tax amount paid by the buyer for this order.
Example:
"0.0"
weight
string
Total weight of the order.
Example:
"0.4"
weight_unit
enum<string>
The unit used for weight.
Available options:
g,
kg,
lb,
oz
Example:
"lb"
from_address
object
Address object of the sender / seller. Will be returned expanded by default..
Show child attributes
line_items
object[]
Array of line item objects representing the items in this order.
All objects will be returned expanded by default.
Show child attributes
Response
Order
placed_at
string
required
Date and time when the order was placed. This datetime can be different from the datetime of the order object creation on Shippo.
Example:
"2016-09-23T01:28:12Z"
to_address
object
required
Address object of the recipient / buyer. Will be returned expanded by default.
Show child attributes
currency
string
Required if total_price is provided
Currency of the total_price and total_tax amounts.
Example:
"USD"
notes
string
Custom buyer- or seller-provided notes about the order.
Example:
"This customer is a VIP"
order_number
string
An alphanumeric identifier for the order used by the seller/buyer. This identifier doesn't need to be unique.
Example:
"#1068"
order_status
enum<string>
Current state of the order. See the orders tutorial for the logic of how the status is handled.
Available options:
UNKNOWN,
AWAITPAY,
PAID,
REFUNDED,
CANCELLED,
PARTIALLY_FULFILLED,
SHIPPED
Example:
"PAID"
shipping_cost
string
Amount paid by the buyer for shipping. This amount can be different from the price the seller will actually pay for shipping.
Example:
"12.83"
shipping_cost_currency
string
Required if shipping_cost is provided
Currency of the shipping_cost amount.
Example:
"USD"
shipping_method
string
Shipping method (carrier + service or other free text description) chosen by the buyer.
This value can be different from the shipping method the seller will actually choose.
Example:
"USPS First Class Package"
subtotal_price
string
Example:
"12.1"
total_price
string
Total amount paid by the buyer for this order.
Example:
"24.93"
total_tax
string
Total tax amount paid by the buyer for this order.
Example:
"0.0"
weight
string
Total weight of the order.
Example:
"0.4"
weight_unit
enum<string>
The unit used for weight.
Available options:
g,
kg,
lb,
oz
Example:
"lb"
from_address
object
Address object of the sender / seller. Will be returned expanded by default.
Show child attributes
line_items
Line Item · object[]
Array of line item objects representing the items in this order.
All objects will be returned expanded by default.
Show child attributes
object_id
string
Unique identifier of the order object.
Example:
"adcfdddf8ec64b84ad22772bce3ea37a"
object_owner
string
Username of the user who created the object.
Example:
"shippotle@shippo.com"
shop_app
enum<string>
Platform the order was created on and, if applicable, imported from.
Orders created via the Shippo API or dashboard will have the value "Shippo".
Available options:
Amazon,
Bigcommerce,
CSV_Import,
eBay,
ePages,
Etsy,
Godaddy,
Magento,
Shippo,
Shopify,
Spreecommerce,
StripeRelay,
Walmart,
Weebly,
WooCommerce
Example:
"Shippo"
transactions
object[]
Array of transaction objects representing all shipping labels purchased for this order.
All objects are returned expanded with a limited number of fields by default.
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Shippo API Documentation","description":"Shippo is a multi-carrier shipping API for rates, labels, tracking, address validation, and customs across 40+ carriers, available over REST, official SDKs, or natural language through the hosted Shippo MCP server at mcp.shippo.com (OAuth) for AI assistants and agents.","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/shippo-f4b7b609/CzPpJjP8aG1OLSSj/logo/light.svg?fit=max\u0026auto=format\u0026n=CzPpJjP8aG1OLSSj\u0026q=85\u0026s=2fe6acfa46f91132348a2f3bf5f1b18a","dark":"https://mintcdn.com/shippo-f4b7b609/CzPpJjP8aG1OLSSj/logo/dark.svg?fit=max\u0026auto=format\u0026n=CzPpJjP8aG1OLSSj\u0026q=85\u0026s=3d04ad869d96fc212c40d790ac14a6ef"},"favicon":"https://mintcdn.com/shippo-f4b7b609/MNzp7C4JbkmwernT/favicon.svg?fit=max\u0026auto=format\u0026n=MNzp7C4JbkmwernT\u0026q=85\u0026s=5b633a85ae6f5c45472dcb5720a3caa6","navbar":{"primary":{"type":"button","label":"Get Started","href":"https://apps.goshippo.com/join"}},"seo":{"metatags":{"canonical":"https://docs.goshippo.com"},"organization":{"id":"https://goshippo.com/#organization","name":"Shippo","legalName":"Shippo, Inc.","url":"https://goshippo.com","logo":"https://docs.goshippo.com/logo/light.svg","sameAs":["https://www.linkedin.com/company/shippo","https://x.com/goshippo","https://github.com/goshippo"]},"indexing":"navigable"},"fonts":{"heading":{"family":"Rethink Sans","weight":700},"body":{"family":"Neue Haas Unica","weight":400,"source":"fonts/NeueHaasUnica-Regular.woff2","format":"woff2"}},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity",{"title":"Connect Shippo MCP","description":"Set up the hosted Shippo MCP server (mcp.shippo.com): rates, labels, and tracking from your AI client","icon":"sparkles","href":"https://docs.goshippo.com/guides/mcp-server"},"download-spec"],"display":"header"},"metadata":{"timestamp":true},"markdown":{"instructions":"Shippo is a multi-carrier shipping API. For agent integrations that execute shipping operations (rates, labels, tracking, address validation, customs), connect the hosted Shippo MCP server at https://mcp.shippo.com (per-user OAuth; setup at /guides/mcp-server). To search and read this documentation from an agent, a docs search MCP is available at https://docs.goshippo.com/mcp. Shipping workflow knowledge (agent skills and a knowledge pack) is published at https://github.com/goshippo/ai. For REST integrations start at /guides/api-quickstart; test mode uses shippo_test_ API keys."},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"shippo-f4b7b609","hasAudioNarration":false,"actualSubdomain":"shippo-f4b7b609","customDomains":["docs.goshippo.com"],"gitSource":{"type":"github","owner":"goshippo","repo":"api-metadata-specs","deployBranch":"master","contentDirectory":"mintlify","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true,"contextualFeedback":{"allowEmail":true}},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aff44e01325fbb87b9be3b9","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Documentation","count":125},{"language":"default","tag":"API Reference","count":97},{"language":"default","tag":"Guides","count":91},{"language":"default","tag":"Shippo API","count":74},{"language":"default","tag":"Carriers","count":24},{"language":"default","tag":"Shipping Elements","count":20},{"language":"default","tag":"Shipments","count":16},{"language":"default","tag":"Concepts","count":15},{"language":"default","tag":"Reporting API","count":15},{"language":"default","tag":"Integration guides","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@shippo.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"69b9aa85e87230effc9b2684","deploymentId":"69b97e1329ae8a96c1f2f28f","questionText":"Can you walk me through how to add a customs declaration?","status":"active","generatedBy":"manual","createdAt":"2026-03-17T19:24:53.544Z","updatedAt":"2026-03-17T19:24:53.544Z","__v":0},{"_id":"69b9aa56e87230effc9b25c8","deploymentId":"69b97e1329ae8a96c1f2f28f","questionText":"How can I check which carriers are enabled on my account?","status":"active","generatedBy":"manual","createdAt":"2026-03-17T19:24:06.090Z","updatedAt":"2026-03-18T00:30:13.282Z","__v":0},{"_id":"69b9aa4ee87230effc9b25a3","deploymentId":"69b97e1329ae8a96c1f2f28f","questionText":"How do I get started with purchasing a label?","status":"active","generatedBy":"manual","createdAt":"2026-03-17T19:23:58.178Z","updatedAt":"2026-03-17T19:23:58.178Z","__v":0}],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":"#navbar img{height:32px!important;width:auto!important}.dark .mdx-content img:not([class]),.dark .mdx-content img[class=\"\"],.dark article img:not([class]),.dark article img[class=\"\"]{background:rgba(255, 255, 255, 0.9);border-radius:8px;padding:12px}@font-face{font-family:\"Neue Haas Unica\";src:url(\"/fonts/NeueHaasUnica-SemiBold.woff2\") format(\"woff2\");font-weight:600 700;font-display:swap}strong,b{font-weight:600}.endpoint-table td:nth-child(2),.endpoint-table code{white-space:nowrap}.endpoint-table td:first-child{min-width:0}.workflow-table code{white-space:nowrap}.workflow-table td:nth-child(2){min-width:0}"}]}
{"page":{"pagePath":"api-reference/orders/create-a-new-order","slug":"/api-reference/orders/create-a-new-order","pageMetadata":{"title":"Create a new order","description":"Creates a new order object.","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /orders","href":"/api-reference/orders/create-a-new-order","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creates a new order object.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a new order","description":"Creates a new order object.","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /orders","href":"/api-reference/orders/create-a-new-order","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Creates a new order object.","operationId":"CreateOrder","parameters":["8a508d1b-a8d0-42de-9c93-655277e6eaf0","105869cf-11a6-4b05-a1c6-fc773a8e79a7"],"requestBody":"1f35bf09-d943-43a7-98b9-6d239b4ffc4f","responses":{"201":"e50e4362-099d-4e13-bfde-194506399d17","400":"e8e1df23-55b8-4381-8f90-9826af1c7ad4"},"summary":"Create a new order","tags":["Orders"],"x-codeSamples":[{"label":"cURL","lang":"cURL","source":"curl https://api.goshippo.com/orders/ \\\n-H \"Authorization: ShippoToken \u003cAPI_TOKEN>\" \\\n-d '{\n \"to_address\": {\n \"city\": \"San Francisco\",\n \"company\": \"Shippo\",\n \"country\": \"US\",\n \"email\": \"shippotle@shippo.com\",\n \"name\": \"Mr Hippo\",\n \"phone\": \"15553419393\",\n \"state\": \"CA\",\n \"street1\": \"215 Clayton St.\",\n \"zip\": \"94117\"\n },\n \"line_items\": [\n {\n \"quantity\": 1,\n \"sku\": \"HM-123\",\n \"title\": \"Hippo Magazines\",\n \"total_price\": \"12.10\",\n \"currency\": \"USD\",\n \"weight\": \"0.40\",\n \"weight_unit\": \"lb\"\n }\n ],\n \"placed_at\": \"2016-09-23T01:28:12Z\",\n \"order_number\": \"#1068\",\n \"order_status\": \"PAID\",\n \"shipping_cost\": \"12.83\",\n \"shipping_cost_currency\": \"USD\",\n \"shipping_method\": \"USPS First Class Package\",\n \"subtotal_price\": \"12.10\",\n \"total_price\": \"24.93\",\n \"total_tax\": \"0.00\",\n \"currency\": \"USD\",\n \"weight\": \"0.40\",\n \"weight_unit\": \"lb\"\n }'"},{"lang":"python","label":"Python","source":"import dateutil.parser\nimport shippo\nfrom shippo.models import components\n\ns = shippo.Shippo(\n api_key_header='ShippoToken \u003cAPI_TOKEN>',\n shippo_api_version='2018-02-08',\n)\n\n\nres = s.orders.create(request=components.OrderCreateRequest(\n currency='USD',\n notes='This customer is a VIP',\n order_number='#1068',\n order_status=components.OrderStatusEnum.PAID,\n placed_at='2016-09-23T01:28:12Z',\n shipping_cost='12.83',\n shipping_cost_currency='USD',\n shipping_method='USPS First Class Package',\n subtotal_price='12.1',\n total_price='24.93',\n total_tax='0.0',\n weight='0.4',\n weight_unit=components.WeightUnitEnum.LB,\n from_address=components.AddressCreateRequest(\n name='Shwan Ippotle',\n company='Shippo',\n street1='215 Clayton St.',\n street3='',\n street_no='',\n city='San Francisco',\n state='CA',\n zip='94117',\n country='US',\n phone='+1 555 341 9393',\n email='shippotle@shippo.com',\n is_residential=True,\n metadata='Customer ID 123456',\n validate=True,\n ),\n to_address=components.AddressCreateRequest(\n name='Shwan Ippotle',\n company='Shippo',\n street1='215 Clayton St.',\n street3='',\n street_no='',\n city='San Francisco',\n state='CA',\n zip='94117',\n country='US',\n phone='+1 555 341 9393',\n email='shippotle@shippo.com',\n is_residential=True,\n metadata='Customer ID 123456',\n validate=True,\n ),\n line_items=[\n components.LineItemBase(\n currency='USD',\n manufacture_country='US',\n max_delivery_time=dateutil.parser.isoparse('2016-07-23T00:00:00Z'),\n max_ship_time=dateutil.parser.isoparse('2016-07-23T00:00:00Z'),\n quantity=20,\n sku='HM-123',\n title='Hippo Magazines',\n total_price='12.1',\n variant_title='June Edition',\n weight='0.4',\n weight_unit=components.WeightUnitEnum.LB,\n ),\n ],\n))\n\nif res is not None:\n # handle response\n pass"},{"lang":"typescript","label":"Typescript","source":"import { Shippo } from \"shippo\";\n\nconst shippo = new Shippo({\n apiKeyHeader: \"ShippoToken \u003cAPI_TOKEN>\",\n shippoApiVersion: \"2018-02-08\",\n});\n\nasync function run() {\n const result = await shippo.orders.create({\n currency: \"USD\",\n notes: \"This customer is a VIP\",\n orderNumber: \"#1068\",\n orderStatus: \"PAID\",\n placedAt: \"2016-09-23T01:28:12Z\",\n shippingCost: \"12.83\",\n shippingCostCurrency: \"USD\",\n shippingMethod: \"USPS First Class Package\",\n subtotalPrice: \"12.1\",\n totalPrice: \"24.93\",\n totalTax: \"0.0\",\n weight: \"0.4\",\n weightUnit: \"lb\",\n fromAddress: {\n name: \"Shwan Ippotle\",\n company: \"Shippo\",\n street1: \"215 Clayton St.\",\n street3: \"\",\n streetNo: \"\",\n city: \"San Francisco\",\n state: \"CA\",\n zip: \"94117\",\n country: \"US\",\n phone: \"+1 555 341 9393\",\n email: \"shippotle@shippo.com\",\n isResidential: true,\n metadata: \"Customer ID 123456\",\n validate: true,\n },\n toAddress: {\n name: \"Shwan Ippotle\",\n company: \"Shippo\",\n street1: \"215 Clayton St.\",\n street3: \"\",\n streetNo: \"\",\n city: \"San Francisco\",\n state: \"CA\",\n zip: \"94117\",\n country: \"US\",\n phone: \"+1 555 341 9393\",\n email: \"shippotle@shippo.com\",\n isResidential: true,\n metadata: \"Customer ID 123456\",\n validate: true,\n },\n lineItems: [\n {\n currency: \"USD\",\n manufactureCountry: \"US\",\n maxDeliveryTime: new Date(\"2016-07-23T00:00:00Z\"),\n maxShipTime: new Date(\"2016-07-23T00:00:00Z\"),\n quantity: 20,\n sku: \"HM-123\",\n title: \"Hippo Magazines\",\n totalPrice: \"12.1\",\n variantTitle: \"June Edition\",\n weight: \"0.4\",\n weightUnit: \"lb\",\n },\n ],\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"},{"lang":"csharp","label":"C#","source":"using Shippo;\nusing Shippo.Models.Components;\nusing System;\nusing System.Collections.Generic;\n\nvar sdk = new ShippoSDK(\n apiKeyHeader: \"ShippoToken \u003cAPI_TOKEN>\",\n shippoApiVersion: \"2018-02-08\"\n);\n\nvar res = await sdk.Orders.CreateAsync(\n orderCreateRequest: new OrderCreateRequest() {\n Currency = \"USD\",\n Notes = \"This customer is a VIP\",\n OrderNumber = \"#1068\",\n OrderStatus = OrderStatusEnum.Paid,\n PlacedAt = \"2016-09-23T01:28:12Z\",\n ShippingCost = \"12.83\",\n ShippingCostCurrency = \"USD\",\n ShippingMethod = \"USPS First Class Package\",\n SubtotalPrice = \"12.1\",\n TotalPrice = \"24.93\",\n TotalTax = \"0.0\",\n Weight = \"0.4\",\n WeightUnit = WeightUnitEnum.Lb,\n FromAddress = new AddressCreateRequest() {\n Name = \"Shwan Ippotle\",\n Company = \"Shippo\",\n Street1 = \"215 Clayton St.\",\n Street3 = \"\",\n StreetNo = \"\",\n City = \"San Francisco\",\n State = \"CA\",\n Zip = \"94117\",\n Country = \"US\",\n Phone = \"+1 555 341 9393\",\n Email = \"shippotle@shippo.com\",\n IsResidential = true,\n Metadata = \"Customer ID 123456\",\n Validate = true,\n },\n ToAddress = new AddressCreateRequest() {\n Name = \"Shwan Ippotle\",\n Company = \"Shippo\",\n Street1 = \"215 Clayton St.\",\n Street3 = \"\",\n StreetNo = \"\",\n City = \"San Francisco\",\n State = \"CA\",\n Zip = \"94117\",\n Country = \"US\",\n Phone = \"+1 555 341 9393\",\n Email = \"shippotle@shippo.com\",\n IsResidential = true,\n Metadata = \"Customer ID 123456\",\n Validate = true,\n },\n LineItems = new List\u003cLineItemBase>() {\n new LineItemBase() {\n Currency = \"USD\",\n ManufactureCountry = \"US\",\n MaxDeliveryTime = System.DateTime.Parse(\"2016-07-23T00:00:00Z\"),\n MaxShipTime = System.DateTime.Parse(\"2016-07-23T00:00:00Z\"),\n Quantity = 20,\n Sku = \"HM-123\",\n Title = \"Hippo Magazines\",\n TotalPrice = \"12.1\",\n VariantTitle = \"June Edition\",\n Weight = \"0.4\",\n WeightUnit = WeightUnitEnum.Lb,\n },\n },\n },\n shippoApiVersion: \"2018-02-08\"\n);\n\n// handle response"},{"lang":"php","label":"PHP","source":"declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Shippo\\API;\nuse Shippo\\API\\Models\\Components;\nuse Shippo\\API\\Utils;\n\n$sdk = API\\Shippo::builder()\n ->setSecurity(\n 'ShippoToken \u003cAPI_TOKEN>'\n )\n ->setShippoApiVersion('2018-02-08')\n ->build();\n\n$orderCreateRequest = new Components\\OrderCreateRequest(\n currency: 'USD',\n notes: 'This customer is a VIP',\n orderNumber: '#1068',\n orderStatus: Components\\OrderStatusEnum::Paid,\n placedAt: '2016-09-23T01:28:12Z',\n shippingCost: '12.83',\n shippingCostCurrency: 'USD',\n shippingMethod: 'USPS First Class Package',\n subtotalPrice: '12.1',\n totalPrice: '24.93',\n totalTax: '0.0',\n weight: '0.4',\n weightUnit: Components\\WeightUnitEnum::Lb,\n fromAddress: new Components\\AddressCreateRequest(\n name: 'Shwan Ippotle',\n company: 'Shippo',\n street1: '215 Clayton St.',\n street3: '',\n streetNo: '',\n city: 'San Francisco',\n state: 'CA',\n zip: '94117',\n country: 'US',\n phone: '+1 555 341 9393',\n email: 'shippotle@shippo.com',\n isResidential: true,\n metadata: 'Customer ID 123456',\n validate: true,\n ),\n toAddress: new Components\\AddressCreateRequest(\n name: 'Shwan Ippotle',\n company: 'Shippo',\n street1: '215 Clayton St.',\n street3: '',\n streetNo: '',\n city: 'San Francisco',\n state: 'CA',\n zip: '94117',\n country: 'US',\n phone: '+1 555 341 9393',\n email: 'shippotle@shippo.com',\n isResidential: true,\n metadata: 'Customer ID 123456',\n validate: true,\n ),\n lineItems: [\n new Components\\LineItemBase(\n currency: 'USD',\n manufactureCountry: 'US',\n maxDeliveryTime: Utils\\Utils::parseDateTime('2016-07-23T00:00:00Z'),\n maxShipTime: Utils\\Utils::parseDateTime('2016-07-23T00:00:00Z'),\n quantity: 20,\n sku: 'HM-123',\n title: 'Hippo Magazines',\n totalPrice: '12.1',\n variantTitle: 'June Edition',\n weight: '0.4',\n weightUnit: Components\\WeightUnitEnum::Lb,\n ),\n ],\n);\n\n$response = $sdk->orders->create(\n orderCreateRequest: $orderCreateRequest,\n shippoApiVersion: '2018-02-08'\n\n);\n\nif ($response->order !== null) {\n // handle response\n}"},{"lang":"java","label":"Java","source":"package hello.world;\n\nimport com.goshippo.shippo_sdk.Shippo;\nimport com.goshippo.shippo_sdk.models.components.AddressCreateRequest;\nimport com.goshippo.shippo_sdk.models.components.LineItemBase;\nimport com.goshippo.shippo_sdk.models.components.OrderCreateRequest;\nimport com.goshippo.shippo_sdk.models.components.OrderStatusEnum;\nimport com.goshippo.shippo_sdk.models.components.WeightUnitEnum;\nimport com.goshippo.shippo_sdk.models.operations.CreateOrderResponse;\nimport java.lang.Exception;\nimport java.time.OffsetDateTime;\nimport java.util.List;\n\npublic class Application {\n\n public static void main(String[] args) throws Exception {\n\n Shippo sdk = Shippo.builder()\n .apiKeyHeader(\"ShippoToken \u003cAPI_TOKEN>\")\n .shippoApiVersion(\"2018-02-08\")\n .build();\n\n CreateOrderResponse res = sdk.orders().create()\n .shippoApiVersion(\"2018-02-08\")\n .orderCreateRequest(OrderCreateRequest.builder()\n .placedAt(\"2016-09-23T01:28:12Z\")\n .toAddress(AddressCreateRequest.builder()\n .country(\"US\")\n .name(\"Shwan Ippotle\")\n .company(\"Shippo\")\n .street1(\"215 Clayton St.\")\n .street3(\"\")\n .streetNo(\"\")\n .city(\"San Francisco\")\n .state(\"CA\")\n .zip(\"94117\")\n .phone(\"+1 555 341 9393\")\n .email(\"shippotle@shippo.com\")\n .isResidential(true)\n .metadata(\"Customer ID 123456\")\n .validate(true)\n .build())\n .currency(\"USD\")\n .notes(\"This customer is a VIP\")\n .orderNumber(\"#1068\")\n .orderStatus(OrderStatusEnum.PAID)\n .shippingCost(\"12.83\")\n .shippingCostCurrency(\"USD\")\n .shippingMethod(\"USPS First Class Package\")\n .subtotalPrice(\"12.1\")\n .totalPrice(\"24.93\")\n .totalTax(\"0.0\")\n .weight(\"0.4\")\n .weightUnit(WeightUnitEnum.LB)\n .fromAddress(AddressCreateRequest.builder()\n .country(\"US\")\n .name(\"Shwan Ippotle\")\n .company(\"Shippo\")\n .street1(\"215 Clayton St.\")\n .street3(\"\")\n .streetNo(\"\")\n .city(\"San Francisco\")\n .state(\"CA\")\n .zip(\"94117\")\n .phone(\"+1 555 341 9393\")\n .email(\"shippotle@shippo.com\")\n .isResidential(true)\n .metadata(\"Customer ID 123456\")\n .validate(true)\n .build())\n .lineItems(List.of(\n LineItemBase.builder()\n .currency(\"USD\")\n .manufactureCountry(\"US\")\n .maxDeliveryTime(OffsetDateTime.parse(\"2016-07-23T00:00:00Z\"))\n .maxShipTime(OffsetDateTime.parse(\"2016-07-23T00:00:00Z\"))\n .quantity(20L)\n .sku(\"HM-123\")\n .title(\"Hippo Magazines\")\n .totalPrice(\"12.1\")\n .variantTitle(\"June Edition\")\n .weight(\"0.4\")\n .weightUnit(WeightUnitEnum.LB)\n .build()))\n .build())\n .call();\n\n if (res.order().isPresent()) {\n // handle response\n }\n }\n}"}],"method":"post","type":"path","servers":["88cebe76-92b1-483c-b133-3935b3b6f9e7"],"security":["e2ef846a-30d0-4cc0-909f-43265afde08a"],"path":"/orders","baseUrlOptions":["https://api.goshippo.com"],"title":"Create a new order","codeSamples":[{"label":"cURL","lang":"cURL","source":"curl https://api.goshippo.com/orders/ \\\n-H \"Authorization: ShippoToken \u003cAPI_TOKEN>\" \\\n-d '{\n \"to_address\": {\n \"city\": \"San Francisco\",\n \"company\": \"Shippo\",\n \"country\": \"US\",\n \"email\": \"shippotle@shippo.com\",\n \"name\": \"Mr Hippo\",\n \"phone\": \"15553419393\",\n \"state\": \"CA\",\n \"street1\": \"215 Clayton St.\",\n \"zip\": \"94117\"\n },\n \"line_items\": [\n {\n \"quantity\": 1,\n \"sku\": \"HM-123\",\n \"title\": \"Hippo Magazines\",\n \"total_price\": \"12.10\",\n \"currency\": \"USD\",\n \"weight\": \"0.40\",\n \"weight_unit\": \"lb\"\n }\n ],\n \"placed_at\": \"2016-09-23T01:28:12Z\",\n \"order_number\": \"#1068\",\n \"order_status\": \"PAID\",\n \"shipping_cost\": \"12.83\",\n \"shipping_cost_currency\": \"USD\",\n \"shipping_method\": \"USPS First Class Package\",\n \"subtotal_price\": \"12.10\",\n \"total_price\": \"24.93\",\n \"total_tax\": \"0.00\",\n \"currency\": \"USD\",\n \"weight\": \"0.40\",\n \"weight_unit\": \"lb\"\n }'"},{"label":"Python","lang":"python","source":"import dateutil.parser\nimport shippo\nfrom shippo.models import components\n\ns = shippo.Shippo(\n api_key_header='ShippoToken \u003cAPI_TOKEN>',\n shippo_api_version='2018-02-08',\n)\n\n\nres = s.orders.create(request=components.OrderCreateRequest(\n currency='USD',\n notes='This customer is a VIP',\n order_number='#1068',\n order_status=components.OrderStatusEnum.PAID,\n placed_at='2016-09-23T01:28:12Z',\n shipping_cost='12.83',\n shipping_cost_currency='USD',\n shipping_method='USPS First Class Package',\n subtotal_price='12.1',\n total_price='24.93',\n total_tax='0.0',\n weight='0.4',\n weight_unit=components.WeightUnitEnum.LB,\n from_address=components.AddressCreateRequest(\n name='Shwan Ippotle',\n company='Shippo',\n street1='215 Clayton St.',\n street3='',\n street_no='',\n city='San Francisco',\n state='CA',\n zip='94117',\n country='US',\n phone='+1 555 341 9393',\n email='shippotle@shippo.com',\n is_residential=True,\n metadata='Customer ID 123456',\n validate=True,\n ),\n to_address=components.AddressCreateRequest(\n name='Shwan Ippotle',\n company='Shippo',\n street1='215 Clayton St.',\n street3='',\n street_no='',\n city='San Francisco',\n state='CA',\n zip='94117',\n country='US',\n phone='+1 555 341 9393',\n email='shippotle@shippo.com',\n is_residential=True,\n metadata='Customer ID 123456',\n validate=True,\n ),\n line_items=[\n components.LineItemBase(\n currency='USD',\n manufacture_country='US',\n max_delivery_time=dateutil.parser.isoparse('2016-07-23T00:00:00Z'),\n max_ship_time=dateutil.parser.isoparse('2016-07-23T00:00:00Z'),\n quantity=20,\n sku='HM-123',\n title='Hippo Magazines',\n total_price='12.1',\n variant_title='June Edition',\n weight='0.4',\n weight_unit=components.WeightUnitEnum.LB,\n ),\n ],\n))\n\nif res is not None:\n # handle response\n pass"},{"label":"Typescript","lang":"typescript","source":"import { Shippo } from \"shippo\";\n\nconst shippo = new Shippo({\n apiKeyHeader: \"ShippoToken \u003cAPI_TOKEN>\",\n shippoApiVersion: \"2018-02-08\",\n});\n\nasync function run() {\n const result = await shippo.orders.create({\n currency: \"USD\",\n notes: \"This customer is a VIP\",\n orderNumber: \"#1068\",\n orderStatus: \"PAID\",\n placedAt: \"2016-09-23T01:28:12Z\",\n shippingCost: \"12.83\",\n shippingCostCurrency: \"USD\",\n shippingMethod: \"USPS First Class Package\",\n subtotalPrice: \"12.1\",\n totalPrice: \"24.93\",\n totalTax: \"0.0\",\n weight: \"0.4\",\n weightUnit: \"lb\",\n fromAddress: {\n name: \"Shwan Ippotle\",\n company: \"Shippo\",\n street1: \"215 Clayton St.\",\n street3: \"\",\n streetNo: \"\",\n city: \"San Francisco\",\n state: \"CA\",\n zip: \"94117\",\n country: \"US\",\n phone: \"+1 555 341 9393\",\n email: \"shippotle@shippo.com\",\n isResidential: true,\n metadata: \"Customer ID 123456\",\n validate: true,\n },\n toAddress: {\n name: \"Shwan Ippotle\",\n company: \"Shippo\",\n street1: \"215 Clayton St.\",\n street3: \"\",\n streetNo: \"\",\n city: \"San Francisco\",\n state: \"CA\",\n zip: \"94117\",\n country: \"US\",\n phone: \"+1 555 341 9393\",\n email: \"shippotle@shippo.com\",\n isResidential: true,\n metadata: \"Customer ID 123456\",\n validate: true,\n },\n lineItems: [\n {\n currency: \"USD\",\n manufactureCountry: \"US\",\n maxDeliveryTime: new Date(\"2016-07-23T00:00:00Z\"),\n maxShipTime: new Date(\"2016-07-23T00:00:00Z\"),\n quantity: 20,\n sku: \"HM-123\",\n title: \"Hippo Magazines\",\n totalPrice: \"12.1\",\n variantTitle: \"June Edition\",\n weight: \"0.4\",\n weightUnit: \"lb\",\n },\n ],\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"},{"label":"C#","lang":"csharp","source":"using Shippo;\nusing Shippo.Models.Components;\nusing System;\nusing System.Collections.Generic;\n\nvar sdk = new ShippoSDK(\n apiKeyHeader: \"ShippoToken \u003cAPI_TOKEN>\",\n shippoApiVersion: \"2018-02-08\"\n);\n\nvar res = await sdk.Orders.CreateAsync(\n orderCreateRequest: new OrderCreateRequest() {\n Currency = \"USD\",\n Notes = \"This customer is a VIP\",\n OrderNumber = \"#1068\",\n OrderStatus = OrderStatusEnum.Paid,\n PlacedAt = \"2016-09-23T01:28:12Z\",\n ShippingCost = \"12.83\",\n ShippingCostCurrency = \"USD\",\n ShippingMethod = \"USPS First Class Package\",\n SubtotalPrice = \"12.1\",\n TotalPrice = \"24.93\",\n TotalTax = \"0.0\",\n Weight = \"0.4\",\n WeightUnit = WeightUnitEnum.Lb,\n FromAddress = new AddressCreateRequest() {\n Name = \"Shwan Ippotle\",\n Company = \"Shippo\",\n Street1 = \"215 Clayton St.\",\n Street3 = \"\",\n StreetNo = \"\",\n City = \"San Francisco\",\n State = \"CA\",\n Zip = \"94117\",\n Country = \"US\",\n Phone = \"+1 555 341 9393\",\n Email = \"shippotle@shippo.com\",\n IsResidential = true,\n Metadata = \"Customer ID 123456\",\n Validate = true,\n },\n ToAddress = new AddressCreateRequest() {\n Name = \"Shwan Ippotle\",\n Company = \"Shippo\",\n Street1 = \"215 Clayton St.\",\n Street3 = \"\",\n StreetNo = \"\",\n City = \"San Francisco\",\n State = \"CA\",\n Zip = \"94117\",\n Country = \"US\",\n Phone = \"+1 555 341 9393\",\n Email = \"shippotle@shippo.com\",\n IsResidential = true,\n Metadata = \"Customer ID 123456\",\n Validate = true,\n },\n LineItems = new List\u003cLineItemBase>() {\n new LineItemBase() {\n Currency = \"USD\",\n ManufactureCountry = \"US\",\n MaxDeliveryTime = System.DateTime.Parse(\"2016-07-23T00:00:00Z\"),\n MaxShipTime = System.DateTime.Parse(\"2016-07-23T00:00:00Z\"),\n Quantity = 20,\n Sku = \"HM-123\",\n Title = \"Hippo Magazines\",\n TotalPrice = \"12.1\",\n VariantTitle = \"June Edition\",\n Weight = \"0.4\",\n WeightUnit = WeightUnitEnum.Lb,\n },\n },\n },\n shippoApiVersion: \"2018-02-08\"\n);\n\n// handle response"},{"label":"PHP","lang":"php","source":"declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Shippo\\API;\nuse Shippo\\API\\Models\\Components;\nuse Shippo\\API\\Utils;\n\n$sdk = API\\Shippo::builder()\n ->setSecurity(\n 'ShippoToken \u003cAPI_TOKEN>'\n )\n ->setShippoApiVersion('2018-02-08')\n ->build();\n\n$orderCreateRequest = new Components\\OrderCreateRequest(\n currency: 'USD',\n notes: 'This customer is a VIP',\n orderNumber: '#1068',\n orderStatus: Components\\OrderStatusEnum::Paid,\n placedAt: '2016-09-23T01:28:12Z',\n shippingCost: '12.83',\n shippingCostCurrency: 'USD',\n shippingMethod: 'USPS First Class Package',\n subtotalPrice: '12.1',\n totalPrice: '24.93',\n totalTax: '0.0',\n weight: '0.4',\n weightUnit: Components\\WeightUnitEnum::Lb,\n fromAddress: new Components\\AddressCreateRequest(\n name: 'Shwan Ippotle',\n company: 'Shippo',\n street1: '215 Clayton St.',\n street3: '',\n streetNo: '',\n city: 'San Francisco',\n state: 'CA',\n zip: '94117',\n country: 'US',\n phone: '+1 555 341 9393',\n email: 'shippotle@shippo.com',\n isResidential: true,\n metadata: 'Customer ID 123456',\n validate: true,\n ),\n toAddress: new Components\\AddressCreateRequest(\n name: 'Shwan Ippotle',\n company: 'Shippo',\n street1: '215 Clayton St.',\n street3: '',\n streetNo: '',\n city: 'San Francisco',\n state: 'CA',\n zip: '94117',\n country: 'US',\n phone: '+1 555 341 9393',\n email: 'shippotle@shippo.com',\n isResidential: true,\n metadata: 'Customer ID 123456',\n validate: true,\n ),\n lineItems: [\n new Components\\LineItemBase(\n currency: 'USD',\n manufactureCountry: 'US',\n maxDeliveryTime: Utils\\Utils::parseDateTime('2016-07-23T00:00:00Z'),\n maxShipTime: Utils\\Utils::parseDateTime('2016-07-23T00:00:00Z'),\n quantity: 20,\n sku: 'HM-123',\n title: 'Hippo Magazines',\n totalPrice: '12.1',\n variantTitle: 'June Edition',\n weight: '0.4',\n weightUnit: Components\\WeightUnitEnum::Lb,\n ),\n ],\n);\n\n$response = $sdk->orders->create(\n orderCreateRequest: $orderCreateRequest,\n shippoApiVersion: '2018-02-08'\n\n);\n\nif ($response->order !== null) {\n // handle response\n}"},{"label":"Java","lang":"java","source":"package hello.world;\n\nimport com.goshippo.shippo_sdk.Shippo;\nimport com.goshippo.shippo_sdk.models.components.AddressCreateRequest;\nimport com.goshippo.shippo_sdk.models.components.LineItemBase;\nimport com.goshippo.shippo_sdk.models.components.OrderCreateRequest;\nimport com.goshippo.shippo_sdk.models.components.OrderStatusEnum;\nimport com.goshippo.shippo_sdk.models.components.WeightUnitEnum;\nimport com.goshippo.shippo_sdk.models.operations.CreateOrderResponse;\nimport java.lang.Exception;\nimport java.time.OffsetDateTime;\nimport java.util.List;\n\npublic class Application {\n\n public static void main(String[] args) throws Exception {\n\n Shippo sdk = Shippo.builder()\n .apiKeyHeader(\"ShippoToken \u003cAPI_TOKEN>\")\n .shippoApiVersion(\"2018-02-08\")\n .build();\n\n CreateOrderResponse res = sdk.orders().create()\n .shippoApiVersion(\"2018-02-08\")\n .orderCreateRequest(OrderCreateRequest.builder()\n .placedAt(\"2016-09-23T01:28:12Z\")\n .toAddress(AddressCreateRequest.builder()\n .country(\"US\")\n .name(\"Shwan Ippotle\")\n .company(\"Shippo\")\n .street1(\"215 Clayton St.\")\n .street3(\"\")\n .streetNo(\"\")\n .city(\"San Francisco\")\n .state(\"CA\")\n .zip(\"94117\")\n .phone(\"+1 555 341 9393\")\n .email(\"shippotle@shippo.com\")\n .isResidential(true)\n .metadata(\"Customer ID 123456\")\n .validate(true)\n .build())\n .currency(\"USD\")\n .notes(\"This customer is a VIP\")\n .orderNumber(\"#1068\")\n .orderStatus(OrderStatusEnum.PAID)\n .shippingCost(\"12.83\")\n .shippingCostCurrency(\"USD\")\n .shippingMethod(\"USPS First Class Package\")\n .subtotalPrice(\"12.1\")\n .totalPrice(\"24.93\")\n .totalTax(\"0.0\")\n .weight(\"0.4\")\n .weightUnit(WeightUnitEnum.LB)\n .fromAddress(AddressCreateRequest.builder()\n .country(\"US\")\n .name(\"Shwan Ippotle\")\n .company(\"Shippo\")\n .street1(\"215 Clayton St.\")\n .street3(\"\")\n .streetNo(\"\")\n .city(\"San Francisco\")\n .state(\"CA\")\n .zip(\"94117\")\n .phone(\"+1 555 341 9393\")\n .email(\"shippotle@shippo.com\")\n .isResidential(true)\n .metadata(\"Customer ID 123456\")\n .validate(true)\n .build())\n .lineItems(List.of(\n LineItemBase.builder()\n .currency(\"USD\")\n .manufactureCountry(\"US\")\n .maxDeliveryTime(OffsetDateTime.parse(\"2016-07-23T00:00:00Z\"))\n .maxShipTime(OffsetDateTime.parse(\"2016-07-23T00:00:00Z\"))\n .quantity(20L)\n .sku(\"HM-123\")\n .title(\"Hippo Magazines\")\n .totalPrice(\"12.1\")\n .variantTitle(\"June Edition\")\n .weight(\"0.4\")\n .weightUnit(WeightUnitEnum.LB)\n .build()))\n .build())\n .call();\n\n if (res.order().isPresent()) {\n // handle response\n }\n }\n}"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"8a508d1b-a8d0-42de-9c93-655277e6eaf0":{"description":"Optional string used to pick a non-default API version to use. See our [API version](https://docs.goshippo.com/docs/api_concepts/apiversioning/) guide.","in":"header","name":"SHIPPO-API-VERSION","schema":{"type":"string","example":"2018-02-08","default":"2018-02-08","x-default":"2018-02-08","description":"Optional string used to pick a non-default API version to use. See our [API version](https://docs.goshippo.com/docs/api_concepts/apiversioning/) guide.","uniqueKey":"","typeLabel":"string"},"x-speakeasy-globals-hidden":true},"105869cf-11a6-4b05-a1c6-fc773a8e79a7":{"description":"Optional. The object ID of a Managed Shippo Account. Platform accounts set this to make the request on behalf of one of their managed accounts. See the [Platform accounts guide](https://docs.goshippo.com/platform-accounts/platform-using-accounts).","in":"header","name":"SHIPPO-ACCOUNT-ID","required":false,"schema":{"type":"string","isRequired":false,"description":"Optional. The object ID of a Managed Shippo Account. Platform accounts set this to make the request on behalf of one of their managed accounts. See the [Platform accounts guide](https://docs.goshippo.com/platform-accounts/platform-using-accounts).","uniqueKey":"","typeLabel":"string"},"x-speakeasy-globals-hidden":true}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["to_address","placed_at"],"properties":{"placed_at":{"description":"Date and time when the order was placed. This datetime can be different from the datetime of the order object creation on Shippo.","example":"2016-09-23T01:28:12Z","type":"string","isRequired":true,"uniqueKey":"placed_at","typeLabel":"string"},"to_address":{"type":"object","description":"[Address](/shippoapi/public-api/addresses) object of the recipient / buyer. Will be returned expanded by default.","required":["country"],"properties":{"country":{"example":"US","type":"string","description":"ISO 3166-1 alpha-2 country codes and country names can be used. For most consistent results, we recommend using country codes like `US` or `DE`.\nIf using country names, please ensure they are spelled correctly and in English. Country names are converted to country codes.\nRefer to this [guide](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) for a list of country codes.\nSending a country is always required.","isRequired":true,"uniqueKey":"to_address.country","typeLabel":"string"},"name":{"description":"**required for purchase**\n\nFirst and Last Name of the addressee\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Either company or name required; No length validation (first 35 chars printed on label) |","example":"Shwan Ippotle","type":"string","maxLength":100,"uniqueKey":"to_address.name","typeLabel":"string"},"company":{"example":"Shippo","type":"string","maxLength":100,"description":"Company Name\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Max 35 characters; Either company or name required |","uniqueKey":"to_address.company","typeLabel":"string"},"street1":{"description":"**required for purchase**\n\nFirst street line. Usually street number and street name (except for DHL Germany, see street_no).\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | At least one street line required; Max 35 characters per line |","example":"215 Clayton St.","type":"string","maxLength":121,"uniqueKey":"to_address.street1","typeLabel":"string"},"street2":{"type":"string","maxLength":100,"description":"Second street line.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | At least one street line required; Max 35 characters per line |","uniqueKey":"to_address.street2","typeLabel":"string"},"street3":{"type":"string","maxLength":100,"example":"","description":"Third street line.\nOnly accepted for USPS international shipments, UPS domestic and UPS international shipments.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | At least one street line required; Max 35 characters per line |","uniqueKey":"to_address.street3","typeLabel":"string"},"street_no":{"type":"string","example":"","description":"Street number of the addressed building.\nThis field can be included in street1 for all carriers except for DHL Germany.","uniqueKey":"to_address.street_no","typeLabel":"string"},"city":{"description":"**required for purchase**\n\nName of a city. When creating a Quote Address, sending a city is optional but will yield more accurate Rates.\nPlease bear in mind that city names may be ambiguous (there are 34 Springfields in the US). Pass in a state or a ZIP code (see below), if known, to get more accurate results.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Required; Max 35 characters |","example":"San Francisco","type":"string","maxLength":100,"uniqueKey":"to_address.city","typeLabel":"string"},"state":{"description":"**required for purchase for some countries**\n\nState/Province values are required for shipments from/to the US, AU, and CA. UPS requires province for some countries (i.e. Ireland). To receive more accurate quotes, passing this field is recommended. Most carriers only accept two or three character state abbreviations.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Required if country requires state; Max 2 characters for US, CA, PR |","example":"CA","type":"string","maxLength":100,"uniqueKey":"to_address.state","typeLabel":"string"},"zip":{"description":"**required for purchase**\n\nPostal code of an Address. When creating a Quote Address, sending a ZIP is optional but will yield more accurate Rates.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Max 10 characters |","example":"94117","type":"string","maxLength":20,"uniqueKey":"to_address.zip","typeLabel":"string"},"phone":{"example":"+1 555 341 9393","type":"string","maxLength":50,"description":"Addresses containing a phone number allow carriers to call the recipient when delivering the Parcel. This increases the probability of delivery and helps to avoid accessorial charges after a Parcel has been shipped.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Required; Min 1, max 15 characters |\n| USPS | Sender phone required for shipments during label purchase; Min 8, max 15 digits |","uniqueKey":"to_address.phone","typeLabel":"string"},"email":{"example":"shippotle@shippo.com","type":"string","maxLength":254,"description":"E-mail address of the contact person, RFC3696/5321-compliant.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Max 80 characters |\n| USPS | Sender email required for shipments during label purchase |","uniqueKey":"to_address.email","typeLabel":"string"},"is_residential":{"example":true,"type":"boolean","uniqueKey":"to_address.is_residential","typeLabel":"boolean"},"metadata":{"example":"Customer ID 123456","type":"string","maxLength":100,"description":"A string of up to 100 characters that can be filled with any additional information you want to attach to the object.","uniqueKey":"to_address.metadata","typeLabel":"string"},"validate":{"description":"Set to true to validate Address object.","example":true,"type":"boolean","uniqueKey":"to_address.validate","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"to_address","typeLabel":"object"},"currency":{"description":"**Required if total_price is provided**\n\nCurrency of the `total_price` and `total_tax` amounts.","example":"USD","type":"string","uniqueKey":"currency","typeLabel":"string"},"notes":{"description":"Custom buyer- or seller-provided notes about the order.","example":"This customer is a VIP","type":"string","uniqueKey":"notes","typeLabel":"string"},"order_number":{"description":"An alphanumeric identifier for the order used by the seller/buyer. This identifier doesn't need to be unique.","example":"#1068","type":"string","uniqueKey":"order_number","typeLabel":"string"},"order_status":{"type":"string","description":"Current state of the order. See the [orders tutorial](https://docs.goshippo.com/docs/orders/orders/) for the logic of how the status is handled.","enum":["UNKNOWN","AWAITPAY","PAID","REFUNDED","CANCELLED","PARTIALLY_FULFILLED","SHIPPED"],"example":"PAID","uniqueKey":"order_status","typeLabel":"enum\u003cstring>"},"shipping_cost":{"description":"Amount paid by the buyer for shipping. This amount can be different from the price the seller will actually pay for shipping.","example":"12.83","type":"string","uniqueKey":"shipping_cost","typeLabel":"string"},"shipping_cost_currency":{"description":"**Required if shipping_cost is provided**\n\nCurrency of the `shipping_cost` amount.","example":"USD","type":"string","uniqueKey":"shipping_cost_currency","typeLabel":"string"},"shipping_method":{"description":"Shipping method (carrier + service or other free text description) chosen by the buyer.\nThis value can be different from the shipping method the seller will actually choose.","example":"USPS First Class Package","type":"string","uniqueKey":"shipping_method","typeLabel":"string"},"subtotal_price":{"example":"12.1","type":"string","uniqueKey":"subtotal_price","typeLabel":"string"},"total_price":{"description":"Total amount paid by the buyer for this order.","example":"24.93","type":"string","uniqueKey":"total_price","typeLabel":"string"},"total_tax":{"description":"Total tax amount paid by the buyer for this order.","example":"0.0","type":"string","uniqueKey":"total_tax","typeLabel":"string"},"weight":{"example":"0.4","type":"string","description":"Total weight of the order.","uniqueKey":"weight","typeLabel":"string"},"weight_unit":{"description":"The unit used for weight.","enum":["g","kg","lb","oz"],"example":"lb","type":"string","uniqueKey":"weight_unit","typeLabel":"enum\u003cstring>"},"from_address":{"type":"object","description":"[Address](/shippoapi/public-api/addresses) object of the sender / seller. Will be returned expanded by default..","required":["country"],"properties":{"country":{"example":"US","type":"string","description":"ISO 3166-1 alpha-2 country codes and country names can be used. For most consistent results, we recommend using country codes like `US` or `DE`.\nIf using country names, please ensure they are spelled correctly and in English. Country names are converted to country codes.\nRefer to this [guide](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) for a list of country codes.\nSending a country is always required.","isRequired":true,"uniqueKey":"from_address.country","typeLabel":"string"},"name":{"description":"**required for purchase**\n\nFirst and Last Name of the addressee\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Either company or name required; No length validation (first 35 chars printed on label) |","example":"Shwan Ippotle","type":"string","maxLength":100,"uniqueKey":"from_address.name","typeLabel":"string"},"company":{"example":"Shippo","type":"string","maxLength":100,"description":"Company Name\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Max 35 characters; Either company or name required |","uniqueKey":"from_address.company","typeLabel":"string"},"street1":{"description":"**required for purchase**\n\nFirst street line. Usually street number and street name (except for DHL Germany, see street_no).\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | At least one street line required; Max 35 characters per line |","example":"215 Clayton St.","type":"string","maxLength":121,"uniqueKey":"from_address.street1","typeLabel":"string"},"street2":{"type":"string","maxLength":100,"description":"Second street line.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | At least one street line required; Max 35 characters per line |","uniqueKey":"from_address.street2","typeLabel":"string"},"street3":{"type":"string","maxLength":100,"example":"","description":"Third street line.\nOnly accepted for USPS international shipments, UPS domestic and UPS international shipments.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | At least one street line required; Max 35 characters per line |","uniqueKey":"from_address.street3","typeLabel":"string"},"street_no":{"type":"string","example":"","description":"Street number of the addressed building.\nThis field can be included in street1 for all carriers except for DHL Germany.","uniqueKey":"from_address.street_no","typeLabel":"string"},"city":{"description":"**required for purchase**\n\nName of a city. When creating a Quote Address, sending a city is optional but will yield more accurate Rates.\nPlease bear in mind that city names may be ambiguous (there are 34 Springfields in the US). Pass in a state or a ZIP code (see below), if known, to get more accurate results.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Required; Max 35 characters |","example":"San Francisco","type":"string","maxLength":100,"uniqueKey":"from_address.city","typeLabel":"string"},"state":{"description":"**required for purchase for some countries**\n\nState/Province values are required for shipments from/to the US, AU, and CA. UPS requires province for some countries (i.e. Ireland). To receive more accurate quotes, passing this field is recommended. Most carriers only accept two or three character state abbreviations.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Required if country requires state; Max 2 characters for US, CA, PR |","example":"CA","type":"string","maxLength":100,"uniqueKey":"from_address.state","typeLabel":"string"},"zip":{"description":"**required for purchase**\n\nPostal code of an Address. When creating a Quote Address, sending a ZIP is optional but will yield more accurate Rates.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Max 10 characters |","example":"94117","type":"string","maxLength":20,"uniqueKey":"from_address.zip","typeLabel":"string"},"phone":{"example":"+1 555 341 9393","type":"string","maxLength":50,"description":"Addresses containing a phone number allow carriers to call the recipient when delivering the Parcel. This increases the probability of delivery and helps to avoid accessorial charges after a Parcel has been shipped.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Required; Min 1, max 15 characters |\n| USPS | Sender phone required for shipments during label purchase; Min 8, max 15 digits |","uniqueKey":"from_address.phone","typeLabel":"string"},"email":{"example":"shippotle@shippo.com","type":"string","maxLength":254,"description":"E-mail address of the contact person, RFC3696/5321-compliant.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Max 80 characters |\n| USPS | Sender email required for shipments during label purchase |","uniqueKey":"from_address.email","typeLabel":"string"},"is_residential":{"example":true,"type":"boolean","uniqueKey":"from_address.is_residential","typeLabel":"boolean"},"metadata":{"example":"Customer ID 123456","type":"string","maxLength":100,"description":"A string of up to 100 characters that can be filled with any additional information you want to attach to the object.","uniqueKey":"from_address.metadata","typeLabel":"string"},"validate":{"description":"Set to true to validate Address object.","example":true,"type":"boolean","uniqueKey":"from_address.validate","typeLabel":"boolean"}},"uniqueKey":"from_address","typeLabel":"object"},"line_items":{"description":"Array of [line item](/shippoapi/public-api/orders/lineitem) objects representing the items in this order.\nAll objects will be returned expanded by default.","items":{"type":"object","properties":{"currency":{"description":"Currency of the `total_price` amount.","example":"USD","type":"string","uniqueKey":"line_items.items.[INDEX].currency","typeLabel":"string"},"manufacture_country":{"description":"Country the item was manufactured in. In the Shippo dashboard, this value will be used ot pre-fill the customs declaration when creating a label for this order.","example":"US","type":"string","uniqueKey":"line_items.items.[INDEX].manufacture_country","typeLabel":"string"},"max_delivery_time":{"description":"The date and time this item needs to be delivered by, i.e. by when the carrier delivers it to the buyer.\nThis value is used by some platforms such as eBay to measure a seller's shipping time and performance.\nIt will be displayed in the Shippo dashboard.","example":"2016-07-23T00:00:00Z","format":"date-time","type":"string","uniqueKey":"line_items.items.[INDEX].max_delivery_time","typeLabel":"string\u003cdate-time>"},"max_ship_time":{"description":"The date and time this item needs to be fulfilled by, i.e. by when the shipping label needs to be created and handed over to the carrier. This value is used by some platforms such as eBay to measure a seller's handling time and performance. It will be displayed in the Shippo dashboard.","example":"2016-07-23T00:00:00Z","format":"date-time","type":"string","uniqueKey":"line_items.items.[INDEX].max_ship_time","typeLabel":"string\u003cdate-time>"},"quantity":{"description":"The quantity of this item in this order.","example":20,"format":"int64","type":"integer","uniqueKey":"line_items.items.[INDEX].quantity","typeLabel":"integer\u003cint64>"},"sku":{"description":"The stock keeping unit value of this item.","example":"HM-123","type":"string","uniqueKey":"line_items.items.[INDEX].sku","typeLabel":"string"},"title":{"description":"Title of the line item.","example":"Hippo Magazines","type":"string","uniqueKey":"line_items.items.[INDEX].title","typeLabel":"string"},"total_price":{"description":"Total price paid by the buyer for this item (or these items, if quantity > 1).","example":"12.1","type":"string","uniqueKey":"line_items.items.[INDEX].total_price","typeLabel":"string"},"variant_title":{"description":"A variant is a specific variation of an item (e.g. `size M` or `color blue`).\nVariants might be exposed as a separate resource in the future too.\nCurrently the variant title is a free text field describing the variant.","example":"June Edition","type":"string","uniqueKey":"line_items.items.[INDEX].variant_title","typeLabel":"string"},"weight":{"description":"Total weight of this/these item(s). Instead of specifying the weight of all items, you can also set the `total_weight` value of the order object.","example":"0.4","type":"string","uniqueKey":"line_items.items.[INDEX].weight","typeLabel":"string"},"weight_unit":{"description":"The unit used for weight.","enum":["g","kg","lb","oz"],"example":"lb","type":"string","uniqueKey":"line_items.items.[INDEX].weight_unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"line_items.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"line_items","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"placed_at":"2016-09-23T01:28:12Z","to_address":{"country":"US","name":"Shwan Ippotle","company":"Shippo","street1":"215 Clayton St.","street2":"\u003cstring>","street3":"","street_no":"","city":"San Francisco","state":"CA","zip":"94117","phone":"+1 555 341 9393","email":"shippotle@shippo.com","is_residential":true,"metadata":"Customer ID 123456","validate":true},"currency":"USD","notes":"This customer is a VIP","order_number":"#1068","order_status":"PAID","shipping_cost":"12.83","shipping_cost_currency":"USD","shipping_method":"USPS First Class Package","subtotal_price":"12.1","total_price":"24.93","total_tax":"0.0","weight":"0.4","weight_unit":"lb","line_items":[{"currency":"USD","manufacture_country":"US","max_delivery_time":"2016-07-23T00:00:00Z","max_ship_time":"2016-07-23T00:00:00Z","quantity":20,"sku":"HM-123","title":"Hippo Magazines","total_price":"12.1","variant_title":"June Edition","weight":"0.4","weight_unit":"lb"}]}}},"exampleType":"generated"}},"description":"Order details.","exampleType":"generated"},"responses":{"e50e4362-099d-4e13-bfde-194506399d17":{"description":"Order","content":{"application/json":{"schema":{"type":"object","required":["to_address","placed_at"],"x-tags":["Orders"],"properties":{"placed_at":{"description":"Date and time when the order was placed. This datetime can be different from the datetime of the order object creation on Shippo.","example":"2016-09-23T01:28:12Z","type":"string","isRequired":true,"uniqueKey":"placed_at","typeLabel":"string"},"to_address":{"type":"object","description":"[Address](/shippoapi/public-api/addresses) object of the recipient / buyer. Will be returned expanded by default.","required":["country"],"x-tags":["Addresses"],"properties":{"country":{"example":"US","type":"string","description":"ISO 3166-1 alpha-2 country codes and country names can be used. For most consistent results, we recommend using country codes like `US` or `DE`.\nIf using country names, please ensure they are spelled correctly and in English. Country names are converted to country codes.\nRefer to this [guide](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) for a list of country codes.\nSending a country is always required.","isRequired":true,"uniqueKey":"to_address.country","typeLabel":"string"},"name":{"description":"**required for purchase**\n\nFirst and Last Name of the addressee\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Either company or name required; No length validation (first 35 chars printed on label) |","example":"Shwan Ippotle","type":"string","maxLength":100,"uniqueKey":"to_address.name","typeLabel":"string"},"company":{"example":"Shippo","type":"string","maxLength":100,"description":"Company Name\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Max 35 characters; Either company or name required |","uniqueKey":"to_address.company","typeLabel":"string"},"street1":{"description":"**required for purchase**\n\nFirst street line. Usually street number and street name (except for DHL Germany, see street_no).\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | At least one street line required; Max 35 characters per line |","example":"215 Clayton St.","type":"string","maxLength":121,"uniqueKey":"to_address.street1","typeLabel":"string"},"street2":{"type":"string","maxLength":100,"description":"Second street line.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | At least one street line required; Max 35 characters per line |","uniqueKey":"to_address.street2","typeLabel":"string"},"street3":{"type":"string","maxLength":100,"example":"","description":"Third street line.\nOnly accepted for USPS international shipments, UPS domestic and UPS international shipments.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | At least one street line required; Max 35 characters per line |","uniqueKey":"to_address.street3","typeLabel":"string"},"street_no":{"type":"string","example":"","description":"Street number of the addressed building.\nThis field can be included in street1 for all carriers except for DHL Germany.","uniqueKey":"to_address.street_no","typeLabel":"string"},"city":{"description":"**required for purchase**\n\nName of a city. When creating a Quote Address, sending a city is optional but will yield more accurate Rates.\nPlease bear in mind that city names may be ambiguous (there are 34 Springfields in the US). Pass in a state or a ZIP code (see below), if known, to get more accurate results.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Required; Max 35 characters |","example":"San Francisco","type":"string","maxLength":100,"uniqueKey":"to_address.city","typeLabel":"string"},"state":{"description":"**required for purchase for some countries**\n\nState/Province values are required for shipments from/to the US, AU, and CA. UPS requires province for some countries (i.e. Ireland). To receive more accurate quotes, passing this field is recommended. Most carriers only accept two or three character state abbreviations.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Required if country requires state; Max 2 characters for US, CA, PR |","example":"CA","type":"string","maxLength":100,"uniqueKey":"to_address.state","typeLabel":"string"},"zip":{"description":"**required for purchase**\n\nPostal code of an Address. When creating a Quote Address, sending a ZIP is optional but will yield more accurate Rates.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Max 10 characters |","example":"94117","type":"string","maxLength":20,"uniqueKey":"to_address.zip","typeLabel":"string"},"phone":{"example":"+1 555 341 9393","type":"string","maxLength":50,"description":"Addresses containing a phone number allow carriers to call the recipient when delivering the Parcel. This increases the probability of delivery and helps to avoid accessorial charges after a Parcel has been shipped.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Required; Min 1, max 15 characters |\n| USPS | Sender phone required for shipments during label purchase; Min 8, max 15 digits |","uniqueKey":"to_address.phone","typeLabel":"string"},"email":{"example":"shippotle@shippo.com","type":"string","maxLength":254,"description":"E-mail address of the contact person, RFC3696/5321-compliant.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Max 80 characters |\n| USPS | Sender email required for shipments during label purchase |","uniqueKey":"to_address.email","typeLabel":"string"},"is_residential":{"example":true,"type":"boolean","uniqueKey":"to_address.is_residential","typeLabel":"boolean"},"metadata":{"example":"Customer ID 123456","type":"string","maxLength":100,"description":"A string of up to 100 characters that can be filled with any additional information you want to attach to the object.","uniqueKey":"to_address.metadata","typeLabel":"string"},"is_complete":{"example":true,"type":"boolean","description":"Complete addresses contain all required values.\n\nIncomplete addresses have failed one or multiple validations. Incomplete Addresses are eligible for requesting rates but lack at least one required value for purchasing labels.","uniqueKey":"to_address.is_complete","typeLabel":"boolean"},"latitude":{"oneOf":[{"description":"Latitude of address","type":"number","uniqueKey":"to_address.latitude.oneOf.0","typeLabel":"number"},{"description":"Latitude of address","type":"string","uniqueKey":"to_address.latitude.oneOf.1","typeLabel":"string"}],"uniqueKey":"to_address.latitude","typeLabel":"number | string"},"longitude":{"oneOf":[{"description":"Longitude of address","type":"number","uniqueKey":"to_address.longitude.oneOf.0","typeLabel":"number"},{"description":"Longitude of address","type":"string","uniqueKey":"to_address.longitude.oneOf.1","typeLabel":"string"}],"uniqueKey":"to_address.longitude","typeLabel":"number | string"},"object_created":{"example":"2014-07-09T02:19:13.174Z","format":"date-time","type":"string","description":"Date and time of Address creation.","uniqueKey":"to_address.object_created","typeLabel":"string\u003cdate-time>"},"object_id":{"example":"d799c2679e644279b59fe661ac8fa488","type":"string","description":"Unique identifier of the given Address object.\nThis ID is required to create a Shipment object.","uniqueKey":"to_address.object_id","typeLabel":"string"},"object_owner":{"example":"shippotle@shippo.com","type":"string","description":"Username of the user who created the Address object.","uniqueKey":"to_address.object_owner","typeLabel":"string"},"object_updated":{"example":"2014-07-09T02:19:13.174Z","format":"date-time","type":"string","description":"Date and time of last Address update. Since you cannot update Addresses after they were created, this time stamp reflects the time when the Address was changed by Shippo's systems for the last time, e.g., during the approximation of one or more values.","uniqueKey":"to_address.object_updated","typeLabel":"string\u003cdate-time>"},"validation_results":{"description":"Object that contains information regarding if an address had been validated or not. Also contains any messages generated during validation. Children keys are `is_valid`(boolean) and `messages`(array).","properties":{"is_valid":{"example":false,"type":"boolean","uniqueKey":"to_address.validation_results.is_valid","typeLabel":"boolean"},"messages":{"items":{"properties":{"code":{"type":"string","example":"Unknown Street","description":"See [Address Validation Codes](/shippoapi/public-api/address-validation-codes)","uniqueKey":"to_address.validation_results.messages.items.[INDEX].code","typeLabel":"string"},"source":{"type":"string","example":"Shippo Address Validator","description":"See [Address Validation Source](/shippoapi/public-api/address-validation-source)","uniqueKey":"to_address.validation_results.messages.items.[INDEX].source","typeLabel":"string"},"text":{"example":"City, State and ZIP Code are valid, but street address is not a match.","type":"string","uniqueKey":"to_address.validation_results.messages.items.[INDEX].text","typeLabel":"string"},"type":{"example":"address_warning","type":"string","uniqueKey":"to_address.validation_results.messages.items.[INDEX].type","typeLabel":"string"}},"type":"object","uniqueKey":"to_address.validation_results.messages.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"to_address.validation_results.messages","typeLabel":"object[]"}},"type":"object","uniqueKey":"to_address.validation_results","typeLabel":"object"},"test":{"type":"boolean","example":false,"description":"Indicates whether the object has been created in test mode.","uniqueKey":"to_address.test","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"to_address","typeLabel":"object"},"currency":{"description":"**Required if total_price is provided**\n\nCurrency of the `total_price` and `total_tax` amounts.","example":"USD","type":"string","uniqueKey":"currency","typeLabel":"string"},"notes":{"description":"Custom buyer- or seller-provided notes about the order.","example":"This customer is a VIP","type":"string","uniqueKey":"notes","typeLabel":"string"},"order_number":{"description":"An alphanumeric identifier for the order used by the seller/buyer. This identifier doesn't need to be unique.","example":"#1068","type":"string","uniqueKey":"order_number","typeLabel":"string"},"order_status":{"type":"string","description":"Current state of the order. See the [orders tutorial](https://docs.goshippo.com/docs/orders/orders/) for the logic of how the status is handled.","enum":["UNKNOWN","AWAITPAY","PAID","REFUNDED","CANCELLED","PARTIALLY_FULFILLED","SHIPPED"],"example":"PAID","uniqueKey":"order_status","typeLabel":"enum\u003cstring>"},"shipping_cost":{"description":"Amount paid by the buyer for shipping. This amount can be different from the price the seller will actually pay for shipping.","example":"12.83","type":"string","uniqueKey":"shipping_cost","typeLabel":"string"},"shipping_cost_currency":{"description":"**Required if shipping_cost is provided**\n\nCurrency of the `shipping_cost` amount.","example":"USD","type":"string","uniqueKey":"shipping_cost_currency","typeLabel":"string"},"shipping_method":{"description":"Shipping method (carrier + service or other free text description) chosen by the buyer.\nThis value can be different from the shipping method the seller will actually choose.","example":"USPS First Class Package","type":"string","uniqueKey":"shipping_method","typeLabel":"string"},"subtotal_price":{"example":"12.1","type":"string","uniqueKey":"subtotal_price","typeLabel":"string"},"total_price":{"description":"Total amount paid by the buyer for this order.","example":"24.93","type":"string","uniqueKey":"total_price","typeLabel":"string"},"total_tax":{"description":"Total tax amount paid by the buyer for this order.","example":"0.0","type":"string","uniqueKey":"total_tax","typeLabel":"string"},"weight":{"example":"0.4","type":"string","description":"Total weight of the order.","uniqueKey":"weight","typeLabel":"string"},"weight_unit":{"description":"The unit used for weight.","enum":["g","kg","lb","oz"],"example":"lb","type":"string","uniqueKey":"weight_unit","typeLabel":"enum\u003cstring>"},"from_address":{"type":"object","description":"[Address](/shippoapi/public-api/addresses) object of the sender / seller. Will be returned expanded by default.","required":["country"],"x-tags":["Addresses"],"properties":{"country":{"example":"US","type":"string","description":"ISO 3166-1 alpha-2 country codes and country names can be used. For most consistent results, we recommend using country codes like `US` or `DE`.\nIf using country names, please ensure they are spelled correctly and in English. Country names are converted to country codes.\nRefer to this [guide](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) for a list of country codes.\nSending a country is always required.","isRequired":true,"uniqueKey":"from_address.country","typeLabel":"string"},"name":{"description":"**required for purchase**\n\nFirst and Last Name of the addressee\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Either company or name required; No length validation (first 35 chars printed on label) |","example":"Shwan Ippotle","type":"string","maxLength":100,"uniqueKey":"from_address.name","typeLabel":"string"},"company":{"example":"Shippo","type":"string","maxLength":100,"description":"Company Name\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Max 35 characters; Either company or name required |","uniqueKey":"from_address.company","typeLabel":"string"},"street1":{"description":"**required for purchase**\n\nFirst street line. Usually street number and street name (except for DHL Germany, see street_no).\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | At least one street line required; Max 35 characters per line |","example":"215 Clayton St.","type":"string","maxLength":121,"uniqueKey":"from_address.street1","typeLabel":"string"},"street2":{"type":"string","maxLength":100,"description":"Second street line.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | At least one street line required; Max 35 characters per line |","uniqueKey":"from_address.street2","typeLabel":"string"},"street3":{"type":"string","maxLength":100,"example":"","description":"Third street line.\nOnly accepted for USPS international shipments, UPS domestic and UPS international shipments.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | At least one street line required; Max 35 characters per line |","uniqueKey":"from_address.street3","typeLabel":"string"},"street_no":{"type":"string","example":"","description":"Street number of the addressed building.\nThis field can be included in street1 for all carriers except for DHL Germany.","uniqueKey":"from_address.street_no","typeLabel":"string"},"city":{"description":"**required for purchase**\n\nName of a city. When creating a Quote Address, sending a city is optional but will yield more accurate Rates.\nPlease bear in mind that city names may be ambiguous (there are 34 Springfields in the US). Pass in a state or a ZIP code (see below), if known, to get more accurate results.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Required; Max 35 characters |","example":"San Francisco","type":"string","maxLength":100,"uniqueKey":"from_address.city","typeLabel":"string"},"state":{"description":"**required for purchase for some countries**\n\nState/Province values are required for shipments from/to the US, AU, and CA. UPS requires province for some countries (i.e. Ireland). To receive more accurate quotes, passing this field is recommended. Most carriers only accept two or three character state abbreviations.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Required if country requires state; Max 2 characters for US, CA, PR |","example":"CA","type":"string","maxLength":100,"uniqueKey":"from_address.state","typeLabel":"string"},"zip":{"description":"**required for purchase**\n\nPostal code of an Address. When creating a Quote Address, sending a ZIP is optional but will yield more accurate Rates.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Max 10 characters |","example":"94117","type":"string","maxLength":20,"uniqueKey":"from_address.zip","typeLabel":"string"},"phone":{"example":"+1 555 341 9393","type":"string","maxLength":50,"description":"Addresses containing a phone number allow carriers to call the recipient when delivering the Parcel. This increases the probability of delivery and helps to avoid accessorial charges after a Parcel has been shipped.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Required; Min 1, max 15 characters |\n| USPS | Sender phone required for shipments during label purchase; Min 8, max 15 digits |","uniqueKey":"from_address.phone","typeLabel":"string"},"email":{"example":"shippotle@shippo.com","type":"string","maxLength":254,"description":"E-mail address of the contact person, RFC3696/5321-compliant.\n\n**Carrier-Specific Constraints:**\n| Carrier | Constraints |\n|:---|:---|\n| FedEx | Max 80 characters |\n| USPS | Sender email required for shipments during label purchase |","uniqueKey":"from_address.email","typeLabel":"string"},"is_residential":{"example":true,"type":"boolean","uniqueKey":"from_address.is_residential","typeLabel":"boolean"},"metadata":{"example":"Customer ID 123456","type":"string","maxLength":100,"description":"A string of up to 100 characters that can be filled with any additional information you want to attach to the object.","uniqueKey":"from_address.metadata","typeLabel":"string"},"is_complete":{"example":true,"type":"boolean","description":"Complete addresses contain all required values.\n\nIncomplete addresses have failed one or multiple validations. Incomplete Addresses are eligible for requesting rates but lack at least one required value for purchasing labels.","uniqueKey":"from_address.is_complete","typeLabel":"boolean"},"latitude":{"oneOf":[{"description":"Latitude of address","type":"number","uniqueKey":"from_address.latitude.oneOf.0","typeLabel":"number"},{"description":"Latitude of address","type":"string","uniqueKey":"from_address.latitude.oneOf.1","typeLabel":"string"}],"uniqueKey":"from_address.latitude","typeLabel":"number | string"},"longitude":{"oneOf":[{"description":"Longitude of address","type":"number","uniqueKey":"from_address.longitude.oneOf.0","typeLabel":"number"},{"description":"Longitude of address","type":"string","uniqueKey":"from_address.longitude.oneOf.1","typeLabel":"string"}],"uniqueKey":"from_address.longitude","typeLabel":"number | string"},"object_created":{"example":"2014-07-09T02:19:13.174Z","format":"date-time","type":"string","description":"Date and time of Address creation.","uniqueKey":"from_address.object_created","typeLabel":"string\u003cdate-time>"},"object_id":{"example":"d799c2679e644279b59fe661ac8fa488","type":"string","description":"Unique identifier of the given Address object.\nThis ID is required to create a Shipment object.","uniqueKey":"from_address.object_id","typeLabel":"string"},"object_owner":{"example":"shippotle@shippo.com","type":"string","description":"Username of the user who created the Address object.","uniqueKey":"from_address.object_owner","typeLabel":"string"},"object_updated":{"example":"2014-07-09T02:19:13.174Z","format":"date-time","type":"string","description":"Date and time of last Address update. Since you cannot update Addresses after they were created, this time stamp reflects the time when the Address was changed by Shippo's systems for the last time, e.g., during the approximation of one or more values.","uniqueKey":"from_address.object_updated","typeLabel":"string\u003cdate-time>"},"validation_results":{"description":"Object that contains information regarding if an address had been validated or not. Also contains any messages generated during validation. Children keys are `is_valid`(boolean) and `messages`(array).","properties":{"is_valid":{"example":false,"type":"boolean","uniqueKey":"from_address.validation_results.is_valid","typeLabel":"boolean"},"messages":{"items":{"properties":{"code":{"type":"string","example":"Unknown Street","description":"See [Address Validation Codes](/shippoapi/public-api/address-validation-codes)","uniqueKey":"from_address.validation_results.messages.items.[INDEX].code","typeLabel":"string"},"source":{"type":"string","example":"Shippo Address Validator","description":"See [Address Validation Source](/shippoapi/public-api/address-validation-source)","uniqueKey":"from_address.validation_results.messages.items.[INDEX].source","typeLabel":"string"},"text":{"example":"City, State and ZIP Code are valid, but street address is not a match.","type":"string","uniqueKey":"from_address.validation_results.messages.items.[INDEX].text","typeLabel":"string"},"type":{"example":"address_warning","type":"string","uniqueKey":"from_address.validation_results.messages.items.[INDEX].type","typeLabel":"string"}},"type":"object","uniqueKey":"from_address.validation_results.messages.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"from_address.validation_results.messages","typeLabel":"object[]"}},"type":"object","uniqueKey":"from_address.validation_results","typeLabel":"object"},"test":{"type":"boolean","example":false,"description":"Indicates whether the object has been created in test mode.","uniqueKey":"from_address.test","typeLabel":"boolean"}},"uniqueKey":"from_address","typeLabel":"object"},"line_items":{"description":"Array of [line item](/shippoapi/public-api/orders/lineitem) objects representing the items in this order.\nAll objects will be returned expanded by default.","items":{"type":"object","title":"Line Item","description":"Line Items, and their corresponding abstract Products and Variants, might be exposed as a separate resource in the future. Currently it's a nested object within the order resource.\n\nA line item is an individual object in an order. For example, if your order contains a t-shirt, shorts, and a jacket, each item is represented by a line item.","x-tags":["Orders"],"properties":{"currency":{"description":"Currency of the `total_price` amount.","example":"USD","type":"string","uniqueKey":"line_items.items.[INDEX].currency","typeLabel":"string"},"manufacture_country":{"description":"Country the item was manufactured in. In the Shippo dashboard, this value will be used ot pre-fill the customs declaration when creating a label for this order.","example":"US","type":"string","uniqueKey":"line_items.items.[INDEX].manufacture_country","typeLabel":"string"},"max_delivery_time":{"description":"The date and time this item needs to be delivered by, i.e. by when the carrier delivers it to the buyer.\nThis value is used by some platforms such as eBay to measure a seller's shipping time and performance.\nIt will be displayed in the Shippo dashboard.","example":"2016-07-23T00:00:00Z","format":"date-time","type":"string","uniqueKey":"line_items.items.[INDEX].max_delivery_time","typeLabel":"string\u003cdate-time>"},"max_ship_time":{"description":"The date and time this item needs to be fulfilled by, i.e. by when the shipping label needs to be created and handed over to the carrier. This value is used by some platforms such as eBay to measure a seller's handling time and performance. It will be displayed in the Shippo dashboard.","example":"2016-07-23T00:00:00Z","format":"date-time","type":"string","uniqueKey":"line_items.items.[INDEX].max_ship_time","typeLabel":"string\u003cdate-time>"},"quantity":{"description":"The quantity of this item in this order.","example":20,"format":"int64","type":"integer","uniqueKey":"line_items.items.[INDEX].quantity","typeLabel":"integer\u003cint64>"},"sku":{"description":"The stock keeping unit value of this item.","example":"HM-123","type":"string","uniqueKey":"line_items.items.[INDEX].sku","typeLabel":"string"},"title":{"description":"Title of the line item.","example":"Hippo Magazines","type":"string","uniqueKey":"line_items.items.[INDEX].title","typeLabel":"string"},"total_price":{"description":"Total price paid by the buyer for this item (or these items, if quantity > 1).","example":"12.1","type":"string","uniqueKey":"line_items.items.[INDEX].total_price","typeLabel":"string"},"variant_title":{"description":"A variant is a specific variation of an item (e.g. `size M` or `color blue`).\nVariants might be exposed as a separate resource in the future too.\nCurrently the variant title is a free text field describing the variant.","example":"June Edition","type":"string","uniqueKey":"line_items.items.[INDEX].variant_title","typeLabel":"string"},"weight":{"description":"Total weight of this/these item(s). Instead of specifying the weight of all items, you can also set the `total_weight` value of the order object.","example":"0.4","type":"string","uniqueKey":"line_items.items.[INDEX].weight","typeLabel":"string"},"weight_unit":{"description":"The unit used for weight.","enum":["g","kg","lb","oz"],"example":"lb","type":"string","uniqueKey":"line_items.items.[INDEX].weight_unit","typeLabel":"enum\u003cstring>"},"object_id":{"type":"string","example":"abf7d5675d744b6ea9fdb6f796b28f28","description":"Unique identifier of the line item object.","uniqueKey":"line_items.items.[INDEX].object_id","typeLabel":"string"}},"uniqueKey":"line_items.items.[INDEX]","typeLabel":"Line Item · object"},"type":"array","uniqueKey":"line_items","typeLabel":"Line Item · object[]"},"object_id":{"example":"adcfdddf8ec64b84ad22772bce3ea37a","type":"string","description":"Unique identifier of the order object.","uniqueKey":"object_id","typeLabel":"string"},"object_owner":{"example":"shippotle@shippo.com","type":"string","description":"Username of the user who created the object.","uniqueKey":"object_owner","typeLabel":"string"},"shop_app":{"type":"string","description":"Platform the order was created on and, if applicable, imported from.\nOrders created via the Shippo API or dashboard will have the value \"Shippo\".","example":"Shippo","enum":["Amazon","Bigcommerce","CSV_Import","eBay","ePages","Etsy","Godaddy","Magento","Shippo","Shopify","Spreecommerce","StripeRelay","Walmart","Weebly","WooCommerce"],"uniqueKey":"shop_app","typeLabel":"enum\u003cstring>"},"transactions":{"items":{"type":"object","uniqueKey":"transactions.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Array of [transaction](/shippoapi/public-api/transactions) objects representing all shipping labels purchased for this order.\nAll objects are returned expanded with a limited number of fields by default.","uniqueKey":"transactions","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"placed_at":"2016-09-23T01:28:12Z","to_address":{"country":"US","name":"Shwan Ippotle","company":"Shippo","street1":"215 Clayton St.","street2":"\u003cstring>","street3":"","street_no":"","city":"San Francisco","state":"CA","zip":"94117","phone":"+1 555 341 9393","email":"shippotle@shippo.com","is_residential":true,"metadata":"Customer ID 123456","is_complete":true,"latitude":123,"longitude":123,"object_created":"2014-07-09T02:19:13.174Z","object_id":"d799c2679e644279b59fe661ac8fa488","object_owner":"shippotle@shippo.com","object_updated":"2014-07-09T02:19:13.174Z","validation_results":{"is_valid":false,"messages":[{"code":"Unknown Street","source":"Shippo Address Validator","text":"City, State and ZIP Code are valid, but street address is not a match.","type":"address_warning"}]},"test":false},"currency":"USD","notes":"This customer is a VIP","order_number":"#1068","order_status":"PAID","shipping_cost":"12.83","shipping_cost_currency":"USD","shipping_method":"USPS First Class Package","subtotal_price":"12.1","total_price":"24.93","total_tax":"0.0","weight":"0.4","weight_unit":"lb","from_address":{"country":"US","name":"Shwan Ippotle","company":"Shippo","street1":"215 Clayton St.","street2":"\u003cstring>","street3":"","street_no":"","city":"San Francisco","state":"CA","zip":"94117","phone":"+1 555 341 9393","email":"shippotle@shippo.com","is_residential":true,"metadata":"Customer ID 123456","is_complete":true,"latitude":123,"longitude":123,"object_created":"2014-07-09T02:19:13.174Z","object_id":"d799c2679e644279b59fe661ac8fa488","object_owner":"shippotle@shippo.com","object_updated":"2014-07-09T02:19:13.174Z","validation_results":{"is_valid":false,"messages":[{"code":"Unknown Street","source":"Shippo Address Validator","text":"City, State and ZIP Code are valid, but street address is not a match.","type":"address_warning"}]},"test":false},"line_items":[{"currency":"USD","manufacture_country":"US","max_delivery_time":"2016-07-23T00:00:00Z","max_ship_time":"2016-07-23T00:00:00Z","quantity":20,"sku":"HM-123","title":"Hippo Magazines","total_price":"12.1","variant_title":"June Edition","weight":"0.4","weight_unit":"lb","object_id":"abf7d5675d744b6ea9fdb6f796b28f28"}],"object_id":"adcfdddf8ec64b84ad22772bce3ea37a","object_owner":"shippotle@shippo.com","shop_app":"Shippo","transactions":[{}]}}},"exampleType":"generated"}},"exampleType":"generated"},"e8e1df23-55b8-4381-8f90-9826af1c7ad4":{"description":"Bad request","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e2ef846a-30d0-4cc0-909f-43265afde08a":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"Authorization","x-token-prefix":"ShippoToken","x-token-format":"ShippoToken {token}","x-default":"ShippoToken ","description":"API key authentication using the ShippoToken scheme.\nFormat: Authorization: ShippoToken \u003cAPI_TOKEN>\nExample: Authorization: ShippoToken shippo_live_abc123\n","scopes":[],"schemeName":"APIKeyHeader"}}},"servers":{"88cebe76-92b1-483c-b133-3935b3b6f9e7":{"url":"https://api.goshippo.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","x-token-prefix":"ShippoToken","x-token-format":"ShippoToken {token}","x-default":"ShippoToken ","description":"API key authentication using the ShippoToken scheme.\nFormat: Authorization: ShippoToken \u003cAPI_TOKEN>\nExample: Authorization: ShippoToken shippo_live_abc123\n","scopes":[],"schemeName":"APIKeyHeader"},"schema":{"title":"Authorization","type":"string","description":"API key authentication using the ShippoToken scheme.\nFormat: Authorization: ShippoToken \u003cAPI_TOKEN>\nExample: Authorization: ShippoToken shippo_live_abc123\n","isRequired":true,"default":"ShippoToken ","typeLabel":"string","deprecated":false},"schemeName":"APIKeyHeader","name":"Authorization"}],"title":"APIKeyHeader"}]},"originalFileLocation":"spec/shippoapi/public-api.yaml"},"subdomain":"shippo-f4b7b609","siteName":"Shippo API Documentation","title":"Create a new order - Shippo API Documentation","relatedPagesConfig":{"enabled":true,"limit":3,"mode":"automatic"},"contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/orders/create-a-new-order.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a new order object.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Shippo API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/shippo-f4b7b609/gcyqE9-1OT8BeY1o/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/shippo-f4b7b609/gcyqE9-1OT8BeY1o/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/shippo-f4b7b609/gcyqE9-1OT8BeY1o/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/shippo-f4b7b609/gcyqE9-1OT8BeY1o/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/shippo-f4b7b609/gcyqE9-1OT8BeY1o/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/shippo-f4b7b609/gcyqE9-1OT8BeY1o/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/shippo-f4b7b609/gcyqE9-1OT8BeY1o/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/shippo-f4b7b609/gcyqE9-1OT8BeY1o/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/shippo-f4b7b609/gcyqE9-1OT8BeY1o/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a new order - Shippo API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a new order object.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Shippo API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.goshippo.com/api-reference/orders/create-a-new-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://shippo-f4b7b609.mintlify.site/_mintlify/api/og/v2?division=Orders+%28beta%29\u0026amp;title=Create+a+new+order\u0026amp;description=Creates+a+new+order+object.\u0026amp;theme=c2d74747aec556fcb7efd3ec\u0026amp;signature=2673c38e206ffaf03ae1e7661302c5199acabf057ab240c46d1b84e8660f830b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a new order - Shippo API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a new order object.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://shippo-f4b7b609.mintlify.site/_mintlify/api/og/v2?division=Orders+%28beta%29\u0026amp;title=Create+a+new+order\u0026amp;description=Creates+a+new+order+object.\u0026amp;theme=c2d74747aec556fcb7efd3ec\u0026amp;signature=2673c38e206ffaf03ae1e7661302c5199acabf057ab240c46d1b84e8660f830b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/shippo-f4b7b609/gcyqE9-1OT8BeY1o/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Shippo API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.goshippo.com/api-reference/orders/create-a-new-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/orders/create-a-new-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://goshippo.com/#organization\",\"name\":\"Shippo\",\"legalName\":\"Shippo, Inc.\",\"url\":\"https://goshippo.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://docs.goshippo.com/logo/light.svg\"},\"sameAs\":[\"https://www.linkedin.com/company/shippo\",\"https://x.com/goshippo\",\"https://github.com/goshippo\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.goshippo.com#website\",\"name\":\"Shippo API Documentation\",\"url\":\"https://docs.goshippo.com\",\"publisher\":{\"@id\":\"https://goshippo.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.goshippo.com/api-reference/orders/create-a-new-order#webpage\",\"url\":\"https://docs.goshippo.com/api-reference/orders/create-a-new-order\",\"name\":\"Create a new order\",\"description\":\"Creates a new order object.\",\"isPartOf\":{\"@id\":\"https://docs.goshippo.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.goshippo.com/api-reference/orders/create-a-new-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.goshippo.com/api-reference/orders/create-a-new-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Shippo API\",\"item\":\"https://docs.goshippo.com/api-reference/addresses/list-all-addresses\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Orders (beta)\",\"item\":\"https://docs.goshippo.com/api-reference/orders/list-all-orders\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a new order\",\"item\":\"https://docs.goshippo.com/api-reference/orders/create-a-new-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.goshippo.com/api-reference/orders/create-a-new-order#apireference\",\"headline\":\"Create a new order\",\"name\":\"Create a new order\",\"description\":\"Creates a new order object.\",\"url\":\"https://docs.goshippo.com/api-reference/orders/create-a-new-order\",\"mainEntityOfPage\":{\"@id\":\"https://docs.goshippo.com/api-reference/orders/create-a-new-order#webpage\"},\"publisher\":{\"@id\":\"https://goshippo.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.goshippo.com#website\"}}]}\u003c/script>","agentPointerHref":"/api-reference/orders/create-a-new-order.md","siteName":"Shippo API Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference Overview","href":"/api-reference/overview"}]},{"group":"Shippo API","pages":[{"group":"Addresses","pages":[{"title":"List all addresses","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /addresses","href":"/api-reference/addresses/list-all-addresses"},{"title":"Create a new address","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /addresses","href":"/api-reference/addresses/create-a-new-address"},{"title":"Retrieve an address","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /addresses/{AddressId}","href":"/api-reference/addresses/retrieve-an-address"},{"title":"Validate an address","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /addresses/{AddressId}/validate","href":"/api-reference/addresses/validate-an-address"}]},{"group":"Batches","pages":[{"title":"Create a batch","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /batches","href":"/api-reference/batches/create-a-batch"},{"title":"Retrieve a batch","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /batches/{BatchId}","href":"/api-reference/batches/retrieve-a-batch"},{"title":"Add shipments to a batch","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /batches/{BatchId}/add_shipments","href":"/api-reference/batches/add-shipments-to-a-batch"},{"title":"Purchase a batch","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /batches/{BatchId}/purchase","href":"/api-reference/batches/purchase-a-batch"},{"title":"Remove shipments from a batch","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /batches/{BatchId}/remove_shipments","href":"/api-reference/batches/remove-shipments-from-a-batch"}]},{"group":"Carrier Accounts","pages":[{"title":"List all carrier accounts","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /carrier_accounts","href":"/api-reference/carrier-accounts/list-all-carrier-accounts"},{"title":"Create a new carrier account","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /carrier_accounts","href":"/api-reference/carrier-accounts/create-a-new-carrier-account"},{"title":"Retrieve a carrier account","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /carrier_accounts/{CarrierAccountId}","href":"/api-reference/carrier-accounts/retrieve-a-carrier-account"},{"title":"Update a carrier account","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml put /carrier_accounts/{CarrierAccountId}","href":"/api-reference/carrier-accounts/update-a-carrier-account"},{"title":"Connect an existing carrier account using OAuth 2.0","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /carrier_accounts/{CarrierAccountObjectId}/signin/initiate","href":"/api-reference/carrier-accounts/connect-an-existing-carrier-account-using-oauth-20"},{"title":"Add a Shippo carrier account","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /carrier_accounts/register/new","href":"/api-reference/carrier-accounts/add-a-shippo-carrier-account"},{"title":"Get Carrier Registration status","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /carrier_accounts/reg-status","href":"/api-reference/carrier-accounts/get-carrier-registration-status"}]},{"group":"Customs Declarations","pages":[{"title":"List all customs declarations","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /customs/declarations","href":"/api-reference/customs-declarations/list-all-customs-declarations"},{"title":"Create a new customs declaration","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /customs/declarations","href":"/api-reference/customs-declarations/create-a-new-customs-declaration"},{"title":"Retrieve a customs declaration","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /customs/declarations/{CustomsDeclarationId}","href":"/api-reference/customs-declarations/retrieve-a-customs-declaration"}]},{"group":"Customs Items","pages":[{"title":"List all customs items","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /customs/items","href":"/api-reference/customs-items/list-all-customs-items"},{"title":"Create a new customs item","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /customs/items","href":"/api-reference/customs-items/create-a-new-customs-item"},{"title":"Retrieve a customs item","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /customs/items/{CustomsItemId}","href":"/api-reference/customs-items/retrieve-a-customs-item"}]},{"group":"Embedded Authorization","pages":[{"title":"Create a JWT","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /embedded/authz","href":"/api-reference/embedded-authorization/create-a-jwt"}]},{"group":"Rates at Checkout","pages":[{"title":"Generate a live rates request","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /live-rates","href":"/api-reference/rates-at-checkout/generate-a-live-rates-request"},{"title":"Show current default parcel template","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /live-rates/settings/parcel-template","href":"/api-reference/rates-at-checkout/show-current-default-parcel-template"},{"title":"Update default parcel template","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml put /live-rates/settings/parcel-template","href":"/api-reference/rates-at-checkout/update-default-parcel-template"},{"title":"Clear current default parcel template","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml delete /live-rates/settings/parcel-template","href":"/api-reference/rates-at-checkout/clear-current-default-parcel-template"}]},{"group":"Manifests","pages":[{"title":"List all manifests","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /manifests","href":"/api-reference/manifests/list-all-manifests"},{"title":"Create a new manifest","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /manifests","href":"/api-reference/manifests/create-a-new-manifest"},{"title":"Retrieve a manifest","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /manifests/{ManifestId}","href":"/api-reference/manifests/retrieve-a-manifest"}]},{"group":"Orders (beta)","pages":[{"title":"List all orders","description":"Returns a list of all order objects.","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /orders","href":"/api-reference/orders/list-all-orders"},{"title":"Create a new order","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /orders","href":"/api-reference/orders/create-a-new-order"},{"title":"Retrieve an order","description":"Retrieves an existing order using an object ID.","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /orders/{OrderId}","href":"/api-reference/orders/retrieve-an-order"}]},{"group":"Carrier Parcel Templates","pages":[{"title":"List all carrier parcel templates","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /parcel-templates","href":"/api-reference/carrier-parcel-templates/list-all-carrier-parcel-templates"},{"title":"Retrieve a carrier parcel templates","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /parcel-templates/{CarrierParcelTemplateToken}","href":"/api-reference/carrier-parcel-templates/retrieve-a-carrier-parcel-templates"}]},{"group":"Parcels","pages":[{"title":"List all parcels","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /parcels","href":"/api-reference/parcels/list-all-parcels"},{"title":"Create a new parcel","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /parcels","href":"/api-reference/parcels/create-a-new-parcel"},{"title":"Retrieve an existing parcel","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /parcels/{ParcelId}","href":"/api-reference/parcels/retrieve-an-existing-parcel"}]},{"group":"Pickups","pages":[{"title":"Create a pickup","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /pickups","href":"/api-reference/pickups/create-a-pickup"}]},{"group":"Rates","pages":[{"title":"Retrieve a rate","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /rates/{RateId}","href":"/api-reference/rates/retrieve-a-rate"},{"title":"Retrieve shipment rates","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /shipments/{ShipmentId}/rates","href":"/api-reference/rates/retrieve-shipment-rates"},{"title":"Retrieve shipment rates in currency","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /shipments/{ShipmentId}/rates/{CurrencyCode}","href":"/api-reference/rates/retrieve-shipment-rates-in-currency"}]},{"group":"Refunds","pages":[{"title":"Create a refund","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /refunds","href":"/api-reference/refunds/create-a-refund"},{"title":"List all refunds","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /refunds/","href":"/api-reference/refunds/list-all-refunds"},{"title":"Retrieve a refund","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /refunds/{RefundId}","href":"/api-reference/refunds/retrieve-a-refund"}]},{"group":"Service Groups","pages":[{"title":"List all service groups","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /service-groups","href":"/api-reference/service-groups/list-all-service-groups"},{"title":"Update an existing service group","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml put /service-groups","href":"/api-reference/service-groups/update-an-existing-service-group"},{"title":"Create a new service group","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /service-groups","href":"/api-reference/service-groups/create-a-new-service-group"},{"title":"Delete a service group","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml delete /service-groups/{ServiceGroupId}","href":"/api-reference/service-groups/delete-a-service-group"}]},{"group":"Shipments","pages":[{"title":"List all shipments","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /shipments","href":"/api-reference/shipments/list-all-shipments"},{"title":"Create a new shipment","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /shipments","href":"/api-reference/shipments/create-a-new-shipment"},{"title":"Retrieve a shipment","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /shipments/{ShipmentId}","href":"/api-reference/shipments/retrieve-a-shipment"}]},{"group":"Tracking Status","pages":[{"title":"Register a tracking webhook","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /tracks","href":"/api-reference/tracking-status/register-a-tracking-webhook"},{"title":"Get a tracking status","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /tracks/{Carrier}/{TrackingNumber}","href":"/api-reference/tracking-status/get-a-tracking-status"}]},{"group":"Transactions (shipping labels)","pages":[{"title":"List all shipping labels","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /transactions","href":"/api-reference/transactions/list-all-shipping-labels"},{"title":"Create a shipping label","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /transactions","href":"/api-reference/transactions/create-a-shipping-label"},{"title":"Retrieve a shipping label","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /transactions/{TransactionId}","href":"/api-reference/transactions/retrieve-a-shipping-label"}]},{"group":"User Parcel Templates","pages":[{"title":"List all user parcel templates","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /user-parcel-templates","href":"/api-reference/user-parcel-templates/list-all-user-parcel-templates"},{"title":"Create a new user parcel template","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /user-parcel-templates","href":"/api-reference/user-parcel-templates/create-a-new-user-parcel-template"},{"title":"Retrieves a user parcel template","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /user-parcel-templates/{UserParcelTemplateObjectId}","href":"/api-reference/user-parcel-templates/retrieves-a-user-parcel-template"},{"title":"Update an existing user parcel template","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml put /user-parcel-templates/{UserParcelTemplateObjectId}","href":"/api-reference/user-parcel-templates/update-an-existing-user-parcel-template"},{"title":"Delete a user parcel template","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml delete /user-parcel-templates/{UserParcelTemplateObjectId}","href":"/api-reference/user-parcel-templates/delete-a-user-parcel-template"}]},{"group":"Shippo Accounts","pages":[{"title":"List all Shippo Accounts","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /shippo-accounts","href":"/api-reference/shippo-accounts/list-all-shippo-accounts"},{"title":"Create a Shippo Account","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /shippo-accounts","href":"/api-reference/shippo-accounts/create-a-shippo-account"},{"title":"Retrieve a Shippo Account","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /shippo-accounts/{ShippoAccountId}","href":"/api-reference/shippo-accounts/retrieve-a-shippo-account"},{"title":"Update a Shippo Account","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml put /shippo-accounts/{ShippoAccountId}","href":"/api-reference/shippo-accounts/update-a-shippo-account"}]},{"group":"Webhooks","pages":[{"title":"List all webhooks","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /webhooks","href":"/api-reference/webhooks/list-all-webhooks"},{"title":"Create a new webhook","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml post /webhooks","href":"/api-reference/webhooks/create-a-new-webhook"},{"title":"Retrieve a specific webhook","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml get /webhooks/{webhookId}","href":"/api-reference/webhooks/retrieve-a-specific-webhook"},{"title":"Update an existing webhook","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml put /webhooks/{webhookId}","href":"/api-reference/webhooks/update-an-existing-webhook"},{"title":"Delete a specific webhook","deprecated":null,"version":null,"openapi":"/spec/shippoapi/public-api.yaml delete /webhooks/{webhookId}","href":"/api-reference/webhooks/delete-a-specific-webhook"}]},{"group":"API Reference","pages":[{"title":"Batch","version":null,"deprecated":null,"openapi":"/spec/shippoapi/public-api.yaml webhook batch","href":"/api-reference/batch"},{"title":"Track","version":null,"deprecated":null,"openapi":"/spec/shippoapi/public-api.yaml webhook track","href":"/api-reference/track"},{"title":"Transaction","version":null,"deprecated":null,"openapi":"/spec/shippoapi/public-api.yaml webhook transaction","href":"/api-reference/transaction"}]}]},{"group":"Enums","pages":[{"title":"Service Levels","href":"/api-reference/service-levels/index"},{"title":"Parcel Templates","href":"/api-reference/parcel-templates/index"}]},{"group":"Service Levels","hidden":true,"pages":[{"title":"Airterra Service Levels","href":"/api-reference/service-levels/airterra"},{"title":"APC Postal Service Levels","href":"/api-reference/service-levels/apc-postal"},{"title":"APG Service Levels","href":"/api-reference/service-levels/apg"},{"title":"Asendia US Service Levels","href":"/api-reference/service-levels/asendia-us"},{"title":"Australia Post Service Levels","href":"/api-reference/service-levels/australia-post"},{"title":"Jitsu Service Levels","href":"/api-reference/service-levels/axlehire"},{"title":"BetterTrucks Service Levels","href":"/api-reference/service-levels/better-trucks"},{"title":"Canada Post Service Levels","href":"/api-reference/service-levels/canada-post"},{"title":"Chronopost Service Levels","href":"/api-reference/service-levels/chronopost"},{"title":"Colissimo Service Levels","href":"/api-reference/service-levels/colissimo"},{"title":"Correos España Service Levels","href":"/api-reference/service-levels/correos-espana"},{"title":"Deutsche Post Service Levels","href":"/api-reference/service-levels/deutsche-post"},{"title":"DHL eCommerce Service Levels","href":"/api-reference/service-levels/dhl-ecommerce"},{"title":"DHL Express Service Levels","href":"/api-reference/service-levels/dhl-express"},{"title":"DHL Germany Service Levels","href":"/api-reference/service-levels/dhl-germany"},{"title":"DPD GERMANY Service Levels","href":"/api-reference/service-levels/dpd-de"},{"title":"DPD UK Service Levels","href":"/api-reference/service-levels/dpd-uk"},{"title":"Aramex Service Levels","href":"/api-reference/service-levels/fastway-australia"},{"title":"FedEx Service Levels","href":"/api-reference/service-levels/fedex"},{"title":"Globegistics Service Levels","href":"/api-reference/service-levels/globegistics"},{"title":"GLS US Service Levels","href":"/api-reference/service-levels/gls-us"},{"title":"Evri UK Service Levels","href":"/api-reference/service-levels/hermes-uk"},{"title":"LaserShip Service Levels","href":"/api-reference/service-levels/lasership"},{"title":"LSO Service Levels","href":"/api-reference/service-levels/lso"},{"title":"Mondial Relay Service Levels","href":"/api-reference/service-levels/mondial-relay"},{"title":"OnTrac Service Levels","href":"/api-reference/service-levels/ontrac"},{"title":"Parcelforce Service Levels","href":"/api-reference/service-levels/parcelforce"},{"title":"Poste Italiane Service Levels","href":"/api-reference/service-levels/poste-italiane"},{"title":"Purolator Service Levels","href":"/api-reference/service-levels/purolator"},{"title":"Royal Mail Service Levels","href":"/api-reference/service-levels/royal-mail"},{"title":"Royal Mail Storefeeder Service Levels","href":"/api-reference/service-levels/royal-mail-sf"},{"title":"ePost Global Service Levels","href":"/api-reference/service-levels/rr-donnelley"},{"title":"Swyft Service Levels","href":"/api-reference/service-levels/swyft"},{"title":"UDS Service Levels","href":"/api-reference/service-levels/uds"},{"title":"UPS Service Levels","href":"/api-reference/service-levels/ups"},{"title":"USPS Service Levels","href":"/api-reference/service-levels/usps"},{"title":"Veho Service Levels","href":"/api-reference/service-levels/veho"}]},{"group":"Addresses API v2","pages":[{"group":"Validation","pages":[{"title":"Validate address","deprecated":null,"version":null,"openapi":"/api-reference/addressesapi/address_v2.yaml get /v2/addresses/validate","href":"/api-reference/validation/validate-address"}]},{"group":"Parser","pages":[{"title":"Parse Address","deprecated":null,"version":null,"openapi":"/api-reference/addressesapi/address_v2.yaml get /v2/addresses/parse","href":"/api-reference/parser/parse-address"}]},{"group":"Address Book","pages":[{"title":"Retrieve a single address","deprecated":null,"version":null,"openapi":"/api-reference/addressesapi/address_v2.yaml get /v2/addresses/{address_id}","href":"/api-reference/address-book/retrieve-a-single-address"},{"title":"Update an address","deprecated":null,"version":null,"openapi":"/api-reference/addressesapi/address_v2.yaml put /v2/addresses/{address_id}","href":"/api-reference/address-book/update-an-address"},{"title":"Delete an address","deprecated":null,"version":null,"openapi":"/api-reference/addressesapi/address_v2.yaml delete /v2/addresses/{address_id}","href":"/api-reference/address-book/delete-an-address"},{"title":"Retrieve addresses","deprecated":null,"version":null,"openapi":"/api-reference/addressesapi/address_v2.yaml get /v2/addresses","href":"/api-reference/address-book/retrieve-addresses"},{"title":"Create a new address","deprecated":null,"version":null,"openapi":"/api-reference/addressesapi/address_v2.yaml post /v2/addresses","href":"/api-reference/address-book/create-a-new-address"}]}]},{"group":"Surcharges API","hidden":true,"pages":[{"group":"Surcharges","pages":[{"title":"List surcharge files","deprecated":null,"version":null,"openapi":"/api-reference/surchargesapi/openapi.yaml get /v2/reports/surcharges","href":"/api-reference/surcharges/list-surcharge-files"},{"title":"Retrieve surcharge file","deprecated":null,"version":null,"openapi":"/api-reference/surchargesapi/openapi.yaml get /v2/reports/surcharges/{file_id}","href":"/api-reference/surcharges/retrieve-surcharge-file"}]}]},{"group":"Reports API","hidden":true,"pages":[{"group":"Reports","pages":[{"title":"Return list of reports","deprecated":null,"version":null,"openapi":"/api-reference/shipporeports/openapi.yaml get /v2/reports/{report_type_uuid}/runs","href":"/api-reference/reports/return-list-of-reports"},{"title":"Download report","deprecated":null,"version":null,"openapi":"/api-reference/shipporeports/openapi.yaml get /v2/reports/{report_type_uuid}/runs/{report_run_uuid}/download","href":"/api-reference/reports/download-report"}]}]},{"group":"Reporting API","hidden":false,"pages":[{"group":"Report Runs","pages":[{"title":"List Report Runs","deprecated":null,"version":null,"openapi":"/api-reference/reporting-api/openapi.yaml get /v2/reporting/runs","href":"/api-reference/report-runs/list-report-runs"},{"title":"Create Report Run","deprecated":null,"version":null,"openapi":"/api-reference/reporting-api/openapi.yaml post /v2/reporting/runs","href":"/api-reference/report-runs/create-report-run"},{"title":"Get Report Run","deprecated":null,"version":null,"openapi":"/api-reference/reporting-api/openapi.yaml get /v2/reporting/runs/{run_id}","href":"/api-reference/report-runs/get-report-run"}]},{"group":"Reports","pages":[{"title":"List Report Types","deprecated":null,"version":null,"openapi":"/api-reference/reporting-api/openapi.yaml get /v2/reporting/reports","href":"/api-reference/reports/list-report-types"},{"title":"Get Report Type","deprecated":null,"version":null,"openapi":"/api-reference/reporting-api/openapi.yaml get /v2/reporting/reports/{report_type}","href":"/api-reference/reports/get-report-type"}]}]},{"group":"Invoices API","hidden":true,"pages":[{"group":"Invoices","pages":[{"title":"List invoice files","deprecated":null,"version":null,"openapi":"/api-reference/shipporeportinvoices/invoices-api.yaml get /v2/reports/invoices","href":"/api-reference/invoices/list-invoice-files"},{"title":"Retrieve invoice file","deprecated":null,"version":null,"openapi":"/api-reference/shipporeportinvoices/invoices-api.yaml get /v2/reports/invoices/{file_id}","href":"/api-reference/invoices/retrieve-invoice-file"}]}]},{"group":"Estimate API","pages":[{"group":"Estimates","pages":[{"title":"Create Estimates","deprecated":null,"version":null,"openapi":"/api-reference/estimateapi/openapi.yaml post /v2/estimates","href":"/api-reference/estimates/create-estimates"}]}]},{"group":"Automations API","hidden":false,"tag":"Beta","pages":[{"group":"Automations","pages":[{"title":"List label-purchase requests","deprecated":null,"version":null,"openapi":"/api-reference/automationsapi/openapi.yaml get /automations/labels","href":"/api-reference/automations/list-label-purchase-requests"},{"title":"Buy a label using your automation rules","deprecated":null,"version":null,"openapi":"/api-reference/automationsapi/openapi.yaml post /automations/labels","href":"/api-reference/automations/buy-a-label-using-your-automation-rules"},{"title":"Get request status","deprecated":null,"version":null,"openapi":"/api-reference/automationsapi/openapi.yaml get /automations/labels/{request_id}","href":"/api-reference/automations/get-request-status"},{"title":"Get the decision behind a selected rate","deprecated":null,"version":null,"openapi":"/api-reference/automationsapi/openapi.yaml get /automations/labels/{request_id}/decision","href":"/api-reference/automations/get-the-decision-behind-a-selected-rate"}]}]},{"group":"Parcel Templates","hidden":true,"pages":[{"title":"Aramex Australia Parcel Templates","href":"/api-reference/parcel-templates/aramex-australia"},{"title":"DHL eCommerce Parcel Templates","href":"/api-reference/parcel-templates/dhl-ecommerce"},{"title":"DPD UK Parcel Templates","href":"/api-reference/parcel-templates/dpd-uk"},{"title":"FedEx Parcel Templates","href":"/api-reference/parcel-templates/fedex"},{"title":"UPS Parcel Templates","href":"/api-reference/parcel-templates/ups"},{"title":"USPS Parcel Templates","href":"/api-reference/parcel-templates/usps"}]}]},{"tab":"Shipping Elements","pages":[{"title":"Shipping Elements","href":"/shipping-elements"}]}]},"basePath":"","title":"Create a new order - Shippo API Documentation","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-C6Z1vAfX.js","snippetPresets-Bjd6OXRM.js","utils-QL6OhUyF.js","style-to-object-BY3JEAdk.js","utils-Dsq-HLeF.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CEYfmkoV.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CHgPjMM8.js","_Uint8Array-IXRJ_ueo.js","isObject-FP1Yky1u.js","Page-B_smDgrp.js","api-description-markdown-DtcP2u3s.js","DynamicMarkdown-DOefW1_8.js","CodeSnippet-C_J7pouP.js","use-playground-group-access-bkOyfPao.js","SectionHeading-Cg4lfWZw.js","ApiExamples-pq4ns9YA.js","usePlaygroundInputsStore-D-gnigmo.js","shallow-DIfWGPrf.js","isEqual-DDFuixlH.js","CodeSnippets-8g5rilZj.js","MethodPill-BnqygvYm.js","getPastedJson-BGXYEZ3P.js","Check2Icon-BBeO3TOS.js","axios-CsQoIw0U.js","Markdown-D5IqLG6A.js","AssistantPageLink-_S2h4i6W.js","dist-DzZqOeCq.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}