invoice_part_amount

Purpose: The invoice_part_amount function is used to retrieve the partial amount of an invoice.

Example PHP code invoice_part_amount($eid, $invno, $artnos, $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 array A list of pairs containing quantity and article number. Each element in the list is created using a call to the mk_artno function
secret string A shared secret used to secure all traffic exchanged by Klarna and your store

Return Value:
Partial invoice amount.


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