Cash settings (1.0)
Download OpenAPI specification:Download
API for configuring cash transaction types.
List transaction types
Returns all possible transaction types together with the corresponding list of reasons. The list includes transaction types that have been configured as well as not configured. Not configured transaction types contain default values.
Authorizations:
Responses
Response samples
- 200
{- "transaction_types": {
- "add_to_float": {
- "balance_modification": "cash_in",
- "enabled": true,
- "affected_report_fields": [
- "non_sale_cash_in_total",
- "deposit_total"
], - "reasons": [ ]
}, - "add_petty_cash": {
- "balance_modification": "cash_in",
- "enabled": false,
- "affected_report_fields": [
- "non_sale_cash_in_total"
], - "reasons": [ ]
}, - "transfer_in": {
- "balance_modification": "cash_in",
- "enabled": true,
- "affected_report_fields": [
- "non_sale_cash_in_total"
], - "reasons": [ ]
}, - "adjustment_in": {
- "balance_modification": "cash_in",
- "enabled": true,
- "affected_report_fields": [
- "non_sale_cash_in_total"
], - "reasons": [ ]
}, - "remove_petty_cash": {
- "balance_modification": "cash_out",
- "enabled": true,
- "affected_report_fields": [
- "non_sale_cash_out_total"
], - "reasons": [ ]
}, - "cash_pull": {
- "balance_modification": "cash_out",
- "enabled": true,
- "affected_report_fields": [
- "non_sale_cash_out_total"
], - "reasons": [ ]
}, - "transfer_out": {
- "balance_modification": "cash_out",
- "enabled": true,
- "affected_report_fields": [
- "non_sale_cash_out_total"
], - "reasons": [ ]
}, - "adjustment_out": {
- "balance_modification": "cash_out",
- "enabled": true,
- "affected_report_fields": [
- "non_sale_cash_out_total"
], - "reasons": [ ]
}, - "no_sale": {
- "balance_modification": "cash_in",
- "enabled": true,
- "affected_report_fields": [
- "non_sale_cash_in_total",
- "deposit_total"
], - "reasons": [
- {
- "code": "post_office",
- "label": "Post office",
- "enabled": true
}, - {
- "code": "food",
- "label": "Buy snacks",
- "enabled": false
}
]
}
}
}
Configure transaction type
Configures a transaction type.
Authorizations:
path Parameters
code required | string Enum: "add_to_float" "add_petty_cash" "transfer_in" "adjustment_in" "remove_petty_cash" "cash_pull" "transfer_out" "adjustment_out" "no_sale" "gift_card_cash_out" Code of the transaction type |
Request Body schema: application/json
balance_modification required | string Enum: "cash_in" "cash_out" "neutral" Defines how the cash transaction affects the balance. |
affected_report_fields required | Array of strings Items Enum: "non_sale_cash_in_total" "non_sale_cash_out_total" "deposit_total" List of report fields affected by the cash transaction. |
enabled required | boolean Defines if the transaction type is available for usage. |
Responses
Request samples
- Payload
{- "balance_modification": "cash_in",
- "enabled": true,
- "affected_report_fields": [
- "non_sale_cash_in_total",
- "deposit_total"
]
}
Response samples
- 400
- 500
{- "error_code": "invalid_body",
- "message": "The request provided is invalid.",
- "request_id": "123.4567"
}
Create reason
Creates a reason code for the transaction type, including a label that is displayed in NewStore Associate App to the associate. Transaction types need to be explicitly configured through the Configure transaction type endpoint before reasons can be added for it.
If no reason codes are specified for a transaction type, the label of the transaction type itself is displayed in Associate App.
Authorizations:
path Parameters
code required | string Enum: "add_to_float" "add_petty_cash" "transfer_in" "adjustment_in" "remove_petty_cash" "cash_pull" "transfer_out" "adjustment_out" "no_sale" "gift_card_cash_out" Code of the transaction type |
Request Body schema: application/json
code required | string non-empty The unique reason code that will be exposed to external consumers. |
label required | string non-empty The label for the reason. |
Responses
Request samples
- Payload
{- "code": "post_office",
- "label": "Post office"
}
Response samples
- 400
- 404
- 409
- 500
{- "error_code": "invalid_body",
- "message": "The request provided is invalid.",
- "request_id": "123.4567"
}
Update reason
Updates the specified reason code and label.
Authorizations:
path Parameters
reason_code required | string Code of the transaction reason |
code required | string Enum: "add_to_float" "add_petty_cash" "transfer_in" "adjustment_in" "remove_petty_cash" "cash_pull" "transfer_out" "adjustment_out" "no_sale" "gift_card_cash_out" Code of the transaction type |
Request Body schema: application/json
label required | string non-empty The label for the reason. |
enabled | boolean Defines if the reason is enabled or not. |
Responses
Request samples
- Payload
{- "label": "Post office",
- "enabled": false
}
Response samples
- 400
- 404
- 500
{- "error_code": "invalid_body",
- "message": "The request provided is invalid.",
- "request_id": "123.4567"
}