> For the complete documentation index, see [llms.txt](https://docs.xorosoft.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xorosoft.com/developers-api/gl-ledger-management/create-outgoing-payment.md).

# Create Outgoing Payment

Create or update outgoingpayment data in Xorosoft ERP. Send the JSON payload using the field names documented in this operation and in the module export/import format used by Xorosoft ERP.

```json
{"openapi":"3.0.3","info":{"title":"Xorosoft ERP Public API","version":"2026.07"},"tags":[{"name":"GL Ledger Management","description":"Use GL Ledger Management APIs to retrieve accounting reference data and transaction information such as GL transactions, accounts, accounting periods, project classes, outgoing payments, and bill payments. These endpoints help finance and reporting integrations reconcile operational transactions with accounting activity."}],"servers":[{"url":"https://res.xorosoft.io","description":"Xorosoft ERP API server"}],"security":[{"basic":[]}],"components":{"securitySchemes":{"basic":{"scheme":"basic","type":"http"}},"schemas":{"XoroApiResponse":{"type":"object","description":"Standard Xorosoft ERP API response envelope used by most endpoints.","properties":{"Result":{"type":"boolean","description":"True when the operation completed successfully."},"Message":{"type":"string","description":"Human-readable success or error message."},"Data":{"description":"Endpoint-specific payload.","type":"object","additionalProperties":true,"nullable":true},"Page":{"type":"integer","description":"Current page number when paging is enabled.","nullable":true},"TotalPages":{"type":"integer","description":"Total page count when paging is enabled.","nullable":true}}},"OutgoingPaymentRequest":{"type":"object","description":"Vendor payment payload containing payment header values and payable document allocations.","required":["OutgoingPaymentHeaderObj"],"properties":{"OutgoingPaymentHeaderObj":{"type":"object","description":"Outgoing payment header values.","properties":{"VendorName":{"type":"string","description":"Vendor receiving the outgoing payment."},"PaymentRefNo":{"type":"string","description":"Payment reference number supplied by the external system or payment processor."},"PaymentMethodName":{"type":"string","description":"Payment method name configured in Xorosoft ERP."},"CurrencyCode":{"type":"string","description":"Currency code for the payment."},"Amount":{"type":"number","description":"Total payment amount."},"ThirdPartyRefNo":{"type":"string","description":"External reference number for reconciliation."},"ThirdPartySource":{"type":"string","description":"External system or channel that created the payment."}},"additionalProperties":true},"OutgoingPaymentDetailArr":{"type":"array","description":"Bills or payable documents paid by this outgoing payment.","items":{"type":"object","properties":{"BillNumber":{"type":"string","description":"Bill number to apply the payment against."},"Amount":{"type":"number","description":"Amount applied to this bill."}},"additionalProperties":true}}}}}},"paths":{"/api/xerp/outgoingpayment/create":{"post":{"tags":["GL Ledger Management"],"summary":"Create Outgoing Payment","description":"Create or update outgoingpayment data in Xorosoft ERP. Send the JSON payload using the field names documented in this operation and in the module export/import format used by Xorosoft ERP.","operationId":"post_outgoingpayment_create","responses":{"200":{"description":"Request processed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XoroApiResponse"}}}},"400":{"description":"Invalid request, failed validation, or business rule error.","content":{"text/plain":{"schema":{"type":"string"}}}},"401":{"description":"Missing or invalid private app credentials."},"403":{"description":"Private app does not have permission for this request."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutgoingPaymentRequest"}}}}}}}}
```


---

# 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.xorosoft.com/developers-api/gl-ledger-management/create-outgoing-payment.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.
