Skip to Content
SaaSFlow
DevelopersAPIReferencevendors

Apply default categorization

Re-apply a vendor's default categorization to transactions already booked against it. applyTo decides how far it reaches: empty only fills in transactions…

Authentication

Checking whether you're signed in…
POST
/companies/{companyId}/vendors/{vendorId}/apply-default-categorization

Authorization

headerAuthorization<token>

A SaaSFlow API key (format sf_…) or an OAuth bearer token. Paste only the key — the proxy adds the Bearer prefix. Create an API key in Settings → Company settings → API keys — see API keys.

Path Parameters

companyId*string
Formatuuid
vendorId*string
Formatuuid

Request Body

application/json
  1. body
applyTo*string
Value in"empty""autoAssigned""all"

Response Body

Re-application complete

application/json
  1. response
insertedSlices*integer
Range0 <= value
updatedSlices*integer
Range0 <= value
counterTransactionsCreated*integer
Range0 <= value
Example Request
curl -X POST 'https://api.saasflow.com/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/vendors/497f6eca-6276-4993-bfeb-53cbbbba6f08/apply-default-categorization' \  -H 'Content-Type: application/json' \  -d '{  "applyTo": "empty"}'
Example Response
{  "insertedSlices": 0,  "updatedSlices": 0,  "counterTransactionsCreated": 0}