Nomad CBEC

This is the API descriptor for the Nomad CBEC, responsible for CBEC customer ID check.
Developed by Samarkand Global _

This is the documentation for version 1.4.0 of the API. Last update on Jun 9, 2021.

Base URL
https://nomad.samarkand-global.cn/cbec

Health

Health

Responses
  • 200 string

    BBC order service health status

Definition
GET https://nomad.samarkand-global.cn/cbec/health
cURL example
$ curl \
 -X GET https://nomad.samarkand-global.cn/cbec/health
Response example (200)
No content

Id

IdCheck

Check if the user is valid.

Query parameters
  • user_id Required / string

    Customer ID

  • name Required / string

    Customer Name

Responses
  • 200 object

    User ID and Name has been checked successfully.

    • code integer(int32)
    • message string
    • data object

      userValid is true if ID and Name is all validated.

      • userValid boolean
    • error string

      error message.

  • 400

    Invalid input.

  • 404

    id check failed.

  • 500 object

    id retrieval failed.

    • code integer(int32)
    • message string
    • data object

      userValid is true if ID and Name is all validated.

      • userValid boolean
    • error string

      error message.

Definition
GET https://nomad.samarkand-global.cn/cbec/id
cURL example
$ curl \
 -X GET https://nomad.samarkand-global.cn/cbec/id?user_id=string&name=string
Response example (200)
{
  "code": 42,
  "message": "string",
  "data": {
    "userValid": true
  },
  "error": "string"
}
Response example (400)
No content
Response example (404)
No content
Response example (500)
{
  "code": 42,
  "message": "string",
  "data": {
    "userValid": true
  },
  "error": "string"
}

Metrics

Metrics

Responses
  • 200 string

    BBC order cancel successed

  • 400

    Invalid input

  • 401

    Unauthorized: provided apikey is not valid

  • 500

    Server error

Definition
GET https://nomad.samarkand-global.cn/cbec/metrics
cURL example
$ curl \
 -X GET https://nomad.samarkand-global.cn/cbec/metrics
Response example (200)
No content
Response example (400)
No content
Response example (401)
No content
Response example (500)
No content