Skip to main content
POST
/
user
/
{id}
/
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"
}
'
{
  "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>

Direction of the payment.

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

Set to apple_pay to generate a URL for use with the SDK's ApplePay launcher. If omitted, generates a widget URL.

Available options:
apple_pay

Response

URL created successfully

url
string

A widget URL or Apple Pay URL, depending on the type parameter.