Preview a quote's pricing
Prices the lines without saving anything, so a caller can see the result before committing.
POST
/api/v1/quotes/preview認証
AuthorizationOAuth2 アクセストークン · header必須Authorization-code grant with PKCE. Clients are public and hold no secret. Discovery is published at /.well-known/oauth-authorization-server/api/auth.
スコープ:
api.accessリクエストボディ
必須application/jsonaccountRecordIdstring必須最小長 1 · 最大長 255
currencystring必須^[A-Z]{3}$ に一致
exchangeRateobjectプロパティを表示プロパティを非表示
asOfstring<date>必須^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$ に一致
ratestring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
sourcestring必須最小長 1 · 最大長 200
linesobject[]必須最小項目数 1 · 最大項目数 500
プロパティを表示プロパティを非表示
object の配列componentKindstringデフォルト: "product"
許可される値:
producthardwaresoftwareserviceoptionpackagegroupNamestring最小長 1 · 最大長 120
pricingobjectデフォルト: {"method":"catalog"}
プロパティを表示プロパティを非表示
いずれか 1 つ:
object
methodstring必須object
costEntryIdstring必須最小長 1 · 最大長 255
markupstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
methodstring必須object
costEntryIdstring必須最小長 1 · 最大長 255
marginstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
methodstring必須object
costEntryIdstring必須最小長 1 · 最大長 255
downstreamMarginsstring[]必須最小項目数 1 · 最大項目数 10
methodstring必須retailPricestring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
object
methodstring必須reasonstring必須最小長 1 · 最大長 500
unitPricestring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
productIdstring必須最小長 1 · 最大長 255
quantitystring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
schedulesobject[]必須最小項目数 1 · 最大項目数 100
プロパティを表示プロパティを非表示
object の配列いずれか 1 つ:
object
amountstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
kindstring必須startsOnstring<date>必須^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$ に一致
object
amountstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
endsOnstring<date>^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$ に一致
intervalMonthsinteger必須最小 1 · 最大 120
kindstring必須startsOnstring<date>必須^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$ に一致
object
amountstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
kindstring必須milestoneLabelstring必須最小長 1 · 最大長 200
startsOnstring<date>^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$ に一致
taxRatestring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
numberstring必須最小長 1 · 最大長 120
orderDiscountobjectプロパティを表示プロパティを非表示
いずれか 1 つ:
object
basisstring必須ratestring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
object
amountstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
basisstring必須pricingDatestring<date>必須^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$ に一致
recordIdstring必須最小長 1 · 最大長 255
レスポンス
200
The computed prices and totals
pricesobject[]必須プロパティを表示プロパティを非表示
object の配列unitCoststring | null必須プロパティを表示プロパティを非表示
いずれか:
string
stringnull
nullunitPricestring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
profilestring必須許可される値:
catalogprocurementhybridtotalsQuoteTotals必須プロパティを表示プロパティを非表示
currencystring必須^[A-Z]{3}$ に一致
discountstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
linesobject[]必須プロパティを表示プロパティを非表示
object の配列discountstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
netstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
taxstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
taxRatestring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
subtotalstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
taxstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
taxableAmountstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
totalstring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
400
The request body, query or parameters were refused
codestring必須許可される値:
invalid_inputnot_foundconflictforbiddendetailanyerrorstring必須reasonstring401
The access token is missing, invalid or revoked
errorstring必須403
The tenant's module is off, or the token's scope or the member's role does not permit the action
codestring必須許可される値:
invalid_inputnot_foundconflictforbiddendetailanyerrorstring必須reasonstring404
No such record, or none the caller may read
codestring必須許可される値:
invalid_inputnot_foundconflictforbiddendetailanyerrorstring必須reasonstring409
The operation conflicts with the current state
codestring必須許可される値:
invalid_inputnot_foundconflictforbiddendetailanyerrorstring必須reasonstring413
The request exceeds the route's body limit
errorstring必須500
An unexpected failure
errorstring必須