Get accreditor

Returns an accreditor by id for given user.

Request

  • HTTP Verb: GET
  • URI: /user/{user_id}/accreditor/{id}

Query Parameters

  • user_id: user identifier. It could be either user id, user email or custom member_id.
  • id: accreditor id.

You need the latest version of the PHP SDK for this, located here: https://github.com/wcealliance/php-sdk

Request example

$accreditor = $API->getUserAccreditor(1234, 2);

Output Example

array(
   "id" => 2,
   "name" => "Pharmaceutical Board of America",
   "abbreviation" => "PBA",
   "user_fields" => array(
     "Date of birth" => array(
       "type" => "date",
       "default_value" => "",
       "required" => true,
       "user_value" => "01 January 1988",
     ),
     "Profile ID" => array(
       "type" => "text",
       "default_value" => "",
       "required" => true,
       "user_value" => "65343",
     )
   )
)