{
    "openapi": "3.0.0",
    "info": {
        "title": "金额转大写 - API文档",
        "version": "1.0.0",
        "description": "该接口可将小写的阿拉伯数字转为中文大写或英文大写的金额数字，返回结果同时包含中英文大写金额并指定英文结尾的单位。注意，输入的金额为国内习惯，不能有逗号，且金额不得超过1万亿。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/cnmoney\/index": {
            "get": {
                "summary": "金额转大写",
                "tags": [
                    "金额转大写"
                ],
                "description": "根据数字查询中文大写数字",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "description": "usd美元单位元[默认]、usd_1美元单位分，rmb人民币单位元，rmb_1人民币单位分",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "usd",
                            "description": "usd美元单位元[默认]、usd_1美元单位分，rmb人民币单位元，rmb_1人民币单位分"
                        }
                    },
                    {
                        "name": "money",
                        "in": "query",
                        "description": "金额阿拉伯数字",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "666666.66",
                            "description": "金额阿拉伯数字"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "cnresult": {
                                            "type": "string",
                                            "example": "陆拾陆万陆仟陆佰陆拾陆元陆角陆分",
                                            "description": "中文大写金额"
                                        },
                                        "enresult": {
                                            "type": "string",
                                            "example": "SIX HUNDRED SIXTY-SIX THOUSAND AND SIX HUNDRED SIXTY-SIX DOLLARS AND SIXTY-SIX CENTS ONLY",
                                            "description": "英语大写金额"
                                        },
                                        "fnresult": {
                                            "type": "string",
                                            "example": "666,666.66",
                                            "description": "西式的三位分节法数字"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "cnresult": "陆拾陆万陆仟陆佰陆拾陆元陆角陆分",
                                        "enresult": "SIX HUNDRED SIXTY-SIX THOUSAND AND SIX HUNDRED SIXTY-SIX DOLLARS AND SIXTY-SIX CENTS ONLY",
                                        "fnresult": "666,666.66"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "金额转大写",
                "tags": [
                    "金额转大写"
                ],
                "description": "根据数字查询中文大写数字",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "type": {
                                        "type": "string",
                                        "example": "usd",
                                        "description": "usd美元单位元[默认]、usd_1美元单位分，rmb人民币单位元，rmb_1人民币单位分"
                                    },
                                    "money": {
                                        "type": "string",
                                        "example": "666666.66",
                                        "description": "金额阿拉伯数字"
                                    }
                                },
                                "required": [
                                    "key",
                                    "money"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "cnresult": {
                                            "type": "string",
                                            "example": "陆拾陆万陆仟陆佰陆拾陆元陆角陆分",
                                            "description": "中文大写金额"
                                        },
                                        "enresult": {
                                            "type": "string",
                                            "example": "SIX HUNDRED SIXTY-SIX THOUSAND AND SIX HUNDRED SIXTY-SIX DOLLARS AND SIXTY-SIX CENTS ONLY",
                                            "description": "英语大写金额"
                                        },
                                        "fnresult": {
                                            "type": "string",
                                            "example": "666,666.66",
                                            "description": "西式的三位分节法数字"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "cnresult": "陆拾陆万陆仟陆佰陆拾陆元陆角陆分",
                                        "enresult": "SIX HUNDRED SIXTY-SIX THOUSAND AND SIX HUNDRED SIXTY-SIX DOLLARS AND SIXTY-SIX CENTS ONLY",
                                        "fnresult": "666,666.66"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}