Payments
Create a payment
Record a customer payment applied to invoices.
What happens
- Payment record is created
- Specified amounts are applied to invoices
- Invoice/order status updated to PAID when fully paid
- Overpayment creates a credit memo automatically
Validations
- Payment date must be >= invoice date for all applied invoices
- Application amounts must not exceed invoice open balances
- Customer must match invoice customer
post/payments
Request body
Response
Payment created successfully
Example response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"key": "PMT-00001",
"customer": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"key": "ERP-CUSTOMER-ACME",
"name": "Acme Manufacturing Corp",
"friendlyId": "A123456",
"status": "ACTIVE",
"phoneNumber": "+1-555-123-4567",
"website": "https://acme-manufacturing.com",
"createdAt": "2025-01-15T10:00:00Z",
"updatedAt": "2025-01-15T14:30:00Z"
},
"currency": "USD"
}