POST api/chargebycustomerprofile

Request Information

URI Parameters

None.

Body Parameters

RequestDataModel
NameDescriptionTypeAdditional information
clientDb

string

None.

cardId

integer

None.

accountNumber

string

None.

amount

string

None.

refTransId

string

None.

mode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "clientDb": "sample string 1",
  "cardId": 2,
  "accountNumber": "sample string 3",
  "amount": "sample string 4",
  "refTransId": "sample string 5",
  "mode": "sample string 6"
}

application/xml, text/xml

Sample:
<RequestDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AuthorizeNetAPI.Models">
  <accountNumber>sample string 3</accountNumber>
  <amount>sample string 4</amount>
  <cardId>2</cardId>
  <clientDb>sample string 1</clientDb>
  <mode>sample string 6</mode>
  <refTransId>sample string 5</refTransId>
</RequestDataModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TransactionRespModel
NameDescriptionTypeAdditional information
TransId

string

None.

ResponseCode

string

None.

MessageCode

string

None.

MessageDescription

string

None.

AuthCode

string

None.

ErrorCode

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TransId": "sample string 1",
  "ResponseCode": "sample string 2",
  "MessageCode": "sample string 3",
  "MessageDescription": "sample string 4",
  "AuthCode": "sample string 5",
  "ErrorCode": "sample string 6",
  "ErrorMessage": "sample string 7"
}

application/xml, text/xml

Sample:
<TransactionRespModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AuthorizeNetAPI.Models">
  <AuthCode>sample string 5</AuthCode>
  <ErrorCode>sample string 6</ErrorCode>
  <ErrorMessage>sample string 7</ErrorMessage>
  <MessageCode>sample string 3</MessageCode>
  <MessageDescription>sample string 4</MessageDescription>
  <ResponseCode>sample string 2</ResponseCode>
  <TransId>sample string 1</TransId>
</TransactionRespModel>