service
Returns Processor

Returns Processor

Applies the returns policy to new requests and tracks returned parcels until they arrive back at the warehouse.

Service

Overview

The Returns Processor consumes Return RequestedReturn RequestedEventv1.0.0Published when a customer has requested to return items from an order. Ownerfulfilment-platformSchemaMapView docs, checks the returns window and item eligibility, and publishes Return ApprovedReturn ApprovedEventv1.0.0Published when a return request passes the returns policy and the customer can send the items back. Ownerfulfilment-platformSchemaMapView docs. When the warehouse scans the returned parcel it publishes Return ReceivedReturn ReceivedEventv1.0.0Published when returned items have arrived at the warehouse and been inspected. Ownerfulfilment-platformSchemaMapView docs, which Payments uses to refund the customer and Inventory uses to restock.

Responsibilities

AreaDescription
ApprovalApplies the returns policy and emits Return ApprovedReturn ApprovedEventv1.0.0Published when a return request passes the returns policy and the customer can send the items back. Ownerfulfilment-platformSchemaMapView docs.
ReceiptConfirms returned items arrived and emits Return ReceivedReturn ReceivedEventv1.0.0Published when returned items have arrived at the warehouse and been inspected. Ownerfulfilment-platformSchemaMapView docs.
PersistenceReads from and writes to the Returns DatabaseReturns DatabaseContainerv1.0.0PostgreSQL database that is the system of record for return requests and their status.Ownerfulfilment-platformMapView docs.

Architecture diagram

Messages for this service

Sends messages (2)

Quickly find the message you need by searching for the name, type, or summary.
NameVersionTypeSummary
Return Approved
v1.0.0eventPublished when a return request passes the returns policy and the customer can send the items back.
Return Received
v1.0.0eventPublished when returned items have arrived at the warehouse and been inspected.

Receives messages (1)

Quickly find the message you need by searching for the name, type, or summary.
NameVersionTypeSummary
Return Requested
v1.0.0eventPublished when a customer has requested to return items from an order.
Event-driven architecture documentation: Acme Inc