Purpl Api
Welcome to Purpl's RESTful API.
This API has the following resources:
- User - A user who can login to the system and create resources in the system.
- Application - A client application that can interact with the API on behalf of a User. A User registers an Application to be able to use the API.
- Token - A value that represents authentication of a user or a client application. The token is passed with requests to the API, which then processes the request based on the credentials presented in the token.
- Remittance - An amount of money sent by a sender to a beneficiary or a User in the system.
- Cash Out - An attempt to cash out a remittance by the beneficiary (User) in the system.
To be able to use this API, follow this workflow:
- Register for a
User
account. Purpl can do this for you. - Log in to the API by clicking on the
Log in
link on the top-right of the page and logging in with your user account. - After successfully logging in, click on the URL for the
applications
resource. - Fill out the form and set the name of your application. Copy the
client_id
andclient_secret
that was created for your application. - Save your Application by clicking on the
POST
button. - In your client application, obtain a token for use in the API by sending a
POST
request to the tokens endpoint while passing theclient_id
,client_secret
,grant_type
of 'client_credentials' and an optionalscope
. - Use the
access_token
returned in step 6 to access the API by passing it as a 'Bearer' token in the Authorization header of your application's requests.
GET /?format=api
https://api.purplme.com/app-users/?format=api", "users": "https://api.purplme.com/users/?format=api", "applications": "https://api.purplme.com/applications/?format=api", "registered-users": "https://api.purplme.com/registered-users/?format=api", "tokens": "https://api.purplme.com/tokens/?format=api", "remittances": "https://api.purplme.com/remittances/?format=api", "cash-outs": "https://api.purplme.com/cash-outs/?format=api", "cash-ins": "https://api.purplme.com/cash-ins/?format=api", "cash-out-partners": "https://api.purplme.com/cash-out-partners/?format=api", "partners": "https://api.purplme.com/partners/?format=api", "messages": "https://api.purplme.com/messages/?format=api", "merchants": "https://api.purplme.com/merchants/?format=api", "orders": "https://api.purplme.com/orders/?format=api", "payments": "https://api.purplme.com/payments/?format=api", "wallet-types": "https://api.purplme.com/wallet-types/?format=api", "cash-out-partner-branches": "https://api.purplme.com/cash-out-partner-branches/?format=api", "transfers": "https://api.purplme.com/transfers/?format=api", "pos-transactions": "https://api.purplme.com/pos-transactions/?format=api", "brands": "https://api.purplme.com/brands/?format=api", "categories": "https://api.purplme.com/categories/?format=api", "products": "https://api.purplme.com/products/?format=api", "variants": "https://api.purplme.com/variants/?format=api", "wallets": "https://api.purplme.com/wallets/?format=api" }{ "app-users": "