Retrieve Customer

Get a customer Detail information

Method and URL

GET | [BASE_URL]/open-api/api/v1.0/customers/:id

Response

Example Response Body

{
    "code": "string",
    "message": "string",
    "data": {
         "uuid": "234f-873g-551A-lgtm",
         "firstName":"John",
         "lastName":"Doe",
         "email": "johndoe@gmail.com",
         "phoneNumber":"081234567890",
         "merchantId": "7822-9dfu-2156-lgtm",
          "address": {
              "addressLine1": "addressLine1",
              "addressLine2": "addressLine2",
              "city": "Jakarta Utara",
              "state" : "DKI Jakarta",
              "postalCode": "123456", 
              "country": "ID"   
          },
          "metadata": {
              "foo": "bar"
          }  
    }
}

Response Data Schema

Schema Path
Description
Data Type Validation

code

Response Code from Harsya

String

message

Human readable message that represent response from Harsya

String

data

Response Data from Harsya contains customer object

Object