πDevelop Reference
Last updated
Last updated
Parameter Name | Parameter Type | Required | Description |
---|---|---|---|
Only JSON objects are supported, and all key-value pairs are of type string.
Signing Secret: The secret corresponding to the api_key
Signing Algorithm: HmacSHA1
Signing Content:
For example: timestamp is 1694958440 The body content is: {"sign": "xxxxadqw", "ba":"ba_content", "aa": "aa_content", "cb": "\t \t (the \t here is a tab)"}
The signing content would be: There is a space at the end (ignoring the double quotes) "1704959546aa_contentba_content "
π‘ Response code, not HTTP status code
Initiate in-app purchase flow
3.2.1 Order
3.2.1.1 Order Details
HTTP Request
GET https://developer-open-api.broearn.com/v1/dapp/order/info
Query Parameters
The request body is empty
Response Body
Order Details Instance Description
Example Order Details Instance
HTTP Request
GET https://developer-open-api.broearn.com/v1/dapp/order/list
Query Parameters
The request body is empty
Response Body
Order Data Instance Description
Example Order Data Instance
Code | Description | Remark |
---|---|---|
Parameter Name | Parameter Type | Required | Description |
---|---|---|---|
Parameter Name | Parameter Type | Nullable | Content | Description |
---|---|---|---|---|
Parameter Name | Parameter Type | Nullable | Content | Description |
---|---|---|---|---|
Parameter Name | Parameter Type | Required | Description |
---|---|---|---|
Parameter Name | Parameter Type | Nullable | Content | Description |
---|---|---|---|---|
Parameter Name | Parameter Type | Nullable | Content |
---|---|---|---|
app_id
string
Y
The key assigned by the system
timestamp
number
Y
Seconds, difference from the server should not exceed 1h (1714492800)
sign
string
Y
The signed string generated using the system-assigned secret key, the server will use the same rules to verify the validity of the request
0
Success
Y
419
'Api key status abnormal'
420
Invalid parameters
Missing required parameters (sign, timestamp) in the header or invalid api-key
421
Invalid timestamp
Y
422
Other unknown exceptions
423
Signature error
mer_order_id
string
Y
The order ID passed in by the dapp client (the order ID in the client's own system)
code
number
N
0
0 - Request successful
data
object (json)
Y
Order details instance
order_id
string
N
Platform order ID
product_id
string
N
Product ID
mer_order_id
string
N
Merchant order ID (the merchant must ensure uniqueness in their own system, the platform does not perform uniqueness validation)
product_name
string
N
Product name
status
number
N
Order status, 1 - Success, 2 - Refunded
purchase_time
number
N
Payment time, in milliseconds
refund_time
number
Y
Refund time, valid when status is 2
amount
number
N
Payment amount (micros, actual payment amount * 10^6)
currency
number
N
Currency type (USD, etc.)
dapp_id
number
N
The Dapp ID the order belongs to
start_time
number
Y
Start time, seconds (order payment time, greater than or equal to this time)
end_time
number
Y
End time, seconds (order payment time, less than this time)
page_num
number
Y
Pagination parameter, page number
page_size
number
Y
Pagination parameter, number of items per page, maximum 1000, over 1000 will be automatically processed as 1000
status
number
N
Order status, if not passed, it will query all statuses
dapp_id
number
N
Dapp ID, if not passed, it will query orders for all dapps under the organization
code
number
N
0
0 - Request successful
data
object (json)
Y
Order data instance
count
string
N
Total records for the query condition
list
array (json)
Y
List of order detail instances