| Name |
Type |
Description |
Notes |
| request_id |
str |
The request ID that is used to track a refund request. The request ID is provided by you and must be unique. |
|
| merchant_id |
str |
The merchant ID. |
[optional] |
| payable_amount |
str |
The amount to refund in cryptocurrency. The amount must be a positive number and can have up to two decimal places |
|
| to_address |
str |
The address where the refunded cryptocurrency will be sent. |
[optional] |
| token_id |
str |
The ID of the cryptocurrency used for refund. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT` |
|
| refund_type |
RefundType |
|
|
| order_id |
str |
The ID of the original pay-in order associated with this refund. Use this to track refunds against specific payments. |
[optional] |
| charge_merchant_fee |
bool |
Whether to charge developer fee to the merchant. This field is only valid when `refund_type` is `Merchant`. For more information, please refer to Accounts and fund allocation. - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee When enabled, ensure both `merchant_fee_amount` and `merchant_fee_token_id` are properly specified. |
[optional] |
| merchant_fee_amount |
str |
The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. This field is only valid when `refund_type` is `Merchant`. For more information, please refer to Accounts and fund allocation. This field is required when `charge_merchant_fee` is `true`. Must be: - A positive integer with up to two decimal places. - Less than the refund amount |
[optional] |
| merchant_fee_token_id |
str |
The ID of the cryptocurrency used for the transaction fee. This is only applicable if `charge_merchant_fee` is set to true. |
[optional] |
from cobo_waas2.models.create_refund_request import CreateRefundRequest
# TODO update the JSON string below
json = "{}"
# create an instance of CreateRefundRequest from a JSON string
create_refund_request_instance = CreateRefundRequest.from_json(json)
# print the JSON string representation of the object
print(CreateRefundRequest.to_json())
# convert the object into a dict
create_refund_request_dict = create_refund_request_instance.to_dict()
# create an instance of CreateRefundRequest from a dict
create_refund_request_from_dict = CreateRefundRequest.from_dict(create_refund_request_dict)
[Back to Model list] [Back to API list] [Back to README]