Official Api
latest
  • latest
  • 1.0.0
  1. Pay with Credit Card (New Card)
Official Api
latest
  • latest
  • 1.0.0
  • Auth
    • Login/Guest Login
      • Auth - Guest
      • Auth - Login
      • Auth - Login (With E-Mail)
    • Register
      • Auth - Register
      • Auth - Register Corporate
    • Remember
      • Auth - Remember Password
      • Auth - Remember Password For E-Mail
      • Auth - Remember Otp Verify
      • Auth - Set New Password
    • Auth Otp Verify
      POST
    • Auth - Logout
      DELETE
    • Auth - State
      GET
  • Customer
    • Passengers
      • Passenger List
      • Passenger Create
      • Passenger Delete
      • Passenger Update
    • invoice Info
      • Invoice Info - List
      • Invoice Info - Create
      • Invoice Info - Delete
      • Invoice Info - Update
    • Favorite Flights
      • Favorites - Flight
      • Favorites - Add Flight
      • Favorites - Delete Flight
      • Favorites - Check for Flight
    • Notifications
      • Notifications - Get
      • Notifications - Update
      • Notifications - Register Device
      • Notifications - Unregister Device
    • Fast Actions
      • Fast Actions - Get Flight Actions
      • Fast Actions - Update Flight Actions
      • Fast Actions - Get Bus Actions
      • Fast Actions - Update Bus Actions
      • Fast Actions - Clear Flight Actions
    • Customer - Get Profile
      GET
    • Customer - Update Profile
      POST
    • Customer - Update Password
      POST
    • Search History - Flight
      GET
    • Customer - Remove Account
      DELETE
  • Utils
    • Calendar - Month
      GET
    • Enums - FlightSearchFilters
      GET
  • Flight
    • Search
      • Domestic
        • One Way / 1 ADT
          • Search Flight
          • Get Job (Flight)
          • Calculate Package Price
          • Allocate
          • Set Passengers
          • Prebooking
        • Round Trip / 1 ADT
          • Search Flight
          • Get Job (Flight)
          • Calculate Price
          • Allocate
          • Set Passengers
          • Prebooking
        • Round Trip / 2 ADT
          • Search Flight
          • Get Job (Flight)
          • Calculate Price
          • Allocate
          • Set Passengers
          • Prebooking
        • Round Trip / 1 ADT (Non package)
          • Search Flight
          • Get Job (Flight)
          • Allocate
          • Set Passengers
          • Prebooking
      • International
        • One Way / 1 ADT
          • Search Flight
          • Get Job (Flight)
          • Calculate Price Copy Copy
          • Allocate
          • Set Passengers
          • Prebooking
          • Payment Types
        • Round Trip / 1 ADT
          • Search Flight
          • Get Job (Flight)
          • Allocate
          • Calculate Price
          • Set Passengers
          • Prebooking
        • Round Trip / 2 ADT
          • Search Flight
          • Get Job (Flight)
          • Calculate Price Copy
          • Allocate
          • Set Passengers
          • Prebooking
      • Search Flight - Filter
    • Price Alerts
      • Flight Alerts - Create
      • Flight Alerts - List
      • Flight Alerts - Delete
      • Flight Alerts - Create/Delete
    • Load Journey (dev only)
  • Bus
    • Bus - Search with Slug
    • Bus - Search
    • Get Job (Bus)
    • Bus - Bus Details
    • Bus - Check Seat Status
    • Bus - Set Passengers
    • Bus - Finalize (Local Dev Only)
    • Bus - Search - Filter
  • Hotel
    • Hotel - Search by Destination
    • Hotel - Search by Hotel Code
    • Get Job (Hotel)
    • Hotel - Get Hotel Details
    • Hotel - Validate Rooms
    • Hotel - Set Paxes
    • Hotel - Complete (Dev Only)
  • Socket
    • Auth
    • Subscribe Channel/Module
    • Emit Message
    • Search Airports
    • Search Hotels
    • Emit Subscribe Job
  • Auto Completes
    • Airport Search
    • Bus Station Search
    • Hotel Search
  • Queue / Socket
    • Get Job
  • Misc
    • Airlines
    • Countries
    • Popular Cities
    • Currencies
    • Contact Form
    • Check Module Availability
    • Popular Flights
    • Newsletter Subscribe
  • Payment
    • Pay with Account Balance (For Corporate Customers)
      • Payment - Account - Check Availablity
      • Payment - Account - Make Payment
    • Credit Card Storage
      • Saved Cards - List
      • Saved Cards - Add
      • Saved Cards - Delete
    • Pay with Credit Card (New Card)
      • Payment Types - Get All
        POST
      • Card Payment - Bin Query
        POST
      • Card Payment - Prepare 3D Form (new card)
        POST
      • Card Payment - Check Status
        GET
    • Pay with Credit Card (Saved Card)
      • Payment Types - Get All
      • Saved Cards - List
      • Card Payment - Bin Query
      • Card Payment - Prepare 3D Form (new card)
      • Card Payment - Check Status
  • Orders
    • Get Orders
    • Get Order
    • Upcoming Travels
    • Check Pnr
    • Check Order Status
  • Blog
    • Blog - Custom Tags
    • Blog - Category
    • Blog - Newest
    • Blog - Categories
    • Blog - Post
  • Contents
    • Kampanyalar
    • Contact Information
    • Gizlilik Sözleşmesi
    • Sık Sorulan Sorular
    • Popular Flights
    • Popular Cities
    • Popular Bus Routes
    • Get Slug Service
    • City - Flight
    • Get Page
  • Refund
    • Flight Refund (Query)
    • Flight Refund (Complete)
  • Notifications
    • Notification List
    • Notification - Mark as Read
  • Checkout
    • Coupons
      • Apply Coupon
      • Remove Coupon
    • Cart
  • Otp Verify
    POST
  • Status
    GET
  1. Pay with Credit Card (New Card)

