POST api/Accounting/AddPaymentAttachment

Request Information

URI Parameters

None.

Body Parameters

Add_Payment_Attachment_ViewModel
NameDescriptionTypeAdditional information
Payment_ID

integer

None.

FileUrl

string

None.

File_Type_Id

integer

None.

UserName

string

None.

Notes

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Payment_ID": 1,
  "FileUrl": "sample string 2",
  "File_Type_Id": 3,
  "UserName": "sample string 4",
  "Notes": "sample string 5"
}

application/xml, text/xml

Sample:
<Add_Payment_Attachment_ViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.ViewModels">
  <FileUrl>sample string 2</FileUrl>
  <File_Type_Id>3</File_Type_Id>
  <Notes>sample string 5</Notes>
  <Payment_ID>1</Payment_ID>
  <UserName>sample string 4</UserName>
</Add_Payment_Attachment_ViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Add_Payment_Attachment_ViewModel'.

Response Information

Resource Description

ResultModel
NameDescriptionTypeAdditional information
Success

string

None.

ErrorText

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": "sample string 1",
  "ErrorText": "sample string 2",
  "Data": {}
}

application/xml, text/xml

Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.Models">
  <Data />
  <ErrorText>sample string 2</ErrorText>
  <Success>sample string 1</Success>
</ResultModel>