Create Transaction

Record a new payment transaction.

POST /transactions
Request Body Fields
Field Type Required Description
order string Yes Order ID
transaction_type string Yes Transaction type (Payment, Cheque, Wire Transfer)
amount string Yes Transaction amount
transaction_date string Yes Transaction date (YYYY-MM-DD)
credit_card_type string No Card type (Visa, Mastercard, etc.)
credit_card_last_4_digits string No Last 4 digits of card
bank string No Bank ID
cheque_number string No Cheque number
info string No Additional information
Example Requests
POST /api/v1.0/transactions
{
  "order": "789",
  "transaction_type": "Payment",
  "amount": "500.00",
  "credit_card_type": "Visa",
  "credit_card_last_4_digits": "4567",
  "transaction_date": "2025-10-15",
  "info": "Credit card payment"
}
POST /api/v1.0/transactions
{
  "order": "789",
  "transaction_type": "Cheque",
  "amount": "1250.00",
  "bank": "5",
  "bank_account_number": "123456789",
  "cheque_number": "001234",
  "cheque_date": "2025-10-15",
  "transaction_date": "2025-10-15",
  "info": "Cheque payment"
}
POST /api/v1.0/transactions
{
  "order": "789",
  "transaction_type": "Wire Transfer",
  "amount": "1250.00",
  "bank": "5",
  "bank_account_number": "987654321",
  "bank_branch": "Main Branch",
  "transaction_date": "2025-10-15",
  "info": "Wire transfer received"
}
Response
{
  "data": [{
    "id": "902",
    "order": "789",
    "transaction_type": "Payment",
    "amount": "500.00",
    "created": "2025-10-15T10:30:00Z"
  }]
}
Back to Transactions List