Member id validation

From VPOIDS Documentation

Member ID Validation API

This API can be used by partners to validate a member's status with Angel Flight West, for example, for the purpose of offering a discount on products or services. Each AFW member receives a unique ID when they join, which they can submit along with their name when placing an order.

The API is a REST API and returns JSON.

End point

https://afids.angelflightwest.org/api/memberIdValidate

Parameters

Pass the following parameters:

* key (required). The API key provided by AFW to the partner.
* password (required). Password provided by AFW.
* member_id (required). The member ID.

Response

The possible responses are:

  • result = success
    • member_status. Possible options: Active/Not Active/Member ID not found. Active indicates that the member is current at AFW.
    • last_name. If the member is active, the last name is returned for additional verification.
  • result = failure
    • error_message: Possible options: No member_id passed/Invalid credentials