Payments
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/payments/ |
List Payments |
| GET | /api/payments/{uuid}/ |
Retrieve |
| POST | /api/payments/ |
Create |
| POST | /api/payments/{uuid}/unlink_from_invoice/ |
Unlink from invoice |
| PUT | /api/payments/{uuid}/ |
Update |
| PATCH | /api/payments/{uuid}/ |
Partial Update |
| DELETE | /api/payments/{uuid}/ |
Delete |
| Other Actions | ||
| POST | /api/payments/{uuid}/link_to_invoice/ |
Link to invoice |
Core CRUD
List Payments
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
payments_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
date_of_payment |
string (date) | |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
profile |
string | |
profile_uuid |
string (uuid) |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
profile |
string (uri) |
date_of_payment |
string (date) |
sum |
string (decimal) |
proof |
string (uri) |
invoice |
string (uri) |
invoice_uuid |
string (uuid) |
invoice_period |
string |
customer_uuid |
string (uuid) |
Retrieve
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
payments_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
profile |
string (uri) |
date_of_payment |
string (date) |
sum |
string (decimal) |
proof |
string (uri) |
invoice |
string (uri) |
invoice_uuid |
string (uuid) |
invoice_period |
string |
customer_uuid |
string (uuid) |
Create
1 2 3 4 5 6 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
- Model Source:
PaymentRequest - API Source:
payments_create
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
| Field | Type | Required |
|---|---|---|
profile |
string (uri) | ✓ |
date_of_payment |
string (date) | ✓ |
sum |
string (decimal) | |
proof |
string (binary) |
201 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
profile |
string (uri) |
date_of_payment |
string (date) |
sum |
string (decimal) |
proof |
string (uri) |
invoice |
string (uri) |
invoice_uuid |
string (uuid) |
invoice_period |
string |
customer_uuid |
string (uuid) |
Unlink from invoice
Unlink a payment from an invoice. Remove connection between payment and existing linked invoice.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
payments_unlink_from_invoice
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 - No response body
Update
1 2 3 4 5 6 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
- Model Source:
PaymentRequest - API Source:
payments_update
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
profile |
string (uri) | ✓ |
date_of_payment |
string (date) | ✓ |
sum |
string (decimal) | |
proof |
string (binary) |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
profile |
string (uri) |
date_of_payment |
string (date) |
sum |
string (decimal) |
proof |
string (uri) |
invoice |
string (uri) |
invoice_uuid |
string (uuid) |
invoice_period |
string |
customer_uuid |
string (uuid) |
Partial Update
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
PatchedPaymentRequest - API Source:
payments_partial_update
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
profile |
string (uri) | |
date_of_payment |
string (date) | |
sum |
string (decimal) | |
proof |
string (binary) |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
url |
string (uri) |
profile |
string (uri) |
date_of_payment |
string (date) |
sum |
string (decimal) |
proof |
string (uri) |
invoice |
string (uri) |
invoice_uuid |
string (uuid) |
invoice_period |
string |
customer_uuid |
string (uuid) |
Delete
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
payments_destroy
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
204 - No response body
Other Actions
Link to invoice
Link a payment to an invoice. Payment can be linked to an invoice only if they belong to the same customer.
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
- Model Source:
LinkToInvoiceRequest - API Source:
payments_link_to_invoice
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
invoice |
string (uri) | ✓ |
200 -
| Field | Type |
|---|---|
invoice |
string (uri) |