List intents
Retrieves a list of intents
curl --request GET \
--url https://api.pushcash.com/intent/list \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "intent_sandbox_dMggQ93ZYH6DH9LBhVeijE",
"idempotency_key": "f1bbb856",
"created_at": "2023-05-24T20:36:50.694Z",
"direction": "cash_in",
"user_id": "user_28CJjV7P4Go5PNJvfzghiD",
"amount": 1450,
"currency": "USD",
"guarantee_amount": 1450,
"status": "approved",
"decline_category": null,
"transactions": [
{
"id": "txn_230vjroij4985uefjoiu9",
"amount": 1450,
"currency": "USD",
"created_at": "2023-05-24T20:15:18.158Z",
"date": "2023-05-24",
"batch": "398002",
"balance": "settlement",
"type": "intent",
"source_id": "intent_sandbox_dMggQ93ZYH6DH9LBhVeijE",
"status": "settled"
}
],
"dispute": null,
"display_loyalty": false,
"payment_credential": {
"bank_name": "Space Coast Credit Union",
"account": {
"number_mask": "5978",
"routing": "263177903"
},
"card": {
"primary_account_number_mask": "6018",
"expiration": "2024-05-01"
}
},
"rail": "card",
"account": {
"id": "account_WsELzpJOvU6fNafvzWbF6K",
"type": "settlement",
"name": "Settlement Account",
"created_at": "2023-05-24T20:15:18.158Z"
}
}
],
"next_cursor": "vjl8vk3l4o8dhsjlzh=="
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
The cursor for the next page of results to fetch
Filter intents by status. Provide multiple values to retrieve intents with any of the provided statuses.
created
, approved
, declined
, pending
, canceled
Response
The value passed in the X-Idempotency-Key header of the create intent request
Creation timestamp for the Intent
Direction of the money flow, from the perspective of the Push Account
cash_in
, cash_out
Amount for the transaction, in smallest unit of specified currency (ie if currency is USD, the unit would be cents)
Currency associated with the amount
USD
created
, approved
, declined
, pending
, canceled
The unique identifier assigned by Push
Amount of the transaction (signed)
Currency associated with the amount
USD
When the transaction was created (ISO 8061 date string)
The settlement date of the transaction
The batch for the transaction
The account associated with the transaction
The type of transaction
intent
, transfer
, unreconciled
The ID of the intent, dispute, or transfer associated with the transaction. If the transaction is unreconciled, this field will be null
The transaction's settlement status
settled
, pending
The direction of the transaction, as indicated by the sign of the amount
credit
, debit
A dispute received from the payment network tied to an intent
The unique identifier assigned by Push
Amount for the transaction, in smallest unit of specified currency (ie if currency is USD, the unit would be cents)
Currency associated with the amount
USD
When the dispute was created (ISO 8061 date string)
The intent which corresponds to the dispute
The associated network code for the exception
10.1
, 10.2
, 10.3
, 10.4
, 10.5
, 11.1
, 11.2
, 11.3
, 12.1
, 12.2
, 12.3
, 12.4
, 12.5
, 12.6
, 12.7
, 13.1
, 13.2
, 13.3
, 13.4
, 13.5
, 13.6
, 13.7
, 13.8
, 13.9
, 4837
, 4840
, 4849
, 4863
, 4870
, 4871
, 4807
, 4808
, 4812
, 4834
, 4831
, 4842
, 4846
, 4850
, 4999
, 4853
, 4841
, 4854
, 4855
, 4859
, 4860
, R01
, R02
, R03
, R04
, R05
, R06
, R07
, R08
, R09
, R10
, R11
, R12
, R13
, R14
, R15
, R16
, R17
, R18
, R19
, R20
, R21
, R22
, R23
, R24
, R25
, R26
, R27
, R28
, R29
, R30
, R31
, R32
, R33
, R34
, R35
, R36
, R37
, R38
, R39
, R40
, R41
, R42
, R43
, R44
, R45
, R46
, R47
, R50
, R51
, R52
, R53
, R61
, R62
, R67
, R68
, R69
, R70
, R71
, R72
, R73
, R74
, R75
, R76
, R77
, R80
, R81
, R82
, R83
, R84
, R85
The status of the dispute
created
, won
, lost
Whether the loyalty opt-in screen will be displayed in the session
How the intent should be approved and submitted for processing
automatic
, manual
The details for the user's payment credential
The name of the bank associated with the credential
The payment rail used to complete the payment intent. Only defined once a payment intent has been processed.
card
, ach
The unique identifier assigned by Push
The type of account
settlement
The name of the account
When the account was created (ISO 8061 date string)
The balance of the account.
The amount guaranteed by Push for the transaction. Only defined when direction is cash_in
.
The high level reason why the intent was declined, included if the status is "declined"
unapproved_amount
, fraud_risk
, connection_error
, transaction_limit
[IN PROGRESS] Whether the user opted into sharing their data with the operator. Only present if the user was shown the loyalty opt-in screen.
Use cursor for paginating list endpoints in conjunction with the cursor request parameter.
In a response, the value is null if there are no more results to fetch.
curl --request GET \
--url https://api.pushcash.com/intent/list \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "intent_sandbox_dMggQ93ZYH6DH9LBhVeijE",
"idempotency_key": "f1bbb856",
"created_at": "2023-05-24T20:36:50.694Z",
"direction": "cash_in",
"user_id": "user_28CJjV7P4Go5PNJvfzghiD",
"amount": 1450,
"currency": "USD",
"guarantee_amount": 1450,
"status": "approved",
"decline_category": null,
"transactions": [
{
"id": "txn_230vjroij4985uefjoiu9",
"amount": 1450,
"currency": "USD",
"created_at": "2023-05-24T20:15:18.158Z",
"date": "2023-05-24",
"batch": "398002",
"balance": "settlement",
"type": "intent",
"source_id": "intent_sandbox_dMggQ93ZYH6DH9LBhVeijE",
"status": "settled"
}
],
"dispute": null,
"display_loyalty": false,
"payment_credential": {
"bank_name": "Space Coast Credit Union",
"account": {
"number_mask": "5978",
"routing": "263177903"
},
"card": {
"primary_account_number_mask": "6018",
"expiration": "2024-05-01"
}
},
"rail": "card",
"account": {
"id": "account_WsELzpJOvU6fNafvzWbF6K",
"type": "settlement",
"name": "Settlement Account",
"created_at": "2023-05-24T20:15:18.158Z"
}
}
],
"next_cursor": "vjl8vk3l4o8dhsjlzh=="
}