Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Skip to contents in this page
Table of Contents |
---|
AddDeliveryInfo Request examples
Adding Posti tracking code, but not the last one:
(pkg_allsent=N)
Code Block | ||
---|---|---|
| ||
<form action="https://test1.maksuturva.fi/addDeliveryInfo.pmt"> <input type="hidden" name="pkg_version" value="0002"> <input type="hidden" name="pkg_sellerid" value="ABC123DE"> <input type="hidden" name="pkg_id" value="1998524_1"> <input type="hidden" name="pkg_deliverymethodid" value="ITELL"> <input type="hidden" name="pkg_adddeliveryinfo" value="JJFI12345612345123456"> <input type="hidden" name="pkg_allsent" value="N"> <input type="hidden" name="pkg_forceupdate" value="N"> <input type="hidden" name="pkg_resptype" value="HTML"> <!--<input type="hidden" name="pkg_return" value="">--> <input type="hidden" name="pkg_hashversion" value="SHA-256"> <input type="hidden" name="pkg_hash" value="CFDDF22DD538FFECF6F784F5E10C88A3704ED597E700DE6A36979D868574B8C4"> <input type="hidden" name="pkg_keygeneration" value="1"> <input type="submit" value="Add delivery info"> </form> |
Adding the final Posti tracking code:
(pkg_allsent=Y)
Code Block | ||
---|---|---|
| ||
<form action="https://test1.maksuturva.fi/addDeliveryInfo.pmt"> <input type="hidden" name="pkg_version" value="0002"> <input type="hidden" name="pkg_sellerid" value="ABC123DE"> <input type="hidden" name="pkg_id" value="1998524_1"> <input type="hidden" name="pkg_deliverymethodid" value="ITELL"> <input type="hidden" name="pkg_adddeliveryinfo" value="JJFI12345612345123456"> <input type="hidden" name="pkg_allsent" value="Y"> <input type="hidden" name="pkg_forceupdate" value="N"> <input type="hidden" name="pkg_resptype" value="HTML"> <!--<input type="hidden" name="pkg_return" value="">--> <input type="hidden" name="pkg_hashversion" value="SHA-256"> <input type="hidden" name="pkg_hash" value="CA40867A33B5E6ACD525F89E398970A98C73F83AF9D02EAECCAFE2E2E92636E1"> <input type="hidden" name="pkg_keygeneration" value="1"> <input type="submit" value="Add delivery info"> </form> |
AddDeliveryInfo Response examples:
OK Response:
Code Block | ||
---|---|---|
| ||
<pmtq> <pkg_resultcode>00</pkg_resultcode> <pkg_version>0002</pkg_version> <pkg_hash>9CDDD56A2E2756818D1E029153CD8DF7A6DD4ACE33296FB2CB5948AF3D5BA4AC</pkg_hash> <pkg_resulttext>OK</pkg_resulttext> <pkg_sellerid>ABC123DE</pkg_sellerid> <pkg_id>1998524_1</pkg_id> </pmtq> |
Error Response:
(pkg_id missing from the request)
Code Block | ||
---|---|---|
| ||
<pmtq> <pkg_resultcode>99</pkg_resultcode> <pkg_version>0002</pkg_version> <pkg_hash>null</pkg_hash> <pkg_resulttext>pkg_id is a mandatory field</pkg_resulttext> <pkg_sellerid>ABC123DE</pkg_sellerid> <pkg_id/> </pmtq> |
Error Response:
(pkg_hash did not match the value calculated by Svea Payments)
Code Block | ||
---|---|---|
| ||
<pmtq> <pkg_resultcode>99</pkg_resultcode> <pkg_version>0002</pkg_version> <pkg_hash>null</pkg_hash> <pkg_resulttext>pkg_hash did not pass validation</pkg_resulttext> <pkg_sellerid>ABC123DE</pkg_sellerid> <pkg_id>1998524_1</pkg_id> </pmtq> |