---
updatedAt: 2025-09-09T20:38:41.000Z
agentTools:
  projectIndex: https://docs.qorcommerce.io/llms.txt
---

# Find a Zip Code

Validates zip codes and returns location detail

This endpoint is useful to validate address zip codes and/or pre-populate city and state data on forms for data consistency.

### <span style={{ color: "#5375bd" }}><b>Required Path Parameter</b></span>

Enter the postal code as the final value in the path. For example, if looking up a postal code **92382** the request path should look like this:

**`.../v3/utilities/zip/92382`**

* US Zip codes use a normal 5-digit code. For example: `92382`

* Canada Zip codes use 6 alpha-numeric characters. For example: `K1A0B1`

> 🚧 Note:
>
> Do not use any spaces, dashes or special characters.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "3.0",
    "title": "QorCommerce Endpoints",
    "description": "API Version 3"
  },
  "paths": {
    "/utilities/zip/{postal_code}": {
      "parameters": [
        {
          "name": "postal_code",
          "in": "path",
          "description": "Provide 5-digit for US postal Codes\n\nProvide a 6 chars for CA postal codes\n\n* no spaces, dashes or special characters\n\n**US EXAMPLE:**  92382\n**CA EXAMPLE:**  K1A0B1",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "utilities-zipcode",
        "summary": "Find a Zip Code",
        "tags": [
          "Utilities"
        ],
        "description": "Validates zip codes and returns location detail",
        "parameters": [
          {
            "$ref": "#/components/parameters/trait_qorHeaderAuthentication_Qor-App-Key"
          },
          {
            "$ref": "#/components/parameters/trait_qorHeaderAuthentication_Qor-Client-Key"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "postal_code": {
                          "type": "string"
                        },
                        "place": {
                          "type": "string"
                        },
                        "state": {
                          "type": "string"
                        },
                        "state_code": {
                          "type": "string"
                        },
                        "subdivision": {
                          "type": "string"
                        },
                        "subdivision_code": {
                          "type": "string"
                        },
                        "latitude": {
                          "type": "string"
                        },
                        "longitude": {
                          "type": "string"
                        },
                        "accuracy": {
                          "type": "string"
                        },
                        "ISO_code": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "status": "ok",
                      "code": "GW00",
                      "message": "ZIP check successful",
                      "data": {
                        "postal_code": "92382",
                        "place": "Running Springs",
                        "state": "California",
                        "state_code": "CA",
                        "subdivision": "San Bernardino",
                        "subdivision_code": "071",
                        "latitude": "34.2102",
                        "longitude": "-117.1109",
                        "accuracy": "4",
                        "ISO_code": "US"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api-sandbox.qorcommerce.io/v3"
    }
  ],
  "components": {
    "parameters": {
      "trait_qorHeaderAuthentication_Qor-App-Key": {
        "name": "Qor-App-Key",
        "in": "header",
        "description": "The unique key identifying the app making this request.\n\nNOTE: If testing use **`T6554252567241061980`** for the **`Qor-App-Key`** header key.",
        "required": true,
        "schema": {
          "type": "string",
          "maxLength": 24,
          "default": "T6554252567241061980"
        }
      },
      "trait_qorHeaderAuthentication_Qor-Client-Key": {
        "name": "Qor-Client-Key",
        "in": "header",
        "description": "The Client key represents an authorized **merchant account**  and is assigned by QorCommerce or your merchant service account provider.\n\n**NOTE:**  If testing use `01dffeb784c64d098c8c691ea589eb82 `  for the `Qor-Client-Key` header key.",
        "required": true,
        "schema": {
          "type": "string",
          "default": "01dffeb784c64d098c8c691ea589eb82"
        }
      }
    }
  },
  "x-explorer-enabled": true,
  "x-proxy-enabled": true,
  "x-samples-enabled": true,
  "x-samples-languages": [
    "curl",
    "csharp",
    "node",
    "ruby",
    "java",
    "javascript",
    "php",
    "python",
    "swift"
  ]
}
```