Skip to content

Developers

Mostly about Wild Apricot API. Feel free to share examples of your code!

99 results found

  1. OAuth SSO - Cannot get token

    I'm trying to generate a token but I always get a "HTTP/1.1 400 Bad Request"

    curl -v --data '' --request POST \
    --url "https://oauth.wildapricot.org/auth/token?client_id=myapps&grant_type=authorization_code&code=bbd4170f875d16b6124e82e4a336f70&scope=contacts_me&redirect_uri=http%3A%2F%2Flocalhost%3A8080" \
    --header 'Authorization: Basic aHBzY2cDp1OHR0NWU1OWpoc2Y1bmNrcjNvcjhyNnR0eHFhNng=' \
    --header 'Content-Type: application/x-www-form-urlencoded'

    --data '' is used to set "Content-Type: 0", if its not included I get a 413 error

    Is there something wrong with my curl that i provided?

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  2. API Report to include event cancellations

    The website provides a method to export all registrants. This report includes cancelled registrants, and those registrants are marked as such.

    I have a need to provide a list of all event registrants (including cancellations) to the various event organizers on a regular basis. I am currently using the "Events.EventRegistrations" API. However, it does not include the cancelled registrants. Is there a way I can include the cancelled registrants via an API? The "Export Registrants" report on the website will do this, but I need to automate this process.

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  3. Payment and invoice allocation

    I have posted some payments via the payments API with the following JSON:
    {
    "Value": 0.65,
    "DocumentDate": "2022-12-18",
    "Invoices": [ {"id": 002049} ],
    "Tender": {"id": 1038048},
    "Contact": {"id": 12345678},
    "Comment": "Test Payment to allocate to invoice",
    "PaymentType": "InvoicePayment"
    }
    The invoice number is correct (and has to be 0 justified otherwise the API fails), the payment is correctly entered in Wild Apricot but the response returns <AllocatedValue>0.0000</AllocatedValue>
    As a result, the payment needs to be manually settled in Wild Apricot against that same invoice.
    I expected the provision of the invoice number would automatically settle the payment. Did I miss…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  4. API select help needed

    Wondering why this isn't working. I want to filter the contact information down to just Display Name and Contact ID. My payload has this in it:

    $queryParams = array(
    '$async' => 'false', // execute request synchronously
    '$select' => 'DisplayName,User ID',
    );

    What do I have to change to get the select to work? I am still getting the entire data set for every contact.

    The URL is encoded like this: URL:https://api.wildapricot.org/v2/Accounts/391511/contacts/?%24async=false&%24select=DisplayName%2CUser+ID

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  5. 403 response on PUT request

    Hi

    I am trying to update a field on a contact using the API.

    I am able to authenticate and get a valid oAuth token with the 'auto' scope and I am able to retrieve the full list of contacts using the API.

    However, I am getting a 403 error code when I am trying to update a contact using this endpoint:
    /accounts/{accountId}/contacts/{contactId}

    This is the payload that I am passing in the body of the request:
    {
    "Id": <ContactId>,
    "FieldValues": [
    {
    "FieldName": "First name",
    "Value": "Mike"
    }
    ]
    }

    Any idea of why I would be getting a…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  6. Events filter Isupcoming doesn't work

    Using the following base:
    https://api.wildapricot.org/v2.1/Accounts/Events?

    I can successfully list ALL events, or filter the list by Name using substringof, but...

    The following filters don't work:
    '$filter' => 'EndDate lt 2022-12-31'
    '$filter' => 'IsUpcoming eq true'
    '$filter' => 'IsUpcoming eq True'

    What gives?

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  7. Is it possible to add custom screens/content to the mobile app?

    We would like to integrate our membership NFTs into the mobile app. Our objective is that our members can access and use their NFTs at our events. This could be as simple as adding a screen to display (carousel style) a series of images that would include NFT images and/or QR codes representing blockchain addresses. More fully, we would like to also be able to display the properties of the NFT. It is not necessary to connect to the member's crypto wallet via the mobile app, as we would just store the NFT data in their membership account.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  8. Is It Possible To Create A Custom OAuth Login Page Using The API?

    I am trying to create my own login page to connect with Shopify using OAuth SSO. I would use Wild Apricots own SSO login page but quite restrictive in what you can achieve from a layout perspective.

    Is it possible to create a custom OAuth login page that could use the API to return a "code" parameter to pass back to an SSO provider?

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  9. Date Format in API Create Event POST

    When creating new events (these are simple RSVP events) via the API interface, the web interface shows the new event in the default timezone of the Wild Apricot account. This means my start date is almost always wrong for these events.

    If I am creating a. new event for Utah, for example, I have set the timezone fields of the API payload as follows ;

    "Details": {
    "DescriptionHtml": "A fun family event",
    "PaymentInstructions": "None",
    "TimeZone": {
    "ZoneId": "USA & Canada",
    "Name": "Mountain Time",
    "UtcOffset": -6
    },

    <truncated>

    . When I run my POST command I get back an event_id as…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    4 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  10. Saved search api Get Contact vs Member saved searches, and add creation date

    When getting the saved saved search api results, add a divider between contact vs member saved searches. Have a way to call contact vs member saved searches based on where they were created. Also, save the creation date of the saved search and who created the saved search. This information is shown on Wild Apricot within the Saved search section but is not accessible in the api results.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  11. How to add a Registrant to a Waitlist using the API?

    I have a C# application that successfully adds registrants to an existing event. However, I have been unable to add registrants to the Waitlist when the event has reached its limit.

    The following documentation on the web shows how to add registrations to an event:

    https://app.swaggerhub.com/apis-docs/WildApricot/wild-apricot_public_api/7.6.0#/Events.EventRegistrations/CreateEventRegistration

    However, I have been unable to locate similar documentation for adding to the Waitlist. Does anyone know how to add new registrants to an Event's Waitlist?

    Appreciate any assistance.

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  12. current token does not provide access to scope 'contacts_me'

    I'm trying to simply create software that pulls our contact list. I'm using the API key I've created, I granted full-access. Whenever I try, in Postman, to pull account or contacts, I get "current token does not provide access to scope 'contacts_me'. HTTP 403. I thought the whole point of using the API key is that I get full access, what am I missing?

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  13. Why was includeDetails removed from /contacts/me

    I am trying to use the API via JS on a WA page. I need a to fetch a specific field from the logged in member. The docs point to an api version 1 swagger that says that FieldValues can be obtained by appending ?includeDetails=true to the URL - however, this does not work for version 2, and version 1 is not accessible using /sys/api/v1/accounts/

    I also cannot access https://api.wildapricot.org/publicview/v1/accounts through JS due to CORS. How can I get FieldValues via JS on a WA page?

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  14. WordPress Login idiosyncrasy

    I am getting odd results when I use the WA Login Plugin - If the user has never logged in before everything works good - a new user account is created and the information is populated perfectly -

    The problem is I created the wordpress site as an admin with my user id and password - the password and email address are the same on both sites but i get "An unknown error has occurred. Please try again later."

    Is the match on the email address, the user name? what do i need to do to correct this ( i…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  15. API endpoint to edit or add access groups to a selected member

    Is there an available API endpoint to edit or add access groups to a selected member? From what I've understood in the documentation the API endpoint available is to retrieve the access groups or the access group of a member. But there is no endpoint to edit or add access groups to a target member.

    4 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  16. Contact Webhooks

    How to get whether or not a contact or member was deleted using webhooks without running too many api calls. Could there be an upgrade to the contacts webhooks and return 'Action' similar to events or that of membership?

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  17. Contacts API: filter non-members

    How do I access non-members using the Contacts API. I have already tried '&$filter=Member ne true' but that seems to just return a list of all the contacts including members that have a membership associated to their account.

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  18. Contact API Returns Dataset or Status

    Sometimes the v2.2 API calls (done via API token and auth built on the PHP class from your sampleApplication.php on GitHub) to get a specific Contact returns the user's fieldset, and sometimes it returns an object with a State of either 'Waiting' or 'Complete'.

    I've tried adding ?$async=false but it doesn't seem to change anything. Matter of fact, when I added $async=false&$select='First name','Last name' (as mentioned here in the forums, previously) I got a 400 bad request.

    It seems like sometimes the API kicks butt and returns everything I need instantly, but other times it sends a Status of either…

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    3 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  19. contact/me does not return an "Organization"

    I am using accounts/{accountId}/contacts/me endpoint to get details for the currently-logged in user. The API documents there should be an "Organization" in the response. However, this field is always null/the empty string. Is there a way to get this information?

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  20. Contacts API returns incorrect Profile Last Updated

    I recently (2021-12-19) suspended and archived a member (ID 57031785). The contacts API is still returning the timestamp of the previous update (2021-06-18T10:58:17.37-07:00) for Profile Last Updated.

    This invalidates any API usage that seeks to minimize server load and response time by fetching only changed records.

    I believe this is a bug, and it prevents me from using the Contacts API effectively. I will have to do a full contacts dump every time I want to synchronize my local DB, and will increase the load on your server significantly, since this is done at least once a day, sometimes more…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  API  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
  • Don't see your idea?

Developers

Categories

Feedback and Knowledge Base