Adding Payments

Adding payments

post

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}. This API key is unique to each client and must be included in the header of every request. Failure to provide a valid API key will result in an unauthorized error.

Keep your API key confidential.

Body
Responses
201

Payment created successfully

No content

post
/payments
POST /v1/payments HTTP/1.1
Host: staging.branta.pro
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 112

{
  "payment": {
    "payment": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
    "ttl": "86400",
    "alt_payments": [
      "lnbc....",
      "bc1q..."
    ]
  }
}

No content

Last updated