get https://secure.fusebill.com/v1/PaymentActivities/
This function returns a specific payment activity using the Fusebill generated ID
Path Parameters
Property | Type | Description |
---|---|---|
PaymentActivityId | Integer | The Fusebill generated ID that uniquely identifies the payment activity object |
Examples
curl –X GET https://secure.fusebill.com/v1/PaymentActivities/{PaymentId} \
-H "Content-Type: application/json" \
-H "Authorization: Basic {APIKey}"
//Setup payment ID
Int paymentId = {PaymentId}
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://secure.fusebill.com/v1/PaymentActivities/" + paymentId);
//Add Content type
request.ContentType = "application/json";
request.ContentLength = 0;
//Add Api key authorization
request.Headers.Add(HttpRequestHeader.Authorization, "Basic "+apiKey);
//Set request method
request.Method = "GET";
//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 Requests
import requests
#Pass in a dictionary to the Headers parameter
headers = {'Authorization' : 'Basic {APIKey}', 'Content-Type' : 'application/json'}
#Pass in your URI and Headers
r = requests.get('https://secure.fusebill.com/v1/PaymentActivities/{paymentId}', headers=headers)
print(r.content)
Response
{
"customerId": 100156,
"status": "Successful",
"effectiveTimestamp": "2019-08-10T10:40:32",
"createdTimestamp": "2019-05-10T10:57:12",
"source": "Manual",
"method": "CreditCard (Visa ending in 1111)",
"transactionType": "Collect",
"amount": 5,
"gatewayFee": null,
"currency": "USD",
"transaction": {
"paymentActivityId": 4562138,
"reference": null,
"effectiveTimestamp": "2019-08-07T09:03:25",
"description": null,
"customerId": 100156,
"originalPaymentActivityId": null,
"amount": 5,
"currency": "USD",
"invoiceAllocations": [],
"refunds": [],
"unallocatedAmount": 5,
"refundableAmount": 5,
"gatewayFee": null,
"settlement": null,
"id": 87874562,
"uri": "https://secure.fusebill.com/v1/payments/87874562"
},
"paymentGateway": {
"authorizationCode": "4f25ecdd-9911-4381-b046-ab45156cf175",
"authorizationResponse": null,
"gatewayId": 2987320,
"gatewayName": "Test CC",
"secondaryTransactionNumber": "5ff589b9-1121-7966-bb88-d594a24c88c9"
},
"methodIsAch": false,
"parentCustomerId": null,
"reconciliationId": "54951b79-88f5-b879-579a12d359e",
"id": 2153367,
"uri": "https://secure.fusebill.com/v1/PaymentActivities/2153367"
}
{
"ErrorId": 0,
"HttpStatusCode": 404,
"Errors": [
{
"Key": "Api Error",
"Value": "PaymentActivityJournal with id 3 not found."
}
]
}