POST api/account/customer/stripe/{customerID}/card/{cardID}/charge
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerID | string |
Required |
|
| cardID | string |
Required |
Body Parameters
StripeCardChargeModel| Name | Description | Type | Additional 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| Name | Description | Type | Additional 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-11-05T23:38:46.7246419+00:00",
"CreatedByID": 1,
"CreatedBy": {
"ID": 1,
"UniqueID": "edd8bc2a-4c67-4a93-bb2c-81235b16fa01",
"FirstName": "sample string 3",
"LastName": "sample string 4",
"Name": "sample string 3 sample string 4",
"CreatedDate": "2025-11-05T23:38:46.7246419+00:00",
"Email": "sample string 6",
"Active": true,
"UserID": "9e8dd5db-366e-47ad-a7eb-3cf0c4d31330",
"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-11-05T23:38:46.7246419+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>edd8bc2a-4c67-4a93-bb2c-81235b16fa01</d2p1:UniqueID>
<d2p1:UserID>9e8dd5db-366e-47ad-a7eb-3cf0c4d31330</d2p1:UserID>
<d2p1:Username>sample string 9</d2p1:Username>
</CreatedBy>
<CreatedByID>1</CreatedByID>
<CreatedDate>2025-11-05T23:38:46.7246419+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>