curl --location '/api/v1/Payment/Save' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"payment": {
"paymentHeaderId": 0,
"type": 0,
"accountSlRef": 0,
"dlRef": 0,
"number": 0,
"date": "2019-08-24T14:15:22.123Z",
"currencyRef": 0,
"description": "string",
"description_En": "string",
"discount": 0,
"totalAmount": 0,
"itemType": 0,
"state": 0,
"creatorForm": "string",
"creator": 0,
"creationDate": "2019-08-24T14:15:22.123Z",
"lastModifier": 0,
"lastModificationDate": "2019-08-24T14:15:22.123Z",
"version": 0,
"rate": 0,
"cashRef": 0,
"amount": 0,
"amountInBaseCurrency": 0,
"receiptHeaderRef": 0,
"fiscalYearRef": 0,
"voucherRef": 0,
"discountRate": 0,
"discountInBaseCurrency": 0,
"bankFeeSlRef": 0,
"totalAmountInBaseCurrency": 0
},
"paymentCheques": [
{
"paymentChequeId": 0,
"number": "string",
"secondNumber": "string",
"isGuarantee": true,
"amount": 0,
"date": "2019-08-24T14:15:22.123Z",
"description": "string",
"description_En": "string",
"version": 0,
"state": 0,
"paymentHeaderRef": 0,
"bankAccountRef": 0,
"headerNumber": 0,
"headerDate": "2019-08-24T14:15:22.123Z",
"currencyRef": 0,
"rate": 0,
"amountInBaseCurrency": 0,
"durationType": 0,
"dlRef": 0,
"type": 0,
"sayadCode": "string"
}
],
"paymentDrafts": [
{
"paymentDraftId": 0,
"number": "string",
"date": "2019-08-24T14:15:22.123Z",
"amount": 0,
"bankAccountRef": 0,
"description": "string",
"description_En": "string",
"version": 0,
"paymentHeaderRef": 0,
"headerNumber": 0,
"headerDate": "2019-08-24T14:15:22.123Z",
"currencyRef": 0,
"rate": 0,
"amountInBaseCurrency": 0,
"bankFeeAmount": 0,
"bankFeeAmountInBaseCurrency": 0,
"bankFeeAmountRate": 0
}
]
}'