Skip to content

Xash app endpoints ​

This section documents the endpoints that exist for the Xash mobile app and for Xash's own point-of-sale product. They are about creating and looking after an account by hand: registering, proving you hold the phone with an SMS code, setting a PIN, adding business details.

A server integration does not call these in normal running. They are here because:

Everything a partner integration uses day to day is in the main part of these docs, starting with the quickstart.

What is here ​

PageEndpointsToken needed
RegistrationPOST /api/v1/auth/registerNo
Set passwordPOST /api/v1/auth/set-passwordNo
PIN setup and resetPOST /api/v1/auth/request-pin-otp, POST /api/v1/auth/set-pin, POST /api/v1/auth/forgot-pin, POST /api/v1/auth/reset-pinNo
Resend user numberPOST /api/v1/auth/resend-user-number/{phone}No
Create businessPOST /api/v1/auth/create-business, GET /api/v1/auth/business/categoriesYes
Delete accountDELETE /api/v1/auth/profileYes
Link codesPOST /api/v1/auth/link-code, POST /api/v1/auth/link-code/redeemIssue: no. Redeem: yes

SMS codes ​

Several of these endpoints send or check a 5-digit code delivered by SMS to the account's phone. A code:

  • is valid for 10 minutes;
  • can be used once;
  • is cancelled after 5 wrong guesses, after which a new one must be requested.

These endpoints have tight rate limits, noted on each page. Passing one answers 429.