API Contract
Problem
Service A sends:
customerId
Service B suddenly changes it to:
customerIdentifier
A breaks.
Independent systems need agreement about what messages mean.
Solution — API Contract
Define expected operations, fields, types and behaviour.
GET /customer/{id}
Response:
{
id: string,
name: string
}
Core idea: an API contract establishes the communication expectations between independently changing systems.