Create Flash Refill Order
code=0 means the request succeeded. Resource delegation may still be in progress. Save the returned id and query the order to check its progress. The same status definitions apply to creation and duplicate responses.
ResourceType, ENERGY | BANDWIDTH
Purchased energy amount (>=500000), bandwidth amount (>=50000)
Address receiving resources
Client order ID
The API access key.
your api keyThe Base64-encoded signature.
signatureThe UTC request timestamp (e.g. 2008-08-08T08:08:08.888Z).
OK
Returns 0 on success; all other values indicate errors
Error message returned when an error occurs
POST /v1/flash/open/order?resource_type=ENERGY&quantity=1&receiver=text HTTP/1.1
Host: api.catfee.io
CF-ACCESS-KEY: text
CF-ACCESS-SIGN: text
CF-ACCESS-TIMESTAMP: text
Accept: */*
OK
{
"code": 1,
"msg": "text",
"sub_code": "text",
"sub_msg": "text",
"data": {
"id": "text",
"client_order_id": "text",
"resource_type": "ENERGY",
"source_type": "TRANSFER",
"pay_timestamp": 1,
"receiver": "text",
"delegate_hash": "text",
"delegate_timestamp": 1,
"reclaim_hash": "text",
"reclaim_timestamp": 1,
"pay_amount_sun": 1,
"activate_amount_sun": 1,
"quantity": 1,
"staked_sun": 1,
"duration": "text",
"expired_timestamp": 1,
"status": "PAYMENT_SUCCESS",
"activate_status": "DEACTIVATE",
"confirm_status": "UNCONFIRMED"
}
}code=0 means the request succeeded. Resource delegation may still be in progress. Save the returned id and query the order to check its progress.
Reusing the same client_order_id may return an existing order. The status and confirm_status fields in creation and duplicate responses follow the same definitions as the query endpoint.
Last updated