FrontStream Docs
FrontStream Payments
FrontStream Payments
  • Introducing our Embedded Form
    • Overview and Features
    • Payment Methods process
    • How to implement
    • Compare Embedded Form and Direct API integration
  • Welcome to our Payment API
    • Overview
    • Quick Start
    • API references
      • Search for a Charity for your Donation
      • Make a Payment
      • Learn how to cover Fees
      • Test Payment API Features
        • CharitySearch
        • Payment
        • Fee
      • Temp - Make a Payment - API specification
      • Temp - Charity Search API specification
      • Payment - Specification
      • Calculate Fees - Specification
    • Specification
    • CharitySearch - Specification
Powered by GitBook
On this page
Export as PDF
  1. Welcome to our Payment API

Quick Start

PreviousOverviewNextAPI references

Last updated 4 months ago

Let's get you set up and ready to start using the Payment API

Use your Client credentials

Let's make sure you can gain access to our Payment API. As an API Partner you will be set up with secure credentials to gain access and authenticate your requests. Use your FrontStream assigned ClientId and ClientSecret to retrieve a one time use AccessToken for gaining access to our different API endpoints.

Missing your credentials? Please contact us at:

To try a test and directly interact with the API endpoint click "Test It" and use an embedded API client to send requests with custom headers and variables, then see the live response; essentially letting you test this API directly within this page. When testing please use our Demo URL: https://demo-payments.frontstream.com/api/ClientSession

Client Session Example

Take a look at how you might call this method:

using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

public class Program
{
    public static async Task Main(string[] args)
    {
        using (var client = new HttpClient())
        {
            var url = "/api/ClientSession";
            var requestBody = new
            {
                ClientId = "text",
                ClientSecret = "text"
            };

            var content = new StringContent(
                Newtonsoft.Json.JsonConvert.SerializeObject(requestBody),
                Encoding.UTF8,
                "application/json-patch+json"
            );

            var response = await client.PostAsync(url, content);
            var responseData = await response.Content.ReadAsStringAsync();

            Console.WriteLine(responseData);
        }
    }
}

To make the API request in Postman, follow these steps:

  1. Method: Set to POST.

  2. URL: Enter the API endpoint URL (e.g., https://demo-payments.frontstream.com/api/ClientSession).

  3. Headers:

    • Key: Content-Type

    • Value: application/json-patch+json

  4. Body: Select raw, then choose JSON format. Paste the following JSON:

    {
      "ClientId": "text",
      "ClientSecret": "text"
    }
  5. Send: Click the Send button and view the response in the output section.

For more information please contact us at:

Ready to make your first Payment request?

API references
Page cover image
  • Let's get you set up and ready to start using the Payment API
  • Use your Client credentials
  • POSTThis will create an API AccessToken for an Application
  • Client Session Example
  • For more information please contact us at:
  • Ready to make your first Payment request?

This will create an API AccessToken for an Application

post

Return HTTP Status Code 200 (OK) with AccessToken Returns HTTP Status Code 400 if could not authenticate

Body
ClientIdstringRequired

Unique identifier for the API Partner; provided by FrontStream

ClientSecretstringRequired

Key specifically paired to the clientId

Responses
200
Success
application/json
400
Bad Request
application/json
post
POST /api/ClientSession HTTP/1.1
Host: 
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 41

{
  "ClientId": "text",
  "ClientSecret": "text"
}
{
  "Token": "text",
  "ClientId": "123e4567-e89b-12d3-a456-426614174000",
  "ExpirationDate": "2025-05-18T12:19:21.554Z"
}