> For the complete documentation index, see [llms.txt](https://docs.coda.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coda.co/payout/codapay-payout-faqs/api-functionality-and-error-handling.md).

# API Functionality and Error Handling

<mark style="color:purple;">**API Functionality and Error Handling**</mark>

1. How can I check my payout transaction status?

* **Webhook Notifications**: Set up a [webhook URL ](https://coda-payments.gitbook.io/coda-payout-merchant-documentation/bNCsHz5i7637XdvIol0d/api-reference/notification)with us. We will send notifications to your webhook for any status updates regarding your transactions
* **Check Status API**: Utilize our [Check Status API ](https://coda-payments.gitbook.io/coda-payout-merchant-documentation/bNCsHz5i7637XdvIol0d/api-reference/check-status-of-payout)to retrieve the latest status of your transactions. This method provides real-time updates on the current state of each transaction
* **Publisher Portal**: Log into our [Publisher Portal](https://portal.codapayments.com/login) and navigate to the Payout section. Here, you can view the status of all your transactions at a glance.

***

2. What should I do if I encounter a 401 Unauthorized error?

* Ensure the JWT token’s `iat` value is valid and within 5 minutes of generation.

***

3. Does the payout API return a channel order ID? Can I use the transaction ID to check the status?

* The returned ID is the Coda payout ID (similar to Codapay's transaction ID). You can use our status check API to verify the request status.

***

4. Can I use my own payout request ID to check the status?

* Merchant-generated request IDs might overlap with others. Use the Coda transaction number for accurate status queries, as Coda-generated payout IDs ensure uniqueness.

***

5. Is the Balance API's value real-time?

* Yes, upon configuration on the Coda side. Otherwise, updates are made daily

***

6. What is the interval for webhook notifications?

* Webhooks are triggered immediately upon status updates.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.coda.co/payout/codapay-payout-faqs/api-functionality-and-error-handling.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
