POST api/v{version}/payments/methods

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

SetPaymentMethodModel
NameDescriptionTypeAdditional information
OrderId

integer

Required

OrderTypeId

SetPaymentMethodOrderType

Required

PaymentMethodId

PaymentMethodType

Required

UseBonus

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderId": 1,
  "OrderTypeId": 1,
  "PaymentMethodId": 1,
  "UseBonus": true
}

application/xml, text/xml

Sample:
<SetPaymentMethodModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.BindingModels">
  <OrderId>1</OrderId>
  <OrderTypeId>ServiceRequest</OrderTypeId>
  <PaymentMethodId>Wallet</PaymentMethodId>
  <UseBonus>true</UseBonus>
</SetPaymentMethodModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.