Create an adjustment (discriminated by adjustment_type)
Creates an adjustment of the supplied type. adjustment_type
selects the canonical handler: inventory calls adjustInventory
and posts the canonical GL inventory adjustment JE; ar calls
writeOffAR and posts the AR write-off JE; ap calls
postBillRevaluationManual and posts the PPV revaluation JE.
Scope requirement varies by type: inventory:write, ar:write,
or ap:write respectively. Idempotent via Idempotency-Key.
Authorizations
API key issued per entity via Settings > Developers > API Keys.
Each key carries scopes (e.g. orders:read, products:write).
Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.
Headers
Client-generated unique key for idempotent POST/PATCH/DELETE operations. Alias for the Idempotency parameter. Max 255 chars. On retry with the same key, the original response is returned without re-executing the operation. Keys expire after 24 hours.
255Body
inventory, ar, ap Required when adjustment_type=inventory.
Required when adjustment_type=inventory.
Signed quantity delta for inventory adjustments.
Required when adjustment_type=ap.
Required when adjustment_type=ar (write-off amount).
Response
Adjustment created
The response is of type object.

