POST api/v1/CreditCard?token={token}&inCaseOfErrorReturnHttpCode={inCaseOfErrorReturnHttpCode}

Get a credit card token

Request Information

URI Parameters

NameDescriptionType/Additional information
token

CaspitWeb Token

string
inCaseOfErrorReturnHttpCode

קוד ה-HTTP שיוחזר במקרה של שגיאה. ברירת המחדל היא 400 אבל אתה יכול לשלוח קוד אחר אם יש לך צורך כזה.

HttpStatusCode

Default value is BadRequest

Body Parameters

פרטי כרטיס האשראי

CaspitCreditCard

Request Formats

application/json, text/json

Sample:
{
  "CCNumber": "sample string 1",
  "CCNumberToken": "sample string 2",
  "CCHolderTZ": "sample string 3",
  "CCExpDate": "sample string 4",
  "CVV": "sample string 5",
  "DateCreated": "2022-10-06T23:49:13.5086297+03:00",
  "UserCreated": "sample string 6",
  "DateUpdated": "2022-10-06T23:49:13.5086297+03:00",
  "UserUpdated": "sample string 7"
}

application/xml, text/xml

Sample:
<CaspitCreditCard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.caspit.biz/2013/03">
  <DateCreated>2022-10-06T23:49:13.5086297+03:00</DateCreated>
  <DateUpdated>2022-10-06T23:49:13.5086297+03:00</DateUpdated>
  <UserCreated>sample string 6</UserCreated>
  <UserUpdated>sample string 7</UserUpdated>
  <CCExpDate>sample string 4</CCExpDate>
  <CCHolderTZ>sample string 3</CCHolderTZ>
  <CCNumber>sample string 1</CCNumber>
  <CCNumberToken>sample string 2</CCNumberToken>
  <CVV>sample string 5</CVV>
</CaspitCreditCard>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Description

CaspitCreditCard

HttpResponseMessage