Credit note allocation
Invoices sent to the interface cannot be canceled or changed. If there is an error in the invoice or if the invoice is to be canceled, a counterparty credit note will be sent to the interface that will partially or completely cancel the original invoice.
The credit note is like the normal invoice, but on invoice rows the amounts are presented negative and a refund jobid or refundtobillnum tag is added to the invoice, indicating the initial invoice item or bill number to which the refund applies. If the credit balance does not previously apply to the invoice sent to the Ropo One™, leave the refund jobid and the refund without a billnum tag: you can always place a credit note later in Ropo One™ if necessary.
Please note! If you are using payrows netamount, vatamount and totalamount they have to be presented in negative.
An example, sending and ordinary invoice:
JSON:
{
"datastream": {
"dataset": [
{
"jobtype": "0",
"person": "Nelli Niirulainen",
"address": "Kellokoskenkatu 15 A 3",
"postcode": "70100",
"city": "KUOPIO",
"customertype": "2",
"billdate": "2017-03-04",
"paydate": "2017-03-18",
"payrow": [
{
"desc": "Siivous",
"count": "1",
"itemtype": "h",
"amount": "100",
"taxpr": "23"
}
]
}
]
}
}And then crediting the invoice:
The previous example credits the original invoice in full. If the invoice is only partially credited, credits note’s invoice rows may be changed accordingly. For example, a 50% credit can be achieved with a discount tag:
In credit invoices you can remove invoice rows or change the number of products (pieces) as needed. Note, however, that no new products can be added to the credit note: if the debtor has been sold after the original invoice has been sent, these must be invoiced by a separate invoice!
JobAddCreditNote
Amount of credit note
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
2017-10-10Credit note type
allocatedCredit note invoice number
26251Description of credit note
Capital amount increased due to agreement change.Credit note response
JobAddCreditNoteResponse
Id of job
123456Billnum of job
R12345Reference of job
123456Date of credit note
2017-10-10Amount of credit note
710.000 : UNDONE, 1 : FAIL, 2 : OLD, 8 : IGNORE, 10 : NOT FOUND, 11 : CANCELLED, 12 = OLD CANCEL.
1additional information
Capital kirjattuBad request
Unauthorized
POST /rest/jobs/creditnote HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 209
{
"amount": "710.00",
"billcode": "123467",
"billnum": "R123467",
"jobid": "123467",
"date": "2017-10-10",
"type": "allocated",
"creditnotebillnum": "26251",
"description": "Capital amount increased due to agreement change."
}{
"jobid": "123456",
"billnum": "R12345",
"billcode": "123456",
"date": "2017-10-10",
"amount": "710.00",
"statusid": "1",
"statustext": "Capital kirjattu"
}Last updated
Was this helpful?

