Skip to content
Get started

Reason Codes

List Reason Codes
GET/api/v2/public/reasoncodes
Create Reason Codes
POST/api/v2/public/reasoncodes
ModelsExpand Collapse
ReasonCodeListReasonCodesResponse = array of object { code, is_comment_mandatory, is_gain, 14 more }
code: number

The reason code itself. This is the value the movement endpoints expect.

formatint32
is_comment_mandatory: boolean

true when a comment must be supplied with the movement.

is_gain: boolean

true when the code represents stock arriving. The is_gain filter matches on this.

is_image_mandatory: boolean

true when a photo must be supplied with the movement.

is_loss: boolean

true when the code represents stock leaving. The is_loss filter on the movement log matches on this.

is_order_number_mandatory: boolean

true when an order number must be supplied with the movement.

is_picking_list: boolean

true when the code applies to picking.

is_rollback_allowed: boolean

true when a movement booked under this code can be reversed.

is_sales_order_discount: boolean

Correctly spelled alias of CountingCloud.Entities.Entities.Response.ReasonCodesResponsePublicV2.IsSalesOrderDiscsount. Both fields are always emitted and always carry the same value; the misspelled one is kept because live integrations read it.

Deprecatedis_sales_order_discsount: boolean

Deprecated — use is_sales_order_discount instead. Both names are still accepted and behave identically; is_sales_order_discount is the supported spelling going forward.

is_store: boolean

true when store staff may use this code.

reason_code_type: number

Type of reason code.

formatint32
review_status: number

Review state movements get when booked under this code.

formatint32
code_description: optional string

Short label for the code.

description: optional string

Fuller description of when to use the code.

function_key: optional string

Shortcut key the code is bound to in the app.

store_type: optional string

Store type the code applies to.

ReasonCodeCreateReasonCodesResponse object { success, data, message }

Standard success response returned by mutation endpoints.

success: boolean

Indicates whether the operation completed successfully.

data: optional string

Optional data payload returned by the operation.

message: optional string

Human-readable message describing the result.