---
title: "Changes to Grant credit"
method: POST
path: "/credits"
---

# Changes to Grant credit

`POST /credits`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 4 of 34 revisions.

- **2023-11-30** `b3351be4b462`: 1 breaking, 1 info
- **2023-09-25** `ae3b70608528`: 2 info
- **2023-09-07** `cfabb13f9886`: 2 breaking, 8 warning, 2 info
- **2023-09-02** `6b13f6f47735`: 7 breaking, 1 warning, 4 info

## Changes

- **2023-11-30** `b3351be4b462`: 1 breaking, 1 info
  - the response property `credits/items/allOf[#/components/schemas/CreditRequest]/creditAmount` became optional for the status `200`
  - the request property `creditRequests/items/creditAmount` became optional
- **2023-09-25** `ae3b70608528`: 2 info
  - added the new optional request property `creditRequests/items/idempotencyKey`
  - added the optional property `credits/items/allOf[#/components/schemas/CreditRequest]/idempotencyKey` to the response with the `200` status
- **2023-09-07** `cfabb13f9886`: 2 breaking, 8 warning, 2 info
  - added the new required request property `creditRequests`
  - the response's body type changed from no type to `object` for status `200`
  - removed the request property `accountId`
  - removed the request property `applicableEntityIds`
  - removed the request property `creditAmount`
  - removed the request property `effectiveFrom`
  - removed the request property `effectiveUntil`
  - removed the request property `grantorId`
  - removed the request property `priority`
  - removed the request property `purpose`
  - removed `#/components/schemas/CreateCreditRequest, subschema #2` from the response body `allOf` list for the response status `200`
  - added the required property `credits` to the response with the `200` status
- **2023-09-02** `6b13f6f47735`: 7 breaking, 1 warning, 4 info
  - added the new required request property `accountId`
  - added the new required request property `creditAmount`
  - added the new required request property `effectiveFrom`
  - added the new required request property `priority`
  - added the new required request property `purpose`
  - the response's body type changed from `object` to no type for status `200`
  - removed the required property `credits` from the response with the `200` status
  - removed the request property `creditRequests`
  - added the new optional request property `applicableEntityIds`
  - added the new optional request property `effectiveUntil`
  - added the new optional request property `grantorId`
  - added `#/components/schemas/CreateCreditRequest, subschema #2` to the response body `allOf` list for the response status `200`

---

[Operation](https://skmtc.dev/togaihq/apis/togai-apis/docs/credits/post.md) - [API](https://skmtc.dev/togaihq/apis/togai-apis.md) - [Page](https://skmtc.dev/togaihq/apis/togai-apis/changes/credits/post)
