Questions tagged [api]

Questions about the CiviCRM API.

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

What does 'Number of Items to Process For Each Queue Item' mean when using the API Importer extension?

I'm using Civi 5.35 and Drupal 7. We've installed the API CSV Import extension. At ~/civicrm/index.php?q=civicrm/csvimporter/import , I see a place to enter "Number Of Items To Process For Each ...
1
vote
1answer
16 views

Using the LIKE operator with a wildcard using API v3's REST interface

I am trying to do a simple GET request using a LIKE operator with a wildcard. It's easy to set up the explorer and works as expected. I'm using a demo civi environment using the example data included ...
1
vote
2answers
38 views

What's the right syntax for the API3 “replace” action for the “WordReplacement” entity?

I'm trying to call the WordReplacement API v3 with the replace action. The APIv3 Explorer tells me the right PHP syntax is as show below. (I previously called WordReplacement get to get the correct id ...
0
votes
1answer
9 views

Specified return fields in contact get do not get returned

If I do a api3 contact 'get' with no return fields specified, it obvs returns all the fields including address fields. What I want to do is only retrieve certain fields for my needs, just to reduce ...
0
votes
2answers
19 views

Register new account via REST application

I'm trying to register a new user account to my CiviCRM site and also to create a contact in the CiviCRM system for him. I want to do that via the REST API call application that I'm writing in python. ...
0
votes
1answer
20 views

Export CSV of an smart group's contacts via REST API?

How can I make a REST API call to Civi that creates a CSV file with all the Contacts details (name, email, telephone...) from an specified Smart Group? Thanks.
0
votes
0answers
10 views

I've got API access to Contacs, lack permissions for Membership or Contribution!

