POST
/
spend_controls
Create Spend Control
curl --request POST \
  --url https://api.synctera.com/v1/spend_controls \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "action_case": true,
  "action_decline": true,
  "amount_limit": 1,
  "direction": "CREDITS",
  "is_active": true,
  "managed_by": "BANK",
  "merchant_category_codes": [
    "5600–5699"
  ],
  "name": "<string>",
  "payment_sub_types": [
    "ACH.INCOMING_CREDIT"
  ],
  "payment_types": [
    "ACH"
  ],
  "time_range": {
    "time_range_type": "ROLLING_WINDOW_DAYS"
  }
}'
{
  "action_case": true,
  "action_decline": true,
  "amount_limit": 1,
  "creation_time": "2010-05-06T12:23:34.321Z",
  "direction": "CREDITS",
  "id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
  "is_active": true,
  "last_modified_time": "2010-05-06T12:23:34.321Z",
  "managed_by": "BANK",
  "merchant_category_codes": [
    "5600–5699"
  ],
  "name": "<string>",
  "payment_sub_types": [
    "ACH.INCOMING_CREDIT"
  ],
  "payment_types": [
    "ACH"
  ],
  "time_range": {
    "time_range_type": "ROLLING_WINDOW_DAYS"
  },
  "number_of_related_accounts": 1,
  "tenant": "abcdef_ghijkl"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Details of the spend control to create

The body is of type object.

Response

201
application/json

Spend control details

The response is of type object.