2. Update Partner Settings

  1. Here's the OpenAPI Spec for Fountain Partner API.
  1. Import OpenAPI Spec into Postman and then Export Postman Collection
  1. To get your Sandbox running update the following values provided in the setup package:
Field API Param or Header Description
API Key partner_api_key Provided in the X-ACCESS-TOKENheader to authenticate API requests.
External ID partner_id Unique identifier for your Partner account.
Sandbox Host base_url Endpoint URL for Partner API requests. Update made to Sandbox will use https://partners-sandbox.fountain.com.
  1. Next conduct a GET request using the Account External ID and API Key provided in your Setup Package

GET Show Partner

curl --request GET \
     --url https://partners-sandbox.fountain.com/v1/partners/abcabc77-1111-2222-3333-687790b60123 \
     --header 'Accept: application/json' \
     --header 'X-ACCESS-TOKEN: abcddadd-abcd-1234-5678-1265f613b2e4'

GET Show Partner Response

{
  "data": {
    "id": "abcabc77-1111-2222-3333-687790b60123",
    "type": "partner",
    "attributes": {
      "applicant_redirect_url": null,
      "applicant_webhook": null,
      "install_webhook": null,
      "name": "Example Test Partner",
      "settings_auth_header": "X-FOUNTAIN-ACCOUNT-KEY",
      "settings_auth_method": "auth_header",
      "settings_password": null,
      "settings_username": null,
      "settings_webhook": null,
      "uninstall_webhook": null,
      "api_key": "abcddadd-abcd-1234-5678-1265f613b2e4",
      "label_keys": []
    }
  }
}
  1. Now let's update those Account Settings.

The URL defined in applicant_webhook is the most important Partner Account Setting because this is the endpoint Fountain will send all the Applicant Data to.

PUT Update Partner

curl --request PUT \
     --url https://partners-sandbox.fountain.com/v1/partners/abcabc77-1111-2222-3333-687790b60123 \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'X-ACCESS-TOKEN: abcddadd-abcd-1234-5678-1265f613b2e4' \
     --data '
{
     "partner": {
          "applicant_webhook": "https://webhook.site/applicant"
     }
}'

PUT Update Partner Response

{
  "data": {
    "id": "abcabc77-1111-2222-3333-687790b60123",
    "type": "partner",
    "attributes": {
      "applicant_redirect_url": null,
      "applicant_webhook": "https://webhook.site/applicant",
      "install_webhook": null,
      "name": "Example Test Partner",
      "settings_auth_header": "X-FOUNTAIN-ACCOUNT-KEY",
      "settings_auth_method": "auth_header",
      "settings_password": null,
      "settings_username": null,
      "settings_webhook": null,
      "uninstall_webhook": null,
      "api_key": "abcddadd-abcd-1234-5678-1265f613b2e4",
      "label_keys": []
    }
  }
}
  1. Additional Settings Considerations:
  1. For more info on Partner Settings check out Configuration.