Transfiya

(payProduct=08)

请求地址

环境名称
URL

SandBox

POST https://api.supefina.tech/api/supefina/transactions/payout

正式环境

POST https://api.supefina.net/api/supefina/transactions/payout

请求方式

请求头

Key
Value

Content-Type

application/json

请求体

变量名
类型
必填
描述

countryId

String

国家编号 参照:字典表-国家编号 哥伦比亚,COL

orderAmount

String

订单金额 3,000<= orderAmount <= 3,000,000,不支持小数

payProduct

String

支付类型 Transfiya:08

merId

String

商户ID 商户ID获取路径:Supefina商户后台-商户管理-基本信息-商户ID

currency

String

币种 参照:字典表-货币 哥伦比亚比索:COP

merOrderNo

String

商户订单号

customerName

String

用户名字

首尾不得包含空格,但姓名之间可以有空格

customerAddress

String

用户地址

customerIdentification

String

用户证件号

00:身份证(CC/TI)--最多10位 01:外国人身份证(CE)--6位

sign

String

nonceStr

String

随机字符串 长度不能超过32位

customerEmail

String

用户邮箱

lastName

String

用户姓氏

customerPhone

String

用户电话

customerIdentificationType

String

用户证件号类型

00:身份证(CC/TI) 01:外国人身份证(CE) 02:税号 03:护照 06:其他 07:公民身份证明 08:居留许可证

accountType

String

账户类型 05:PHONE

account

String

收款方账户号。 代付发起后,用户需在12小时内前往目的地APP进行确认,否则资金将会原路退回并回调交易失败。

bankName

String

银行名称 具体参照:哥伦比亚银行列表

callbackUrl

String

回调地址

详见通知回调说明

requestData

JSONObject

交易额外参数 此字段为json对象,不需要可以不传或者传“null”

请求示例

{
    "account": "3234517213",
    "accountType": "05",
    "bankName": "NEQUI",
    "callbackUrl": "https://www.3spicy.bet/api/pay_notice/out_payback/payId/5739B8C9398C4B5494A355B16D0F154C",
    "countryId": "COL",
    "currency": "COP",
    "customerAddress": "EZzpXldfRI",
    "customerEmail": "[email protected]",
    "customerIdentification": "45550444",
    "customerIdentificationType": "00",
    "customerName": "soraya",
    "customerPhone": "3234517213",
    "lastName": "cc",
    "merId": "8301066506090055",
    "merOrderNo": "W202406162339371529M",
    "nonceStr": "14CF9D011E9B4627B69E06264824DC79",
    "orderAmount": "190000",
    "payProduct": "08",
    "sign": "2837C181EABFBF7D7189D02E80715A20"
}

响应参数

变量名
类型
描述

code

String

响应编码 具体参照:响应状态码

data

Object

响应数据

amount

BigDecimal

订单金额

fee

BigDecimal

预收手续费

merCode

String

商户ID

merOrderNo

String

商户订单号

supefinaOrderNo

String

supefina订单号

transactionStatus

String

下单状态 该笔订单的的发起状态是否成功,与订单真正的交易状态无关。 00:下单成功 04:下单失败

msg

String

响应信息

响应示例

{
    "code": "200",
    "data": {
        "amount": 105.00,
        "fee": 3.00,
        "merCode": "8202157333970291",
        "merOrderNo": "8485233309941743872",
        "supefinaOrderNo": "2024052001860105b0fae306a6e43",
        "transactionStatus": "00"
    },
    "msg": "success "
}

回调通知

提交方式:POST

变量名
类型
描述

amount

String

订单金额

countryId

String

国家编号 参照:字典表-国家编号 哥伦比亚,COL

customerName

String

收款人姓名

fee

String

预收手续费

identifier

String

付款参考 Clabe

merId

String

商户ID

merOrderId

String

商户订单号

msg

String

消息

nonceStr

String

随机字符串 长度不能超过32位

realityAmount

String

实收金额

realityFee

String

实收手续费

sign

String

签名

status

String

交易状态 具体参照:字典表——交易订单状态

successTime

String

交易成功时间

supefinaOrderId

String

supefina订单号

transactionType

String

交易类型 01:代收 02:代付

回调通知示例

{
    "amount": "48250.00",
    "countryId": "COL",
    "customerName": "Fredi",
    "fee": "6627.25",
    "identifier": "706180968985601627",
    "merId": "8301409897370054",
    "merOrderId": "W20240617160938365CL",
    "msg": "null",
    "nonceStr": "26f919f0-f50a-45a2-b5f0-aa3901",
    "realityAmount": "48250.00",
    "realityFee": "6627.25",
    "sign": "FB19534FAD9FF7176CB809F9696BA565",
    "status": "01",
    "successTime": 1718657547294,
    "supefinaOrderId": "2024061700020017d60360e7ac647",
    "transactionType": "02"
}

回调通知响应

商户成功收到回调后需同步返回指定字符串:SUCCESS 不返回或返回其他内容默认通知失败 如:

public String test(){
	return "SUCCESS";
}

最后更新于