Orders
1. Get all orders by platform Id
You will need to know how to get all orders by platformId
, you will need to make a POST request to the /orders/{platformId}
endpoint with your platformId
. Make sure to fill in the required fields in the request body.
POST /api/solanaplay/orders/platformId
Request body:
{
"platformId": "unique-platform-id"
}
Response examples: You will receive response 200(success) :
[
{
"platformId": "platform-id",
"itemId": "item-id",
"playerId": "player-id",
"quantity": 1,
"payToken": "So11111111111111111111111111111111111111112",
"tokenName": "token-name",
"qrRefId": "qr-reference-id",
"playerRefId": "player-reference-id",
"itemRefId": "item-reference-id",
"itemPlatId": "item-platform-id",
"playerPlatformId": "player-platform-id",
"platCustPub": "platform-customer-public-key",
"payAmount": 0,
"price": 0,
"label": "label-text",
"description": "item-description",
"icon": "http://example.com",
"link": "http://example.com",
"createdUTC": 0,
"account": "account-id",
"orderUTC": 0,
"blockheight": 0,
"encodedWt": "encoded-wt",
"originalReference": "original-reference",
"lastModified": "2019-08-24T14:15:22Z",
"tx": "transaction-data",
"txUTC": 0,
"txSignature": "transaction-signature",
"txLookupUTC": 0
}
]
Or a default message error:
{
"error": {
"code": 0,
"message": "error-message"
}
}
If successful you will receive a platformId
, itemId
, and playerId
in the response. If in the event of an error a default message will occur.
Last updated