Create payment
Create payment
Path Parameters
Name
Type
Description
Request Body
Name
Type
Description
HTTP/1.1 200 OK
Content-Type: application/hal+json
{
"resource": "payment",
"id": "07d125ef-8e59-4629-8ef5-5c82de9979e9",
"invoice":"a0f0660d-6c8d-422b-8114-e363b260521e",
"date":"21-01-2021",
"amount":"100.00",
"invoiceTotal":"480.00",
"invoiceBalance":"380.00"
}HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"status": 400,
"title": "Bad Request",
"detail": "Field date in wrong format"
}HTTP/1.1 404 Not Found
Content-Type: application/json
{
"status": 404,
"title": "Not Found",
"detail": "No invoice exists with id I_dont_exist."
}Example
Request
Last updated