Skip to main content
POST
/
api
/
v2
/
stats
/
sales
Sale confirm
curl --request POST \
  --url https://{search_zone}-api.doofinder.com/api/v2/stats/sales \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "hashid": "<string>",
  "has_init": true,
  "ip": "<string>",
  "referer": "<string>",
  "session_id": "<string>",
  "user_agent": "<string>",
  "user_id": "<string>"
}
'
"<unknown>"

Authorizations

Authorization
string
header
required

Doofinder API key. Pass it as: Authorization: Token <api_key>

Body

application/json
hashid
string
required

Unique id of the search engine. In the search engine selector, you will find the hashid information

Pattern: ^[a-f0-9]{32}$
has_init
boolean
default:true

Indicates if the sale was made after using a doofinder product or not

ip
string
deprecated

Unique address that identifies a device. Detected automatically by the server.

referer
string
deprecated

The referer header value, provides information about the URL from which the current request originated. Detected automatically by the server.

session_id
string | null

Identifier of search session

Maximum string length: 32
user_agent
string
deprecated

Identifier of device. Detected automatically by the server.

user_id
string

Identifier of user

Maximum string length: 36

Response

OK

Response returned over register stat operation.