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
Useraccount. Purpl can do this for you. - Log in to the API by clicking on the
Log inlink on the top-right of the page and logging in with your user account. - After successfully logging in, click on the URL for the
applicationsresource. - Fill out the form and set the name of your application. Copy the
client_idandclient_secretthat was created for your application. - Save your Application by clicking on the
POSTbutton. - In your client application, obtain a token for use in the API by sending a
POSTrequest to the tokens endpoint while passing theclient_id,client_secret,grant_typeof 'client_credentials' and an optionalscope. - Use the
access_tokenreturned 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
{ "app-users": "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", "cards": "https://api.purplme.com/cards/?format=api", "compliance/monitoring/flags": "https://api.purplme.com/compliance/monitoring/flags/?format=api", "compliance/monitoring/rules": "https://api.purplme.com/compliance/monitoring/rules/?format=api" }