Partner API - Get Station Config By ApiKey

Tài liệu API dành cho PartnerBooking.

Về module API Partner

Endpoint

URL /PartnerAPI/StationServices/user/getStationConfigByApiKey
Method POST

Headers schema

Header Required Mô tả
clientId hoặc clientid Yes Mã định danh đối tác
apiKey hoặc apikey Yes Khóa xác thực API của đối tác

Body schema

Field Type Required Rule Mô tả
apiKey string Yes required ApiKey cần tra cứu thông tin cấu hình trạm.

Sample Request

curl --location '{HOST_NAME}/PartnerAPI/StationServices/user/getStationConfigByApiKey' \
  --header 'Content-Type: application/json' \
  --header 'clientId: TESTCLIENT' \
  --header 'apiKey: 07e73e61-0dce-4b39-8ecf-06ef70b35c08' \
  --data '{
  "apiKey": "TEST_VALUE"
}'

Success response

{
  "statusCode": 200,
  "error": null,
  "message": "Success",
  "data": [
    {
      "stationsId": 57,
      "stationSettingKey": "stationMiniAppLink",
      "stationSettingValue": "{\"visible_StationsCode\":true}",
      "stationsLogo": "https://.../logo.png"
    }
  ]
}

Mã lỗi

HTTP Mã lỗi Mô tả
400 Validation Error Payload không đúng schema.
429 QUOTA_EXCEEDED apiKey không hợp lệ hoặc vượt quota.
500 UNKNOWN_ERROR Lỗi không xác định.

Tham khảo

Data test cho developer

Cần thay bằng dữ liệu môi trường thật khi tích hợp.

Sao chép thành công