# Accounting

## Retrieve payouts

> Retrieve list of payouts for your merchant account and their status.

```json
{"openapi":"3.0.0","info":{"title":"API REST Documentation","version":"6.0-oas3"},"servers":[{"url":"https://api.2checkout.com/rest/6.0"}],"paths":{"/payouts/":{"get":{"tags":["Accounting"],"summary":"Retrieve payouts","description":"Retrieve list of payouts for your merchant account and their status.","parameters":[{"name":"Accept","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"application/json","enum":["application/json"]}},{"name":"X-Avangate-Authentication","in":"header","description":"Authentication header","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"Reference","in":"query","description":"InvoicePrefix (PREFIX) + InvoiceNo (00000) will search for transfers containing an invoice with prefix + number","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"Status","in":"query","description":"Payout status. Array of strings. Possible values: PAID,PARTIALLY_PAID,CANCELED","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["PAID","PARTIALLY_PAID","CANCELED"]}},{"name":"Currency","in":"query","description":"3 letter ISO currency code","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"StartDate","in":"query","description":"Start payment date. Format: yyyy-mm-dd","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"EndDate","in":"query","description":"End payment date. Format: yyyy-mm-dd","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"PaymentType","in":"query","description":"Payment type. Can be one of \"WIRE\", \"PAYPAL\", \"CHECK\", \"PAYONEER\", \"WEBMONEY\" or \"INTERNATIONAL_WIRE\"","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["WIRE","PAYPAL","CHECK","PAYONEER","WEBMONEY","INTERNATIONAL_WIRE"]}},{"name":"OrderBy","in":"query","description":"This parameter orders payouts. The only parameter allowed is \"TransferCompletionDate\". The preceding \"-\" sign means order by DESC, ommit it for searching ASC","required":false,"style":"form","explode":true,"schema":{"type":"string","enum":["TransferCompletionDate","-TransferCompletionDate"]}},{"name":"Page","in":"query","description":"Page number","required":false,"style":"form","explode":true,"schema":{"type":"integer"}},{"name":"Limit","in":"query","description":"Number of results on a page","required":false,"style":"form","explode":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Search payouts object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchPayouts"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"SearchPayouts":{"type":"object","properties":{"Items":{"type":"array","items":{"$ref":"#/components/schemas/SearchPayoutsItems"}},"Pagination":{"$ref":"#/components/schemas/Pagination"}}},"SearchPayoutsItems":{"type":"object","properties":{"TransferCompletionDate":{"type":"string"},"PaymentType":{"type":"string"},"Amount":{"type":"number"},"TotalSales":{"type":"number"},"TotalFees":{"type":"number"},"TotalRefunds":{"type":"number"},"Currency":{"type":"string"},"Status":{"type":"string"},"Invoices":{"type":"array","items":{"$ref":"#/components/schemas/SearchPayoutsInvoices"}},"Summary":{"$ref":"#/components/schemas/SearchPayoutsItems_Summary"}}},"SearchPayoutsInvoices":{"type":"object","properties":{"Reference":{"type":"string"},"Amount":{"type":"number"},"Description":{"type":"string"},"Type":{"type":"string"},"Code":{"type":"string"},"Date":{"type":"string"},"PaidAmount":{"type":"number"},"PaidDate":{"type":"string"},"PaidCurrency":{"type":"string"},"RetainedAmount":{"type":"number"},"ReleasedAmount":{"type":"number"}}},"SearchPayoutsItems_Summary":{"type":"object","properties":{"ServicesAmount":{"type":"number"},"PurchaseOrdersAmount":{"type":"number"},"ChargeBacksAmount":{"type":"number"},"RollingReserveAmount":{"type":"number"},"PeriodNetSales":{"type":"number"},"VendorToVendor":{"type":"number"},"ChargeBackFund":{"type":"number"}}},"Pagination":{"type":"object","properties":{"Page":{"type":"integer"},"Limit":{"type":"integer"},"Count":{"type":"integer"}}},"ErrorResponse":{"type":"object","properties":{"error_code":{"type":"string"},"message":{"type":"string"}}}}}}
```

## Retrieve account balance

> Retrieve the account balance situation for your merchant account.

```json
{"openapi":"3.0.0","info":{"title":"API REST Documentation","version":"6.0-oas3"},"servers":[{"url":"https://api.2checkout.com/rest/6.0"}],"paths":{"/payouts/pending/":{"get":{"tags":["Accounting"],"summary":"Retrieve account balance","description":"Retrieve the account balance situation for your merchant account.","parameters":[{"name":"Accept","in":"header","required":true,"style":"simple","explode":false,"schema":{"type":"string","default":"application/json","enum":["application/json"]}},{"name":"X-Avangate-Authentication","in":"header","description":"Authentication header","required":true,"style":"simple","explode":false,"schema":{"type":"string"}},{"name":"Currency","in":"query","description":"Use this parameter to show the balance only for a single order currency. If not sent, or sent as NULL, 2Checkout sends the balance for all order currencies","required":false,"style":"form","explode":true,"schema":{"type":"string"}},{"name":"TotalCurrency","in":"query","description":"Use this parameter to show the total account balance in the preferred currency. If not sent, or sent as NULL, 2Checkout sends the total balance in the default account currency","required":false,"style":"form","explode":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Pending payout object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingPayouts"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"PendingPayouts":{"type":"object","properties":{"Currencies":{"type":"array","items":{"$ref":"#/components/schemas/PendingPayoutsCurrencies"}},"Total":{"$ref":"#/components/schemas/PendingPayouts_Total"}}},"PendingPayoutsCurrencies":{"type":"object","properties":{"Currency":{"type":"string"},"OrdersTotal":{"$ref":"#/components/schemas/PendingPayoutsCurrencies_OrdersTotal"},"RetainedToDisputesBalance":{"type":"number"},"ReleasedFromDisputesBalance":{"type":"number"},"RetainedToRollingReserveBalance":{"type":"number"},"ReleasedFromRollingReserveBalance":{"type":"number"},"ChargebackFees":{"type":"number"},"ProcessingFees":{"type":"number"},"AffiliatesCommission":{"type":"number"},"TaxCollected":{"type":"number"},"EstimatedTotalRevenue":{"type":"number"}}},"PendingPayoutsCurrencies_OrdersTotal":{"type":"object","properties":{"estore":{"type":"number"},"affilietes":{"type":"number"},"partner":{"type":"number"},"total":{"type":"number"}}},"PendingPayouts_Total":{"type":"object","properties":{"Currency":{"type":"string"},"OrdersTotal":{"$ref":"#/components/schemas/PendingPayouts_Total_OrdersTotal"},"RetainedToDisputesBalance":{"type":"number"},"ReleasedFromDisputesBalance":{"type":"number"},"RetainedToRollingReserveBalance":{"type":"number"},"ReleasedFromRollingReserveBalance":{"type":"number"},"ChargebackFees":{"type":"number"},"ProcessingFees":{"type":"number"},"AffiliatesCommission":{"type":"number"},"TaxCollected":{"type":"number"},"EstimatedTotalRevenue":{"type":"number"}}},"PendingPayouts_Total_OrdersTotal":{"type":"object","properties":{"estore":{"type":"number"},"affilietes":{"type":"number"},"partner":{"type":"number"},"total":{"type":"number"}}},"ErrorResponse":{"type":"object","properties":{"error_code":{"type":"string"},"message":{"type":"string"}}}}}}
```


---

# Agent Instructions: 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:

```
GET https://docs.2checkout.com/api-reference/reference/accounting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