Card Payment - Prepare 3D Form (new card)

Developing
POST
https://test-api.ucuzyolu.com/pay/card/prepare
Payment & Card save callback regex patterns:
Payment: {{DOMAIN}}/pay/{token}/callback/(?:(success|fail))
Save Card: {{DOMAIN}}/pay/cards/{token}/callback/(?:(success|fail))

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
journeyId
string 
required
alias
string 
required
payment
object 
required
installment
integer 
required
cardHolder
string 
required
cardNumber
string 
required
cardExpiry
string 
required
cardCvv
string 
required
saveCard
boolean 
required
invoice
object 
required
isCorporate
boolean 
required
invoiceName
string 
required
address
string 
required
district
string 
required
zipcode
string 
required
city
string 
required
country
string 
required
taxOffice
string 
required
taxNumber
string 
required
Example
{
    "journeyId": "{{journeyId}}",
    "alias": "{{paymentType}}",
    "payment": {
        "installment": 1,
        "cardHolder": "John Due",
        "cardNumber": "4048095010857528",
        "cardExpiry": "05/28",
        "cardCvv": "000",
        "saveCard": false
    },
    "invoice": {
        "isCorporate": true,
        "invoiceName": "Sekiz Kreatif",
        "address": "Test mah",
        "district": "Cad.",
        "zipcode": "58060",
        "city": "İstanbul",
        "country": "Türkiye",
        "taxOffice": "Avcılar",
        "taxNumber": "7590477978"
    }
}

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/pay/card/prepare' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
    "journeyId": "",
    "alias": "",
    "payment": {
        "installment": 1,
        "cardHolder": "John Due",
        "cardNumber": "4048095010857528",
        "cardExpiry": "05/28",
        "cardCvv": "000",
        "saveCard": false
    },
    "invoice": {
        "isCorporate": true,
        "invoiceName": "Sekiz Kreatif",
        "address": "Test mah",
        "district": "Cad.",
        "zipcode": "58060",
        "city": "İstanbul",
        "country": "Türkiye",
        "taxOffice": "Avcılar",
        "taxNumber": "7590477978"
    }
}'

Responses

