POST
/
api
/
v1
/
transaction
/
init
curl --request POST \
  --url https://api-m.dexchange.sn/api/v1/transaction/init \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "externalTransactionId": "<string>",
  "serviceCode": "<string>",
  "amount": 123,
  "number": "<string>",
  "callBackURL": "<string>",
  "successUrl": "<string>",
  "failureUrl": "<string>"
}'
{
  "message": "<string>",
  "transaction": {
    "success": true,
    "transactionId": "<string>",
    "externalTransactionId": "<string>",
    "transactionType": "<string>",
    "amount": 123,
    "transactionFee": 123,
    "number": "<string>",
    "callBackURL": "<string>",
    "successUrl": "<string>",
    "failureUrl": "<string>",
    "status": "<string>",
    "cashout_url": "<string>",
    "webhook": "<string>"
  }
}
Une clé API est requis pour acceder à cette ressource

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Transaction initialization request
externalTransactionId
string
required
serviceCode
string
required
amount
number
required
number
string
required
callBackURL
string
required
successUrl
string
required
failureUrl
string
required

Response

200
application/json
Transaction initiation response
message
string
required
transaction
object
required