module


Click here for a complete list of operations.

RecordTransaction

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
sWSUserName:
sWSPassword:
userId:
householdId:
externalTransactionId:
externalStatus:
productId:
productType:
billingGuid:
contentId:
message:
state:
paymentGatewayID:
failReason:
paymentMethod:
paymentDetails:
customData:
paymentMethodExternalId:

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /restful_v5_2_8/ws_billing_module.asmx HTTP/1.1
Host: kbcsony.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://billing.tvinci.com/RecordTransaction"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <RecordTransaction xmlns="http://billing.tvinci.com/">
      <sWSUserName>string</sWSUserName>
      <sWSPassword>string</sWSPassword>
      <userId>string</userId>
      <householdId>int</householdId>
      <externalTransactionId>string</externalTransactionId>
      <externalStatus>string</externalStatus>
      <productId>int</productId>
      <productType>int</productType>
      <billingGuid>string</billingGuid>
      <contentId>int</contentId>
      <message>string</message>
      <state>int</state>
      <paymentGatewayID>int</paymentGatewayID>
      <failReason>int</failReason>
      <paymentMethod>string</paymentMethod>
      <paymentDetails>string</paymentDetails>
      <customData>string</customData>
      <paymentMethodExternalId>string</paymentMethodExternalId>
    </RecordTransaction>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <RecordTransactionResponse xmlns="http://billing.tvinci.com/">
      <RecordTransactionResult>
        <Status>
          <Code>int</Code>
          <Message>string</Message>
          <Args>
            <KeyValuePair xsi:nil="true" />
            <KeyValuePair xsi:nil="true" />
          </Args>
        </Status>
        <TransactionID>long</TransactionID>
        <PGReferenceID>string</PGReferenceID>
        <PGResponseID>string</PGResponseID>
        <State>OK or Pending or Failed</State>
        <FailReasonCode>int</FailReasonCode>
        <PaymentDetails>string</PaymentDetails>
        <PaymentMethod>string</PaymentMethod>
        <StartDateSeconds>long</StartDateSeconds>
        <EndDateSeconds>long</EndDateSeconds>
        <AutoRenewing>boolean</AutoRenewing>
      </RecordTransactionResult>
    </RecordTransactionResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /restful_v5_2_8/ws_billing_module.asmx HTTP/1.1
Host: kbcsony.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <RecordTransaction xmlns="http://billing.tvinci.com/">
      <sWSUserName>string</sWSUserName>
      <sWSPassword>string</sWSPassword>
      <userId>string</userId>
      <householdId>int</householdId>
      <externalTransactionId>string</externalTransactionId>
      <externalStatus>string</externalStatus>
      <productId>int</productId>
      <productType>int</productType>
      <billingGuid>string</billingGuid>
      <contentId>int</contentId>
      <message>string</message>
      <state>int</state>
      <paymentGatewayID>int</paymentGatewayID>
      <failReason>int</failReason>
      <paymentMethod>string</paymentMethod>
      <paymentDetails>string</paymentDetails>
      <customData>string</customData>
      <paymentMethodExternalId>string</paymentMethodExternalId>
    </RecordTransaction>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <RecordTransactionResponse xmlns="http://billing.tvinci.com/">
      <RecordTransactionResult>
        <Status>
          <Code>int</Code>
          <Message>string</Message>
          <Args>
            <KeyValuePair xsi:nil="true" />
            <KeyValuePair xsi:nil="true" />
          </Args>
        </Status>
        <TransactionID>long</TransactionID>
        <PGReferenceID>string</PGReferenceID>
        <PGResponseID>string</PGResponseID>
        <State>OK or Pending or Failed</State>
        <FailReasonCode>int</FailReasonCode>
        <PaymentDetails>string</PaymentDetails>
        <PaymentMethod>string</PaymentMethod>
        <StartDateSeconds>long</StartDateSeconds>
        <EndDateSeconds>long</EndDateSeconds>
        <AutoRenewing>boolean</AutoRenewing>
      </RecordTransactionResult>
    </RecordTransactionResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /restful_v5_2_8/ws_billing_module.asmx/RecordTransaction HTTP/1.1
Host: kbcsony.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

sWSUserName=string&sWSPassword=string&userId=string&householdId=string&externalTransactionId=string&externalStatus=string&productId=string&productType=string&billingGuid=string&contentId=string&message=string&state=string&paymentGatewayID=string&failReason=string&paymentMethod=string&paymentDetails=string&customData=string&paymentMethodExternalId=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<TransactResult xmlns="http://billing.tvinci.com/">
  <Status>
    <Code>int</Code>
    <Message>string</Message>
    <Args>
      <KeyValuePair>
        <key>string</key>
        <value>string</value>
      </KeyValuePair>
      <KeyValuePair>
        <key>string</key>
        <value>string</value>
      </KeyValuePair>
    </Args>
  </Status>
  <TransactionID>long</TransactionID>
  <PGReferenceID>string</PGReferenceID>
  <PGResponseID>string</PGResponseID>
  <State>OK or Pending or Failed</State>
  <FailReasonCode>int</FailReasonCode>
  <PaymentDetails>string</PaymentDetails>
  <PaymentMethod>string</PaymentMethod>
  <StartDateSeconds>long</StartDateSeconds>
  <EndDateSeconds>long</EndDateSeconds>
  <AutoRenewing>boolean</AutoRenewing>
</TransactResult>