CreatePayment
CreatePaymentCreates a new payment and associates it with one or multiple invoices.
Parameters:
| Parameter | Type | Description |
|---|---|---|
input | PaymentInput! | Payment data. |
Example Query:
mutation CreatePayment($input: PaymentInput!) {
CreatePayment(input: $input) {
id
amount
paid_at
}
}UpdatePayment
UpdatePaymentUpdates an existing payment.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | ID of the payment. |
input | PaymentInput! | Updated data. |
DeletePayment
DeletePaymentDeletes a payment record.
Parameters:
| Parameter | Type | Description |
|---|---|---|
id | ID! | ID of the payment to delete. |
Example Query:
mutation DeletePayment($id: ID!) {
DeletePayment(id: $id)
}Input Data Types
PaymentInput
PaymentInput| Field | Type | Description |
|---|---|---|
id | Int | ID for updates. |
notes | String | Description or internal notes. |
payment_method | PaymentMethodInput | Method used (e.g., Credit Card, Transfer). |
customer | CustomerInput! | Associated customer. |
paid_at | Date | Date of payment. |
amount | Float | Total amount of payment. |
invoice_payments | [InvoicePaymentInput]! | Allocation of the total amount to specific invoices. |
custom_fields | [EntityCustomFieldInput] | Custom fields for this entity. |
InvoicePaymentInput
InvoicePaymentInput