Skip to Content
BusinessReceipts Rules

Get a business receipt rule

GET
/v0/business/{business_id}/receipt-rules/{rule_id}

Scopes: business:read

Authorization

OAuth2ClientCredentialsBearer business:read
headerAuthorizationBearer <token>

Scope: business:read

Path Parameters

rule_id*Rule Id

The id of the receipt rule

Formatbrr_string
business_id*Business Id

The id of the business

Formatbiz_string

Response Body

Successful Response

application/json
  1. response
id*Id
Formatbrr_string
ledger_id*|

The id of the business's ledger the rule applies to, of any type. It comes before every other rule for that ledger. Null for the business's default rule, which covers every expense ledger the business has no rule for and comes before the tenant's rules: a business with a default follows none of them.

ledger_name*|

The ledger's current name. Null for the business's default rule.

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 the default rule, this turns requests off for every ledger the business has no rule of its own for; the tenant's rules no longer apply to it.

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/business/biz_GA6EG2qFxA97NZHtxeLPUy/receipt-rules/brr_GA6EG2qFxA97NZHtxeLPUy'
Example Response
{  "id": "string",  "ledger_id": "ldg_GA6EG2qFxA97NZHtxeLPUy",  "ledger_name": "Meals & Entertainment",  "never_request": true,  "threshold_amount": 25,  "reason": "Meals need an itemized receipt for CRA."}