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}/entriesAuthorization
AuthorizationOAuth2 access token · headerrequiredAuthorization-code grant with PKCE. Clients are public and hold no secret. Discovery is published at /.well-known/oauth-authorization-server/api/auth.
Scopes:
api.accessPath parameters
idstringrequiredA price book's id
min length 1 · max length 255
Header parameters
Idempotency-KeystringrequiredReplays the first answer for a repeated request
min length 8 · max length 128
Request body
requiredapplication/jsonentriesobject[]requiredmin items 1 · max items 500
Show propertiesHide properties
Array of
objectminimumQuantitystringmatches ^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$ · default: "0"
productIdstringrequiredmin length 1 · max length 255
unitPricestringrequiredmatches ^-?(?:0|[1-9]\d{0,15})(?:\.\d{1,8})?$
validFromstring<date>requiredmatches ^(?:(?:\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> | nulldefault: null
Show propertiesHide properties
Any of:
string<date>
string<date>null
nullResponses
201
The entries that were written
entriesobject[]requiredShow propertiesHide properties
Array of
objectidstringrequiredmin length 1 · max length 255
400
The request body, query or parameters were refused
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring401
The access token is missing, invalid or revoked
errorstringrequired403
The tenant's module is off, or the token's scope or the member's role does not permit the action
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring404
No such record, or none the caller may read
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring409
The operation conflicts with the current state
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring413
The request exceeds the route's body limit
errorstringrequired500
An unexpected failure
errorstringrequired