cURL
curl --request POST \ --url https://api.sandbox.busha.so/v1/payments/links \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "fixed": true, "one_time": true, "name": "<string>", "title": "<string>", "description": "<string>", "target_currency": "BTC", "quote_amount": "100", "quote_currency": "BTC", "target_amount": "100", "require_extra_info": [ { "field_name": "<string>", "required": true } ], "images": [ "<string>" ], "allow_customer_amount": true, "amount_limit": { "min_amount": "100", "max_amount": "100" }, "allow_quantity_selection": true, "dry_run": true } '
201
Example
{ "status": "success", "message": "message for success", "data": { "id": "bus_123456789", "profile_id": "bus_123456789", "fixed": false, "one_time": false, "link": "https://pay.busha.io/charges/123456789", "name": "Payment Link", "title": "<string>", "description": "<string>", "target_currency": "BTC", "status": "pending", "created_at": "2023-10-15T12:15:30Z", "updated_at": "2023-10-15T12:15:30Z", "quote_amount": "100", "quote_currency": "BTC", "target_amount": "100", "meta": { "images": [ "<string>" ], "allow_customer_amount": true, "amount_limit": { "min_amount": "100", "max_amount": "100" }, "allow_quantity_selection": true, "require_extra_info": [ { "field_name": "<string>", "required": true } ] }, "pub_key": "<string>", "expires_at": "2023-10-15T12:15:30Z" } }
Create a payment link
Bearer Authentication
User profile header
"BUS_YOK8tp5Zga01qOKEsqp07"
A valid currency
1 - 10
"BTC"
decimal value
"100"
Show child attributes
if true, will not create a payment transfer
Successful response
General response Values
success
error
"success"
"message for success"