---
title: "Gift Purchase"
method: POST
path: "gift.purchase"
tags: ["Order Events"]
---

# Gift Purchase

`POST gift.purchase` (webhook)

Fired when a gift card is purchased.

## Payload

- object
  - `id` string, required — Unique identifier for this webhook event
  - `webhookId` string, required — ID of the webhook configuration that triggered this event
  - `shopId` string, required — ID of the shop that generated this event
  - `type` string, required — The event type
  - `apiVersion` string, required — API version of the webhook payload
  - `createdAt` string, date-time, required — When this event was created
  - `testMode` boolean, required — Whether this event was sent in test mode
  - `data` ComFourthwallOpenapiModelGiftPurchaseV1, required
    - `id` string
    - `friendlyId` string
    - `shopId` string
    - `offer` ComFourthwallOpenapiModelOfferAbstractV1OfferGiftPurchaseV1
      - `id` string
      - `name` string
      - `slug` string
      - `description` string
      - `primaryImage` ComFourthwallOpenapiModelImage
        - `id` string, required
        - `url` string, required
        - `width` integer, required — The original width of the image in pixels.
        - `height` integer, required — The original height of the image in pixels.
        - `transformedUrl` string, required — Transformed URL with applied image processing (e.g., resizing, optimization)
    - `amounts` ComFourthwallOpenapiModelGiftPurchaseV1Amounts
      - `subtotal` ComFourthwallSupportMoneyMoney
        - `currency` 'USD' | 'EUR' | 'CAD' | 'GBP' | 'AUD' | 'NZD' | 'SEK' | 'NOK' | 'DKK' | 'PLN' | 'INR' | 'JPY' | 'MYR' | 'SGD' | 'MXN' | 'BRL' | 'CHF'
        - `zero` boolean
        - `negative` boolean
        - `moreThanZero` boolean
        - `lessThanZero` boolean
        - `zeroOrLess` boolean
        - `currencyScale` integer
      - `tax` ComFourthwallSupportMoneyMoney
        - `currency` 'USD' | 'EUR' | 'CAD' | 'GBP' | 'AUD' | 'NZD' | 'SEK' | 'NOK' | 'DKK' | 'PLN' | 'INR' | 'JPY' | 'MYR' | 'SGD' | 'MXN' | 'BRL' | 'CHF'
        - `zero` boolean
        - `negative` boolean
        - `moreThanZero` boolean
        - `lessThanZero` boolean
        - `zeroOrLess` boolean
        - `currencyScale` integer
      - `total` ComFourthwallSupportMoneyMoney
        - `currency` 'USD' | 'EUR' | 'CAD' | 'GBP' | 'AUD' | 'NZD' | 'SEK' | 'NOK' | 'DKK' | 'PLN' | 'INR' | 'JPY' | 'MYR' | 'SGD' | 'MXN' | 'BRL' | 'CHF'
        - `zero` boolean
        - `negative` boolean
        - `moreThanZero` boolean
        - `lessThanZero` boolean
        - `zeroOrLess` boolean
        - `currencyScale` integer
      - `profit` ComFourthwallSupportMoneyMoney
        - `currency` 'USD' | 'EUR' | 'CAD' | 'GBP' | 'AUD' | 'NZD' | 'SEK' | 'NOK' | 'DKK' | 'PLN' | 'INR' | 'JPY' | 'MYR' | 'SGD' | 'MXN' | 'BRL' | 'CHF'
        - `zero` boolean
        - `negative` boolean
        - `moreThanZero` boolean
        - `lessThanZero` boolean
        - `zeroOrLess` boolean
        - `currencyScale` integer
      - `prepaidShipping` ComFourthwallSupportMoneyMoney
        - `currency` 'USD' | 'EUR' | 'CAD' | 'GBP' | 'AUD' | 'NZD' | 'SEK' | 'NOK' | 'DKK' | 'PLN' | 'INR' | 'JPY' | 'MYR' | 'SGD' | 'MXN' | 'BRL' | 'CHF'
        - `zero` boolean
        - `negative` boolean
        - `moreThanZero` boolean
        - `lessThanZero` boolean
        - `zeroOrLess` boolean
        - `currencyScale` integer
    - `email` string
    - `username` string
    - `message` string
    - `quantity` integer
    - `gifts` ComFourthwallOpenapiModelGiftPurchaseV1Gift[]
      - `status` string, required
    - `createdAt` string, date-time

## Acknowledgement `200`

Event received successfully

---

[API](https://skmtc.net/fourthwall/apis/fourthwall-apis.md) · [All operations](https://skmtc.net/fourthwall/apis/fourthwall-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fourthwall/fourthwall-apis/versions/f85ba94932b7/schema)
