Skip to main content
POST
Add payment to a sale

Yetkilendirmeler

Authorization
string
header
gerekli

The access token received from the authorization server in the OAuth 2.0 flow.

Başlıklar

X-Tenant
number
gerekli

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Yol Parametreleri

id
integer
gerekli

The sale identifier

Gövde

application/json
amount
number
gerekli

Monetary amount.

Gerekli aralık: x >= 0.01
payment_method
enum<string>
gerekli

The payment method used for this collection or payment.

Mevcut seçenekler:
bank_account,
cash,
transfer_cash,
other,
clinic_credit_card,
credit_card,
private_insurance,
sgk
currency_id
integer | null

Currency of the payment; defaults to the sale currency.

exchange_rate
number | null

Currency exchange rate.

Gerekli aralık: x >= 0
transaction_date
string<date-time> | null

Transaction date (YYYY-MM-DD).

type
enum<string> | null

The transaction type; defaults to a collection when omitted.

Mevcut seçenekler:
collection,
payment,
null
invoice_number
string | null

The invoice number the payment belongs to.

Maximum string length: 255
description
string | null

The description.

Maximum string length: 65535
installment_number
integer | null

The installment (1-based) of an installment sale this collection settles. Must exist in the sale's installment plan, and the collections linked to one installment cannot exceed its amount. Not allowed for payments.

Gerekli aralık: x >= 1
account_id
integer | null

Account ID.

Yanıt

success
string
gerekli
data
object
gerekli