---
title: "Update a subscription"
method: PATCH
path: "/marketplace/seller/subscription/{botId}/{buyerId}"
tags: ["Subscription"]
---

# Update a subscription

`PATCH /marketplace/seller/subscription/{botId}/{buyerId}`

Update the subscription

## Path parameters

- `botId` string, uuid, required
- `buyerId` string, email, required

## Request body

- PatchSubscriptionRequest
  - `expiresOnTs` string, date-time, nullable

## Response `200`

Successful Response

- PatchSubscriptionResponse
  - `data` SubscriptionSchema, required
    - `botId` string, uuid, required
    - `buyerId` string, email, required
    - `createdTs` string, date-time, required
    - `lastModifiedTs` string, date-time, required
    - `expiresOnTs` string, date-time, nullable

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/tradelocker/apis/trading-api.md) · [All operations](https://skmtc.net/tradelocker/apis/trading-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tradelocker/trading-api/revisions/5b184d9b617c/schema)
