- Auth
- Customer
- Passengers
- invoice Info
- Favorite Flights
- Notifications
- Fast Actions
- Customer - Get ProfileGET
- Customer - Update ProfilePOST
- Customer - Update PasswordPOST
- Search History - FlightGET
- Customer - Remove AccountDELETE
- Utils
- Flight
- Bus
- Hotel
- Socket
- Auto Completes
- Queue / Socket
- Misc
- Payment
- Pay with Account Balance (For Corporate Customers)
- Credit Card Storage
- Pay with Credit Card (New Card)
- Pay with Credit Card (Saved Card)
- Orders
- Blog
- Contents
- Refund
- Notifications
- Otp VerifyPOST
Saved Cards - Add
Developing
Testing Env
Testing Env
POST
https://test-api.ucuzyolu.com/cards
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
client-id
string
optional
Default:
302382-1928283273-237723829-292999
Body Params application/json
cardHolder
string
required
cardNumber
string
required
cardExpiry
string
required
cardCvv
string
required
Example
{
"cardHolder": "John Due",
"cardNumber": "4048095010857528",
"cardExpiry": "05/28",
"cardCvv": "000"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test-api.ucuzyolu.com/cards' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
"cardHolder": "John Due",
"cardNumber": "4048095010857528",
"cardExpiry": "05/28",
"cardCvv": "000"
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{
"data": {
"redirectUrl": "http://api.tripingram.local/pay/cards/0JeFoTcToLWm4pl3kMzfgfw7JINaDWWJ/redirect",
"cardNumber": "404809******7528"
},
"success": true,
"code": 2,
"message": ""
}
Modified at 2024-10-07 07:25:38