POST api/PaymentMethods

Request Information

URI Parameters

None.

Body Parameters

PaymentMethod
NameDescriptionTypeAdditional information
PaymentMethodId

integer

None.

PaymentType

string

Max length: 50

DateCreated

date

None.

DateUpdated

date

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PaymentMethodId": 1,
  "PaymentType": "sample string 2",
  "DateCreated": "2020-02-15T20:27:46.6857929+00:00",
  "DateUpdated": "2020-02-15T20:27:46.6857929+00:00",
  "CreatedBy": 1,
  "UpdatedBy": 1
}

application/xml, text/xml

Sample:
<PaymentMethod xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <CreatedBy>1</CreatedBy>
  <DateCreated>2020-02-15T20:27:46.6857929+00:00</DateCreated>
  <DateUpdated>2020-02-15T20:27:46.6857929+00:00</DateUpdated>
  <PaymentMethodId>1</PaymentMethodId>
  <PaymentType>sample string 2</PaymentType>
  <UpdatedBy>1</UpdatedBy>
</PaymentMethod>

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 'PaymentMethod'.

Response Information

Resource Description

PaymentMethod
NameDescriptionTypeAdditional information
PaymentMethodId

integer

None.

PaymentType

string

Max length: 50

DateCreated

date

None.

DateUpdated

date

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "PaymentMethodId": 1,
  "PaymentType": "sample string 2",
  "DateCreated": "2020-02-15T20:27:46.6857929+00:00",
  "DateUpdated": "2020-02-15T20:27:46.6857929+00:00",
  "CreatedBy": 1,
  "UpdatedBy": 1
}

application/xml, text/xml

Sample:
<PaymentMethod xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <CreatedBy>1</CreatedBy>
  <DateCreated>2020-02-15T20:27:46.6857929+00:00</DateCreated>
  <DateUpdated>2020-02-15T20:27:46.6857929+00:00</DateUpdated>
  <PaymentMethodId>1</PaymentMethodId>
  <PaymentType>sample string 2</PaymentType>
  <UpdatedBy>1</UpdatedBy>
</PaymentMethod>