Skip to main content
Version: 1.0.0

Login and Logout

API Documentation for PayCruiser. To signup with PayCruiser, please go to https://www.paycruiser.com/sign-up

Base URLS:

Sandbox: https://sandbox-api.paycruiser.com Live: please contact us

User provides their cellphone number to receive onetime passcode.

You just need to delete the Header token from the device. Without Header Token, user is basically logged out

Request One Time Passcode

Request

curl --request POST \
--url https://sandbox-api.paycruiser.com/auth/mobile/ \
--header 'Content-Type: application/json' \
--data '{"mobile":"<YOUR_MOBILE_NUMBER>"}'

Response

{"detail": "We sent you a 6-digit verification code via text. Please use that code to continue"}

Token Authentications

User inputs one time passcode to receive long lived API token to store for subsequent requests

Request

curl --request POST \
--url https://sandbox-api.paycruiser.com/callback/auth/ \
--header 'Content-Type: application/json' \
--data '{"token":"123456"}'

Response

{"token": "<YOUR_TOKEN>"}