DojaPay API
  1. Authentication
DojaPay API
  • Authentication
    • Generate Access Token
      POST
  • Virtual Account
    • Create Virtual Account
      POST
    • Get Virtual Account Details
      GET
  • Transactions
    • Verify Transaction
      POST
  • Payout
    • Request Payout
      POST
    • Get Bank List
      GET
  1. Authentication

Generate Access Token

POST
/auth/login

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************

Responses

🟢200
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.dojapay.com/api/v1/auth/login' \
--header 'Authorization: Basic <encoded-value>'
Response Response Example
{
    "success": true,
    "code": "string",
    "message": [
        "string"
    ],
    "data": {
        "access_token": "string",
        "token_type": "string",
        "expires_in": 0
    },
    "errors": null,
    "reference": "string",
    "timestamp": "string"
}
Modified at 2025-11-03 14:10:22
Previous
Authentication
Next
Virtual Account
Built with