Import price entries
Replaces the book’s entries for the products named; a volume tier belongs to its entry.
POST
/api/v1/price-books/{id}/entries認証
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パスパラメーター
idstring必須A price book's id
最小長 1 · 最大長 255
ヘッダーパラメーター
Idempotency-Keystring必須Replays the first answer for a repeated request
最小長 8 · 最大長 128
リクエストボディ
必須application/jsonentriesobject[]必須最小項目数 1 · 最大項目数 500
プロパティを表示プロパティを非表示
object の配列minimumQuantitystring^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致 · デフォルト: "0"
productIdstring必須最小長 1 · 最大長 255
unitPricestring必須^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ に一致
validFromstring<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])))$ に一致
validUntilstring<date> | nullデフォルト: null
プロパティを表示プロパティを非表示
いずれか:
string<date>
string<date>null
nullレスポンス
201
The entries that were written
entriesobject[]必須プロパティを表示プロパティを非表示
object の配列idstring必須最小長 1 · 最大長 255
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必須