Skip to main content
POST
/
skus
/
{id}
/
adjust
Adjust component-level stock for a SKU
curl --request POST \
  --url https://api.autoprintfarm.com/public/v1/skus/{id}/adjust \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "adjustment": 123,
  "reason": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "previous_stock_level": 123,
    "adjustment": 123,
    "new_stock_level": 123,
    "is_low_stock": true
  }
}

Authorizations

Authorization
string
header
required

API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.

Path Parameters

id
string
required

Body

application/json
adjustment
integer
required
reason
string

Response

Stock adjusted

success
enum<boolean>
required
Available options:
true
data
object
required