# ReactivateSupplierAccount

## Permission Scope

partner

## Overview

Reactivates an inactive supplier account without changing the global BusinessPartner.

## Business Rules

- Account must exist
- Only inactive accounts may be reactivated

## Process Flow

```mermaid
flowchart TD
    A[Receive request] --> B{Account exists?}
    B -->|No| C[Return not found]
    B -->|Yes| D{status=INACTIVE?}
    D -->|No| E[Return invalid transition]
    D -->|Yes| F[Save account with status=ACTIVE]
```

## External Dependencies

- None

## Error Scenarios

- **SUPPLIER_ACCOUNT_NOT_FOUND**: Account does not exist
- **INVALID_STATE_TRANSITION**: Requested state transition is not allowed from the current status

## Test Cases

- reactivates an inactive supplier account
- returns error when account not found
- returns error when account is already active
