system

Returns System

Internal system that accepts, approves and tracks customer returns through to their arrival back at the warehouse.

SystemInternal

Overview

The Returns System owns the returns journey. The Returns APIReturns APIServicev1.0.0Public API customers use to start a return. Validates the request against the original order and records it. Publishesreturn-requestedSubscribesrequest-returnOwnerfulfilment-platformMapRepoView docs accepts Request ReturnRequest ReturnCommandv1.0.0Command sent by a customer to return one or more items from a delivered order. Ownerfulfilment-platformSchemaMapView docs from customers, and the Returns ProcessorReturns ProcessorServicev1.0.0Applies the returns policy to new requests and tracks returned parcels until they arrive back at the warehouse. Publishesreturn-approved, return-receivedSubscribesreturn-requestedOwnerfulfilment-platformMapRepoView docs approves returns and confirms receipt. Both share the Returns DatabaseReturns DatabaseContainerv1.0.0PostgreSQL database that is the system of record for return requests and their status.Ownerfulfilment-platformMapView docs.

Resource Diagram

The services and messages that make up this system.

What’s inside

ComponentTypeResponsibility
Returns APIReturns APIServicev1.0.0Public API customers use to start a return. Validates the request against the original order and records it. Publishesreturn-requestedSubscribesrequest-returnOwnerfulfilment-platformMapRepoView docsServiceAccepts return requests from customers.
Returns ProcessorReturns ProcessorServicev1.0.0Applies the returns policy to new requests and tracks returned parcels until they arrive back at the warehouse. Publishesreturn-approved, return-receivedSubscribesreturn-requestedOwnerfulfilment-platformMapRepoView docsServiceApplies the returns policy and tracks returned parcels.
Returns DatabaseReturns DatabaseContainerv1.0.0PostgreSQL database that is the system of record for return requests and their status.Ownerfulfilment-platformMapView docsData storeReturn requests and their status.

Messages this system sends