{
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"additionalProperties": false,
"required": [
"provider",
"amount_usd_cents",
"currency",
"original_pay_usd_cents",
"pay_usd_cents",
"discount_usd_cents",
"discount_ratio",
"expected_credits",
"credits_per_usd",
"credit_basis",
"fee_usd_cents",
"estimated_net_credits",
"fee_mode",
"promotion_codes_enabled",
"discount_reason",
"final_payment_amount_at_checkout",
"checkout_request"
],
"properties": {
"provider": {
"enum": [
"stripe",
"nowpayments"
]
},
"amount_usd_cents": {
"type": "string",
"pattern": "^[1-9][0-9]{0,7}$"
},
"currency": {
"const": "USD"
},
"original_pay_usd_cents": {
"type": "string",
"pattern": "^[1-9][0-9]*$"
},
"pay_usd_cents": {
"type": "string",
"pattern": "^[1-9][0-9]*$"
},
"discount_usd_cents": {
"const": "0"
},
"discount_ratio": {
"const": "1.0000"
},
"expected_credits": {
"type": "string",
"pattern": "^[0-9]+\\.[0-9]{4}$",
"description": "Purchased credits before NOWPayments deduct-mode fees; never proof of wallet arrival"
},
"credits_per_usd": {
"const": 100
},
"credit_basis": {
"enum": [
"purchased_quota",
"net_settlement"
]
},
"fee_usd_cents": {
"type": "null"
},
"estimated_net_credits": {
"type": "null"
},
"fee_mode": {
"enum": [
null,
"deduct",
"on_top"
]
},
"promotion_codes_enabled": {
"type": "boolean"
},
"discount_reason": {
"enum": [
"no_discount",
"checkout_promotion_only"
]
},
"final_payment_amount_at_checkout": {
"const": true
},
"checkout_request": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"amount",
"payment_method"
],
"properties": {
"amount": {
"type": "integer",
"minimum": 1,
"maximum": 10000
},
"payment_method": {
"const": "stripe"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"amount_usd_cents",
"pay_currency",
"fee_mode"
],
"properties": {
"amount_usd_cents": {
"type": "string",
"pattern": "^[1-9][0-9]*$"
},
"pay_currency": {
"enum": [
"usdttrc20",
"usdtbsc",
"usdterc20",
"usdtmatic",
"usdcsol",
"usdcbsc",
"usdc",
"usdcmatic"
]
},
"fee_mode": {
"enum": [
"deduct",
"on_top"
]
}
}
}
]
}
}
}
}
}
}
}
}