delete_invoice

Purpose: The delete_invoice function is used to delete a passive invoice.

Example PHP code delete_invoice($eid, $invno, $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 passive invoice number
secret string A shared secret used to secure all traffic exchanged by Klarna and your store

Return Value:
String containing ”ok”.


Errors

Error Description
Unknown invoice The invoice number does not exist.
invoice_not_passive This invoice has been activated and cannot be deleted. Use the credit_invoice function instead.
invalid_estore_secret The shared secret does not match the estore id.
 

API functions

Add_transaction functions
Invoice handling functions
Test persons