credit_part

Purpose: the credit_part function is used to return an invoice in part.

Example PHP code credit_part($eid, $invno, $artnos, $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 The invoice number
artnos list A list of pairs containing quantity and article number to be credited. Each element in the list is created using a call to the mk_artno function.
credno string Credit number. If you do not wish to use credit numbers, send 0
secret string A shared secret used to secure all traffic exchanged by Klarna and your store

Return value:
The invoice number


Errors

Error Description
unknown_invoice The invoice number does not exist.
bad_artnolist There is a fault in the article list. It can depend on the quantity or article number variable.
invalid_estore_secret The shared secret does not match the estore id.
 

API functions

Add_transaction functions
Invoice handling functions
Test persons