Skip to main content
Savings Analysis Consent
curl --request POST \
  --url https://api.rampartcorporation.com/v2/sac \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-client-id: <x-client-id>' \
  --data '{
  "first_name": "John",
  "last_name": "Doe",
  "client_name": "Acme Corporation",
  "timestamp": "2021-01-01T00:00:00Z",
  "ip_address": "127.0.0.1",
  "autoOptIn": false
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <API_KEY>.

Headers

x-client-id
string
required

Client ID for authentication

Body

application/json
client_name
string
required

The name of the client organization.

Example:

"Acme Corporation"

timestamp
string
required

The timestamp of the consent.

Example:

"2021-01-01T00:00:00Z"

ip_address
string
required

The IP address of the person providing consent.

Example:

"127.0.0.1"

first_name
string

The first name of the person providing consent.

Example:

"John"

last_name
string

The last name of the person providing consent.

Example:

"Doe"

autoOptIn
boolean
default:false

Indicates whether Rampart is authorized to automatically opt the account into a contract if potential savings are identified.

Response

200 - application/json

Successfully updated SAC settings

success
boolean

Indicates whether the SAC settings were updated successfully.

Example:

true

I