Reverse previously submitted pharmacy claims with a single POST request. Handle returns, billing corrections, and claim adjustments, all through JSON.
Prescription picked up but returned within allowed window
Wrong quantity, days supply, or pricing submitted on the original B1
Patient has different coverage than originally billed. Reverse and rebill
Accidental double submission needs one copy reversed
Reverse the original, then submit a corrected B1 with updated information
curl -X POST https://starlight.claims/api/v1/submit \
-H "X-API-Key: sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{
"transaction_type": "B2",
"patient": {
"first_name": "JANE",
"last_name": "DOE",
"date_of_birth": "19850115",
"gender": "F",
"zip_code": "12345"
},
"insurance": {
"bin_number": "999999",
"pcn": "TEST",
"group_id": "GRP999999",
"cardholder_id": "SAMPLE123456"
},
"prescription": {
"rx_number": "999000001234",
"product_id": "00000000000",
"quantity_dispensed": "28",
"days_supply": "28"
}
}'{
"status": "Accepted",
"message": "Claim reversed successfully",
"original_claim_id": "CLM_20260101120000_abc12345"
}The most common B2 workflow is reverse and rebill: reverse the original claim, then immediately submit a corrected B1 with updated information.
Same API, same simplicity. B2 reversals work exactly like B1 submissions.