POST api/account/customer/stripe/{customerID}/card/{cardID}/charge

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerID

string

Required

cardID

string

Required

Body Parameters

StripeCardChargeModel
NameDescriptionTypeAdditional information
Amount

decimal number

None.

Description

string

None.

CurrencyCode

string

None.

CustomerOrderID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Amount": 1.0,
  "Description": "sample string 2",
  "CurrencyCode": "sample string 3",
  "CustomerOrderID": 1
}

application/xml, text/xml

Sample:
<StripeCardChargeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cag.Web.API.Areas.Account.Models">
  <Amount>1</Amount>
  <CurrencyCode>sample string 3</CurrencyCode>
  <CustomerOrderID>1</CustomerOrderID>
  <Description>sample string 2</Description>
</StripeCardChargeModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Charge
NameDescriptionTypeAdditional information
ID

integer

None.

AccountID

string

None.

ChargeID

string

None.

CreatedDate

date

None.

CreatedByID

integer

None.

CreatedBy

Worker

None.

Amount

decimal number

None.

StatusID

integer

None.

Status

ChargeStatus

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "AccountID": "sample string 2",
  "ChargeID": "sample string 3",
  "CreatedDate": "2025-05-11T14:00:12.2980144+00:00",
  "CreatedByID": 1,
  "CreatedBy": {
    "ID": 1,
    "UniqueID": "3ee0e6f9-d70d-41f8-80ce-bfbf26c79705",
    "FirstName": "sample string 3",
    "LastName": "sample string 4",
    "Name": "sample string 3 sample string 4",
    "CreatedDate": "2025-05-11T14:00:12.2980144+00:00",
    "Email": "sample string 6",
    "Active": true,
    "UserID": "97ea86b6-4130-47be-814f-aa9b16c05aaa",
    "Username": "sample string 9"
  },
  "Amount": 5.0,
  "StatusID": 6,
  "Status": {
    "ID": 1,
    "Name": "sample string 2",
    "IsComplete": true,
    "IsSuccess": true,
    "IsRefund": true
  }
}

application/xml, text/xml

Sample:
<Charge xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cag.Data.Stripe">
  <AccountID>sample string 2</AccountID>
  <Amount>5</Amount>
  <ChargeID>sample string 3</ChargeID>
  <CreatedBy xmlns:d2p1="http://schemas.datacontract.org/2004/07/cag.Data.User">
    <d2p1:Active>true</d2p1:Active>
    <d2p1:CreatedDate>2025-05-11T14:00:12.2980144+00:00</d2p1:CreatedDate>
    <d2p1:Email>sample string 6</d2p1:Email>
    <d2p1:FirstName>sample string 3</d2p1:FirstName>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:LastName>sample string 4</d2p1:LastName>
    <d2p1:UniqueID>3ee0e6f9-d70d-41f8-80ce-bfbf26c79705</d2p1:UniqueID>
    <d2p1:UserID>97ea86b6-4130-47be-814f-aa9b16c05aaa</d2p1:UserID>
    <d2p1:Username>sample string 9</d2p1:Username>
  </CreatedBy>
  <CreatedByID>1</CreatedByID>
  <CreatedDate>2025-05-11T14:00:12.2980144+00:00</CreatedDate>
  <ID>1</ID>
  <Status>
    <ID>1</ID>
    <IsComplete>true</IsComplete>
    <IsRefund>true</IsRefund>
    <IsSuccess>true</IsSuccess>
    <Name>sample string 2</Name>
  </Status>
  <StatusID>6</StatusID>
</Charge>