https://api.payment-gateway.comAll API endpoints are relative to this base URL
User authentication and authorization endpoints
/api/v1/auth/signupCreate a new user account
curl -X POST "https://api.payment-gateway.com/api/v1/auth/signup" \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "securePassword123",
"username": "johndoe"
}'/api/v1/auth/loginAuthenticate user and receive JWT token
curl -X POST "https://api.payment-gateway.com/api/v1/auth/login" \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "securePassword123"
}'Create and manage payment projects
/api/v1/createprojectAuth RequiredCreate a new payment project
curl -X POST "https://api.payment-gateway.com/api/v1/createproject" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"paymentGetWay": ["STRIPE", "TELEBIRR"],
"title": "My E-commerce Store",
"discription": "Payment integration for my online store"
}'/api/v1/accessKey/createAuth RequiredGenerate API access key for project
curl -X POST "https://api.payment-gateway.com/api/v1/accessKey/create" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"projectId": 1
}'Stripe payment gateway integration
/api/v1/stripe/createAuth RequiredConfigure Stripe API key
curl -X POST "https://api.payment-gateway.com/api/v1/stripe/create" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"stripeApiKey": "sk_test_...",
"projectId": "1"
}'/api/v1/stripe/create_sessionAuth RequiredCreate Stripe checkout session
curl -X POST "https://api.payment-gateway.com/api/v1/stripe/create_session" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"priceId": "price_1234567890",
"success_url": "https://yoursite.com/success",
"quantity": "1",
"mode": "subscription"
}'Telebirr mobile money integration
/api/v1/telebirr/createConfigAuth RequiredConfigure Telebirr credentials
curl -X POST "https://api.payment-gateway.com/api/v1/telebirr/createConfig" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"projectId": 15,
"MerchantAppId": "*************",
"FabricAppId": "*************",
"ShortCode": "*************",
"AppSecret": "*************",
"PrivateKey": "YOUR_PRIVATE_KEY"
}'/api/v1/telebirr/createorderAccess Key RequiredCreate Telebirr payment order
curl -X POST "https://api.payment-gateway.com/api/v1/telebirr/createorder" \
-H "Authorization: Bearer YOUR_ACCESS_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Product Purchase",
"amount": "100.00",
"telebirrConfigId": "2",
"redirect_url": "https://yoursite.com/success",
"notify_url": "https://yoursite.com/notify"
}'Common HTTP status codes returned by the API