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:

  1. Register for a User account. Purpl can do this for you.
  2. 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.
  3. After successfully logging in, click on the URL for the applications resource.
  4. Fill out the form and set the name of your application. Copy the client_id and client_secret that was created for your application.
  5. Save your Application by clicking on the POST button.
  6. In your client application, obtain a token for use in the API by sending a POST request to the tokens endpoint while passing the client_id, client_secret, grant_type of 'client_credentials' and an optional scope.
  7. 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
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/vnd.purplme+json
Vary: Accept

{
    "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"
}