Status(Read)

1. Check Status

You will need to know how to check payment status for an order by its Id with, you will need to make a POST request to the /orders/status/{id} endpoint with your id. Make sure to fill in the required fields in the request body.

POST /api/solanaplay/orders/status/{id}

Request body:

{
  "id": "unique-status-id"
}

Response examples: You will receive response 200(success) :

{
  "confirmed": true,
  "message": "string",
  "txSignature": "string"
}

Or a default message error:

{
  "error": {
    "code": 0,
    "message": "error-message"
  }
}

If the order is confirmed, you will receive a confirmed: true value in the response, along with a message and transaction signature.. If in the event of an error a default message will occur.

Last updated