POST api/Payments/Credit

To Add/Delete a payment credit for a specific credit account for a rep/customer.

Request Information

URI Parameters

None.

Body Parameters

CreditViewModel
NameDescriptionTypeAdditional information
RepDID

Rep Number.

string

None.

CustomerDID

Customer Number.

string

None.

CreditType

Credit Type ID.

integer

None.

CreditAccount

Credit account that the amount will be added to.

integer

None.

Amount

Amount to add/delete from credit account We will always insert the amount into table PaymentCredit. This can be either positive or negative value.

decimal number

None.

Description

Description of the credit being added to rep.

string

None.

Request Formats

application/xml, text/xml

Sample:
<CreditViewModel>
  <RepDID>sample string 1</RepDID>
  <CustomerDID>sample string 2</CustomerDID>
  <CreditType>3</CreditType>
  <CreditAccount>4</CreditAccount>
  <Amount>5</Amount>
  <Description>sample string 6</Description>
</CreditViewModel>

application/json, text/json

Sample:
{
  "RepDID": "sample string 1",
  "CustomerDID": "sample string 2",
  "CreditType": 3,
  "CreditAccount": 4,
  "Amount": 5.0,
  "Description": "sample string 6"
}

application/x-www-form-urlencoded

Sample:

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/xml, text/xml, application/json, text/json

Sample:

Sample not available.