{"openapi":"3.1.0","info":{"title":"ShipMate Shipping Quote API","version":"1.0.0","description":"Public shipping estimates from Japan with no authentication. Use the Send It Home exact-weight endpoint when the customer is in Japan with the goods, and Shop for Me when the customer is outside Japan and wants ShipMate to buy from Japanese stores. Prices are estimates in JPY; always read the included and excluded charges.","contact":{"name":"ShipMate support","url":"https://www.shipmate.jp/en/contact-us","email":"support@shipmate.jp"}},"servers":[{"url":"https://www-api.shipmate.jp"}],"externalDocs":{"description":"Shipping quote API and remote MCP documentation","url":"https://www.shipmate.jp/en/developers/shipping-quotes"},"components":{"schemas":{},"parameters":{}},"paths":{"/shipping-quote":{"get":{"tags":["Shipping"],"summary":"Shipping quote for a destination country. Weight-priced (Japan Post EMS) by default; volumetric lanes are priced live against the carrier from the parcel's dimensions and destination city.","operationId":"get_ShippingQuote","parameters":[{"schema":{"type":"string","enum":["send_it_home","shop_for_me"],"default":"send_it_home"},"required":false,"name":"service","in":"query"},{"schema":{"type":"string"},"required":true,"name":"country_code","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":64},"required":false,"name":"city","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200},"required":false,"name":"length_cm","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200},"required":false,"name":"width_cm","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200},"required":false,"name":"height_cm","in":"query"},{"schema":{"type":"string"},"required":false,"name":"weights_kg","in":"query"}],"responses":{"200":{"description":"Quote with handling + margin applied. `pricing_model` says how to read it; `prices` carries a weight → price ladder either way.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"service":{"type":"string","enum":["send_it_home","shop_for_me"]},"country_code":{"type":"string"},"currency":{"type":"string","enum":["JPY"]},"pricing_model":{"type":"string","enum":["weight"]},"carrier":{"type":"string","enum":["JAPAN_POST_INTERNATIONAL_EMS"]},"duty_included":{"type":"boolean"},"duties":{"type":"object","properties":{"model":{"type":"string","enum":["prepaid_at_cost","recipient_pays"]},"provider":{"type":"string","enum":["zonos"]},"estimate_jpy":{"type":["integer","null"]},"band_pct":{"type":"object","properties":{"low":{"type":"number"},"high":{"type":"number"}},"required":["low","high"]}},"required":["model","estimate_jpy"]},"prices":{"type":"array","items":{"type":"object","properties":{"weight":{"type":"number"},"price":{"type":"integer"},"chargeable_weight":{"type":"number"}},"required":["weight","price"]}},"alternatives":{"type":"array","items":{"type":"object","properties":{"carrier":{"type":"string","enum":["JAPAN_POST_INTERNATIONAL_PARCEL_SURFACE"],"description":"Courier service code. JAPAN_POST_INTERNATIONAL_PARCEL_SURFACE is Japan Post international parcel by sea (国際小包 船便)."},"mode":{"type":"string","enum":["air","surface"]},"tracked":{"type":"boolean"},"signed_for":{"type":"boolean","description":"Delivered against a signature."},"insured":{"type":"boolean","description":"Whether the parcel is insured against loss or damage. False for surface; EMS, the headline, is insured by Japan Post."},"transit_days":{"type":["object","null"],"properties":{"min":{"type":"integer"},"max":{"type":"integer"}},"required":["min","max"],"description":"The carrier's own range in calendar days. An estimate: no delivery date is promised for this service."},"prices":{"type":"array","items":{"type":"object","properties":{"weight":{"type":"number"},"price":{"type":"integer"},"chargeable_weight":{"type":"number"}},"required":["weight","price"]}}},"required":["carrier","mode","tracked","signed_for","insured","transit_days","prices"]},"description":"Slower, cheaper services this destination is open to beside the EMS headline, priced with the same formula. Omitted when EMS is the only service offered. The customer picks one after weighing."}},"required":["country_code","currency","pricing_model","carrier","duty_included","prices"]},{"type":"object","properties":{"service":{"type":"string","enum":["send_it_home","shop_for_me"]},"country_code":{"type":"string"},"currency":{"type":"string","enum":["JPY"]},"pricing_model":{"type":"string","enum":["volumetric_live"]},"carrier":{"type":"string","enum":["DHL_EXPRESS"]},"duty_included":{"type":"boolean"},"duties":{"type":"object","properties":{"model":{"type":"string","enum":["prepaid_at_cost","recipient_pays"]},"provider":{"type":"string","enum":["zonos"]},"estimate_jpy":{"type":["integer","null"]},"band_pct":{"type":"object","properties":{"low":{"type":"number"},"high":{"type":"number"}},"required":["low","high"]}},"required":["model","estimate_jpy"]},"city":{"type":"string"},"city_is_default":{"type":"boolean"},"city_is_fallback":{"type":"boolean"},"postal_code":{"type":["string","null"]},"available_cities":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]}},"dimensions_cm":{"type":"object","properties":{"length":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"}},"required":["length","width","height"]},"dimensions_are_default":{"type":"boolean"},"volumetric_kg":{"type":"number"},"max_weight_kg":{"type":"number"},"box_presets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["S","M","L"]},"max_dimension_sum_cm":{"type":"number"},"dimensions_cm":{"type":"object","properties":{"length":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"}},"required":["length","width","height"]},"volumetric_kg":{"type":"number"}},"required":["id","max_dimension_sum_cm","dimensions_cm","volumetric_kg"]}},"transit_days":{"type":["object","null"],"properties":{"min":{"type":"number"},"max":{"type":"number"}},"required":["min","max"]},"prices":{"type":"array","items":{"type":"object","properties":{"weight":{"type":"number"},"price":{"type":"integer"},"chargeable_weight":{"type":"number"}},"required":["weight","price"]}}},"required":["country_code","currency","pricing_model","carrier","duty_included","city","city_is_default","city_is_fallback","postal_code","available_cities","dimensions_cm","dimensions_are_default","volumetric_kg","max_weight_kg","box_presets","transit_days","prices"]}]}}}},"400":{"description":"Invalid country_code, unknown city for this lane, partial dimensions, or a parcel over the size limit."},"429":{"description":"Rate limit exceeded."},"503":{"description":"The carrier could not be reached for a live quote. Transient."}}}},"/post-offices":{"get":{"tags":["Post Offices"],"summary":"Japan Post offices within a lat/lng bounding box. Used by the map on the Shipmate.jp marketing site.","operationId":"get_PostOffices","parameters":[{"schema":{"type":["number","null"],"minimum":-90,"maximum":90},"required":false,"name":"north","in":"query"},{"schema":{"type":["number","null"],"minimum":-90,"maximum":90},"required":false,"name":"south","in":"query"},{"schema":{"type":["number","null"],"minimum":-180,"maximum":180},"required":false,"name":"east","in":"query"},{"schema":{"type":["number","null"],"minimum":-180,"maximum":180},"required":false,"name":"west","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":500,"default":200},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Matching post offices. When more than `limit` match, a stable sample of `limit` spread evenly across the box.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"external_id":{"type":"string"},"name":{"type":"string"},"name_kana":{"type":["string","null"]},"zip_code":{"type":"string"},"address":{"type":"string"},"prefecture_code":{"type":"string"},"city_code":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"parking_lots":{"type":["integer","null"]},"supports_digital_counter":{"type":"boolean"},"detail_url":{"type":["string","null"]},"business_hours":{},"name_en":{"type":["string","null"]},"phone":{"type":["string","null"]},"opening_hours":{},"is_contract_office":{"type":"boolean"}},"required":["id","external_id","name","name_kana","zip_code","address","prefecture_code","city_code","latitude","longitude","parking_lots","supports_digital_counter","detail_url","name_en","phone","is_contract_office"]}}}}},"400":{"description":"Invalid bounding box or limit."},"429":{"description":"Rate limit exceeded."}}}},"/dropoff-locations":{"get":{"tags":["Drop-off Locations"],"summary":"The places nearest a point in Japan where a Send It Home customer can drop off a parcel: Japan Post offices and partner stores, with distance, hours and whether each is open now.","description":"For Send It Home only — the customer is in Japan with the goods. Give `query` (a station, area, landmark, hotel, address or postal code, in English or Japanese) or `latitude` and `longitude`. Results are nearest first within `radius_km`. Nothing is paid at drop-off; the customer books free and pays once after ShipMate weighs the parcel.","operationId":"get_DropoffLocations","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Where the customer is, in words: a station, area, landmark, hotel, address or postal code in Japan (e.g. \"Shinjuku Station\", \"Asakusa\", \"160-0022\"). English or Japanese. Ignored when latitude and longitude are given."},"required":false,"description":"Where the customer is, in words: a station, area, landmark, hotel, address or postal code in Japan (e.g. \"Shinjuku Station\", \"Asakusa\", \"160-0022\"). English or Japanese. Ignored when latitude and longitude are given.","name":"query","in":"query"},{"schema":{"type":"number","minimum":20,"maximum":46,"description":"Latitude of the customer's location in Japan. Give it with longitude when the customer shared an exact location; otherwise use query."},"required":false,"description":"Latitude of the customer's location in Japan. Give it with longitude when the customer shared an exact location; otherwise use query.","name":"latitude","in":"query"},{"schema":{"type":"number","minimum":122,"maximum":154,"description":"Longitude of the customer's location in Japan. See latitude."},"required":false,"description":"Longitude of the customer's location in Japan. See latitude.","name":"longitude","in":"query"},{"schema":{"type":"number","exclusiveMinimum":0,"maximum":50,"default":10,"description":"How far to look, in km (default 10, max 50)."},"required":false,"description":"How far to look, in km (default 10, max 50).","name":"radius_km","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":25,"default":10,"description":"How many places to return, nearest first (default 10, max 25)."},"required":false,"description":"How many places to return, nearest first (default 10, max 25).","name":"limit","in":"query"},{"schema":{"type":"string","enum":["all","post_office","partner"],"default":"all","description":"\"all\" (default), \"post_office\" for Japan Post offices only, or \"partner\" for partner stores only."},"required":false,"description":"\"all\" (default), \"post_office\" for Japan Post offices only, or \"partner\" for partner stores only.","name":"kind","in":"query"}],"responses":{"200":{"description":"Nearest drop-off places within `radius_km`; `locations` is empty when there are none.","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"string","enum":["send_it_home"],"description":"Drop-off is part of Send It Home only: the customer is in Japan with the goods. Shop for Me customers never drop anything off."},"origin":{"type":"object","properties":{"latitude":{"type":"number"},"longitude":{"type":"number"},"source":{"type":"string","enum":["coordinates","query"],"description":"\"coordinates\" when latitude/longitude were given; \"query\" when the place was looked up from the query text."},"query":{"type":["string","null"]},"matched_place":{"type":["string","null"],"description":"The place the query was matched to. Check it is the place the customer meant."},"partial_match":{"type":"boolean","description":"True when only part of the query matched; confirm the place with the customer before relying on the results."}},"required":["latitude","longitude","source","query","matched_place","partial_match"],"description":"The point the distances are measured from."},"radius_km":{"type":"number"},"checked_at":{"type":"string","description":"When the open/closed states were computed, in Japan time."},"locations":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["post_office","partner"],"description":"\"post_office\" = a Japan Post office; \"partner\" = a partner store or hotel that takes in any ShipMate GO customer's parcel."},"id":{"type":"integer"},"name":{"type":"string","description":"The name as written in Japan, usually Japanese."},"name_en":{"type":["string","null"],"description":"Japan Post's English name for the office, when it has one."},"partner_category":{"type":["string","null"],"enum":["hotel","store",null],"description":"For a partner: hotel or store. Null for a post office."},"postal_code":{"type":"string"},"address":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"distance_m":{"type":"integer","description":"Straight-line distance from the search point, in metres."},"opening_hours":{"type":["object","null"],"properties":{"mon":{"type":"array","items":{"type":"object","properties":{"open":{"type":"string"},"close":{"type":"string"}},"required":["open","close"]},"description":"Opening periods that day; an empty list means closed all day."},"tue":{"type":"array","items":{"type":"object","properties":{"open":{"type":"string"},"close":{"type":"string"}},"required":["open","close"]},"description":"Opening periods that day; an empty list means closed all day."},"wed":{"type":"array","items":{"type":"object","properties":{"open":{"type":"string"},"close":{"type":"string"}},"required":["open","close"]},"description":"Opening periods that day; an empty list means closed all day."},"thu":{"type":"array","items":{"type":"object","properties":{"open":{"type":"string"},"close":{"type":"string"}},"required":["open","close"]},"description":"Opening periods that day; an empty list means closed all day."},"fri":{"type":"array","items":{"type":"object","properties":{"open":{"type":"string"},"close":{"type":"string"}},"required":["open","close"]},"description":"Opening periods that day; an empty list means closed all day."},"sat":{"type":"array","items":{"type":"object","properties":{"open":{"type":"string"},"close":{"type":"string"}},"required":["open","close"]},"description":"Opening periods that day; an empty list means closed all day."},"sun":{"type":"array","items":{"type":"object","properties":{"open":{"type":"string"},"close":{"type":"string"}},"required":["open","close"]},"description":"Opening periods that day; an empty list means closed all day."},"holiday":{"type":["array","null"],"items":{"type":"object","properties":{"open":{"type":"string"},"close":{"type":"string"}},"required":["open","close"]},"description":"Hours on Japanese public holidays; null when the usual hours for that weekday apply."}},"required":["mon","tue","wed","thu","fri","sat","sun","holiday"],"description":"Null when no hours are on record; say nothing about hours then."},"today":{"type":["object","null"],"properties":{"date":{"type":"string","description":"Today's date in Japan, YYYY-MM-DD."},"holiday":{"type":"boolean","description":"Whether today is a Japanese public holiday."},"hours":{"type":"array","items":{"type":"object","properties":{"open":{"type":"string"},"close":{"type":"string"}},"required":["open","close"]},"description":"The periods that apply today; empty when closed all day."},"state":{"type":"string","enum":["open","opens_later","closed_for_day","closed_today"],"description":"\"open\" now; \"opens_later\" today (also between two periods); \"closed_for_day\" after the last period; \"closed_today\" when not open at all today."},"closes_at":{"type":["string","null"],"description":"When state is \"open\": the time it closes."},"opens_at":{"type":["string","null"],"description":"When state is \"opens_later\": the time it next opens today."}},"required":["date","holiday","hours","state","closes_at","opens_at"],"description":"Where the moment of the request falls against today's hours."},"map_url":{"type":"string","description":"Google Maps link to the place."},"details_url":{"type":["string","null"],"description":"Japan Post's page for the office, or the partner's own website."}},"required":["kind","id","name","name_en","partner_category","postal_code","address","latitude","longitude","distance_m","opening_hours","today","map_url","details_url"]},"description":"Nearest first. Empty when nothing is within radius_km."},"how_to_drop_off":{"type":"string"},"book_at":{"type":"string","description":"Where the customer books, free of charge."}},"required":["service","origin","radius_km","checked_at","locations","how_to_drop_off","book_at"]}}}},"400":{"description":"Invalid query: neither `query` nor both coordinates, a point outside Japan, or a value out of range."},"404":{"description":"`place_not_found`: no place in Japan matched `query`. Ask for a more specific place, or pass coordinates.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"error_code":{"type":"string","enum":["place_not_found","place_too_broad","geocoder_unconfigured","geocoder_unavailable"]}},"required":["error","error_code"]}}}},"422":{"description":"`place_too_broad`: `query` matched a whole prefecture or region, too large to measure the nearest place from.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"error_code":{"type":"string","enum":["place_not_found","place_too_broad","geocoder_unconfigured","geocoder_unavailable"]}},"required":["error","error_code"]}}}},"429":{"description":"Rate limit exceeded."},"503":{"description":"Place lookup unavailable (`geocoder_unavailable`) or not configured (`geocoder_unconfigured`). A search by coordinates still works.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"error_code":{"type":"string","enum":["place_not_found","place_too_broad","geocoder_unconfigured","geocoder_unavailable"]}},"required":["error","error_code"]}}}}}}},"/partner-locations":{"get":{"tags":["Partner Locations"],"summary":"Partner hotels and stores where customers can hand over a ShipMate shipment. Used by the locations map on the Shipmate.jp marketing site.","operationId":"get_PartnerLocations","responses":{"200":{"description":"Every listed partner branch. A branch appears only once an admin has listed it on the website and given it a category and coordinates, and while both it and its organization are active.","content":{"application/json":{"schema":{"type":"object","properties":{"locations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"category":{"type":"string","enum":["hotel","store"]},"postal_code":{"type":"string"},"address":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"website_url":{"type":["string","null"]},"opening_hours":{"type":["object","null"],"properties":{"mon":{"type":["object","null"],"properties":{"open":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"close":{"type":"string","pattern":"^(?:(?:[01]\\d|2[0-3]):[0-5]\\d|24:00)$"}},"required":["open","close"]},"tue":{"type":["object","null"],"properties":{"open":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"close":{"type":"string","pattern":"^(?:(?:[01]\\d|2[0-3]):[0-5]\\d|24:00)$"}},"required":["open","close"]},"wed":{"type":["object","null"],"properties":{"open":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"close":{"type":"string","pattern":"^(?:(?:[01]\\d|2[0-3]):[0-5]\\d|24:00)$"}},"required":["open","close"]},"thu":{"type":["object","null"],"properties":{"open":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"close":{"type":"string","pattern":"^(?:(?:[01]\\d|2[0-3]):[0-5]\\d|24:00)$"}},"required":["open","close"]},"fri":{"type":["object","null"],"properties":{"open":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"close":{"type":"string","pattern":"^(?:(?:[01]\\d|2[0-3]):[0-5]\\d|24:00)$"}},"required":["open","close"]},"sat":{"type":["object","null"],"properties":{"open":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"close":{"type":"string","pattern":"^(?:(?:[01]\\d|2[0-3]):[0-5]\\d|24:00)$"}},"required":["open","close"]},"sun":{"type":["object","null"],"properties":{"open":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"close":{"type":"string","pattern":"^(?:(?:[01]\\d|2[0-3]):[0-5]\\d|24:00)$"}},"required":["open","close"]},"holiday":{"type":["object","null"],"properties":{"open":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"close":{"type":"string","pattern":"^(?:(?:[01]\\d|2[0-3]):[0-5]\\d|24:00)$"}},"required":["open","close"]}},"required":["mon","tue","wed","thu","fri","sat","sun"]},"public_dropoff":{"type":"boolean"},"logo_url":{"type":["string","null"]},"photos":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]}}},"required":["id","name","category","postal_code","address","latitude","longitude","website_url","opening_hours","public_dropoff","logo_url","photos"]}}},"required":["locations"]}}}}}}},"/suspended-destinations":{"get":{"tags":["Suspended Destinations"],"summary":"Destination countries where carrier service is suspended. Backed by the `go-suspended-destinations` Flagship flag so ops can open or close a lane without a deploy. Consumed by the shipmate.jp marketing site.","operationId":"get_SuspendedDestinations","responses":{"200":{"description":"The suspended destinations. An empty array means nothing is suspended — which is also what a failed flag read returns, so treat the `suspended_destinations.flag_error` log line as the alarm.","content":{"application/json":{"schema":{"type":"object","properties":{"destinations":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"resumptionDate":{"type":"string"},"reason":{"type":"object","additionalProperties":{"type":"string"}}},"required":["code"]}}},"required":["destinations"]}}}}}}},"/restrictions/rules":{"get":{"tags":["Restrictions"],"summary":"A destination's import restrictions, or the items Japan Post refuses to every destination. Read-only browse data behind the shipmate.jp restricted-items pages; whether a specific item may ship is answered only by the ShipMate GO app.","operationId":"get_RestrictionRules","parameters":[{"schema":{"type":"string","minLength":3,"maxLength":3,"pattern":"^[A-Za-z]{3}$","description":"Destination country, ISO 3166-1 alpha-3 (e.g. AUS). Required for both scopes: the carrier-global layer is still read for one lane."},"required":true,"description":"Destination country, ISO 3166-1 alpha-3 (e.g. AUS). Required for both scopes: the carrier-global layer is still read for one lane.","name":"destination_country","in":"query"},{"schema":{"type":"string","enum":["destination","carrier_global"],"default":"destination","description":"\"destination\" = the destination's own import rules; \"carrier_global\" = items Japan Post refuses to every destination. Each page lists one layer."},"required":false,"description":"\"destination\" = the destination's own import rules; \"carrier_global\" = items Japan Post refuses to every destination. Each page lists one layer.","name":"scope","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":100},"required":false,"name":"page_size","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":200,"description":"`next_page_cursor` from the previous page."},"required":false,"description":"`next_page_cursor` from the previous page.","name":"page_cursor","in":"query"}],"responses":{"200":{"description":"One page of rules, most severe first, with `class_counts` for the whole layer. Follow `next_page_cursor` for the rest. Absence of a rule means no specific import rule was found — never that an item is allowed.","content":{"application/json":{"schema":{"type":"object","properties":{"destination_country":{"type":"string"},"carrier":{"type":"string"},"scope":{"type":"string","enum":["destination","carrier_global"]},"rules":{"type":"array","items":{"type":"object","properties":{"document_ref":{"type":"string","description":"Stable reference \"<ALPHA3|GLO>/<source>/<slug>\""},"scope":{"type":"string","enum":["destination","carrier_global"]},"item_name":{"type":"string","description":"English name of the restricted item"},"summary":{"type":["string","null"]},"restriction_level":{"type":"string","enum":["prohibited","conditional"],"description":"The source's own level — never decided by a model"},"effective_level":{"type":"string","enum":["prohibited","needs_review","conditional"],"description":"How the engine reads the rule before anything about an item is known"},"requirements_met":{"type":"boolean"},"rule_evaluated":{"type":"boolean"},"conditions":{"type":"array","items":{"type":"object","properties":{"condition":{"type":"string"},"outcome":{"type":"string"},"outcome_class":{"type":"string","enum":["prohibited","restricted_requirements","allowed_if","needs_review"]},"status":{"type":"string"}},"required":["condition","outcome","outcome_class","status"]}},"documentation_required":{"type":"array","items":{"type":"string"}},"transport_modes":{"type":"array","items":{"type":"string"}},"shipping_types":{"type":"array","items":{"type":"string"}},"item_class":{"type":"string"},"hs_chapter":{"type":["string","null"]},"carrier":{"type":"string"},"source":{"type":"string"},"source_display_name":{"type":"string"},"source_url":{"type":["string","null"]},"last_verified_at":{"type":["string","null"]}},"required":["document_ref","scope","item_name","summary","restriction_level","effective_level","requirements_met","rule_evaluated","conditions","documentation_required","transport_modes","shipping_types","item_class","hs_chapter","carrier","source","source_display_name","source_url","last_verified_at"],"additionalProperties":{}}},"total_matching":{"type":"integer"},"next_page_cursor":{"type":["string","null"]},"class_counts":{"type":"array","items":{"type":"object","properties":{"item_class":{"type":"string"},"prohibited":{"type":"integer"},"needs_review":{"type":"integer"},"conditional":{"type":"integer"}},"required":["item_class","prohibited","needs_review","conditional"]}},"layer_totals":{"type":"object","properties":{"destination":{"type":"integer"},"carrier_global":{"type":"integer"}},"required":["destination","carrier_global"]},"disclaimer":{"type":"string"},"listed_at":{"type":"string"}},"required":["destination_country","carrier","scope","rules","total_matching","next_page_cursor","class_counts","layer_totals","disclaimer","listed_at"],"additionalProperties":{}}}}},"400":{"description":"Invalid query parameter or page_cursor.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"error_code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"Destination not covered (`destination_not_covered`). Render no page.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"error_code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Rate limit exceeded."},"502":{"description":"pro-api answered but not usably (`upstream_error`): its key was refused, it rate-limited this worker, it failed, or its reply was not JSON. Never cached; retry shortly.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"error_code":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Restriction data temporarily unavailable, or pro-api unreachable. Retry shortly; a build should keep the previous page.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"error_code":{"type":"string"}},"required":["error"]}}}}}}},"/shipping-price/send-it-home":{"get":{"tags":["Shipping"],"summary":"Send It Home — shipping price for one parcel weight","description":"For customers already in Japan with the goods in hand. Create a shipment, drop the parcel at almost any Japan Post office using a QR code, and ShipMate weighs it and ships it internationally with tracking.\n\nIncludes an estimate for domestic delivery to the ShipMate warehouse. The exact price is calculated after the parcel is weighed and measured, and is paid once, before it ships. Booking is free.\n\nPrices are per-parcel totals in whole Japanese yen with ShipMate's service fee already applied — do not add a fee on top. Read `includes` and `excludes` before presenting this figure as a total. No authentication is required.","operationId":"get_SendItHomeShippingPrice","parameters":[{"schema":{"type":"string","description":"Destination ISO 3166-1 alpha-3 country code, for example NOR for Norway."},"required":true,"description":"Destination ISO 3166-1 alpha-3 country code, for example NOR for Norway.","name":"country_code","in":"query"},{"schema":{"type":"number","exclusiveMinimum":0,"maximum":30,"description":"Actual parcel weight in kilograms. Decimals such as 4.6 are supported."},"required":true,"description":"Actual parcel weight in kilograms. Decimals such as 4.6 are supported.","name":"weight_kg","in":"query"}],"responses":{"200":{"description":"The price for this weight and destination.","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"string","enum":["send_it_home","shop_for_me"]},"service_name":{"type":"string"},"service_description":{"type":"string"},"country_code":{"type":"string"},"weight_kg":{"type":"number"},"currency":{"type":"string","enum":["JPY"]},"price":{"type":"integer"},"carrier":{"type":"string","enum":["JAPAN_POST_INTERNATIONAL_EMS"]},"is_estimate":{"type":"boolean","enum":[true]},"includes":{"type":"array","items":{"type":"string","enum":["international_shipping","service_fee","domestic_shipping_estimate","domestic_delivery_to_warehouse","item_purchase_price","buying_fee","import_duty_and_tax"]}},"excludes":{"type":"array","items":{"type":"string","enum":["international_shipping","service_fee","domestic_shipping_estimate","domestic_delivery_to_warehouse","item_purchase_price","buying_fee","import_duty_and_tax"]}},"price_note":{"type":"string"},"duties":{"type":"object","properties":{"model":{"type":"string","enum":["prepaid_at_cost","recipient_pays"]},"provider":{"type":"string","enum":["zonos"]},"estimate_jpy":{"type":["integer","null"]},"band_pct":{"type":"object","properties":{"low":{"type":"number"},"high":{"type":"number"}},"required":["low","high"]}},"required":["model","estimate_jpy"]},"book_at":{"type":"string"},"see_also":{"type":"array","items":{"type":"object","properties":{"service":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"url":{"type":"string"}},"required":["service","name","description","url"]}},"alternatives":{"type":"array","items":{"type":"object","properties":{"carrier":{"type":"string","enum":["JAPAN_POST_INTERNATIONAL_PARCEL_SURFACE"],"description":"Courier service code. JAPAN_POST_INTERNATIONAL_PARCEL_SURFACE is Japan Post international parcel by sea (国際小包 船便)."},"mode":{"type":"string","enum":["air","surface"]},"tracked":{"type":"boolean"},"signed_for":{"type":"boolean","description":"Delivered against a signature."},"insured":{"type":"boolean","description":"Whether the parcel is insured against loss or damage. False for surface; EMS, the headline, is insured by Japan Post."},"transit_days":{"type":["object","null"],"properties":{"min":{"type":"integer"},"max":{"type":"integer"}},"required":["min","max"],"description":"The carrier's own range in calendar days. An estimate: no delivery date is promised for this service."},"price":{"type":"integer"},"note":{"type":"string"}},"required":["carrier","mode","tracked","signed_for","insured","transit_days","price","note"]},"description":"Slower, cheaper services this destination is open to beside the EMS price, priced with the same formula. Omitted when EMS is the only service offered. The customer picks one after weighing; EMS stays the default."}},"required":["service","service_name","service_description","country_code","weight_kg","currency","price","carrier","is_estimate","includes","excludes","price_note","duties","book_at","see_also"]}}}},"400":{"description":"Invalid country_code or weight_kg, an unsupported destination, or a destination priced by parcel size rather than weight."},"422":{"description":"The destination cannot carry this parcel — over its EMS weight limit, or no EMS service to it at this weight."},"429":{"description":"Rate limit exceeded."}}}},"/shipping-price/shop-for-me":{"get":{"tags":["Shipping"],"summary":"Shop for Me — shipping price for one parcel weight","description":"For customers outside Japan who have bought nothing yet. Paste links to items in Japanese online stores; ShipMate buys each item on the customer's behalf, consolidates them into one parcel at its warehouse, and ships it abroad.\n\nShipping is charged later, once the order is weighed. Delivery from each store to the ShipMate warehouse is not included — each store ships separately, so ordering from several stores costs more. The item price and the 10% buying fee are charged separately at checkout.\n\nPrices are per-parcel totals in whole Japanese yen with ShipMate's service fee already applied — do not add a fee on top. Read `includes` and `excludes` before presenting this figure as a total. No authentication is required.","operationId":"get_ShopForMeShippingPrice","parameters":[{"schema":{"type":"string","description":"Destination ISO 3166-1 alpha-3 country code, for example NOR for Norway."},"required":true,"description":"Destination ISO 3166-1 alpha-3 country code, for example NOR for Norway.","name":"country_code","in":"query"},{"schema":{"type":"number","exclusiveMinimum":0,"maximum":30,"description":"Actual parcel weight in kilograms. Decimals such as 4.6 are supported."},"required":true,"description":"Actual parcel weight in kilograms. Decimals such as 4.6 are supported.","name":"weight_kg","in":"query"}],"responses":{"200":{"description":"The price for this weight and destination.","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"string","enum":["send_it_home","shop_for_me"]},"service_name":{"type":"string"},"service_description":{"type":"string"},"country_code":{"type":"string"},"weight_kg":{"type":"number"},"currency":{"type":"string","enum":["JPY"]},"price":{"type":"integer"},"carrier":{"type":"string","enum":["JAPAN_POST_INTERNATIONAL_EMS"]},"is_estimate":{"type":"boolean","enum":[true]},"includes":{"type":"array","items":{"type":"string","enum":["international_shipping","service_fee","domestic_shipping_estimate","domestic_delivery_to_warehouse","item_purchase_price","buying_fee","import_duty_and_tax"]}},"excludes":{"type":"array","items":{"type":"string","enum":["international_shipping","service_fee","domestic_shipping_estimate","domestic_delivery_to_warehouse","item_purchase_price","buying_fee","import_duty_and_tax"]}},"price_note":{"type":"string"},"duties":{"type":"object","properties":{"model":{"type":"string","enum":["prepaid_at_cost","recipient_pays"]},"provider":{"type":"string","enum":["zonos"]},"estimate_jpy":{"type":["integer","null"]},"band_pct":{"type":"object","properties":{"low":{"type":"number"},"high":{"type":"number"}},"required":["low","high"]}},"required":["model","estimate_jpy"]},"book_at":{"type":"string"},"see_also":{"type":"array","items":{"type":"object","properties":{"service":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"url":{"type":"string"}},"required":["service","name","description","url"]}},"alternatives":{"type":"array","items":{"type":"object","properties":{"carrier":{"type":"string","enum":["JAPAN_POST_INTERNATIONAL_PARCEL_SURFACE"],"description":"Courier service code. JAPAN_POST_INTERNATIONAL_PARCEL_SURFACE is Japan Post international parcel by sea (国際小包 船便)."},"mode":{"type":"string","enum":["air","surface"]},"tracked":{"type":"boolean"},"signed_for":{"type":"boolean","description":"Delivered against a signature."},"insured":{"type":"boolean","description":"Whether the parcel is insured against loss or damage. False for surface; EMS, the headline, is insured by Japan Post."},"transit_days":{"type":["object","null"],"properties":{"min":{"type":"integer"},"max":{"type":"integer"}},"required":["min","max"],"description":"The carrier's own range in calendar days. An estimate: no delivery date is promised for this service."},"price":{"type":"integer"},"note":{"type":"string"}},"required":["carrier","mode","tracked","signed_for","insured","transit_days","price","note"]},"description":"Slower, cheaper services this destination is open to beside the EMS price, priced with the same formula. Omitted when EMS is the only service offered. The customer picks one after weighing; EMS stays the default."}},"required":["service","service_name","service_description","country_code","weight_kg","currency","price","carrier","is_estimate","includes","excludes","price_note","duties","book_at","see_also"]}}}},"400":{"description":"Invalid country_code or weight_kg, an unsupported destination, or a destination priced by parcel size rather than weight."},"422":{"description":"The destination cannot carry this parcel — over its EMS weight limit, or no EMS service to it at this weight."},"429":{"description":"Rate limit exceeded."}}}}},"webhooks":{}}