API documentation

Send mobilPay return errors

POST /api/mobil_pay/return_error

Include access_token in HTTP header:

Authorization: Bearer 09ba487fc3df...


This web service is used to send to the server the errors received by the application from the remote payment module.


Parameter name Parameter type Description
orderId int id of the order
mpy_form_erros int payment error received in the return url
   "orderId" : "STA-512",
   "mpy_form_erros" : "%257B%2522billing%2522%253A%257B%2522ppiAddress%2522%253A%257B%2522isEmpty%2522%253A%2522Camp%2Bobligatoriu%2522%257D%257D%257D"


Status Code: 200 if OK

  "errors": [
    "Camp obligatoriu"

Status Code: 400 if either orderId or mpy_form_erros parameter is missing

Status Code: 401 if request access token not ok