此接口端点允许您在 QA 环境中为 Cobre Balance 账户创建交易调整(贷记或借记)。该接口端点旨在帮助您为 Cobre Balance 账户进行初始充值,从而开始测试平台的各项功能。URL:https://api.qa.cobre.co/v1/account_test_transactions
{
"account_id":"acc_Q59NmogD5p",
"amount": 250,
"transaction_code": "0301",
"description":"TEST"
}
account_id(字符串):将应用调整的平台账户 ID。在进行调整之前,必须先创建该账户。
amount(整数):以货币最小单位表示的交易金额(例如,100 COP 表示为 10000)。
transaction_code(字符串):交易调整类型。贷记(C)使用 0301,借记(D)使用 0350。
如果请求成功,接口端点将返回 200 HTTP 状态码(无响应体),您将在所提供的 account_id 上看到已应用的调整。
如果请求过程中发生任何错误,将返回 HTTP 400 Bad Request(无响应体)。
在所提供的 account_id 上创建的贷记交易示例:
{
"id": "trx_Vcj82IizH7YAyCfZELZr",
"type": "adjustment_debit",
"amount": -250,
"currency": "COP",
"credit_debit_type": "debit",
"transaction_date": "2024-11-15T12:00:13Z",
"created_at": "2024-11-15T12:00:15Z",
"metadata": {
"description": ""
}
在所提供的 account_id 上创建的借记交易示例:
{
"id": "trx_Vcj82IizH7YAyCfZELZr",
"type": "adjustment_credit",
"amount": 250,
"currency": "COP",
"credit_debit_type": "credit",
"transaction_date": "2024-11-15T12:00:13Z",
"created_at": "2024-11-15T12:00:15Z",
"metadata": {
"description": ""
}
Modified at 2026-06-12 23:18:07