---
title: "Add Sweepstakes Results"
method: POST
path: "/api/v1/sweepstakes/{sweepstakesId}/results"
tags: ["Sweepstakes"]
---

# Add Sweepstakes Results

`POST /api/v1/sweepstakes/{sweepstakesId}/results`

## Request

- Base URL: `https://merchant-api.accruesavings.com`
- URL: `https://merchant-api.accruesavings.com/api/v1/sweepstakes/{sweepstakesId}/results`
- Auth: none declared. Required headers: `Client-ID`, `Authorization`
- TypeScript: <https://skmtc.dev/byaccrue/apis/accrue-merchant-api/docs/api/v1/sweepstakes/:sweepstakesId/results/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `sweepstakesId` string, required: Sweepstakes ID

## Headers

- `Client-ID` string, uuid, required: The unique identifier of the client making the request. This header is required to retrieve the client-specific configuration and ensure that the response is tailored to the client's settings and permissions.
- `Authorization` string, uuid, required: Secure secret to access privileged endpoints.

## Request body

- object
  - `data` SweepstakesResults, required: SweepstakesResults
    - `id` string, uuid, required: Unique identifier for the object.
    - `type` 'SweepstakesResults', required
    - `attributes` object, required
      - `customer` object, required
        - `idType` 'ID' | 'PhoneNumber': Type of ID used to identify the customer.
        - `id` string, required: User phone number recorded during checkout.

## Response `201`

201 Created

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/byaccrue/apis/accrue-merchant-api.md) - [All operations](https://skmtc.dev/byaccrue/apis/accrue-merchant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/byaccrue/apis/accrue-merchant-api/revisions/3e2d97ef2e6e?raw)
