POST api/sugarai/v1/reserve

下單

Request Information

URI Parameters

None.

Body Parameters

ReserveRq
NameDescriptionTypeAdditional information
logTrackGuid

日志標識

string

None.

docNo

訂號號碼

string

None.

bookingInfos

訂單資料

Collection of BookingData

None.

Request Formats

application/json, text/json

Sample:
{
  "logTrackGuid": "sample string 1",
  "docNo": "sample string 2",
  "bookingInfos": [
    {
      "quoteNumber": "sample string 1",
      "lastName": "sample string 2",
      "firstName": "sample string 3",
      "email": "sample string 4"
    },
    {
      "quoteNumber": "sample string 1",
      "lastName": "sample string 2",
      "firstName": "sample string 3",
      "email": "sample string 4"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ReserveRq'.

Response Information

Resource Description

下單

ReturnResultOfReserveRp
NameDescriptionTypeAdditional information
data

ReserveRp

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "totalBasePrice": 1.0,
    "totalDiscount": 1.0,
    "totalTax": 1.0,
    "totalPrice": 1.0,
    "totalCompensation": 1.0,
    "reserveInfos": [
      {
        "productkey": "sample string 1",
        "docNo": "sample string 2",
        "reserveNumber": "sample string 3",
        "expireAt": "2024-12-23T20:05:46.6737744+08:00",
        "state": "sample string 4",
        "quoteNumber": "sample string 5",
        "basePrice": 1.0,
        "orgBasePrice": 1.0,
        "discount": 1.0,
        "tax": 1.0,
        "orgTax": 1.0,
        "finalPrice": 1.0,
        "compensation": 1.0
      },
      {
        "productkey": "sample string 1",
        "docNo": "sample string 2",
        "reserveNumber": "sample string 3",
        "expireAt": "2024-12-23T20:05:46.6737744+08:00",
        "state": "sample string 4",
        "quoteNumber": "sample string 5",
        "basePrice": 1.0,
        "orgBasePrice": 1.0,
        "discount": 1.0,
        "tax": 1.0,
        "orgTax": 1.0,
        "finalPrice": 1.0,
        "compensation": 1.0
      }
    ]
  },
  "code": 1,
  "message": "sample string 2"
}