Documentation Index Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt
Use this file to discover all available pages before exploring further.
The “List Transactions” API allows to retrieve a paginated list of transactions. Customize your results by filtering transactions based on name, alt type, transaction status, payment mode, date range, type of source, contact, subscription id, entity id or paginate through the list using the provided query parameters. This endpoint provides a straightforward way to explore and retrieve transaction information.
GET https://services.leadconnectorhq.com/payments/transactions
Autorizacion
Bearer token generado desde el portal Leadway. Ver Autenticacion .
Version
string
default: "2021-07-28"
required
Version de la API.
Query parameters
locationId
string
default: "3SwdhCu3svxI8AKsPJt6"
LocationId is the id of the account.
altId
string
default: "3SwdhCu3svxI8AKsPJt6"
required
AltId is the unique identifier e.g: account id.
altType
string
default: "account"
required
AltType is the type of identifier.
startAt
string
default: "2024-02-01"
Starting interval of transactions.
endAt
string
default: "2024-02-13"
Closing interval of transactions.
Source of the transactions.
entitySourceSubType
string
default: "two_step_order_form"
Source sub-type of the transactions.
search
string
default: "Awesome transaction"
The name of the transaction for searching.
subscriptionId
string
default: "sub_1KGcXDCScnf89tZoVkoEMCEL"
Subscription id for filtering of transactions.
entityId
string
default: "61dd0fe9c077f73e67f78803"
Entity id for filtering of transactions.
contactId
string
default: "XPLSw2SVagl12LMDeTmQ"
Contact id for filtering of transactions.
The maximum number of items to be included in a single page of results
The starting index of the page, indicating the position from which the results should be retrieved.
Respuestas
200 - Successful response
An array of transactions _id
string
default: "61dd0feac077f72010f78804"
required
The unique identifier for the transaction.
altId
string
default: "3SwdhCu3svxI8AKsPJt6"
required
AltId is the unique identifier eg: account id.
altType
string
default: "account"
required
AltType is the type of identifier.
contactId
string
default: "XPLSw2SVagl12LMDeTmQ"
Contact id corresponding to the transaction.
mergedFromContactId
string
default: "XPLSw2SVagl12LMDeTmQ"
ID of the contact that was merged from.
contactName
string
default: "James Bond"
Contact name corresponding to the transaction.
contactEmail
string
default: "james.bond@leadwaycrm.com"
Contact email corresponding to the transaction.
Currency in which transaction occurred.
status
object
default: "succeeded"
required
The status of the transaction (e.g., succeeded).
Transaction is in live / test mode.
Entity type of transaction (eg: order).
entityId
string
default: "61dd0fe9c077f73e67f78803"
Entity id for the transaction. e.g: order id
entitySourceType
string
default: "funnel"
required
Entity source type of transaction (eg: funnel).
entitySourceSubType
string
default: "two_step_order_form"
Entity source sub-type of the transactions.
entitySourceName
string
default: "new funnel"
Entity source name for the transaction.
entitySourceId
string
default: "BDBMEghdIUaqMPEsK349"
Entity source id for the transaction.
Meta content for the entity source of transaction.
subscriptionId
string
default: "sub_1KGcXDCScnf89tZoVkoEMCEL"
Subscription id for transaction.
chargeId
string
default: "in_1KGcXDCScnf89tZohCsmImwE"
Charge id for transaction.
Charge snapshot of transaction.
Payment provider for transaction.
paymentProviderConnectedAccount
string
default: "612ca676b484b241fef9d962"
Payment provider account id for transaction.
ipAddress
string
default: "107.178.194.224"
Ip address from where transaction was initiated.
createdAt
string
default: "2023-11-20T10:23:36.515Z"
required
The creation timestamp of the transaction.
updatedAt
string
default: "2023-11-20T10:23:36.515Z"
required
The update timestamp of the transaction.
Transaction amount refunded.
Transaction payment method details.
fulfilledAt
string
default: "2023-11-20T10:27:36.515Z"
required
The charged timestamp of the transaction.
User ID who created the transaction.
{
"data" : [
{
"_id" : "61dd0feac077f72010f78804" ,
"altId" : "3SwdhCu3svxI8AKsPJt6" ,
"altType" : "account" ,
"contactId" : "XPLSw2SVagl12LMDeTmQ" ,
"mergedFromContactId" : "XPLSw2SVagl12LMDeTmQ" ,
"contactName" : "James Bond" ,
"contactEmail" : "james.bond@leadwaycrm.com" ,
"currency" : "USD" ,
"amount" : "100" ,
"status" : "succeeded" ,
"liveMode" : "false" ,
"entityType" : "order" ,
"entityId" : "61dd0fe9c077f73e67f78803" ,
"entitySourceType" : "funnel" ,
"entitySourceSubType" : "two_step_order_form" ,
"entitySourceName" : "new funnel" ,
"entitySourceId" : "BDBMEghdIUaqMPEsK349" ,
"entitySourceMeta" : "{ domain: \" app.leadwaycrm.com \" , pageId: \" rBVhyYhMsbxbO8ZqOcei \" , pageUrl: \" /v2/preview/rBVhyYhMsbxbO8ZqOcei \" , stepId: \" 5a772f62-3fbc-418b-af1b-be8929dd64c2 \" }" ,
"subscriptionId" : "sub_1KGcXDCScnf89tZoVkoEMCEL" ,
"chargeId" : "in_1KGcXDCScnf89tZohCsmImwE" ,
"chargeSnapshot" : "{ id: \" in_1KGcXDCScnf89tZohCsmImwE \" , object: \" invoice \" , account_country: \" US \" , account_name: \" GHL-Testing \" }" ,
"paymentProviderType" : "stripe" ,
"paymentProviderConnectedAccount" : "612ca676b484b241fef9d962" ,
"ipAddress" : "107.178.194.224" ,
"createdAt" : "2023-11-20T10:23:36.515Z" ,
"updatedAt" : "2023-11-20T10:23:36.515Z" ,
"amountRefunded" : "10" ,
"paymentMethod" : "{ card: { \" brand \" : \" discover \" , \" last4 \" : \" 0012 \" } }" ,
"fulfilledAt" : "2023-11-20T10:27:36.515Z" ,
"createdBy" : "user123"
}
],
"totalCount" : 0
}
422 - Unprocessable Entity
Ejemplo
curl -X GET 'https://services.leadconnectorhq.com/payments/transactions' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Version: 2021-07-28'