> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a vendor credits

> Create a vendor credits

### Request body

`CreateVendorCreditRequest`

<ParamField body="amount" type="string" required>
  Credit amount as a string (must be positive).
</ParamField>

<ParamField body="memo" type="string,null" />

<ParamField body="supplier_id" type="string" required />

<ParamField body="vendor_return_id" type="string,null" />

### Responses

<ResponseField name="201" type="VendorCreditResponse" />

<ResponseField name="400" type="ErrorBody" />

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.stateset.com/api/v1/vendor-credits' \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "amount": "string",
    "memo": null,
    "supplier_id": "string",
    "vendor_return_id": null
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "amount": "string",
    "currency": "string",
    "id": "string",
    "number": "string",
    "remaining": "string",
    "status": "string",
    "supplier_id": "string"
  }
  ```
</ResponseExample>
