Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Code402 Dev Receipt API
version: 1.3.0
contact:
name: JUANA LIMITED (HCRB / Code402)
url: https://hcrb.in
email: support@code402.dev
x-guidance: 'Pay-per-call deterministic checks with machine-readable x402 challenges. PAID routes declare a published floor in x-payment-info; the 402 challenge body is authoritative for recipient, amount, asset and network, and the configured gas-cost floor may raise the amount — read accepts[0] before authorizing. FREE routes carry security: []. Start with the four flagship checks (iban-check, lei-check, vat-mod97-check, swift-bic-check): 5 free calls/day per caller, then the published per-call floor. If 77 routes is more than your budget allows, GET /.well-known/x402.slim.json for a four-route first-call manifest instead. Receipt verification is free and needs no account: POST /v1/receipt/verify or /v1/receipt/verify/batch (up to 1000 per request), and verifying keys are public at /.well-known/jwks.json so verification never requires calling us. A valid receipt proves the declared signer signed those exact bytes — not settlement, delivery, ownership or the truth of a business claim. Non-custodial throughout: payer to seller, no deposit, no float.'
x-provider-name: JUANA LIMITED (HCRB / Code402)
description: 'Operations tagged Receipt across 2 of this provider''s published API definitions: code402-dev-openapi-hcrb.json, code402-dev-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://hcrb.in
tags:
- name: Receipt
paths:
/v1/receipt/verify:
post:
operationId: receipt_verify
security: []
summary: Verify one signed XDR-1 receipt (free, stateless)
description: 'Recomputes the canonical receipt digest and recovers the secp256k1 signer. A valid result proves the receipt was signed by the declared signer for those exact bytes; it does not prove settlement, delivery or the truth of a business claim. Verifying keys: GET /.well-known/jwks.json — offline verification never requires this endpoint.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- receipt
properties:
receipt:
type: object
description: The full signed XDR-1 receipt returned by a paid call
responses:
'200':
description: Verification result
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
value:
type: object
properties:
valid:
type: boolean
signer_recovered:
type:
- string
- 'null'
declared_signer:
type:
- string
- 'null'
canonical:
type: string
digest:
type: string
'400':
description: INVALID_INPUT — required receipt fields or the signature are missing
tags:
- Receipt
servers:
- url: https://hcrb.in
/v1/receipt/verify/batch:
post:
operationId: receipt_verify_batch
security:
- bearerAuth: []
- {}
x-entitlement-info:
plan: verify-pro
feature: bulk_verify_api
entitled_max_batch: 1000
free_evaluation:
calls_per_day: 5
max_batch_per_call: 10
single_receipt_verify: /v1/receipt/verify
summary: Verify up to 1000 receipts in one request (relying parties)
description: 'Bulk verification for a receipt archive or an explorer crawler. Unauthenticated evaluation callers receive 5 batch calls/day up to 10 receipts per request; pass Authorization: Bearer ek_... (Verifier Pro) for up to 1000 receipts per request across your monthly verification quota. Single-receipt verification at POST /v1/receipt/verify remains free without limit. Every item runs through the same implementation as the single endpoint, so a receipt can never verify on one surface and fail on the other. Verdicts are returned in input order with their index. 1000 is a per-request cap, not a plan quota.'
requestBody:
required: true
content:
application/json:
schema:
oneOf:
- type: object
required:
- receipts
properties:
receipts:
type: array
maxItems: 1000
items:
type: object
- type: array
maxItems: 1000
items:
type: object
responses:
'200':
description: Per-item verdicts plus counts
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
checked:
type: integer
valid:
type: integer
invalid:
type: integer
errors:
type: integer
results:
type: array
items:
type: object
properties:
index:
type: integer
ok:
type: boolean
valid:
type: boolean
signer_recovered:
type:
- string
- 'null'
declared_signer:
type:
- string
- 'null'
digest:
type: string
error:
type: object
scope:
type: string
'400':
description: EMPTY_BATCH or INVALID_INPUT
'402':
description: 'BATCH_VERIFY_ENTITLEMENT_REQUIRED, BATCH_VERIFY_FREE_TIER_EXHAUSTED, or ENTITLEMENT_QUOTA_EXCEEDED — pass Authorization: Bearer ek_... (Verifier Pro) or use free single-receipt POST /v1/receipt/verify'
'413':
description: BATCH_TOO_LARGE — split the batch; the response carries max_batch and received
tags:
- Receipt
servers:
- url: https://hcrb.in
components:
securitySchemes:
OperatorQuotaBearer:
type: http
scheme: bearer
description: Prepaid non-custodial quota key (ck_live_...) purchased at https://hcrb.in/checkout
X402PaymentSignature:
type: apiKey
in: header
name: PAYMENT-SIGNATURE
description: Base64-encoded EIP-3009 transferWithAuthorization voucher on Base (eip155:8453)
x-refined-from:
- code402-dev-openapi-hcrb.json
- code402-dev-openapi.yml