Skip to Content
TenantReceipts Rules

Get a tenant receipt rule

GET
/v0/tenant/receipt-rules/{rule_id}

Scopes: tenant:read

Authorization

OAuth2ClientCredentialsBearer tenant:read
headerAuthorizationBearer <token>

Scope: tenant:read

Path Parameters

rule_id*Rule Id

The id of the receipt rule

Formattrr_string

Response Body

Successful Response

application/json
  1. response
id*Id
Formattrr_string
country*BusinessCountry

The country of the businesses the rule applies to.

Value in"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 Request

Never 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 Amount

Request 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.

Example Request
curl -X GET 'https://api.sandbox.getasset.com/v0/tenant/receipt-rules/trr_GA6EG2qFxA97NZHtxeLPUy'
Example Response
{  "id": "string",  "country": "CA",  "ledger_name": "Meals & Entertainment",  "never_request": true,  "threshold_amount": 25,  "reason": "Meals need an itemized receipt for CRA."}