Skip to main content
POST
/
user
/
{id}
/
url
Create Widget URL
curl --request POST \
  --url https://api.pushcash.com/user/{id}/url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "direction": "cash_in",
  "type": "card_only"
}'
{
  "url": "https://cdn.pushcash.com/widget/?param=1&param=2&param=3"
}

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 identifier for the user

Example:

"user_28CJjV7P4Go5PNJvfzghiD"

Body

application/json
direction
enum<string>
required

Direction of the payment.

  • Submit cash_in for deposits or purchases
  • Submit cash_out for withdrawals or redemptions
Available options:
cash_in,
cash_out
type
enum<string>

The type of payment. The payment type is Secure Debit if "type" is not supplied. When card_only is specified, direction defaults to cash_in.

Available options:
card_only
Example:

"card_only"

Response

Widget URL created successfully

url
string
Example:

"https://cdn.pushcash.com/widget/?param=1&param=2&param=3"