Purchase Orders
Create a payment for a purchase order
Create a new payment for a purchase order. The purchase order totals (total_paid and total_due)
are automatically recalculated after the payment is created.
Payment Types
Valid payment types: cash, credit_card, debit_card, check, bank_transfer
Total Recalculation
After creating a payment, the system automatically:
- Updates
total_paidby adding the new payment amount - Recalculates
total_dueastotal_cost - total_paid
POST
Authorizations
Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.
Path Parameters
ID of the purchase order
Body
application/json
Date of the payment (YYYY-MM-DD)
Example:
"2024-01-15"
Type of payment
Available options:
cash, credit_card, debit_card, check, bank_transfer Example:
"check"
Amount paid
Required range:
x >= 0.01Example:
500
Payment remarks or notes
Maximum string length:
1000Example:
"Check #1234"
External payment reference ID
Maximum string length:
255Example:
"PAY-EXT-12345"
Response
Payment created successfully