List Customer Payment Activities

Returns the list of payment type activities that a customer has performed in their account.

Path Parameters

PropertyTypeDescription
customerIdIntegerThe Fusebill generated ID that uniquely identifies the customer

This call supports string filtering (Read More) and datetime/numeric range filtering (Read More)
&query=parameterName:Value

Parameter NameAcceptable ValuesParameter NameAcceptable Values
amountDecimal RangeparentCustomerIdInteger
createdTimestampDate RangePaymentActivityStatusFailed, Successful, Unknown
effectiveTimestampDate RangePaymentMethodTypeCheck, DirectDeposit, CreditCard, Cash, ACH, Paypal
GatewayNameStringPaymentSourceManual, Automatic, SelfServicePortal, Import
modifiedTimestampDate RangePaymentTypeValidate, Collect, Refund

This call supports pagination (Read More)
&pageSize=100&pageNumber=0
This call supports sorting (Read More)
&sortOrder=Ascending or &sortOrder=Descending
&sortExpression=expression

Examples
curl -X GET "https://secure.fusebill.com/v1/customers/{id}/paymentactivities" \
	-H "Content-Type: application/json" \
	-H "Authorization: Basic {APIKey}"
//Json Payload
string jsonData = "";

//Setup API key
string apiKey = "{APIKey}";

//Configure URI
WebRequest request = WebRequest.Create("HTTPS://secure.fusebill.com/v1/customers/{id}/paymentactivities");

//Add Content type
request.ContentType = "application/json";

//Add Api key authorization
request.Headers.Add(HttpRequestHeader.Authorization, "Basic " + apiKey);

//Set request method
request.Method = "GET";

//Add the json data to request
using (var streamWriter = new StreamWriter(request.GetRequestStream()))
{
  streamWriter.Write(jsonData);
  streamWriter.Flush();
  streamWriter.Close();
}

//Perform the request
var httpResponse = (HttpWebResponse)request.GetResponse();

//Record the response from our request
var result = "";
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
  result = streamReader.ReadToEnd();
}
#Import library JSON
import json

#Import library Requests
import requests

#Pass in a dictionary to the Headers parameter
headers = {'Authorization' : 'Basic {APIKey}', 'Content-Type' : 'application/json'}

