Difference between revisions of "MOR API credit notes delete"

From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with '''This functionality is available from MOR 12'' MOR API Delete credit note <br><br> ---- <br><br> * Call: /api/credit_note_delete * Methods: P…')
(No difference)

Revision as of 14:55, 12 January 2012

This functionality is available from MOR 12


MOR API

Delete credit note






  • Call: /api/credit_note_delete
  • Methods: POST, GET(if allowed, not recomended)
  • Params:
    • credit_note_id - Credit note ID in MOR database, whose datas we want to delete. Required.
    • u - username to login. Required.
    • p - password to login. Required.
    • hash - SHA1 hash constructed using device and API_Secret_Key ( More described in Constructing hash). Required.
  • Returns:
    • Success
      • <status>Credit note was deleted</status>


    • Errors:
      • <error>Credit note was not found</error> - Credit note was not found using credit_note_id. Use correct credit note id.
      • <error>Incorrect hash</error> - Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.
      • <error>Bad login</error>




  • Example:
    • We have credit_note_id = 123, API Secret Key = 456789
    • Hash string to be converted: "123456789"
    • We send:
      • /api/credit_note_delete?u=admin&p=admin&credit_note_id=123&hash=f7c3bc1d808e04732adf679965ccc34ca7ae3441

* Note that username and password are not included in hash