Create a tenant receipt rule
A rule for one ledger name, of any type, in one country. Omit the ledger name for the country's default rule, which covers the expense ledgers without a rule of their own. A ledger name has at most one rule per country, whatever its case, and a country has at most one default. Rules take effect on the next transaction to be confirmed or changed, and an admin can re-run them over a business's history.
Scopes: tenant:update
OAuth2ClientCredentialsBearer tenant:updateAuthorizationBearer <token>Scope: tenant:update
application/json- body
A tenant receipt rule to create.
country*BusinessCountryThe country of the businesses the rule applies to.
"CA""US"ledger_name?|The name of the ledger the rule applies to, of any type. Matched case-insensitively against each business's ledgers, so it can name a ledger no business has yet. Omit it for the country's default rule, which covers every expense ledger without a rule of its own. A country with no default rule never asks for receipts on those ledgers, and other ledgers without a rule are never asked for receipts.
never_request?Never RequestNever request a receipt for spend on this ledger, whatever its amount. The threshold is kept for when this is turned off again. On a default rule, this turns requests off for the country's other expense ledgers.
falsethreshold_amount?|Request a receipt for spend on this ledger at or above this amount, in the country's currency. 0 means every spend.
"0"reason?|Shown on the request in place of the default message, so the business knows why this receipt matters.
Successful Response
application/json- response
id*Idtrr_stringcountry*BusinessCountryThe country of the businesses the rule applies to.
"CA""US"ledger_name*|The name of the ledger the rule applies to, of any type. Matched case-insensitively against each business's ledgers, so it can name a ledger no business has yet. Omit it for the country's default rule, which covers every expense ledger without a rule of its own. A country with no default rule never asks for receipts on those ledgers, and other ledgers without a rule are never asked for receipts.
never_request*Never RequestNever request a receipt for spend on this ledger, whatever its amount. The threshold is kept for when this is turned off again. On a default rule, this turns requests off for the country's other expense ledgers.
threshold_amount*Threshold AmountRequest a receipt for spend on this ledger at or above this amount, in the country's currency. 0 means every spend.
reason*|Shown on the request in place of the default message, so the business knows why this receipt matters.
curl -X POST 'https://api.sandbox.getasset.com/v0/tenant/receipt-rules' \ -H 'Content-Type: application/json' \ -d '{ "country": "CA"}'{ "id": "string", "country": "CA", "ledger_name": "Meals & Entertainment", "never_request": true, "threshold_amount": 25, "reason": "Meals need an itemized receipt for CRA."}