> ## Documentation Index
> Fetch the complete documentation index at: https://rain-sandbox-trial.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate an address for shipping

> Validates a shipping address using Google Address Validation API with fallback to Google Geocoding API. Returns validation result with confidence level.



## OpenAPI

````yaml /openapi.json post /issuing/shipping-groups/validate-address
openapi: 3.0.3
info:
  title: Issuing API
  description: This is the specification for Rain's Issuing API.
  termsOfService: https://www.rain.xyz/legal/authorized-user-terms
  contact:
    email: support@rain.xyz
  version: 1.3.0
servers:
  - url: https://api-dev.rain.xyz/v1
    description: Sandbox server
  - url: https://api.rain.xyz/v1
    description: Production server
security: []
tags:
  - name: paymentRoutes
    description: >-
      **Endpoint Migration:** The `/v1/automations` endpoints have been renamed
      to `/v1/payment-routes`. The old `/v1/automations` paths remain available
      as deprecated aliases during migration. Update your integrations to use
      `/v1/payment-routes` as the deprecated endpoints will be removed in a
      future release.
  - name: simulate
    description: >-
      Transaction simulation endpoints for testing integration flows in
      non-production environments. These endpoints let you trigger transaction
      events programmatically to automate integration tests and verify webhook
      handling without depending on external systems or staging real deposits.
      **Sandbox only** — all simulation endpoints return `404 Not Found` in
      production.
  - name: raindrops
    description: >-
      Rewards and points management endpoints. Custom API keys need
      `raindrops:read`/`raindrops:write` for general rewards endpoints and
      `raindrops-travel:read`/`raindrops-travel:write` for travel redemption
      endpoints.
    x-group: rewards
paths:
  /issuing/shipping-groups/validate-address:
    post:
      tags:
        - shipping
        - validation
      summary: Validate an address for shipping
      description: >-
        Validates a shipping address using Google Address Validation API with
        fallback to Google Geocoding API. Returns validation result with
        confidence level.
      operationId: validateShippingAddress
      requestBody:
        required: true
        description: The address to validate
        content:
          application/json:
            schema:
              type: object
              required:
                - address
              properties:
                address:
                  $ref: '#/components/schemas/PhysicalAddress'
                  description: Physical address to validate
              example:
                address:
                  line1: 1600 Amphitheatre Pkwy
                  city: Mountain View
                  region: CA
                  postalCode: '94043'
                  countryCode: US
      responses:
        '200':
          description: Address validation completed
          content:
            application/json:
              schema:
                type: object
                required:
                  - isValid
                properties:
                  isValid:
                    type: boolean
                    description: Whether the address is valid
                  confidence:
                    type: string
                    enum:
                      - HIGH
                      - MEDIUM
                      - LOW
                    description: Confidence level of the validation result
        '400':
          description: Invalid request
        '401':
          description: Invalid authorization
        '403':
          description: Forbidden - tenant cannot serve
        '500':
          description: Internal server error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PhysicalAddress:
      type: object
      required:
        - line1
        - city
        - region
        - postalCode
        - countryCode
      properties:
        line1:
          type: string
          maxLength: 100
        line2:
          type: string
          maxLength: 100
        city:
          type: string
          maxLength: 50
        region:
          type: string
          maxLength: 50
        postalCode:
          type: string
          minLength: 1
          maxLength: 15
          pattern: ^[a-zA-Z0-9 -]{1,15}$
        countryCode:
          $ref: '#/components/schemas/CountryCode'
        country:
          type: string
          maxLength: 50
    CountryCode:
      type: string
      minLength: 2
      maxLength: 2
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: Api-Key
      in: header

````