API Reference

Example: Create Send Money

curl --request POST \
     --url https://sandbox.paystrator.com/v1/send-money \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'publicAccessToken: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjYWtpIjoiSnlwVVFHWEVBQTNWbzRaUURkTk92QT09IiwiZXhwIjoxNzU5MTI3OTAyLCJpYXQiOjE3NTkxMjc2MDIsImlzcyI6IlRlc3RpbmctUUEiLCJqdGkiOiI4ZDdmYWI5MTkxZTM1NDEwMDUxNzQyY2FkODk3ZDRjZiIsIm5hbWUiOiJUZXN0aW5nLVFBIiwicm9sZSI6WyJVU0VSIl0sInN1YiI6IjIiLCJ0cyI6MTc1OTEyNzYwMjIxNH0.HFvRiq_V3DirKoWeggbv2tdCzuQ0OTqIyrY2aC2NZI8' \
     --data '
{
  "type": "SEND_MONEY",
  "attributes": {
    "receiverName": "Budi Budiman",
    "receiverAccountNo": "123456789",
    "receiverBankCode": "BCA"
  },
  "externalId": "test-send-money",
  "amount": 10000,
  "currency": "IDR",
  "remark": "remark test",
  "metadata": "metadata test"
}

Response Example

{
  "status": 200,
  "data": {
    "message": "We have received your request and are processing it, please check your callback URL for transaction status",
    "id": "aa0c3749d2584d5482c09039739sn0a5",
    "type": "SEND_MONEY",
    "status": "PROCESSING",
    "externalId": "test-send-money",
    "amount": 12000,
    "metadata": "metadata test",
    "attributes": {
      "receiverName": "Budi Budiman",
      "receiverAccountNo": "123456789",
      "receiverBankCode": "BCA"
    },
    "remark": "remark test"
  },
  "errors": null,
  "hashcode": "53b97a0475b309fb491582431b521278"
}