A non-transitory computer-readable recording medium storing computer-readable instructions for an image processing apparatus, wherein the image processing apparatus includes:
- an image processor configured to form an image;
- a communication interface configured to communicate with an intermediate server via the Internet;
- and a near field communication interface configured to perform wireless near field communication with a portable terminal according to a prescribed protocol, wherein the computer-readable instructions, when executed by a processor of the image processing apparatus, cause the image processing apparatus to:
- transmit service request information to the intermediate server via the communication interface, the service request information including request for a service provided by a service providing apparatus which is different from the intermediate server;
- receive acquisition instruction information from the intermediate server via the communication interface, the acquisition instruction information including an instruction to acquire identification information via wireless near field communication, the identification information being used to receive the service;
- and
- receive the identification information from the portable terminal via the near field communication interface;
- transmit the identification information to the intermediate server via the communication interface in response to reception of the identification information from the portable terminal via the near field communication interface;
- receive authentication information via the communication interface in response to the transmission of the identification information, the authentication information being stored in association with the identification information in the intermediate server and for indicating that reception of the service is authorized;
- receive the service from the service providing apparatus by using the received authentication information;
- generate image data by using the image processor;
- and
- receive error information from the intermediate server, the error information being transmitted from the intermediate server to the image processing apparatus when the identification information is not stored in the intermediate server, the error information being for indicating that reception of the service is not authorized.