Generate pain001 file(s)
Return value: if isConfidential is true and paymentsForGeneration are of several modules - {fileName, xmlAsBytes}, {fileName, xmlAsBytes}, otherwise xml file as byte[]
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Body Required
generationRequest
-
feeSplit string
Values are
CHARGED_TO_THE_BENEFICIARY
,FIFTY_FIFTY_SPLIT
, orCHARGED_TO_THE_ORDERER
. -
isConfidential boolean
-
payableByChartOfAccountId integer
-
paymentsForGeneration array[object]
-
plannedDate string
-
timezone integer(int32)
POST /api-v1/payable/pain001
curl \
-X POST http://10.10.10.132/api-v1/payable/pain001 \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '{"feeSplit":"CHARGED_TO_THE_BENEFICIARY","isConfidential":true,"payableByChartOfAccountId":42,"paymentsForGeneration":[{"module":"ALL","paymentId":42}],"plannedDate":"string","timezone":42}'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
{
"feeSplit": "CHARGED_TO_THE_BENEFICIARY",
"isConfidential": true,
"payableByChartOfAccountId": 42,
"paymentsForGeneration": [
{
"module": "ALL",
"paymentId": 42
}
],
"plannedDate": "string",
"timezone": 42
}
Response examples (200)
{}