SatSale API (0.1)

Download OpenAPI specification:Download

API for creating Bitcoin invoices and processing payments.

SatSale /api/

Default namespace

Check Payment

query Parameters
uuid
string

A payment uuid. Received from /createpayment.

Responses

Response samples

Content type
application/json
{
  • "payment_complete": 0,
  • "confirmed_paid": 0,
  • "unconfirmed_paid": 0,
  • "expired": 0
}

Complete Payment

query Parameters
uuid
string

A payment uuid. Received from /createpayment.

Responses

Create Payment

query Parameters
amount
string

An amount in USD.

method
string

(Optional) Specify a payment method: bitcoind for onchain, lnd for lightning).

w_url
string

(Optional) Specify a webhook url to call after successful payment. Currently only supports WooCommerce plugin.

Responses

Response samples

Content type
application/json
{
  • "uuid": "string",
  • "dollar_value": 0,
  • "btc_value": 0,
  • "method": "string",
  • "address": "string",
  • "time": 0,
  • "webhook": "string",
  • "rhash": "string",
  • "time_left": 0
}