Answers.Body: <p>See <a href="https://lab.civicrm.org/dev/core/-/issues/2486" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/2486</a> but I believe all of those things are deprecated anyway (or on the way to being deprecated) and the idea is to use Order and Payment: <a href="https://docs.civicrm.org/dev/en/latest/financial/orderAPI/" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/financial/orderAPI/</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-03T13:08:18.397Z
Answers.Text: The description of this order API seems very promising to me, is it available via api4 it doesn't seem to appear in the list?
Answers.UserDisplayName: Wouter H.
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-03T16:07:39.190Z
Answers.Text: It doesn't look like Order and Payment are in api4 yet, but if you use the v3 version then it should be easy to switch to the v4 version when it's ready. Probably.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-03T17:35:45.897Z
Answers.Text: Thank you for the quick and clear answer!
Answers.UserDisplayName: Wouter H.
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-02T16:49:48.930Z
Answers.LastActivityDate: 2022-05-02T16:49:48.930Z
Answers.UserDisplayName: Demerit
Body: <p>I am currently working on a custom module for CiviCRM (5.48) and Drupal 9 (9.3.9)</p>
  <p>I opted to use API4 but I notice that some things are missing compared to API3:</p>
  <ul>
  <li>Contribution -&gt; completetransaction</li>
  <li>MembershipPayment</li>
  <li>ParticipantPayment</li>
  </ul>
  <p>Are these done in a different way or has this not been developed yet?</p>
  
Tags: <api><drupal-9><apiv4>
Title: Is the use of API4 already recommended?
ThreadText: # Is the use of API4 already recommended?
  
  (Asked by: username_0 on 2022-05-02)
  
  I am currently working on a custom module for CiviCRM (5.48) and Drupal 9 (9.3.9)
  
  I opted to use API4 but I notice that some things are missing compared to API3:
  
  * Contribution -> completetransaction
  * MembershipPayment
  * ParticipantPayment
  
  Are these done in a different way or has this not been developed yet?
  
  **Tags:** api, drupal-9, apiv4
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-05-02. Score: 3 | Accepted answer
  
  See <https://lab.civicrm.org/dev/core/-/issues/2486> but I believe all of those things are deprecated anyway (or on the way to being deprecated) and the idea is to use Order and Payment: <https://docs.civicrm.org/dev/en/latest/financial/orderAPI/>
  
  > **Comments:**
  > **username_0**: The description of this order API seems very promising to me, is it available via api4 it doesn't seem to appear in the list?  
  > **username_1**: It doesn't look like Order and Payment are in api4 yet, but if you use the v3 version then it should be easy to switch to the v4 version when it's ready. Probably.  
  > **username_0**: Thank you for the quick and clear answer!  
  
  ---
  
  