I have dug deeper and more structured into my permissions problems. I have tried to access our CiviCRM via API3 REST.php? interface, designed from the APIv3 assistant. Both on releases 5.14 and 5.35 (...
2
votes
2answers
60 views

CiviMobileAPI Extension vs APIv3 for mobile app integration

We are building a react-native mobile app for our members and want to include some CiviCRM data and functionality in the app. Starting with some rudimentary data display eg: How long you've been a ...
1
vote
0answers
8 views

Where can I find CRM javascript object?

I want to use CRM.api3('Email', 'create', { ... call in my javascript. But the object CRM doesn't exist on my website. Which js file do I need to load to access that CRM object? I thought I'd load it ...
1
vote
1answer
25 views

Extrnal API access. Status_code 414

I am progressing deeper and deeper into CivCRM intricacies, and work with External (https://) access of the database via API's. When performing a python requests.get(....,entity=Contact,action=get) it ...
1
vote
1answer
26 views

API csv Import GUI with Formprocessor fails with smarty errors

I created a rather complicated form processor which works (through api), but when I tried to clone it (rename it to create so csv api picks it up) and tried to do the csv import. I get the following ...
2
votes
1answer
49 views

Call to undefined function user_load() using Drupal 9 and api3?

Full error message: Error: Call to undefined function user_load() in CRM_Utils_System_DrupalBase->getUserObject() (line 558 of /var/www/drupal/vendor/civicrm/civicrm-core/CRM/Utils/System/...
0
votes
1answer
14 views

Rest API contribution get doesn't return display_name

in my Civicrm 5.31 on Wordpress 5.5 I'm trying to retrieve contribution data via Rest API, using the apiExplorer I get the code: wp-content/plugins/civicrm/civicrm/extern/rest.php?entity=Contribution&...
0
votes
1answer
24 views

How Can I send mailing with AWS SES API instead of SMTP?

I want to send mailing with the help of AWS SES API instead of SMTP. I am using CiviCRM 5.32.2 and drupal 7.
0
votes
2answers
40 views

Mass deletion of contacts

I woudl like to mass delete contacts in my civicrm. I could search and delete using the GUI but it woudl take ages as there are so many. I feel like I might be able to do this via the api? Also ...
2
votes
2answers
33 views

How to get all active states & provinces from one api call?

I would like to get all active (i.e., in countryLimit) states & provinces available in my site for use in HTML tag. Can I query for that with a single JavaScript call to CRM.api3? I've tried: CRM....
1
vote
0answers
5 views

GlobalPayments API

Has anyone successfully integrated GlobalPayments into CiviCRM? I'm running on WordPress, and there is an API for WP, but I can't find one for CiviCRM. Thanks
2
votes
1answer
29 views

CREATE action for profile missing (v3)?

I want to create a profile but I don't see that in the action dropdown. Have attached an image Please help.
0
votes
1answer
15 views

Field 'Type' in Contacts -> GetFields API

What does the 'type' refer to in the results of 'getfields' action of the Contact Entity. It has a numeric value (1,2, 16 etc). Below are a few sample results. "id": { "...
1
vote
1answer
18 views

How to import/create multiple events from .csv?

how do one import/create multiple events from an existing .csv file? I checked the "API csv Import"-Extension (https://civicrm.org/extensions/api-csv-import-gui). But this only updates ...
1
vote
0answers
16 views

Rest API for Reserve and Interview Respondents

Is there a way to Reserve and Interview Respondents using the Rest API? Couldn't find a way to do it using the 'Survey' Entity.
1
vote
1answer
23 views

Getting Groups Associated with Campaigns using REST API

CiviCampaign allows you to 'include group(s)' as a part of a Campaign. Is there a way to 'get' which groups have been associated for a given campaign ID using the REST API? The GET API for Campaign ...
3
votes
1answer
70 views

What is the correct REST URL in Drupal 8?

I know there's been a lot of work to deprecate the extern endpoints in CiviCRM, and the extern endpoints don't work in Drupal 8 without a lot of finagling. The documentation isn't updated to reflect ...
2
votes
1answer
21 views

Missing information when Importing Contributions via API

I want to import a list of contacts from a csv file (specifically: the Contact IDs), and create a Contribution via API for each one of them. Purpose: These contacts are all ordering the same articles, ...
4
votes
1answer
47 views

Finding contacts without relationships (API)

How can I find contacts using the APIv4 that don't have any relationships of a specific type? I want the first n contacts ordered by a date field meeting various conditions excluding those with a ...
1
vote
0answers
14 views

API csv import unable to import addresses

I am importing a large dataset using the API csv import extension. I have imported the custom fields, contacts, email and phone numbers using the different entities. I have tried to import the address ...
2
votes
1answer
60 views

APIv3 Rest URL … Could not load the settings file

I have a test instance started a day ago of CiviCRM running on Amazon EC2 using the bitnami version (https://bitnami.com/stack/civicrm/cloud) which uses Drupal 7.72 and runs CiviCRM 5.27.4 I added an ...
1
vote
0answers
24 views

CiviCRM API issue

On our multi-site build we have been using the API functionality to send member info to a partner platform so that when a member logs in to our one of our websites and clicks a link their information ...
1
vote
1answer
199 views

SpamAssassin marking mailings as compromised WordPress site

A few of my constituents have told me that my emails are going to their Spam folder in Gmail. I did some digging with mail-tester.com and found that SpamAssassin is dinging my mailings -1.629 points ...
0
votes
0answers
26 views

REST API - 403 Frobidden error

I am trying to access REST API of our civicrm. I have set the APIKey, Site Key. The path is correct. HAve enabled permission for the user account of the API Key. But getting 403 Forbidden. Can you ...
1
vote
1answer
51 views

Only in WORDPRESS: REST.php ---> Unable to decode supplied JSON

This is my first post for CiviCRM. Hi to all. I have seen others post related and nowadays the problem remain. Different from this post: REST API: Unable to decode supplied JSON - with wordpress ...
1
vote
0answers
6 views

Api4 does not delete values table when deleting a Custom Group

I'm using Api4 to remove a Custom Group upon uninstalling an extension. The api call looks like \Civi\Api4\CustomGroup::delete() ->addWhere('id', '=', $idOfCustomGroup) ->execute(); The ...
3
votes
1answer
24 views

How to find all activities generated by one schedule reminder?

As the question says - How to find all activities generated by one schedule reminder ? You can find all activities of type 'scheduled reminder'. This shows a few fields, but not which instance of the ...
1
vote
2answers
52 views

Help to renew membership using the API

I would like to programatically renew memberships when a transaction has been completed in Woocommerce. I want my members to have a more consistent experience and since I do a lot through the ...
0
votes
1answer
60 views

API4 giving Authorization failed Error

We have local and dev site with drupal 8 + CiviCRM 5.22.0, Installed Contact Layout Editor Extension. http://localdemo8.com/civicrm/api4. (api4 explorer) or http://localdemo8.com/civicrm/ajax/api4 ...
0
votes
0answers
8 views

When adding an Event via API - Changing the type of event for one item

Using API version 3, How do I apply a change to the Title or Type of a Parent event without applying that change to the children events as well?
2
votes
0answers
42 views

Use Civicrm with Callhub

I would like to use Civicrm in phone banking. I have managed to link Callhub and Civi together so that a phone call is recorded against a user's name. You can also record some of the call information ...
0
votes
1answer
28 views

CiviCRM API explorer menu is not visibile on Wordpress

I installed CiviCRM 5.23.4 on Wordpress 5.4 and the Support menu is not visible. How do I enable and use the API explorer? If I go to /wp-admin/admin.php?page=CiviCRM&q=civicrm/ajax/doc/api#...
0
votes
0answers
17 views

civimobile too old , while I've the latest version

I've got the message civimobileapi to old, please install a recent version That's what I did....No result FYI: I've downloaded the latest recent software versions from github Both: civomobileapi ...
4
votes
2answers
48 views

Custom API Action: Access Request Body

I'm developing a custom API v3 action which is intended to handle a webhook request from Zoom (https://marketplace.zoom.us/docs/api-reference/webhook-reference). Zoom follows REST standards by putting ...
2
votes
2answers
52 views

CiviCRM Membership data to external Database

I'm new to Joomla, CiviCRM and PHP, but looking to help with a small project. I'm looking to grab the members data from CiviCRM and transfer (or update if users already exist) into a different ...
3
votes
2answers
50 views

CiviCRM API Implementation

How are API's implemented in the CiviCRM Codebase? I have a idea of basic structue user <-> api <-> BAO <-> DAO <-> mysql but I guess there is more to this than just this structure. Thanks ...
3
votes
0answers
32 views

Get list of extensions with upgrades available (from command line)

I would like to know if it is possible to use the command-line to get a list of extensions that have upgrades available. I want to then use that to run cvapi extension.download to install the updates. ...
1
vote
1answer
17 views

outgoing sms activity link to provider when using multiple providers?

I'm testing out multiple sms providers, and I'm using the api to do reads for reporting on the back end, but I can't seem to figure out how the system knows which sms provider sent a particular sms. ...
0
votes
3answers
47 views

Activity get API3 does not return case activity

Im using API3 to get activities My code is function hook_any_activity_get($cid,$type) { $params = [ 'contact_id' => $cid, 'activity_type_id' => $type, 'sequential' => 1, '...
0
votes
1answer
55 views

How to repair DB tables after faulty past upgrade?

System: WordPress 5.2.5, CiviCRM 5.21.1, PHP 7.2.18 Background: At some point in a previous upgrade - I suspect from 5.19.x - my database tables haven't updated properly. This resulted in my ...
0
votes
1answer
43 views

Is there a specific Exception for the API4 like CiviCRM_API3_Exception?

There is a specific Exception for the CiviCRM API3 called CiviCRM_API3_Exception. Is there a similar specific Exception for API4 or do I just catch the standard Exception?
0
votes
1answer
28 views

Can I update the id of an existing OptionValue?

I'm trying to update the ID of an existing OptionValue using API v4. I get "Cannot update the id of an existing OptionValue" error. Is there another way to do that?
1
vote
0answers
45 views

Mandatory key(s) missing from params array: entity_id

Using a fairly generic CiviCRM contribution page with membership (CiviCRM 5.19.4 + Drupal 7) and CiviDiscount (3.7). When a 100% discount code is used, instead of completing, the above error is ...
2
votes
0answers
36 views

Related membership gets deleted upon updating owner membership via API

I would like to make several people a member, linked to 1 payment person A: membership (+ contribution) person B: membership (related to membership person A) $contact_a = 2; $contact_b = 3; $...

1
2 3 4 5
10