Payment
Register a payment for an existing invoice.
Use this when the debtor paid outside Ropo’s settlement flow.
This is typical when the debtor pays to your own account.
Prerequisites
The invoice must already exist in Ropo One.
You must reference the invoice using one of these identifiers:
billcode(preferred)jobidbillnum
Send only one identifier when possible.
If you send multiple identifiers, Ropo uses this lookup order:
billcodejobidbillnum
Required fields
paydate(format:YYYY-MM-DD)amount
Optional fields
These fields are use case specific:
identifiertype(example:directpayment)creditnotebillnumdescription
Example
JobAddPayment
Amount of payment
710.00Reference of job. One of these required: 1.billcode, 2.jobid, 3. billnum (search order)
123467Billnum of job. One of these required: 1.billcode, 2.jobid, 3. billnum (search order)
R123467Id of job. One of these required: 1.billcode, 2.jobid, 3. billnum (search order)
123467Date of payment
2017-10-10Payment targeting identifier
insurancePayment type
directpaymentCredit note invoice number
26251Description of payment
Capital amount increased due to agreement change.Payment response
JobAddPaymentResponse
Id of job
123456Billnum of job
R12345Reference of job
123456Date of payment
2017-10-10Amount of payment
710.00Open capital before payment
710.00Open capital after payment
0.00Amount focused to opencapital
710.00Amount before to interest
0.00Amount after to interest
0.00Amount focused to interest
0.00Amount after to customer notice fee
0.00Amount before to customer notice fee
0.00Amount focused to customer notice fee
0.00Unfocused amount
0.000 : UNDONE, 1 : FAIL, 2 : OLD, 3 : ROPO, 4 : ROPO Refund, 5 : CLOSE, 6 : OHISPAY, 8 : IGNORE, 9 : DIFFCID, 10 : NOT FOUND, 11 : CANCELLED. Only with value 6 Http-Responsecode is 201 other 400
6additional information
Capital kirjattuBad request
Unauthorized
POST /rest/jobs/payment HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 241
{
"amount": "710.00",
"billcode": "123467",
"billnum": "R123467",
"jobid": "123467",
"paydate": "2017-10-10",
"identifier": "insurance",
"type": "directpayment",
"creditnotebillnum": "26251",
"description": "Capital amount increased due to agreement change."
}{
"jobid": "123456",
"billnum": "R12345",
"billcode": "123456",
"paydate": "2017-10-10",
"amount": "710.00",
"capitalbefore": "710.00",
"capitalafter": "0.00",
"focusedtocapital": "710.00",
"interestbefore": "0.00",
"interestafter": "0.00",
"focusedtointerest": "0.00",
"noticefeebefore": "0.00",
"noticefeeafter": "0.00",
"focusedtonoticefee": "0.00",
"unfocused": "0.00",
"statusid": "6",
"statustext": "Capital kirjattu"
}Last updated
Was this helpful?

