---
title: "Update Purchase"
method: PUT
path: "/api/v1.0/purchases/{id}"
tags: ["Purchases"]
---

# Update Purchase

`PUT /api/v1.0/purchases/{id}`

## Path parameters

- `id` string, required

## Request body

- Purchase
  - `created_at` number — The date/time the Purchase was created at represented as an integer
  - `custom_fields` object — A dictionary of Custom Field ID keys and values for each Custom Field on the Purchase
  - `id` string — The ID of the Purchase
  - `lead_id` integer — The ID of the Lead that the Purchase was created on
  - `price` unknown
  - `price_sheet_id` integer — The ID of the Price Sheet the Purchase is associated with
  - `purchasable` Purchasable
    - `campaign_id` integer — The ID of the Campaign the Purchasable is on
    - `created_at` number — The date/time the Purchasable was created at represented as an integer
    - `custom_fields` object — A dictionary of Custom Field ID keys and values for each Custom Field on the Purchasable
    - `decription` string — A brief description of the Purchasable
    - `id` string — The ID of the Purchasable
    - `name` string — The name of the Purchasable
    - `price` unknown
    - `price_sheet_id` integer — The ID of the Price Sheet the Purchasable is associated with
    - `minimum_price` unknown
    - `updated_at` number — The date/time the Purchasable was last updated at represented as an integer
  - `purchasable_id` integer — The ID of the Purchasable that the Purchase is created from
  - `updated_at` number — The date/time the Purchase was last updated at represented as an integer
  - `user_id` integer — The ID of the User who created the Purchase

## Response `200`

Success

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.dev/wingmateapp/apis/wingmate-api.md) · [All operations](https://skmtc.dev/wingmateapp/apis/wingmate-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wingmateapp/wingmate-api/revisions/d6fccce94b7c/schema)
