{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-developer-resources/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Destination Mismatch","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"destination-mismatch","__idx":0},"children":["Destination Mismatch"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Type URI"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://docs.ingrid.com/developer-resources/ingrid-api/errors/delivery/destination-mismatch"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Title"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Destination Mismatch"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Recommended Status"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["422 Unprocessable Entity"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"description","__idx":1},"children":["Description"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["destination-mismatch"]}," error is returned when creating an order where the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["destination.countryCode"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["destination.postalCode"]}," do not match the values used when the delivery options were originally fetched. These fields are validated against the token's offer hash."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Note that other address fields such as street address and city can be freely updated between fetching options and creating the order — only ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["countryCode"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["postalCode"]}," are validated."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"common-causes","__idx":2},"children":["Common Causes"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The customer changed their postal code after delivery options were fetched"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The customer switched to a different country during checkout"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A frontend bug caused the destination fields to be overwritten"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"how-to-resolve","__idx":3},"children":["How to Resolve"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Re-fetch delivery options by calling ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /v1/delivery/options"]}," with the updated destination"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Present the updated delivery options to the customer (available carriers and prices may differ for the new destination)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Retry order creation with the fresh token from the new options response"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If your checkout flow allows the customer to edit their address after delivery options are shown, you should automatically re-fetch options whenever ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["countryCode"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["postalCode"]}," changes."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"example-response","__idx":4},"children":["Example Response"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"type\": \"https://docs.ingrid.com/developer-resources/ingrid-api/errors/delivery/destination-mismatch\",\n  \"title\": \"Destination Mismatch\",\n  \"status\": 422,\n  \"detail\": \"The destination country or postal code does not match the offer. Options were fetched for SE/11530 but the order was submitted with SE/41301.\",\n  \"instance\": \"urn:ingrid:request:9b056bec-432e-43ea-afbf-c2b886aeaa47\"\n}\n","lang":"json"},"children":[]}]},"headings":[{"value":"Destination Mismatch","id":"destination-mismatch","depth":1},{"value":"Description","id":"description","depth":2},{"value":"Common Causes","id":"common-causes","depth":2},{"value":"How to Resolve","id":"how-to-resolve","depth":2},{"value":"Example Response","id":"example-response","depth":2}],"frontmatter":{"title":"Destination Mismatch","description":"The Destination Country or Postal Code Changed","seo":{"title":"Destination Mismatch"}},"lastModified":"2026-02-24T19:14:57.408Z","pagePropGetterError":{"message":"","name":""}},"slug":"/developer-resources/ingrid-api/errors/delivery/destination-mismatch","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}