Sample code for 30+ languages & platforms
VB.NET Requires Chilkat v11.7.0+

Stripe: Find a catalog price by its lookup key

See more Stripe Examples

Retrieve an active price by its catalog lookup key and read its price ID, currency, amount, and billing type.

Stripe documentation and cURL example

Chilkat VB.NET Downloads

VB.NET
Dim success As Boolean = False

'  Requires an unlocked Chilkat bundle. See Global Unlock Sample.
'  Supply a restricted sandbox key from merchant-controlled configuration.
Dim apiKey As String = "YOUR_STRIPE_TEST_KEY"

Dim curl As New Chilkat.HttpCurl
Dim cmd As New Chilkat.StringBuilder
Dim json As New Chilkat.JsonObject

Dim replaced As Integer

Dim lookupKey As New Chilkat.StringBuilder
lookupKey.SetString("support_monthly_usd")

'  curl -X GET "https://api.stripe.com/v1/prices?active=true&lookup_keys%5B%5D={lookupKey}&limit=2" \
'    -u "$STRIPE_API_KEY:" \
'    -H "Stripe-Version: 2026-10-28.endive"
cmd.SetString("curl -X GET ""https://api.stripe.com/v1/prices?active=true&lookup_keys%5B%5D=@LOOKUP@&limit=2""")
cmd.Append(" -u ""@KEY@:""")
cmd.Append(" -H ""Stripe-Version: 2026-10-28.endive""")
replaced = cmd.Replace("@LOOKUP@",lookupKey.GetEncoded("url_rfc3986","utf-8"))
replaced = cmd.Replace("@KEY@",apiKey)
success = curl.DoYourThing(cmd.GetAsString())
If (success <> True) Then
    Debug.WriteLine("No HTTP response. Chilkat failure code: " & curl.FailReason)
    Exit Sub
End If

success = curl.GetResponseJson(json)
If ((curl.StatusCode <> 200) Or (success <> True)) Then
    Debug.WriteLine("Stripe HTTP " & curl.StatusCode & "  Request-Id: " & curl.GetResponseHeaderField("Request-Id"))
    If (success = True) Then
        Debug.WriteLine(json.StringOf("error.message"))
    End If

    Exit Sub
End If


If ((json.SizeOfArray("data") <> 1) Or (json.BoolOf("has_more") = True)) Then
    Debug.WriteLine("Expected one active price for this lookup key.")
    Exit Sub
End If


Debug.WriteLine("id = " & json.StringOf("data[0].id"))
Debug.WriteLine("lookup_key = " & json.StringOf("data[0].lookup_key"))
Debug.WriteLine("currency = " & json.StringOf("data[0].currency"))
Debug.WriteLine("unit_amount_decimal = " & json.StringOf("data[0].unit_amount_decimal"))
Debug.WriteLine("type = " & json.StringOf("data[0].type"))