credit_invoice

Purpose: The credit_invoice function is used to return a complete invoice.

Example PHP code credit_invoice($eid, $invno, $credno, $secret, &$result) Input Data:
Required Variable Type Description
eid integer A store ID which refers to your store in Klarna's database.
invno string Invoice number
credno string Credit number. If you do not wish to use credit numbers, send 0
secret string A shared secret which is used to secure all traffic between Klarna and your store

Return value:
Invoice number for the returned invoice.


Errors

Error Description
unknown_invoice The invoice number does not exist.
invalid_estore_secret The shared secret does not match the estore id.
 

API functions

Add_transaction functions
Invoice handling functions
Test persons