POST
/
transactions
/
create
curl --request POST \
  --url https://api.sandbox.saalal.com/v1/transactions/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 2000,
  "card_reference": "6516484d-0059-4f53-b2cf-31f3ae884d3a",
  "reference": "b60f54d5b1-922a-40ty6a-8417-fasjhdfdfdi231i",
  "action": [
    "withdraw",
    "recharge",
    "transfer"
  ]
}'
{
  "message": "OK",
  "statusCode": 200,
  "data": {
    "transaction": {
      "slug": "e1d30877-0353-45b3-82fb-92780238ecb4",
      "card_reference": "9c54515e-7890-44f9-8cc2-a85b80322b98",
      "reference": "b60f55b1-922a-406a-8417-g54atb0849ttb22c",
      "status": "pending",
      "kind": "recharge",
      "merchant": false,
      "amount": 2000,
      "created_at": "2023-06-22T10:40:17.000000Z"
    }
  }
}

Authorizations

Authorization
string
headerrequired

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

Headers

Accept
string

Body

application/json
amount
integer
card_reference
string
receiver_card_reference (only for transfer)
string
slug
string
action
enum<string>
Available options:
withdraw,
recharge,
transfer

Response

200 - application/json
message
string
statusCode
integer
transaction
object