# GetPartnerAddress

## Overview

GetPartnerAddress retrieves a single address record by id. This serves as the lookup for update, delete, and setDefault address commands.

## Business Rules

- Accepts `{ id }` as input — retrieves by unique identifier
- Returns the full PartnerAddress record or null if no matching address is found
- Used by update, delete, and setDefault commands to verify the address exists before operating on it

## Process Flow

```mermaid
flowchart TD
    A[Receive input] --> B[SELECT from PartnerAddress where id = input.id]
    B --> C{Address found?}
    C -->|Yes| D[Return address record]
    C -->|No| E[Return null]
```

## External Dependencies

- None

## Error Scenarios

- **ADDRESS_NOT_FOUND**: Specified address ID does not exist

## Test Cases

- returns address when found
- returns null when not found
