POST api/UserCreditApi/InsertStripeHistory

Request Information

URI Parameters

None.

Body Parameters

UserCreditViewModel
NameDescriptionTypeAdditional information
ReferenceId

integer

None.

ReferenceIdEncrypted

string

None.

CreditVolume

integer

None.

LoginId

integer

None.

TotalCost

decimal number

None.

VatPercent

decimal number

None.

CostPerMessage

decimal number

None.

SubTotal

decimal number

None.

VatAmount

decimal number

None.

NetTotal

decimal number

None.

StripePaymentId

string

None.

StripeResponse

string

None.

PaymentMethod

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ReferenceId": 1,
  "ReferenceIdEncrypted": "sample string 2",
  "CreditVolume": 1,
  "LoginId": 3,
  "TotalCost": 4.0,
  "VatPercent": 5.0,
  "CostPerMessage": 6.0,
  "SubTotal": 7.0,
  "VatAmount": 8.0,
  "NetTotal": 9.0,
  "StripePaymentId": "sample string 10",
  "StripeResponse": "sample string 11",
  "PaymentMethod": "sample string 12"
}

application/xml, text/xml

Sample:
<UserCreditViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SMS.DataModels">
  <CostPerMessage>6</CostPerMessage>
  <CreditVolume>1</CreditVolume>
  <LoginId>3</LoginId>
  <NetTotal>9</NetTotal>
  <PaymentMethod>sample string 12</PaymentMethod>
  <ReferenceId>1</ReferenceId>
  <ReferenceIdEncrypted>sample string 2</ReferenceIdEncrypted>
  <StripePaymentId>sample string 10</StripePaymentId>
  <StripeResponse>sample string 11</StripeResponse>
  <SubTotal>7</SubTotal>
  <TotalCost>4</TotalCost>
  <VatAmount>8</VatAmount>
  <VatPercent>5</VatPercent>
</UserCreditViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>