Skip to main content
POST
/
payment
/
add
Add payment with bank card information
curl --request POST \
  --url https://apigw.bienport.com/api/payment/add \
  --header 'Content-Type: application/json' \
  --data '
{
  "CardExpireMonth": "02",
  "CardExpireYear": "2021 (CardExpireYear must be 4 characters)",
  "CardNumber": "123234345456 (CardNumber must be between 12 and 19 characters)",
  "CardOwnerName": "Ali Veli (CardOwnerName must be between 4 and 100 characters)",
  "Cvc": "326 (Cvc must be must be between 3 and 4 characters)",
  "bill": [
    54321,
    123123
  ],
  "phoneNumber": "5XXXXXXXXXX (phoneNumber must be 10 characters. phoneNumber must not be start 0.)",
  "subscriptionId": 458752,
  "threeD": 0,
  "Installment": 1
}
'
{
  "code": "200",
  "reason": "Success",
  "message": "Payment Success",
  "status": "ok"
}

Body

application/json

addPaymentRequest

Request Model for Add Payment

CardExpireMonth
enum<string>
required

Card expire month

Available options:
01,
02,
03,
04,
05,
06,
07,
08,
09,
10,
11,
12
Example:

"02"

CardExpireYear
string
required

Card expire year

Example:

"2021 (CardExpireYear must be 4 characters)"

CardNumber
string
required

Number of card

Example:

"123234345456 (CardNumber must be between 12 and 19 characters)"

CardOwnerName
string
required

Card owner name

Example:

"Ali Veli (CardOwnerName must be between 4 and 100 characters)"

Cvc
string
required

CVC

Example:

"326 (Cvc must be must be between 3 and 4 characters)"

bill
integer<int32>[]
required

bill id list

Example:
[54321, 123123]
phoneNumber
string
required

Customer phone number

Example:

"5XXXXXXXXXX (phoneNumber must be 10 characters. phoneNumber must not be start 0.)"

subscriptionId
integer<int64>
required

Customer subscription id

Example:

458752

threeD
enum<integer>
required

Normal or Secure Payment

Available options:
0,
1
Installment
integer<int32>

installment

Example:

1

Response

Payment Success

Response Model for payment api

code
string
Example:

"200"

reason
string
Example:

"Success"

message
string
Example:

"Payment Success"

status
string
Example:

"ok"