Receive
post
Header parameters
AuthorizationstringRequired
Authorization: Bearer header with token is required.
Keep your API key confidential.
Body
ttlintegerRequiredExample:
Branta will remove the payment after ttl seconds.
86400metadatastringOptionalExample:
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/payments
POST /v2/payments HTTP/1.1
Host: staging.guardrail.branta.pro
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 177
{
"destinations": [
{
"value": "n2s5RV76sAMnQIOTMeRLsKkbS53g2v4gFUnH7i/RtRg4ZpIrDQq8WohDP9obSLLBGVrSnc8dR9TUC89veSg=",
"type": "bitcoin_address",
"primary": true,
"zk": true
}
],
"ttl": 86400
}No content
Zero Knowledge
Encrypt the destination before POST. A send lookup of a bare address is unknown. The SDK encrypts for you. HTTP callers use this algorithm:
Last updated

