POST api/TotalAyushCare/InsertPaymentLog

Documentation for 'InsertPaymentLog'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Credentials": {
    "Username": "sample string 1",
    "Password": "sample string 2",
    "ClientName": "sample string 3"
  },
  "PaymentLogDetails": {
    "id": 1,
    "PaymentReferenceNo": "sample string 2",
    "ProductCost": 3.1,
    "ProductId": 4,
    "PaymentBy": 5,
    "CreatedOn": "2021-11-27T05:30:15.8482671-05:00",
    "Action": "sample string 7",
    "Source": "sample string 8"
  }
}

application/xml, text/xml

Sample:
<PaymentLogRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <Credentials>
    <ClientName>sample string 3</ClientName>
    <Password>sample string 2</Password>
    <Username>sample string 1</Username>
  </Credentials>
  <PaymentLogDetails>
    <Action>sample string 7</Action>
    <CreatedOn>2021-11-27T05:30:15.8482671-05:00</CreatedOn>
    <PaymentBy>5</PaymentBy>
    <PaymentReferenceNo>sample string 2</PaymentReferenceNo>
    <ProductCost>3.1</ProductCost>
    <ProductId>4</ProductId>
    <Source>sample string 8</Source>
    <id>1</id>
  </PaymentLogDetails>
</PaymentLogRequest>

application/x-www-form-urlencoded

Sample:

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

Response Information

Response body formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "errors": [
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    }
  ],
  "result": "sample string 2",
  "PaymentLogDetails": {
    "id": 1,
    "PaymentReferenceNo": "sample string 2",
    "ProductCost": 3.1,
    "ProductId": 4,
    "PaymentBy": 5,
    "CreatedOn": "2021-11-27T05:30:15.8482671-05:00",
    "Action": "sample string 7",
    "Source": "sample string 8"
  }
}

application/xml, text/xml

Sample:
<PaymentLogResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <PaymentLogDetails>
    <Action>sample string 7</Action>
    <CreatedOn>2021-11-27T05:30:15.8482671-05:00</CreatedOn>
    <PaymentBy>5</PaymentBy>
    <PaymentReferenceNo>sample string 2</PaymentReferenceNo>
    <ProductCost>3.1</ProductCost>
    <ProductId>4</ProductId>
    <Source>sample string 8</Source>
    <id>1</id>
  </PaymentLogDetails>
  <errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
  </errors>
  <message>sample string 1</message>
  <result>sample string 2</result>
</PaymentLogResponse>