Skip to main content

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:
newStoreAccessToken

Responses

Response samples

Content type
application/json
{
  • "transaction_types": {
    }
}

Configure transaction type

Configures a transaction type.

Authorizations:
newStoreAccessToken
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

Content type
application/json
{
  • "balance_modification": "cash_in",
  • "enabled": true,
  • "affected_report_fields": [
    ]
}

Response samples

Content type
application/json
{
  • "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:
newStoreAccessToken
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

Content type
application/json
{
  • "code": "post_office",
  • "label": "Post office"
}

Response samples

Content type
application/json
{
  • "error_code": "invalid_body",
  • "message": "The request provided is invalid.",
  • "request_id": "123.4567"
}

Update reason

Updates the specified reason code and label.

Authorizations:
newStoreAccessToken
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

Content type
application/json
{
  • "label": "Post office",
  • "enabled": false
}

Response samples

Content type
application/json
{
  • "error_code": "invalid_body",
  • "message": "The request provided is invalid.",
  • "request_id": "123.4567"
}