Gennius loyalty reward units issued to an email address
Gennius loyalty reward units issued to an email address. Suited to agents and apps that reward a user, settle a promotion or top up a Gennius rewards balance. Paid with USDC on Base, Polygon, Arbitrum One, Monad and Solana; on Base it also accepts ONED (1:1 with USDC). One unit costs 0.00675 USDC; the amount must be a multiple of it, from 0.00675 to 9999.99675 USDC depending on the network. Returns a receipt with units bought, network, settlement tx hash and product id.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://x402.gennius.one/rewards/purchase
| Category | Commerce and shopping |
|---|---|
| Provider host | x402.gennius.one |
| Networks | eip155:137, eip155:143, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 59 from 14 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"amount": "0.00675",
"email": "buyer@example.com"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"amount": {
"description": "Amount to spend, as a decimal string with at most 6 decimals, the same in USDC or ONED (1:1). It buys amount / 0.00675 reward units, so it must be a multiple of 0.00675. Accepted range per network and token: Base USDC 0.00675-9999.99675, Base ONED 0.00675-999.999, Polygon USDC 0.00675-9999.99675, Arbitrum One USDC 0.00675-999.999, Monad USDC 0.00675-999.999, Solana USDC 0.00675-999.999.",
"pattern": "^(0|[1-9][0-9]{0,11})(\\.[0-9]{1,6})?$",
"type": "string"
},
"email": {
"description": "Email address the reward and the receipt are issued to.",
"maxLength": 254,
"minLength": 3,
"type": "string"
}
},
"required": [
"email",
"amount"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"error": {
"description": "Present when ok is false. invalid_body (HTTP 400): The body is not a JSON object with email and amount. invalid_email (HTTP 400): email is missing or is not a valid email address. invalid_amount (HTTP 400): amount is not a decimal string with at most 6 decimals (USDC or ONED, worth the same), e.g. \"1\" or \"0.25\". amount_below_unit_price (HTTP 400): amount is below the price of one reward unit. amount_not_multiple_of_unit_price (HTTP 400): amount is not a multiple of the unit price, so part of it would buy nothing. amount_below_minimum (HTTP 400): amount is below the minimum purchase of every network; see limits. amount_above_maximum (HTTP 400): amount is above the maximum purchase of every network; see limits. amount_outside_network_limits (HTTP 400): no network accepts this amount (it falls between their limits); see limits. payment_required (HTTP 402): Payment needed: the PAYMENT-REQUIRED header carries the x402 requirements. payment_rejected (HTTP 402): The payment does not match any offered requirement or failed verification; nothing was charged. settlement_failed (HTTP 402): The facilitator refused to settle the payment; reason has its code. Nothing was charged. payment_identifier_conflict (HTTP 403): This payment id was already used for a different purchase; a new purchase needs a new id. payment_in_progress (HTTP 403): An earlier payment with this id is still being processed; a retry with the same id gets its outcome. settlement_pending (HTTP 403): An earlier payment with this id may still settle; a later retry with the same id gets its outcome. settled_receipt_unavailable (HTTP 403): This payment id was paid, but its receipt is no longer available. internal_error (HTTP 500): Unexpected server error. facilitator_unavailable (HTTP 502): The payment facilitator cannot be reached; nothing was charged and the purchase can be retried later. settlement_outcome_unknown (HTTP 502): It is not known whether the payment settled. A retry with the same payment id gets the receipt if it did; a payment under a new id would be a second charge.",
"enum": [
"invalid_body",
"invalid_email",
"invalid_amount",
"amount_below_unit_price",
"amount_not_multiple_of_unit_price",
"amount_below_minimum",
"amount_above_maximum",
"amount_outside_network_limits",
"payment_required",
"payment_rejected",
"settlement_failed",
"payment_identifier_conflict",
"payment_in_progress",
"settlement_pending",
"settled_receipt_unavailable",
"internal_error",
"facilitator_unavailable",
"settlement_outcome_unknown"
],
"type": "string"
},
"message": {
"description": "Present when ok is false: the error in words.",
"type": "string"
},
"ok": {
"description": "true with HTTP 200 and a receipt; false on an error.",
"type": "boolean"
},
"receipt": {
"description": "Present when ok is true: units bought, amount paid, network, settlement transaction hash, payer and product id.",
"type": "object"
}
},
"required": [
"ok"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}