Create transaction: stocks order

Create a transactionId for single stock or basket orders

post/{gatewayname}/transaction

Request

  • Base URL
    https://gatewayapi.smallcase.com/gateway
  • URL
    https://gatewayapi.smallcase.com/gateway/{gatewayname}/transaction
  • Auth
    none required

Path parameters

gatewaynamestring required

Headers

x-gateway-secretstring required

Required | apiSecret shared for authentication

x-gateway-authtokenstring required

Required | JWT signed with shared secret & payload of guest user or connected user

Request body

intentstring required

Required | Define the intent of transactionId. Value: "TRANSACTION"

notesstring

Optional | upto 256 characters, returned in the transaction response

version'v1' | 'v2'

Defines which SST order UI flow to be show v1 or v2

Response

200

successboolean
errorsunknown

Example response

{
  "success": true,
  "data": {
    "transactionId": "TRX_6c7c0c3bdc9a40912fb421051670445f",
    "expireAt": "2022-01-01T00:00:00.000Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.