POST api/Credits/PurchaseCredits

Request Information

URI Parameters

None.

Body Parameters

PurchaseCreditByAdminRequestVM
NameDescriptionTypeAdditional information
AdminUserId

string

Required

ParentAccountId

string

Required

PaymentMethodId

string

Required

PurchaseCredits

integer

None.

CreditCost

decimal number

None.

AddedBy

CreditAddedBy

None.

IsCreateNewMethod

boolean

None.

NewCardToken

string

None.

AccountName

string

None.

IsMakeNewCardAsDefault

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "AdminUserId": "sample string 1",
  "ParentAccountId": "sample string 2",
  "PaymentMethodId": "sample string 3",
  "PurchaseCredits": 4,
  "CreditCost": 5.0,
  "AddedBy": "None",
  "IsCreateNewMethod": true,
  "NewCardToken": "sample string 7",
  "AccountName": "sample string 8",
  "IsMakeNewCardAsDefault": true
}

application/xml, text/xml

Sample:
<PurchaseCreditByAdminRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.CreditRequestVM">
  <AccountName>sample string 8</AccountName>
  <AddedBy>None</AddedBy>
  <CreditCost>5</CreditCost>
  <IsCreateNewMethod>true</IsCreateNewMethod>
  <IsMakeNewCardAsDefault>true</IsMakeNewCardAsDefault>
  <NewCardToken>sample string 7</NewCardToken>
  <ParentAccountId>sample string 2</ParentAccountId>
  <PaymentMethodId>sample string 3</PaymentMethodId>
  <PurchaseCredits>4</PurchaseCredits>
  <AdminUserId>sample string 1</AdminUserId>
</PurchaseCreditByAdminRequestVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.