---
title: "Track Facebook Purchase event payload"
method: POST
path: "/v1/web-users/facebook-purchase-events"
tags: ["Web Users"]
---

# Track Facebook Purchase event payload

`POST /v1/web-users/facebook-purchase-events`

Stores the client-side Purchase metadata that the web app sends or intends to send to Facebook. Requires the regular Firebase Authorization bearer token.

## Request body

- TrackFacebookPurchaseEventDto
  - `webUserId` string
  - `firebaseUid` string
  - `eventId` string
  - `eventName` string
  - `tier` string
  - `productId` string
  - `purchaseSource` string
  - `currency` string
  - `value` number
  - `purchasedAt` string
  - `metadata` object

## Response `201`

Facebook Purchase event log created successfully

- TrackFacebookPurchaseEventResponseDto
  - `id` string, required
  - `webUserId` string, nullable, required
  - `userId` string, nullable, required
  - `firebaseUid` string, nullable, required

---

[API](https://skmtc.dev/miaai/apis/backend-template-api.md) · [All operations](https://skmtc.dev/miaai/apis/backend-template-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/miaai/backend-template-api/revisions/2a8d88a5124f/schema)
