Returns API
Public API customers use to start a return. Validates the request against the original order and records it.
Overview
The Returns API receives Request ReturnRequest ReturnCommandv1.0.0Command sent by a customer to return one or more items from a delivered order.
Ownerfulfilment-platformSchemaMapView docs from customers, stores the request in the Returns DatabaseReturns DatabaseContainerv1.0.0PostgreSQL database that is the system of record for return requests and their status.Ownerfulfilment-platformMapView docs and publishes Return RequestedReturn RequestedEventv1.0.0Published when a customer has requested to return items from an order.
Ownerfulfilment-platformSchemaMapView docs for the Returns ProcessorReturns ProcessorServicev1.0.0
Applies the returns policy to new requests and tracks returned parcels until they arrive back at the warehouse.
Publishesreturn-approved, return-receivedSubscribesreturn-requestedOwnerfulfilment-platformMapRepoView docs.
Responsibilities
| Area | Description |
|---|---|
| Intake | Handles Request ReturnRequest ReturnCommandv1.0.0Command sent by a customer to return one or more items from a delivered order. Ownerfulfilment-platformSchemaMapView docs and validates the order and items. |
| Persistence | Writes new return requests to the Returns DatabaseReturns DatabaseContainerv1.0.0 |
| Event publishing | Emits Return RequestedReturn RequestedEventv1.0.0Published when a customer has requested to return items from an order. Ownerfulfilment-platformSchemaMapView docs. |