Skip to content

Errors

POST /card/:AFiCardId/pin Errors

Status Code Description of possible error
401 This error will result if the "pin" value given is not 8 characters long
404 Invalid PIN, this error will result if characters 3-6 of the "pin" value (representing the new PIN) are invalid. For example, the actual PIN must be composed of digits so "pin": "123f5678" will throw a 404 error and fail to change the card PIN (because "3f56" is not a valid PIN). However, "pin": "f23456t8" will not throw an error because the "pin" code is 8 characters and the characters that represent the new PIN are all digits ("3456").

POST /card/:AFiCardId/restriction Errors

Status Code Description of possible error
404 Not found, Failed modifying card restrictions, Failed calling back office, This error will be thrown if both allowedMCCs and restrictedMCCs are present in the request body simultaneously. This error will also be thrown if a card already has allowedMCCs restrictions and an attempt to add restrictedMCCs restrictions is made (or vice versa).

POST /cards/:AFiCardId/:onoff

Status Code Description of possible error
404 Wrong input to ampliFi.cards.cardOnOff (error is thrown if the :onoff path parameter is anything other than "on" or "off"), Card not found (:AFiCardId path parameter given is not a valid card ID for the current user)