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¶m=2¶m=3"
}Generate a URL for the Push User Widget or Apple Pay SDK. If type is omitted, generates a widget URL. If type is apple_pay, generates a URL for use with the SDK’s ApplePay launcher.
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¶m=2¶m=3"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The identifier for the user
"user_28CJjV7P4Go5PNJvfzghiD"
Direction of the payment.
cash_in for depositscash_out for withdrawalscash_in, cash_out Set to apple_pay to generate a URL for use with the SDK's ApplePay launcher. If omitted, generates a widget URL.
apple_pay URL created successfully
A widget URL or Apple Pay URL, depending on the type parameter.