List enabled stock adjustment reasons
GET
/inventory/adjustment-reasons
const url = 'https://api.oletapp.com/your-store/v1/inventory/adjustment-reasons';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.oletapp.com/your-store/v1/inventory/adjustment-reasons \ --header 'Authorization: Bearer <token>'Includes the read-only system API reasons (“Stock set via API”) so merchants recognise them in reports.
- Unpaginated: there is no cursor, no
next_cursorvalue, and noversioncolumn onadjustment_reason. A store has only a handful of reasons.
Requires scope: inventory:read
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”List enabled stock adjustment reasons
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string format: uuid
is_system
required
boolean
name
required
string
type
required
string
version
required
string
has_more
required
boolean
next_cursor
required
Opaque pagination cursor. Pass back as ?cursor= to fetch the next page.
string | null
Examplegenerated
{ "data": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "is_system": true, "name": "example", "type": "example", "version": "example" } ], "has_more": true, "next_cursor": "example"}default
Section titled “default”An error response.
Media typeapplication/json
object
error
required
object
code
required
A machine-readable error code, e.g. VALIDATION_FAILED.
string
fields
Array<object>
object
field
required
string
message
required
string
message
required
A plain-English sentence describing what went wrong.
string
Example
{ "error": { "code": "UNAUTHORIZED" }}