Skip to content

Supplier Payments API

Manage payments to suppliers, carriers, and hotels. Supports reconciliation and segment-level payment tracking.


List Supplier Payments

http
GET /api/v1/supplier-payments

Query Parameters:

ParameterTypeDescription
supplier_iduuidFilter by supplier
carrier_iduuidFilter by carrier
hotel_iduuidFilter by hotel
bank_account_iduuidFilter by bank account
from_datestringYYYY-MM-DD
to_datestringYYYY-MM-DD
is_reconciledbooleanFilter by reconciled status

Get Supplier Payment

http
GET /api/v1/supplier-payments/{id}

Create Supplier Payment

http
POST /api/v1/supplier-payments

Request Body:

FieldTypeRequiredDescription
supplier_iduuidNoSupplier UUID
carrier_iduuidNoCarrier UUID
hotel_iduuidNoHotel UUID
bank_account_iduuidNoBank account UUID
account_bank_type_iduuidNoAccount bank type UUID
amountstring✅ YesDecimal string (e.g. "379.60")
currencystring✅ YesEUR, USD, TRY
payment_datestring✅ YesYYYY-MM-DD
payment_methodstringNoBANK_TRANSFER, CASH, CREDIT_CARD, CHECK
referencestringNoInvoice or reference number
notesstringNoAdditional notes

Update Supplier Payment

http
PUT /api/v1/supplier-payments/{id}

Delete Supplier Payment

http
DELETE /api/v1/supplier-payments/{id}

Reconcile Supplier Payment

Marks a payment as reconciled.

http
PUT /api/v1/supplier-payments/{id}/reconcile

List Unpaid Segments

Returns segments that have not yet been paid to the supplier.

http
GET /api/v1/supplier-payments/unpaid-segments

Query Parameters:

ParameterTypeDescription
carrier_iduuidFilter by carrier
supplier_iduuidFilter by supplier
hotel_iduuidFilter by hotel
from_datestringYYYY-MM-DD
to_datestringYYYY-MM-DD
payment_statusstringfull, PAID, pending, UNPAID

Mark Segments as Paid

Bulk-mark segments as paid and create a linked supplier payment.

http
POST /api/v1/supplier-payments/mark-paid

Request Body:

json
{
  "segment_ids": ["uuid"],
  "invoice_number": "INV-2026-001",
  "payment_date": "YYYY-MM-DD",
  "payment_method": "CASH",
  "amount": "379.60",
  "currency": "EUR",
  "carrier_id": "uuid",
  "supplier_id": "uuid",
  "hotel_id": "uuid",
  "bank_account_id": "uuid",
  "account_code_id": "uuid",
  "reference": "REF",
  "notes": "Optional notes"
}

Unified API Documentation