Adding Payments
Adds a new payment to Branta. Expires after ttl seconds.
Header parameters
AuthorizationstringRequired
Authorization header with Bearer token is required to authorize the request. Format: Bearer {your_api_key}.
Keep your API key confidential.
Body
ttlintegerRequiredExample:
Branta will remove the payment after ttl seconds.
86400descriptionstringOptionalExample:
Order #123metadatastringOptionalExample:
Optional stringified JSON to show the user.
{"Name": "S*****", "Email": "s******.com"}Responses
201
Payment created successfully
No content
401
Unauthorized
application/json
422
Unprocessable Content
application/json
post
/paymentsPOST /v2/payments HTTP/1.1
Host: staging.branta.pro
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 344
{
"destinations": [
{
"value": "lnurl1dp68gurn8ghj7c3wwdshguewvdhkvjndatxvsmtf5csdymt9v",
"zk": false
},
{
"value": "ark1qq4hfssprtcgnjzf8qlw2f78yvjau5kldfugg29k34y7jmkn5y2",
"zk": false
},
{
"value": "n2s5RV76sAMnQIOTMeRLsKkbS53g2v4gFUnH7i/RtRg4ZpIrDQq8WohDP9obSLLBGVrSnc8dR9TUC89veSg=",
"zk": true
}
],
"description": "Example Description (Optional)",
"ttl": "86400"
}No content
Last updated