请求参数
| 参数 | 位置 / 类型 | 说明 |
|---|
marketListing必填 | path / any | Market listing ID |
请求体 · 必填
Workbook quote request
application/json
| 字段 | 类型 | 说明 |
|---|
clientRequestId | string | |
confirm | boolean | |
content | array | 展开结构 |
expectedListingVersionId | string | |
expectedPaymentMode | string | |
filename | string | |
listingVersionId | string | |
maxCreatorFee | object | 展开结构| 字段 | 类型 | 说明 |
|---|
amount必填 | string | | currency必填 | string | |
|
paymentPreference | string | |
{
"clientRequestId": "string",
"confirm": false,
"content": [
0
],
"expectedListingVersionId": "string",
"expectedPaymentMode": "string",
"filename": "string",
"listingVersionId": "string",
"maxCreatorFee": {
"amount": "1.7027920",
"currency": "CNY"
},
"paymentPreference": "string"
}
请求示例
参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
curl -X POST 'https://loomloom.shengsuanyun.com/loom/v1/marketListings/{marketListing}:quoteWorkbook' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"clientRequestId": "string",
"confirm": false,
"content": [
0
],
"expectedListingVersionId": "string",
"expectedPaymentMode": "string",
"filename": "string",
"listingVersionId": "string",
"maxCreatorFee": {
"amount": "1.7027920",
"currency": "CNY"
},
"paymentPreference": "string"
}'
响应
200 OK
application/json
| 字段 | 类型 | 说明 |
|---|
currency | string | |
effectiveCreatorFee | object | 展开结构| 字段 | 类型 | 说明 |
|---|
amount必填 | string | | currency必填 | string | |
|
effectivePaymentMode | string | |
entitlementExpiresAt | string | |
estimatedBuyerPayable | object | 展开结构| 字段 | 类型 | 说明 |
|---|
amount必填 | string | | currency必填 | string | |
|
estimatedBuyerPayableT | integer | |
estimatedExecutionCost | object | 展开结构| 字段 | 类型 | 说明 |
|---|
amount必填 | string | | currency必填 | string | |
|
estimatedExecutionCostT | integer | |
listingVersionId | string | |
pricingRuleVersion | string | |
purchaseOptions | array | 展开结构array
数组元素| 字段 | 类型 | 说明 |
|---|
bundleId | string | | bundleName | string | | revision | integer | | tiers | array | 展开结构array
数组元素| 字段 | 类型 | 说明 |
|---|
durationDays | integer | | enabled | boolean | | price | object | 展开结构| 字段 | 类型 | 说明 |
|---|
amount必填 | string | | currency必填 | string | |
| tierType | string | |
|
|
quoteId | string | |
requiresPaymentChoice | boolean | |
taskCount | integer | |
taskFixedFee | object | 展开结构| 字段 | 类型 | 说明 |
|---|
amount必填 | string | | currency必填 | string | |
|
taskFixedFeeT | integer | |
{
"currency": "string",
"effectiveCreatorFee": {
"amount": "1.7027920",
"currency": "CNY"
},
"effectivePaymentMode": "string",
"entitlementExpiresAt": "string",
"estimatedBuyerPayable": {
"amount": "1.7027920",
"currency": "CNY"
},
"estimatedBuyerPayableT": 0,
"estimatedExecutionCost": {
"amount": "1.7027920",
"currency": "CNY"
},
"estimatedExecutionCostT": 0,
"listingVersionId": "string",
"pricingRuleVersion": "string",
"purchaseOptions": [
{
"bundleId": "string",
"bundleName": "string",
"revision": 0,
"tiers": [
{
"durationDays": 0,
"enabled": false,
"price": {
"amount": "1.7027920",
"currency": "CNY"
},
"tierType": "string"
}
]
}
],
"quoteId": "string",
"requiresPaymentChoice": false,
"taskCount": 0,
"taskFixedFee": {
"amount": "1.7027920",
"currency": "CNY"
},
"taskFixedFeeT": 0
}
400 Bad Request
application/json
| 字段 | 类型 | 说明 |
|---|
code | string | |
error | string | |
{
"code": "string",
"error": "string"
}
401 Unauthorized
application/json
| 字段 | 类型 | 说明 |
|---|
code | string | |
error | string | |
{
"code": "string",
"error": "string"
}
500 Internal Server Error
application/json
| 字段 | 类型 | 说明 |
|---|
code | string | |
error | string | |
{
"code": "string",
"error": "string"
}