{
    "name": "Derash Pay API",
    "version": "v1",
    "auth": "Authorization: Bearer dp_secret_test_<your_secret>",
    "rate_limit": "60 requests per minute per API key (429 on breach)",
    "endpoints": {
        "GET  /api/v1/ping": "Verify the secret key. Returns merchant/project/mode.",
        "POST /api/v1/charges": "Create a charge directly. body: { amount(minor int), currency, psp, description? }",
        "POST /api/v1/checkout_sessions": "Create a hosted checkout. body: { amount, currency, return_url?, cancel_url?, allowed_psps?, ... } -> returns a URL to redirect the customer to.",
        "GET  /api/v1/transactions": "List transactions. query: { limit?, starting_after?, status?, mode?, psp? } -> { object:\"list\", data:[], has_more:bool }",
        "POST /api/v1/refunds": "Refund a succeeded charge. body: { transaction_id, reason? } -> refund object. Test mode auto-succeeds."
    },
    "docs": "Test charges auto-succeed; live charges remain pending until PSP wiring lands."
}