Get a list of transactions for given invoice.
GET /api/invoices/123/transactions Host: apply.example.edu Authorization: DREAM apikey="..."
Content-Type: application/json Content-Length: 1234 X-Count: 15
{ "1": { "id": 1, "amount": "500.00", "invoice": "/api/invoices/3", "inserted": "2021-10-26T16:24:39+00:00", "collected": "2021-10-26", "administrator": "/api/administrators/1", "payment": null }, "2": { "id": 2, "amount": "500.00", "invoice": "/api/invoices/3", "inserted": "2021-10-26T16:25:08+00:00", "collected": "2021-10-26", "administrator": null, "payment": null } }
Create a new transaction for the invoice.
The URI for the new transaction that was created is returned in the Location
header.
POST /api/invoices/123/transactions Host: apply.example.edu Authorization: DREAM apikey="..."
Name | Description | |
---|---|---|
amount | Required | A valid decimal amount of the transaction. |
currency | Required | Currency code, must be the same as the currency of the invoice |
Content-Type: application/json Content-Length: 0 Location: /api/invoices/123/transactions/12345
201 Created | New course was created |
422 Unprocessable Entity | There were some validation errors (see the returned text) |