Strike icon

Strike

Interact with Strike API for Bitcoin and Lightning payments

Invoice → Create Quote

AI-generated

Summary

Create a quote for an existing invoice by specifying the invoice ID and an optional description hash.

Inputs

  • Invoice ID (required) — The ID of the invoice to create a quote for.
  • Description Hash — An optional string to provide a description hash for the quote.

Output shape

a JSON object containing the created quote details.

Returns the API response JSON representing the quote created for the specified invoice. The description hash is optional and included in the request body only if provided.

Examples

Example 1: Create a quote for an invoice with ID 'inv_12345' with no description hash.

Set Invoice ID to 'inv_12345' and leave Description Hash empty.

Example 2: Create a quote for an invoice with ID 'inv_12345' with a description hash 'abc123'.

Set Invoice ID to 'inv_12345' and Description Hash to 'abc123'.

Discussion