POST api/Payment/writeLog

Documentation for 'writeLog'.

Request Information

Parameters

NameDescriptionAdditional information
ex
Documentation for 'ex'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ClassName": "System.Exception",
  "Message": null,
  "Data": null,
  "InnerException": null,
  "HelpURL": "sample string 1",
  "StackTraceString": null,
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": null,
  "HResult": 3,
  "Source": "sample string 2",
  "WatsonBuckets": null
}

application/xml, text/xml

Sample:
<Exception xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.datacontract.org/2004/07/System">
  <ClassName i:type="x:string" xmlns="">System.Exception</ClassName>
  <Message i:nil="true" xmlns="" />
  <Data i:nil="true" xmlns="" />
  <InnerException i:nil="true" xmlns="" />
  <HelpURL i:type="x:string" xmlns="">sample string 1</HelpURL>
  <StackTraceString i:nil="true" xmlns="" />
  <RemoteStackTraceString i:nil="true" xmlns="" />
  <RemoteStackIndex i:type="x:int" xmlns="">0</RemoteStackIndex>
  <ExceptionMethod i:nil="true" xmlns="" />
  <HResult i:type="x:int" xmlns="">3</HResult>
  <Source i:type="x:string" xmlns="">sample string 2</Source>
  <WatsonBuckets i:nil="true" xmlns="" />
</Exception>

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