---
title: "Update User Credits Post Checkout"
method: POST
path: "/payment/checkout/update"
tags: ["PAYMENT"]
---

# Update User Credits Post Checkout

`POST /payment/checkout/update`

Updates the user credits post checkout
:param db: The database session for accessing the database.
:param tenant: The current tenant
:param auth: The authorization token for the request.
:return: StandardResponse.

## Headers

- `x-tenant` string

## Request body

- PostPaymentCheckoutRequest
  - `checkout_session_id` string, required
  - `cancelled` boolean

## Response `200`

Successful Response

- StandardResponse
  - `ok` boolean, required

## Other responses

- `400` — Not supported for public user
- `403` — Not supported for public user
- `422` — Validation Error

---

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