POST api/Payment

Request Information

URI Parameters

None.

Body Parameters

RegisteredUserPaymentModels
NameDescriptionTypeAdditional information
EdiaryCartProducts

Collection of EdiaryCartProductModels

Required

BillingDetails

RegisteredUserBillingDetailsModels

Required

ShippingDetails

ShippingAddressModels

Required

CouponCode

string

Max length: 10

ShippingType

integer

Required

PaymentMode

string

Required

Provider

string

None.

TotalAmount

decimal number

Required

EdiaryUserId

integer

None.

OnlinePaymentVendor

string

None.

PartnerId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EdiaryCartProducts": [
    {
      "P_Id": 1,
      "P_Quantity": 2,
      "P_PackSize": 3,
      "P_PackSizeId": 4,
      "Is_A_Deal": true,
      "P_Price": 6.0
    },
    {
      "P_Id": 1,
      "P_Quantity": 2,
      "P_PackSize": 3,
      "P_PackSizeId": 4,
      "Is_A_Deal": true,
      "P_Price": 6.0
    }
  ],
  "BillingDetails": {
    "R_Name": "sample string 1",
    "R_EmailId": "sample string 2",
    "R_Mobile": 3,
    "R_Address": "sample string 4",
    "R_Pincode": 5
  },
  "ShippingDetails": {
    "SA_Id": 1,
    "SA_R_Id_FK": 2,
    "SA_Name": "sample string 3",
    "SA_MobileNumber": 4,
    "SA_Email": "sample string 5",
    "SA_Address": "sample string 6",
    "SA_Pincode": 7,
    "SA_Landmark": "sample string 8"
  },
  "CouponCode": "sample string 1",
  "ShippingType": 2,
  "PaymentMode": "sample string 3",
  "Provider": "sample string 4",
  "TotalAmount": 5.0,
  "EdiaryUserId": 6,
  "OnlinePaymentVendor": "sample string 7",
  "PartnerId": 1
}

application/xml, text/xml

Sample:
<RegisteredUserPaymentModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <BillingDetails>
    <R_Address>sample string 4</R_Address>
    <R_EmailId>sample string 2</R_EmailId>
    <R_Mobile>3</R_Mobile>
    <R_Name>sample string 1</R_Name>
    <R_Pincode>5</R_Pincode>
  </BillingDetails>
  <CouponCode>sample string 1</CouponCode>
  <EdiaryCartProducts>
    <EdiaryCartProductModels>
      <Is_A_Deal>true</Is_A_Deal>
      <P_Id>1</P_Id>
      <P_PackSize>3</P_PackSize>
      <P_PackSizeId>4</P_PackSizeId>
      <P_Price>6</P_Price>
      <P_Quantity>2</P_Quantity>
    </EdiaryCartProductModels>
    <EdiaryCartProductModels>
      <Is_A_Deal>true</Is_A_Deal>
      <P_Id>1</P_Id>
      <P_PackSize>3</P_PackSize>
      <P_PackSizeId>4</P_PackSizeId>
      <P_Price>6</P_Price>
      <P_Quantity>2</P_Quantity>
    </EdiaryCartProductModels>
  </EdiaryCartProducts>
  <EdiaryUserId>6</EdiaryUserId>
  <OnlinePaymentVendor>sample string 7</OnlinePaymentVendor>
  <PartnerId>1</PartnerId>
  <PaymentMode>sample string 3</PaymentMode>
  <Provider>sample string 4</Provider>
  <ShippingDetails>
    <SA_Address>sample string 6</SA_Address>
    <SA_Email>sample string 5</SA_Email>
    <SA_Id>1</SA_Id>
    <SA_Landmark>sample string 8</SA_Landmark>
    <SA_MobileNumber>4</SA_MobileNumber>
    <SA_Name>sample string 3</SA_Name>
    <SA_Pincode>7</SA_Pincode>
    <SA_R_Id_FK>2</SA_R_Id_FK>
  </ShippingDetails>
  <ShippingType>2</ShippingType>
  <TotalAmount>5</TotalAmount>
</RegisteredUserPaymentModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.