Strategy Parameters

Validate Postal Codes

Validates a list of postal codes.

Input is multipart/form-data using either:

  • file: an uploaded CSV or newline-separated file of postal codes.
  • content: raw CSV or newline-separated text in the request body.

If both are provided, file takes precedence and content is ignored. Duplicate codes are deduplicated before validation.

Returns HTTP 200 when all codes are valid, HTTP 400 if any are invalid or the request is malformed, HTTP 415 if the content-type is not multipart/form-data. Invalid entries include the line number, character position, original value, and normalized form to aid correction.

post/validate_postal_codes

Request

Request body multipart/form-data

OR

Response

All postal codes are valid.

Example response

{
  "status": {
    "code": "ok"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.