POST
/
authorize
curl --request POST \
  --url https://api.pushcash.com/authorize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 1000,
  "currency": "USD",
  "direction": "cash_in",
  "token": "token_3r09eejo3r32rjoj3r23r3"
}'
{
  "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,
  "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.

Body

application/json

Response

200
application/json

Payment approved

The response is of type object.