curl --request POST \
--url https://api.snappy.com/public-api/v2/gifts/{giftId}/claim \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"variantId": "ab6789cd",
"orderRecipient": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"country": "US",
"address": {
"addressLine1": "123 Main St",
"zipcode": "12345",
"city": "New York",
"state": "NY"
}
}
}
'{
"orderId": "a67bc89d",
"status": "processing"
}Use this endpoint to programmatically claim an existing gift on behalf of a recipient by providing the selected variant and shipping address. Use this when your system needs to place an order without recipient interaction — for example, automatically ordering a default product for gifts that remain unclaimed after a set period.
orders:createcurl --request POST \
--url https://api.snappy.com/public-api/v2/gifts/{giftId}/claim \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"variantId": "ab6789cd",
"orderRecipient": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"country": "US",
"address": {
"addressLine1": "123 Main St",
"zipcode": "12345",
"city": "New York",
"state": "NY"
}
}
}
'{
"orderId": "a67bc89d",
"status": "processing"
}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"
The id of the gift.
^[A-Za-z0-9]{8,}$"abc123de"
Company ID
^[A-Za-z0-9]{8,}$"12345678"
Claim gift request body.
Id of the selected variation (required)
"ab6789cd"
Order recipient details.
Show child attributes
{
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"country": "US",
"address": {
"addressLine1": "123 Main St",
"addressLine2": "Apt 1",
"zipcode": "12345",
"city": "New York",
"state": "NY"
}
}Was this page helpful?