POST api/PaymentMethod/SavePMs

Request Information

URI Parameters

None.

Body Parameters

PaymentMethodList
NameDescriptionTypeAdditional information
PaymentMethods

Collection of PaymentMethod

None.

Request Formats

application/json, text/json

Sample:
{
  "PaymentMethods": [
    {
      "PaymentMethodHash": "sample string 2",
      "Name": "sample string 3",
      "Type": "sample string 4",
      "FriendlyName": "sample string 5",
      "FriendlyTypeName": "sample string 6",
      "FriendlyLabel": "sample string 7",
      "Description": "sample string 8",
      "PaymentAmount": 9.0,
      "FundsAvailable": 1.0,
      "IsTippingValid": true,
      "SupportedAsSinglePayment": true,
      "SupportedAsFirstPartialPayment": true,
      "SupportedAsAdditionalPartialPayment": true,
      "NotStoredCreditCard": true,
      "IsDefaultMethod": true,
      "ImageURL": "sample string 16",
      "PaymentMethodId": "sample string 2"
    },
    {
      "PaymentMethodHash": "sample string 2",
      "Name": "sample string 3",
      "Type": "sample string 4",
      "FriendlyName": "sample string 5",
      "FriendlyTypeName": "sample string 6",
      "FriendlyLabel": "sample string 7",
      "Description": "sample string 8",
      "PaymentAmount": 9.0,
      "FundsAvailable": 1.0,
      "IsTippingValid": true,
      "SupportedAsSinglePayment": true,
      "SupportedAsFirstPartialPayment": true,
      "SupportedAsAdditionalPartialPayment": true,
      "NotStoredCreditCard": true,
      "IsDefaultMethod": true,
      "ImageURL": "sample string 16",
      "PaymentMethodId": "sample string 2"
    }
  ]
}

text/html

Sample:
{"PaymentMethods":[{"PaymentMethodHash":"sample string 2","Name":"sample string 3","Type":"sample string 4","FriendlyName":"sample string 5","FriendlyTypeName":"sample string 6","FriendlyLabel":"sample string 7","Description":"sample string 8","PaymentAmount":9.0,"FundsAvailable":1.0,"IsTippingValid":true,"SupportedAsSinglePayment":true,"SupportedAsFirstPartialPayment":true,"SupportedAsAdditionalPartialPayment":true,"NotStoredCreditCard":true,"IsDefaultMethod":true,"ImageURL":"sample string 16","PaymentMethodId":"sample string 2"},{"PaymentMethodHash":"sample string 2","Name":"sample string 3","Type":"sample string 4","FriendlyName":"sample string 5","FriendlyTypeName":"sample string 6","FriendlyLabel":"sample string 7","Description":"sample string 8","PaymentAmount":9.0,"FundsAvailable":1.0,"IsTippingValid":true,"SupportedAsSinglePayment":true,"SupportedAsFirstPartialPayment":true,"SupportedAsAdditionalPartialPayment":true,"NotStoredCreditCard":true,"IsDefaultMethod":true,"ImageURL":"sample string 16","PaymentMethodId":"sample string 2"}]}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: No set method for property 'PaymentMethodId' in type 'Specialtys.DTO.PaymentMethod'.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: No set method for property 'PaymentMethodId' in type 'Specialtys.DTO.PaymentMethod'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.