curl --request GET \
--url https://api.snappy.com/public-api/v2/campaigns/{campaignId}/estimatedCost \
--header 'X-Api-Key: <api-key>'{
"campaignId": "abc12345",
"totalNumberOfGifts": 1,
"estimatedCost": {
"estimatedTotalCost": 100,
"estimatedTax": 0,
"estimatedFee": 0,
"budget": 100
}
}Use this API to get the estimated cost of a campaign. The estimated cost is calculated based on the budget, number of recipients, taxes and fees.
campaigns:readcurl --request GET \
--url https://api.snappy.com/public-api/v2/campaigns/{campaignId}/estimatedCost \
--header 'X-Api-Key: <api-key>'{
"campaignId": "abc12345",
"totalNumberOfGifts": 1,
"estimatedCost": {
"estimatedTotalCost": 100,
"estimatedTax": 0,
"estimatedFee": 0,
"budget": 100
}
}Documentation Index
Fetch the complete documentation index at: https://docs.snappy.com/llms.txt
Use this file to discover all available pages before exploring further.
Company level authentication provides access to all resources under your company, including accounts, campaigns, gifts, and recipients.
POST /v2/authentication/apiKeys endpoint to generate a new API keyInclude your API key in the X-Api-Key header for every request:
X-Api-Key: YOUR_24_CHARACTER_API_KEYFor production environments, enable mutual TLS authentication:
enforceMtls: true when creating the API keyhttps://mtls-api.snappy.com/public-apiSource of the request
api_native, api_zapier, api_salesforce, api_ftp, api_make "api_native"
Campaign ID
^[A-Za-z0-9]{8,}$"abcd1234"
Company ID
^[A-Za-z0-9]{8,}$"12345678"
Number of gifts
1 <= x <= 999991
Ok
Campaign estimated cost response.
The campaign ID.
"abcd1234"
The total number of gifts.
3
The estimated cost of the gift including estimated tax and fee.
Show child attributes
{
"budget": 100,
"estimatedFee": 2,
"estimatedTax": 7,
"estimatedTotalCost": 109
}Was this page helpful?