Skip to content
HammerheadShark666 edited this page Sep 23, 2024 · 3 revisions

Customer Address gPRC

The GetCustomerAddress gRPC service is designed to retrieve detailed information about a customer address based on the customer and customer address unique identifiers. This service enables clients to request and receive customer address information in a structured and efficient manner using gRPC.

Service Name

GetCustomerAddress

Method

service CustomerAddressGrpc {
    rpc GetCustomerAddress (CustomerAddressRequest) returns (CustomerAddressResponse);
}

Request

The client sends a request containing a customer id and an address id to get detailed information about a customers address.

message CustomerAddressRequest {
    string customerId = 1;
    string addressId = 2;
}

Response

The service responds with information about the requested customer address.

message CustomerAddressResponse {   
    string addressLine1 = 1;    
    string addressLine2 = 2;
    string addressLine3 = 3;
    string townCity = 4;
    string county = 5;
    string postcode = 6; 
    string country = 7;
}

Code

The code for mos-customer-address-grpc can be found at code

Clone this wiki locally