🟢200OK
application/json
Body
data
object 
required
id
integer 
required
token
string 
required
summary
number 
required
total
number 
required
status
string 
required
payment
object 
required
invoice
object 
required
items
object 
required
currencyCode
string 
required
paymentCost
integer 
required
statusName
string 
required
redirectUrl
string 
required
is3d
boolean 
required
success
boolean 
required
code
integer 
required
message
string 
required
Example
{
    "data": {
        "id": 19,
        "token": "O36RlrouEA6dNAvYFQ8Y3YQqiyZLTd9GNcIi",
        "summary": 1142.78,
        "total": 1142.78,
        "status": "new",
        "payment": {
            "token": "KqmLs8VdJOoHXMeEcmFPXbHqjIyqR6VM3LS47425yR6hKf9EcFwpXFqXGUEcBg3529CitrZpde69Sf1wXyHbTKs7ln27TX4NtZZsMxEEELz3obmB7GthKNaMGmek5GCs",
            "amount": 1142.78,
            "state": "new",
            "comission": 0,
            "total": 1142.78,
            "details": {
                "cardExpiry": "05/28",
                "cardHolder": "John Due",
                "cardNumber": "404809******7528",
                "customerIp": "192.168.65.1",
                "cardAssociation": "Visa"
            },
            "paymentType": "Parolapara POS",
            "is3d": true,
            "authMode": "preauth"
        },
        "invoice": {
            "address": "Test mah",
            "district": "Cad.",
            "zipcode": "58060",
            "city": "İstanbul",
            "country": "Türkiye",
            "isCorporate": true,
            "invoiceName": "Sekiz Kreatif",
            "taxOffice": "Avcılar",
            "taxNumber": "7590477978",
            "invoiceNumber": null
        },
        "items": {
            "flights": [
                {
                    "id": 17,
                    "pnr": "VHMNTY",
                    "refundable": false,
                    "domestic": false,
                    "duration": "01:10",
                    "yr": 149,
                    "vq": 113.17,
                    "date": "2024-10-10",
                    "origin": "IST",
                    "destination": "ESB",
                    "segments": [
                        {
                            "origin": "IST",
                            "destination": "ESB",
                            "date": "2024-10-10",
                            "airline": "TK",
                            "cabin": "T",
                            "price": 871.61,
                            "tax": 262.17,
                            "total": 1139.78,
                            "margin": 3,
                            "returnDate": null,
                            "flightNumber": "TK2192",
                            "cabinClass": "economy",
                            "currencyCode": "TRY",
                            "grandTotal": 1142.78,
                            "originName": "Atatürk Havalimanı",
                            "destinationName": "Esenboğa Havalimanı",
                            "airlineName": "Turkish Airlines",
                            "originCity": "Istanbul",
                            "destinationCity": "Ankara",
                            "arrivalTime": "03:10",
                            "departureTime": "02:00"
                        }
                    ],
                    "passengers": [
                        {
                            "id": 22,
                            "status": 0,
                            "pnr": "VHMNTY",
                            "gender": "M",
                            "birthdate": "1989-04-20",
                            "email": "JOHNDUE@EXAMPLE.COM",
                            "identity": "49852133948",
                            "nationality": "TR",
                            "phone": "+905322808035",
                            "total": 1136.78,
                            "sequenceNo": 1,
                            "ticketNumber": null,
                            "firstName": "MEHMET",
                            "lastName": "GULBILGE",
                            "isLocalCitizen": true,
                            "passportCountry": null,
                            "passportNo": null,
                            "passportValidDate": null,
                            "paxCode": "ADT",
                            "priceHandLuggage": 0,
                            "priceBaggage": 0
                        }
                    ],
                    "sequenceNo": 0,
                    "flightId": "44b413ef-4012-40ac-a72a-d9702d933429",
                    "passengerCount": 1,
                    "flightType": "oneway",
                    "grandTotal": 1142.78,
                    "airDuration": "01:10",
                    "originCity": "Istanbul",
                    "originName": "Atatürk Havalimanı",
                    "returnDate": null,
                    "arrivalTime": "03:10",
                    "departureTime": "02:00",
                    "destinationCity": "Ankara",
                    "destinationName": "Esenboğa Havalimanı"
                }
            ]
        },
        "currencyCode": "TRY",
        "paymentCost": 0,
        "statusName": "Taslak",
        "redirectUrl": "http://pay.tripingram.local/card/fo303VTr4OAsI6p3JZq8djg0TBjnjf9lVB95FBCNqD8ISbbV5T8BiUFEwqSbEsQfBLKo8JhZqTVOysCkghalku1ItUlaYwp88P1A6KhQWMZc7KN6CRo2yzfARDIStaun/redirect",
        "is3d": true
    },
    "success": true,
    "code": 0,
    "message": ""
}
Modified at 2024-10-08 09:46:53
Previous
Card Payment - Bin Query
Next
Card Payment - Check Status
Built with