GET
/
intent
/
{id}
curl --request GET \
  --url https://api.pushcash.com/intent/{id} \
  --header 'Authorization: Bearer <token>'
{
  "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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The intent ID

Response

200
application/json
Successful operation
id
string
required
idempotency_key
string | null
required

The value passed in the X-Idempotency-Key header of the create intent request

created_at
string
required

Creation timestamp for the Intent

direction
enum<string>
required

Direction of the money flow, from the perspective of the Push Account

Available options:
cash_in,
cash_out
user_id
string
required
amount
integer
required

Amount for the transaction, in smallest unit of specified currency (ie if currency is USD, the unit would be cents)

currency
enum<string>
required

Currency associated with the amount

Available options:
USD
status
enum<string>
required
Available options:
created,
approved,
declined,
pending,
canceled
transactions
object[]
required
dispute
object
required

A dispute received from the payment network tied to an intent

display_loyalty
boolean
required

Whether the loyalty opt-in screen will be displayed in the session

approval_mode
enum<string>
required

How the intent should be approved and submitted for processing

Available options:
automatic,
manual
payment_credential
object | null
required

The details for the user's payment credential

rail
enum<string> | null
required

The payment rail used to complete the payment intent. Only defined once a payment intent has been processed.

Available options:
card,
ach
account
object
required
guarantee_amount
integer | null

The amount guaranteed by Push for the transaction. Only defined when direction is cash_in.

decline_category
enum<string>

The high level reason why the intent was declined, included if the status is "declined"

Available options:
unapproved_amount,
fraud_risk,
connection_error,
transaction_limit
loyalty_opt_in
boolean | null

[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.