#Pass in your URI, Payload and Headers
r = requests.get('https://secure.fusebill.com/v1/customers/{id}/paymentactivities', headers=headers)
print(r.content)
Response
[
    {
        "customerId": 2159826,
        "status": "Failed",
        "effectiveTimestamp": "2018-05-18T18:51:17",
        "createdTimestamp": "2018-05-18T18:51:17",
        "source": "Manual",
        "method": "CreditCard (Visa ending in 8052)",
        "transactionType": "Collect",
        "amount": 30,
        "gatewayFee": null,
        "currency": "USD",
        "transaction": null,
        "paymentGateway": {
            "authorizationCode": "12345678",
            "authorizationResponse": "Payment failed",
            "gatewayId": 175265,
            "gatewayName": "Test CC",
            "secondaryTransactionNumber": "6b91d884-386c-48d5-b1fb-0497985b13f8"
        },
        "methodIsAch": false,
        "parentCustomerId": null,
        "reconciliationId": "e3c04e63-3e5e-42fa-8f83-de0d20d54758",
        "id": 1104471,
        "uri": "https://secure.fusebill.com/v1/paymentactivities/1104471"
    },
    {
        "customerId": 2159826,
        "status": "Failed",
        "effectiveTimestamp": "2018-05-18T18:43:42",
        "createdTimestamp": "2018-05-18T18:43:42",
        "source": "Manual",
        "method": "CreditCard (Visa ending in 8052)",
        "transactionType": "Collect",
        "amount": 30,
        "gatewayFee": null,
        "currency": "USD",
        "transaction": null,
        "paymentGateway": {
            "authorizationCode": "12345678",
            "authorizationResponse": "Payment failed",
            "gatewayId": 175265,
            "gatewayName": "Test CC",
            "secondaryTransactionNumber": "4bc97781-c790-49f4-8054-dce3d3c222d3"
        },
        "methodIsAch": false,
        "parentCustomerId": null,
        "reconciliationId": "127e7d58-cef0-4d41-b15b-4bd11d182e93",
        "id": 1104469,
        "uri": "https://secure.fusebill.com/v1/paymentactivities/1104469"
    },
    {
        "customerId": 2159826,
        "status": "Successful",
        "effectiveTimestamp": "2018-05-18T18:42:47",
        "createdTimestamp": "2018-05-18T18:42:47",
        "source": "Manual",
        "method": "CreditCard (Visa ending in 8052)",
        "transactionType": "Validate",
        "amount": 0,
        "gatewayFee": null,
        "currency": "USD",
        "transaction": null,
        "paymentGateway": {
            "authorizationCode": "1477ef1b-5349-4b64-b2cb-3ecb165b92ec",
            "authorizationResponse": "Successful validation",
            "gatewayId": 175265,
            "gatewayName": "Test CC",
            "secondaryTransactionNumber": null
        },
        "methodIsAch": false,
        "parentCustomerId": null,
        "reconciliationId": "90d739d7-c823-48d4-9e28-d1c2b4c99973",
        "id": 1104467,
        "uri": "https://secure.fusebill.com/v1/paymentactivities/1104467"
    },
    {
        "customerId": 2159826,
        "status": "Successful",
        "effectiveTimestamp": "2018-05-18T14:42:13",
        "createdTimestamp": "2018-05-18T14:42:13",
        "source": "Manual",
        "method": "CreditCard (Visa ending in 1111)",
        "transactionType": "Collect",
        "amount": 30,
        "gatewayFee": null,
        "currency": "USD",
        "transaction": {
            "paymentActivityId": 1104206,
            "reference": "",
            "effectiveTimestamp": "2018-05-18T14:42:13",
            "description": null,
            "customerId": 2159826,
            "originalPaymentActivityId": null,
            "amount": 30,
            "currency": "USD",
            "invoiceAllocations": [
                {
                    "invoiceId": 1443472,
                    "invoiceNumber": 218,
                    "amount": 30,
                    "outstandingBalance": 0,
                    "invoiceTotal": 30,
                    "uri": "https://secure.fusebill.com/v1/invoices/1443472"
                }
            ],
            "refunds": [],
            "unallocatedAmount": 0,
            "refundableAmount": 30,
            "gatewayFee": null,
            "settlement": null,
            "id": 26450768,
            "uri": "https://secure.fusebill.com/v1/payments/26450768"
        },
        "paymentGateway": {
            "authorizationCode": "25c8650a-114a-46b9-ba52-a69ea8d84797",
            "authorizationResponse": "Sucessful payment",
            "gatewayId": 175265,
            "gatewayName": "Test CC",
            "secondaryTransactionNumber": "b08f068b-8ca3-4c3a-9c3b-fcc7e90db3a7"
        },
        "methodIsAch": false,
        "parentCustomerId": null,
        "reconciliationId": "2327d280-d24d-4f48-888a-50c1ce29d6ed",
        "id": 1104206,
        "uri": "https://secure.fusebill.com/v1/paymentactivities/1104206"
    },
    {
        "customerId": 2159826,
        "status": "Successful",
        "effectiveTimestamp": "2018-05-17T19:12:35",
        "createdTimestamp": "2018-05-17T19:12:35",
        "source": "Manual",
        "method": "CreditCard (Visa ending in 1111)",
        "transactionType": "Validate",
        "amount": 0,
        "gatewayFee": null,
        "currency": "USD",
        "transaction": null,
        "paymentGateway": {
            "authorizationCode": "1b35449b-9a26-4abc-a215-7b2a322de757",
            "authorizationResponse": "Successful validation",
            "gatewayId": 175265,
            "gatewayName": "Test CC",
            "secondaryTransactionNumber": null
        },
        "methodIsAch": false,
        "parentCustomerId": null,
        "reconciliationId": "1750ff18-b8ba-45cb-84f8-30c844729792",
        "id": 1102833,
        "uri": "https://secure.fusebill.com/v1/paymentactivities/1102833"
    }
]
{
    "ErrorId": 0,
    "HttpStatusCode": 400,
    "Errors": [
        {
            "Key": "Api Error",
            "Value": "Bad request, the query is not valid.  Please check your request and try again."
        }
    ]
}
Language
Authorization