POST v1/company/{companyId}/receipts
Post new receipt for an invoice
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
companyId |
Company id |
decimal number |
Required |
Body Parameters
Receipt detail object
AppReceiptMasterRequestName | Description | Type | Additional information |
---|---|---|---|
Id |
Receipt id |
decimal number |
None. |
AccountId |
Account id |
decimal number |
Required |
InvoiceId |
Invoice id |
decimal number |
Required |
VDate |
Receipt date |
date |
Required Matching regular expression pattern: (19|20)[0-9]{2}[-](0[1-9]|1[012])[-](0[1-9]|[12][0-9]|3[01]) |
Description |
Receipt description/referance |
string |
Required |
Amount |
Receipt amount |
decimal number |
Required |
CurrencyId |
Currency id |
integer |
Required |
CurrencyRate |
Currency conversion rate |
decimal number |
Required |
IsFullyPaid | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1.0, "AccountId": 2.0, "InvoiceId": 3.0, "VDate": "2025-04-22T15:35:04.0118526+01:00", "Description": "sample string 5", "Amount": 6.0, "CurrencyId": 7, "CurrencyRate": 8.0, "IsFullyPaid": true }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApiResponseOfAppReceiptMasterModelName | Description | Type | Additional information |
---|---|---|---|
Result | AppReceiptMasterModel |
None. |
|
Status | boolean |
None. |
|
Message | string |
None. |
|
Errors |
Errors occures while processing request |
Collection of ApiError |
None. |
Response Formats
application/json, text/json
Sample:
{ "Result": { "Id": 1.0, "AccountId": 2.0, "ContactId": 3.0, "ContactName": "sample string 5", "VNo": "sample string 6", "VDate": "2025-04-22", "Description": "sample string 8", "Amount": 9.0, "Items": [ { "Id": 1.0, "InvoiceId": 3.0, "VNo": "sample string 4", "Amount": 5.0 }, { "Id": 1.0, "InvoiceId": 3.0, "VNo": "sample string 4", "Amount": 5.0 } ] }, "Status": true, "Message": "sample string 2", "Errors": [ { "Number": 1, "Message": "sample string 2", "Exception": { "ClassName": "System.Exception", "Message": null, "Data": null, "InnerException": null, "HelpURL": "sample string 1", "StackTraceString": null, "RemoteStackTraceString": null, "RemoteStackIndex": 0, "ExceptionMethod": null, "HResult": 3, "Source": "sample string 2", "WatsonBuckets": null } }, { "Number": 1, "Message": "sample string 2", "Exception": { "ClassName": "System.Exception", "Message": null, "Data": null, "InnerException": null, "HelpURL": "sample string 1", "StackTraceString": null, "RemoteStackTraceString": null, "RemoteStackIndex": 0, "ExceptionMethod": null, "HResult": 3, "Source": "sample string 2", "WatsonBuckets": null } } ] }