Skip to main content
POST
Creating a bid works just like adding one for the customer in Juiced. Juiced sets the bid’s statuses, tells other bidders when they’re outbid, and shows your API key’s label on the customer’s activity timeline. It needs the bids:write ability.

Lead type

Send the lead type’s ID as lead_type. List Lead Types gives you the IDs and the scopes each one is open at. Bidding must be turned on for the lead type at the location’s scope, or the bid is refused with a message naming the scopes that are open.

Location and scope

location is {country, state, county_fips}, and how deep it goes sets the bid’s scope.
  • country is a two-letter code and must be one of your operating countries.
  • state is the state, province or region abbreviation, and must be in that country.
  • county_fips is the county’s 5-digit FIPS code. County bids are US only. state is optional with a county, but when you send it, it must be the county’s state.
When something’s off, the error names the field, such as location.country, location.state or location.county_fips.

Amount and minimum

amount is in dollars, with at most 2 decimal places. It can be below the lead type’s minimum, as it can when you bid for a customer in Juiced. The bid comes back with minimum and below_minimum so you can spot it.

Caps and budgets

Lead caps and budgets are only accepted when that limit is turned on under Configure → Bidding (see Budgets and caps). Any limit that’s turned off is ignored. Budgets are in dollars. Send "paused": true to create the bid paused.

Retries and duplicates

Bid writes don’t take an Idempotency-Key. A customer can only have one active bid per lead type and location, so if a create is sent twice, the second one returns 422 with validation_failed, and error.bid holds the ID of the bid that already exists. Change that bid with Update a Bid instead. Creates for the same customer, lead type and location run one at a time, so a retry sent while the first create is still running waits for it and then gets the 422 above. If it waits more than 10 seconds, it returns 429 with rate_limited and a Retry-After header. Send it again after that many seconds.
Check can_receive_leads and blocked_by on the new bid to see whether it can win leads yet. See Get a Bid.

Authorizations

Authorization
string
header
required

An API key from Configure → API Keys (it starts with jz_live_), sent as a bearer token. See API Keys.

Path Parameters

id
string
required

The customer's ID.

Pattern: ^cus_[0-9a-z]{26}$

Body

application/json
lead_type
string
required

The lead type's ID, from List Lead Types. Bidding must be turned on for it at the location's scope.

location
Bid Location · object
required

Where the bid applies. Its depth sets the scope. country alone is a nationwide bid, adding state makes a state bid, and adding county_fips makes a county bid.

amount
number
required

What the customer bids for a lead, in dollars with at most 2 decimal places. It can be below the lead type's minimum, which below_minimum flags.

Required range: 0.01 <= x <= 21474836
daily_lead_cap
integer | null

Most leads this bid gets a day. Only accepted when the bid daily lead cap is turned on in Configure → Bidding, and ignored otherwise. Send null to remove it.

Required range: 1 <= x <= 2147483647
weekly_lead_cap
integer | null

Most leads this bid gets a week. Only accepted when the bid weekly lead cap is turned on in Configure → Bidding, and ignored otherwise. Send null to remove it.

Required range: 1 <= x <= 2147483647
monthly_lead_cap
integer | null

Most leads this bid gets a month. Only accepted when the bid monthly lead cap is turned on in Configure → Bidding, and ignored otherwise. Send null to remove it.

Required range: 1 <= x <= 2147483647
daily_budget
number | null

Most this bid spends a day, in dollars with at most 2 decimal places. Only accepted when the bid daily budget is turned on in Configure → Bidding, and ignored otherwise. Send null to remove it.

Required range: 1 <= x <= 21474836
weekly_budget
number | null

Most this bid spends a week, in dollars with at most 2 decimal places. Only accepted when the bid weekly budget is turned on in Configure → Bidding, and ignored otherwise. Send null to remove it.

Required range: 1 <= x <= 21474836
monthly_budget
number | null

Most this bid spends a month, in dollars with at most 2 decimal places. Only accepted when the bid monthly budget is turned on in Configure → Bidding, and ignored otherwise. Send null to remove it.

Required range: 1 <= x <= 21474836
paused
boolean
default:false

Create the bid paused.

Response

Bid created.

data
Customer Bid · object
version
enum<string>
Available options:
v1