Merge pull request #9960 from colemanw/CRM-20029
[civicrm-core.git] / api / v3 / MembershipPayment.php
index f2a14045504e1b1f97138110708c6f6f6aa5622e..05277f11d62129175ecfa378ce7b0decc2cc33ce 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -56,6 +56,11 @@ function civicrm_api3_membership_payment_create($params) {
 function _civicrm_api3_membership_payment_create_spec(&$params) {
   $params['membership_id']['api.required'] = 1;
   $params['contribution_id']['api.required'] = 1;
+  $params['membership_type_id'] = array(
+    'title' => 'Membership type id',
+    'description' => 'The id of the membership type',
+    'type' => CRM_Utils_Type::T_INT,
+  );
 }
 
 /**