POST api/v1/ChargeCreditCard?token={token}&inCaseOfErrorReturnHttpCode={inCaseOfErrorReturnHttpCode}
Charge a credit card using a token, expiration date, CVV and TZ
Request Information
URI Parameters
| Name | Description | Type/Additional information |
|---|---|---|
| token |
Caspit api token |
string |
| inCaseOfErrorReturnHttpCode |
קוד ה-HTTP שיוחזר במקרה של שגיאה. ברירת המחדל היא 400 אבל אתה יכול לשלוח קוד אחר אם יש לך צורך כזה. |
Default value is BadRequest |
Body Parameters
The charge details
The details for charging a credit card
Request Formats
application/json, text/json
Sample:
{
"Success": true,
"ReferenceNumber": "sample string 2",
"ShvaResponse": "sample string 3",
"ShvaResponseCode": 1,
"ContactId": "sample string 4",
"ContactOsekMorshe": "sample string 5",
"CCNumber": "sample string 6",
"CCNumberToken": "sample string 7",
"CCHolderTZ": "sample string 8",
"CCExpDate": "sample string 9",
"CVV": "sample string 10",
"Amount": 11.0,
"CurrencySymbol": "sample string 12",
"CreditType": 13,
"NumPayments": 14,
"IsRefund": true,
"DateCreated": "2026-02-26T08:15:55.7447786+02:00",
"UserCreated": "sample string 16",
"DateUpdated": "2026-02-26T08:15:55.7447786+02:00",
"UserUpdated": "sample string 17"
}
application/xml, text/xml
Sample:
<CaspitCreditCharge xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.caspit.biz/2013/03"> <DateCreated>2026-02-26T08:15:55.7447786+02:00</DateCreated> <DateUpdated>2026-02-26T08:15:55.7447786+02:00</DateUpdated> <UserCreated>sample string 16</UserCreated> <UserUpdated>sample string 17</UserUpdated> <Amount>11</Amount> <CCExpDate>sample string 9</CCExpDate> <CCHolderTZ>sample string 8</CCHolderTZ> <CCNumber>sample string 6</CCNumber> <CCNumberToken>sample string 7</CCNumberToken> <CVV>sample string 10</CVV> <ContactId>sample string 4</ContactId> <ContactOsekMorshe>sample string 5</ContactOsekMorshe> <CreditType>13</CreditType> <CurrencySymbol>sample string 12</CurrencySymbol> <IsRefund>true</IsRefund> <NumPayments>14</NumPayments> <ReferenceNumber>sample string 2</ReferenceNumber> <ShvaResponse>sample string 3</ShvaResponse> <ShvaResponseCode>1</ShvaResponseCode> <Success>true</Success> </CaspitCreditCharge>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Description
CaspitCreditCardProcessingResult (see /ApiHelp/ResourceModel?modelName=CaspitCreditCardProcessingResult )