PaySprint for Developers
Getting Started
PaySprint offers developers the ability to receive money from third-party application directly to their paysprint wallet leveraging on our REST API’s. Entrepreneur’s, Startup companies, SME's (Small and Medium Enterprises), MSME’s & Enterprises deploy with these solutions.
BASE URL:
https://paysprint.ca/api/v1
BEARER TOKEN
Your api key is unique to your account, this has been generated during your sign up.
4d55fce450eb59d0699f33c6f42b2a73050520211620214476
Receive Money Paysprint User POST
Receive money directly from your website using the endpoint. This is for your customers that have a PaySprint account
curl --location --request POST '{baseUrl}/customers' \ --header 'Authorization: Bearer {bearerKey}' \ --form 'accountNumber="11111"' \ //Customer's PaySprint account number --form 'amount="50"' \ //Amount to charge --form 'purpose="Contribution"' \ // Purpose of Payment --form 'transactionPin="1234"' \ // PaySprint transaction pin --form 'mode="test"' //live or test
Receive Money Guest POST
Receive money directly from your website using the endpoint. This is for your customers that does not have a PaySprint account
curl --location --request POST '{baseUrl}/visitors' \ --header 'Authorization: Bearer {bearerKey}'' \ --form 'firstname="Shawn"' \ --form 'lastname="Davids"' \ --form 'amount="3"' \ --form 'country="Canada"' \ --form 'cardNumber="4111111111111111"' \ --form 'expiryMonth="08"' \ --form 'expiryYear="23"' \ --form 'cardType="Debit Card"' \ --form 'purpose="Partnership"' \ --form 'mode="test"' \ //live --form 'email="johndoe@example.com"' \ --form 'phone="123456789"'
RESPONSE 200
{ "data": { "name": "Shawn Davids", "businessName": null, "telephone": "123456789", "state": "Ontario", "country": "Canada", "avatar": "http://paysprint.ca/profilepic/avatar/2092218901_1617494018.jpg", "paymentToken": "wallet-140520211621004091", "amount": "2", "currency": "CAD" }, "message": "Money Sent Successfully", "status": 200 }
RESPONSE 400
{ "data": {}, "message": "Insufficient balance!. Your current wallet balance is CAD 1.00", "status": 400 }