> For the complete documentation index, see [llms.txt](https://help.citrusad.com/retail-media-interface/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.citrusad.com/retail-media-interface/partner/billing-api.md).

# Billing API

- [Wallet](https://help.citrusad.com/retail-media-interface/partner/billing-api/wallet.md)
- [Create a wallet](https://help.citrusad.com/retail-media-interface/partner/billing-api/wallet/createwallet.md): This endpoint creates a wallet within a specified namespace and associates it with a team using the team ID. The request body defines the wallet's attributes, including its name, currency, spending li
- [Update a wallet](https://help.citrusad.com/retail-media-interface/partner/billing-api/wallet/updatewallet-1.md): This endpoint updates a wallet within a specified namespace and teamId. This endpoint allows you to modify attributes such as the wallet's name, credit limit, daily budget, external ID, and other rele
- [Retrieve wallet by ID](https://help.citrusad.com/retail-media-interface/partner/billing-api/wallet/getwallet-1.md): Fetches the details of a specific wallet using its unique identifier, {id}. This endpoint returns information such as the wallet's name, balance, currency, and associated team, providing a comprehensi
- [List all wallets](https://help.citrusad.com/retail-media-interface/partner/billing-api/wallet/listwallets.md): This endpoint retrieves a list of wallets based on specified filters and parameters, including team ID, wallet name, wallet ID, external ID, and more. Supports pagination and sorting to manage large s
- [Get the balance of a specific wallet](https://help.citrusad.com/retail-media-interface/partner/billing-api/wallet/getwalletbalance.md)
- [Manage funds to a specific wallet](https://help.citrusad.com/retail-media-interface/partner/billing-api/wallet/managefunds.md): This endpoint allows you to add or remove funds from a specific wallet. You can top up wallet balances using a payment card or adjust funds as needed for your business operations. Each request include
- [Spend](https://help.citrusad.com/retail-media-interface/partner/billing-api/spend.md)
- [Retrieve campaign spend details](https://help.citrusad.com/retail-media-interface/partner/billing-api/spend/getcampaignspend.md): This endpoint calculates remaining campaign budget for specific campaigns based on their available balance and spending limits. It allows checking how much budget is left by different time periods (da


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.citrusad.com/retail-media-interface/partner/billing-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
