POST api/AcceptTerms/v2

Request Information

URI Parameters

None.

Body Parameters

AcceptTerms2Request
NameDescriptionTypeAdditional information
RequestAgentType

string

None.

RequestAgent

string

None.

username

string

None.

password

string

None.

ApplicationID

integer

None.

MerchantNumber

integer

None.

MerchantReferenceNumber

string

None.

ApplicationGUID

string

None.

UserHasAccepted

boolean

None.

ExtendedData

Dictionary of string [key] and string [value]

None.

Request Formats

application/json, text/json

Sample:
{
  "RequestAgentType": "sample string 1",
  "RequestAgent": "sample string 2",
  "username": "sample string 3",
  "password": "sample string 4",
  "ApplicationID": 5,
  "MerchantNumber": 6,
  "MerchantReferenceNumber": "sample string 7",
  "ApplicationGUID": "sample string 8",
  "UserHasAccepted": true,
  "ExtendedData": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<AcceptTerms2Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Progressive.Web.Api.Library.Models.AcceptTerms._2._0">
  <ApplicationGUID>sample string 8</ApplicationGUID>
  <ApplicationID>5</ApplicationID>
  <ExtendedData xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </ExtendedData>
  <MerchantNumber>6</MerchantNumber>
  <MerchantReferenceNumber>sample string 7</MerchantReferenceNumber>
  <RequestAgent>sample string 2</RequestAgent>
  <RequestAgentType>sample string 1</RequestAgentType>
  <UserHasAccepted>true</UserHasAccepted>
  <password>sample string 4</password>
  <username>sample string 3</username>
</AcceptTerms2Request>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AcceptTerms2Response
NameDescriptionTypeAdditional information
DecisionCode

string

None.

PortalURL

string

None.

CardNumber

string

None.

ApplicationId

string

None.

AccountNumber

integer

None.

AvailableCredit

decimal number

None.

MerchantReferenceNumber

string

None.

ApprovalAmount

string

None.

Messages

Collection of string

None.

ApplicationGUID

string

None.

Response Formats

application/json, text/json

Sample:
{
  "DecisionCode": "sample string 1",
  "PortalURL": "sample string 2",
  "CardNumber": "sample string 3",
  "ApplicationId": "sample string 4",
  "AccountNumber": 5,
  "AvailableCredit": 6.0,
  "MerchantReferenceNumber": "sample string 7",
  "ApprovalAmount": "sample string 8",
  "Messages": [
    "sample string 1",
    "sample string 2"
  ],
  "ApplicationGUID": "sample string 9"
}

application/xml, text/xml

Sample:
<AcceptTerms2Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Progressive.Web.Api.Library.Models.AcceptTerms._2._0">
  <AccountNumber>5</AccountNumber>
  <ApplicationGUID>sample string 9</ApplicationGUID>
  <ApplicationId>sample string 4</ApplicationId>
  <ApprovalAmount>sample string 8</ApprovalAmount>
  <AvailableCredit>6</AvailableCredit>
  <CardNumber>sample string 3</CardNumber>
  <DecisionCode>sample string 1</DecisionCode>
  <MerchantReferenceNumber>sample string 7</MerchantReferenceNumber>
  <Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Messages>
  <PortalURL>sample string 2</PortalURL>
</AcceptTerms2Response>