Payment API Requests

Version 1.0
POST https://api-dev.cruisepay.finance/api/v1/payment

Authentication


All requests sent to the Cruisepay API must be authenticated using a Bearer token. This token verifies that the request originates from an authorized account and defines the permitted access scope.

Requests with missing, expired, or invalid tokens will receive a 401 Unauthorized response.

Authorization: Bearer  β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’

Request Parameters


Payment Details

paymentMethod string required

Customer’s payment method.
CARD or GOOGLEPAY or APPLEPAY (Only as given)

Example: CARD
amount number required

Amount of the transaction.
The format depends on the currency exponent.

Example: 100.5
currency string required

Payment Currency
3 Letter Currency Code

Example: USD
invoiceNumber string required

Transasction ID assigned by Merchant.
Minimum length of 7 characters.

Example: ABC123

Card Details

cardNumber string optional

Card primary account number (PAN).
All non-numeric characters will be ignored.
Minimum length of 7 characters.

Example: 4000000000000002
expMonth string optional

Card Expiry Month - 2 Digits only

Example: 08
expYear string optional

Card Expiry Year - last 2 Digits of the year value only

Example: 29
cvv string optional

CVV Code - 3 Digits or 4 (for AMEX)

Example: 123

Customer Identity

firstName string optional

Customer's First Name.
A Maxumum of 50 Characters allowed

Example: Sherlock
lastName string optional

Customer's Last Name.
A Maxumum of 50 Characters allowed

Example: Holmes
email email required

Customer's email

phone string optional

Customer's Phone Number
Min 7 digits - Max 18 digits - No need to enter country code.

Example: 6549873215

Billing Details

address string optional

Customer's Address
Min 3 & Max 45 characters

Example: 221 B, Baker Street
city string optional

Customer's City
Min 3 & Max 45 characters

Example: London
state string optional

Customer's State
Min 2 & Max 45 characters

Example: State
zip string optional

Customer's Zip Code
Only Alpha Numeric values allowed

Example: NW16XE
country string required

Customer's Country Code
2-letter country code

Example: UK

Network Information

ip string optional

IP address (IPv4 or IPv6)

Example: 192.168.1.1

Redirects & Webhooks

returnUrl string Optional

URL to redirect Customer after processing

Example: Https://abcwebsite.com
statusUrl string Optional

API endpoint to receive the payment status
To know either Success or Failure

Example: Https://abcwebsite.com/returnurl
refundCallbackUrl string Optional

API endpoint to receive the callbacks for refunds
If empty, refund callbacks will be send to statusurl.

Example: Https://abcwebsite.com/refundcallbackurl
chargebackCallbackUrl string Optional

API endpoint to receive the callbacks for chargeback
If empty, chargeback callbacks will be send to statusurl.

Example: Https://abcwebsite.com/chargebackCallbackUrl
fraudCallbackUrl string Optional

API endpoint to receive the callbacks for fraud warnings
If empty, fraud warning callbacks will be send to statusurl.

Example: Https://abcwebsite.com/fraudCallbackUrl

Payload Structure


Request Payload (JSON)
{
  "paymentMethod": "CARD",
  "amount": "66.00",
  "currency": "USD",
  "invoiceNumber": "abcd1234",

  "cardNumber": "4000000000000002",
  "expMonth": "05",
  "expYear": "28",
  "cvv": "123",

  "firstName": "Sherlock",
  "lastName": "Holmes",
  "email": "[email protected]",
  "phone": "9876543210",

  "address": "221B Baker Street",
  "city": "London",
  "state": "State",
  "zip": "NW16XE",
  "country": "UK",

  "ip": "192.168.5.6",

  "returnUrl": "https://www.clientsite.com",
  "statusUrl": "https://clientsite.com/api/statusurl",
  "refundCallbackUrl": "https://clientsite.com/api/refundCallbackUrl",
  "chargebackCallbackUrl": "https://clientsite.com/api/chargebackCallbackUrl",
  "fraudCallbackUrl": "https://clientsite.com/api/fraudCallbackUrl"

  "additionalParameters": {}
}

Callback Responses


Get Status API Request

Version 1.0
GET https://api-dev.cruisepay.finance/api/v1/orderStatus

Get Transaction Status


The Get Transaction Status endpoint requires authentication using a Bearer token. This request returns the current status of a transaction based on the provided identifier.

Requests with missing, expired, or invalid tokens will receive a 401 Unauthorized response.

Authorization: Bearer β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’

Request Parameters


Invoice Detail

invoiceNumber string required

Transasction ID assigned by Merchant.
Minimum length of 7 characters.

Example: ABC123

Payload Structure


Request Payload (JSON)
{
  "invoiceNumber": "abcd1234",
}

Status Callback Responses


Secure payment processing APIs for seamless checkout and refunds. API Version: v1
© 2026 Cruisepay. All rights reserved.