POST api/Webhook/UpdateStatus_Test

Request Information

URI Parameters

None.

Body Parameters

Webhook
NameDescriptionTypeAdditional information
entity

string

None.

account_id

string

None.

Event

string

None.

contains

Collection of string

None.

payload

payload

None.

created_at

string

None.

Request Formats

application/json, text/json

Sample:
{
  "entity": "sample string 1",
  "account_id": "sample string 2",
  "Event": "sample string 3",
  "contains": [
    "sample string 1",
    "sample string 2"
  ],
  "payload": {
    "payment": {
      "entity": {
        "id": "sample string 1",
        "entity": "sample string 2",
        "amount": 3,
        "currency": "sample string 4",
        "status": "sample string 5",
        "order_id": "sample string 6",
        "invoice_id": "sample string 7",
        "international": "sample string 8",
        "Method": "sample string 9",
        "amount_refunded": 10,
        "refund_status": "sample string 11",
        "captured": "sample string 12",
        "description": "sample string 13",
        "card_id": "sample string 14",
        "bank": "sample string 15",
        "wallet": "sample string 16",
        "vpa": "sample string 17",
        "email": "sample string 18",
        "contact": "sample string 19",
        "notes": [
          "sample string 1",
          "sample string 2"
        ],
        "fee": "sample string 20",
        "tax": "sample string 21",
        "error_code": "sample string 22",
        "error_description": "sample string 23",
        "created_at": "sample string 24"
      }
    }
  },
  "created_at": "sample string 4"
}

application/xml, text/xml

Sample:
<Webhook xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLL.Webhook">
  <Event>sample string 3</Event>
  <account_id>sample string 2</account_id>
  <contains xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </contains>
  <created_at>sample string 4</created_at>
  <entity>sample string 1</entity>
  <payload>
    <payment>
      <entity>
        <Method>sample string 9</Method>
        <amount>3</amount>
        <amount_refunded>10</amount_refunded>
        <bank>sample string 15</bank>
        <captured>sample string 12</captured>
        <card_id>sample string 14</card_id>
        <contact>sample string 19</contact>
        <created_at>sample string 24</created_at>
        <currency>sample string 4</currency>
        <description>sample string 13</description>
        <email>sample string 18</email>
        <entity>sample string 2</entity>
        <error_code>sample string 22</error_code>
        <error_description>sample string 23</error_description>
        <fee>sample string 20</fee>
        <id>sample string 1</id>
        <international>sample string 8</international>
        <invoice_id>sample string 7</invoice_id>
        <notes xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </notes>
        <order_id>sample string 6</order_id>
        <refund_status>sample string 11</refund_status>
        <status>sample string 5</status>
        <tax>sample string 21</tax>
        <vpa>sample string 17</vpa>
        <wallet>sample string 16</wallet>
      </entity>
    </payment>
  </payload>
</Webhook>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.