API Docs
YMS API
Customer/Level 1
GET Get Customer by ID

GET Get Customer by ID

Introduction

Retrieves detailed information for a specific customer by its unique identifier. This endpoint returns comprehensive customer data including name, code, status, company code, yard access, and contact information. Used by operations staff to view customer details, by appointment systems to verify customer information, and by customer-facing applications to display account information.

API Request

GET /customer/{customerId}

Request Parameters

NameLocationTypeRequiredDescription
customerIdpathstringYesnone
X-Tenant-IDheaderstringNonone
X-Yard-IDheaderstringNonone
Item-Time-ZoneheaderstringNonone
AuthorizationheaderstringNonone

Response Example

200 Response

{
  "code": 0,
  "msg": "",
  "success": false,
  "data": {
    "customerId": "",
    "customerName": "",
    "customerCode": "",
    "customerStatus": "",
    "companyCode": "",
    "yardIds": [
      "YARD-01",
      "YARD-02"
    ],
    "yardNames": [
      "Yard A",
      "Yard B"
    ],
    "mainContact": "",
    "mainEmail": "",
    "altContact": "",
    "altEmail": "",
    "createdTime": "",
    "createdBy": "",
    "updatedTime": "",
    "updatedBy": ""
  }
}

Response

Status CodeDefinitionDescriptionData Model
200OK (opens in a new tab)noneRCustomerView