Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 3.76 KB

File metadata and controls

51 lines (42 loc) · 3.76 KB

Order

Properties

Name Type Description Notes
order_id str The order ID.
merchant_id str The merchant ID. [optional]
merchant_order_code str A unique reference code assigned by the merchant to identify this order in their system. [optional]
psp_order_code str A unique reference code assigned by the developer to identify this order in their system.
pricing_currency str The pricing currency of the order. [optional]
pricing_amount str The base amount of the order, excluding the developer fee (specified in `fee_amount`). [optional]
fee_amount str The developer fee for the order. It is added to the base amount to determine the final charge.
payable_currency str The ID of the cryptocurrency used for payment. [optional]
chain_id str The ID of the blockchain network where the payment transaction should be made.
payable_amount str The cryptocurrency amount to be paid for this order.
exchange_rate str The exchange rate between `payable_currency` and `pricing_currency`, calculated as (`pricing_amount` + `fee_amount`) / `payable_amount`. <Note>This field is only returned when `payable_amount` was not provided in the order creation request. </Note>
amount_tolerance str The allowed amount deviation, with precision up to 1 decimal place. For example, if `payable_amount` is `100.00` and `amount_tolerance` is `0.50`: - Payer pays 99.55 → Success (difference of 0.45 ≤ 0.5) - Payer pays 99.40 → Underpaid (difference of 0.60 > 0.5) [optional]
receive_address str The recipient wallet address to be used for the payment transaction.
status OrderStatus
received_token_amount str The total cryptocurrency amount received for this order. Updates until the expiration time. Precision matches the token standard (e.g., 6 decimals for USDT).
expired_at int The expiration time of the pay-in order, represented as a UNIX timestamp in seconds. [optional]
created_timestamp int The created time of the order, represented as a UNIX timestamp in seconds. [optional]
updated_timestamp int The updated time of the order, represented as a UNIX timestamp in seconds. [optional]
transactions List[PaymentTransaction] An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process. [optional]
currency str This field has been deprecated. Please use `pricing_currency` instead. [optional]
order_amount str This field has been deprecated. Please use `pricing_amount` instead. [optional]
token_id str This field has been deprecated. Please use `payable_currency` instead. [optional]
settlement_status SettleStatus [optional]

Example

from cobo_waas2.models.order import Order

# TODO update the JSON string below
json = "{}"
# create an instance of Order from a JSON string
order_instance = Order.from_json(json)
# print the JSON string representation of the object
print(Order.to_json())

# convert the object into a dict
order_dict = order_instance.to_dict()
# create an instance of Order from a dict
order_from_dict = Order.from_dict(order_dict)

[Back to Model list] [Back to API list] [Back to README]