request
POST /distribution HTTP/1.1
Content-Type: application/json
Host: localhost:8080
Content-Length: 260

{
  "sourceAccountNumber" : "S1R2C3A4C5C6",
  "payrollPayments" : [ {
    "customerIdentifier" : "flauna",
    "employer" : "The Shop",
    "salary" : 1234.56
  }, {
    "customerIdentifier" : "flauna",
    "employer" : "The Tank",
    "salary" : 14.54
  } ]
}
response
HTTP/1.1 202 Accepted

request
GET /distribution HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 335

[ {
  "identifier" : "GTLCCyQRhchlFB0OybxHn6ShgtoqLOmK",
  "sourceAccountNumber" : "S9R7C5A3C1C",
  "createdBy" : "mage",
  "createdOn" : "2019-01-08T06:45:02.474Z"
}, {
  "identifier" : "pQRtAZX15nekceMNCPsNVmDMdAUVfI5T",
  "sourceAccountNumber" : "S1R2C3A4C5C6",
  "createdBy" : "mage",
  "createdOn" : "2019-01-08T06:45:01.943Z"
} ]

request
GET /distribution/GysdG6N8eynMuCITQY9PMPNyVeQBza6E/payments HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 208

{
  "payrollPayments" : [ {
    "customerIdentifier" : "ngone",
    "employer" : "Nkwane",
    "salary" : 945.0,
    "processed" : true,
    "message" : null
  } ],
  "totalPages" : 1,
  "totalElements" : 1
}

request
GET /customers/faundCostoma/payroll HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: localhost:8080
response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 364

{
  "mainAccountNumber" : "AB12345",
  "payrollAllocations" : [ {
    "accountNumber" : "BAH97531",
    "amount" : 73.0,
    "proportional" : true
  }, {
    "accountNumber" : "CAG24680",
    "amount" : 21.0,
    "proportional" : true
  } ],
  "createdBy" : "mage",
  "createdOn" : "2019-01-08T06:45:03.805Z",
  "lastModifiedBy" : null,
  "lastModifiedOn" : null
}

request
PUT /customers/customerOne/payroll HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: localhost:8080
Content-Length: 253

{
  "mainAccountNumber" : "12345678910",
  "payrollAllocations" : [ {
    "accountNumber" : "9876543210",
    "amount" : 5500.0,
    "proportional" : true
  }, {
    "accountNumber" : "24681097531",
    "amount" : 43.0,
    "proportional" : true
  } ]
}
response
HTTP/1.1 202 Accepted