# Customer credit

Section: Customers. Part of the [API reference](https://developer.yoprint.com/reference.md). Web page: https://developer.yoprint.com/reference/customer-credit/

This page and all 3 operation pages, in one file: https://developer.yoprint.com/llms/customer-credit.txt

Customer credit: money held for a customer, added or taken out by hand and used to pay their sales orders.

## Operations (3)

- [Add or take out customer credit](https://developer.yoprint.com/reference/customer-credit/v1-customer-credit-store.md): `POST /v1/api/store/{team_slug}/customer/{hash_id}/credit`. Adds credit to the customer's balance (`action: deposit`) or takes it out (`action: withdraw`), and returns the entry.
- [List a customer's credit history](https://developer.yoprint.com/reference/customer-credit/v1-customer-credit-index.md): `GET /v1/api/store/{team_slug}/customer/{hash_id}/credit`. Lists the customer's credit entries, newest first: credit added or taken out by hand, credit used to pay sales orders, sales order payments refunded to credit, Customer Portal payments received into…
- [Get a customer credit entry](https://developer.yoprint.com/reference/customer-credit/v1-customer-credit-show.md): `GET /v1/api/store/{team_slug}/customer/{hash_id}/credit/{id}`. Returns one credit entry of the customer.
