Partners API

Overview of the Keep Partner API for integrators: authentication methods, the token lifecycle, best practices, and the error formats and rate limit partner endpoints return.

PayMe Book-keeping Partner API for integrators.

Overview

Authentication Methods

  1. Client Credentials - Server-to-server authentication
  2. Refresh Token - Token renewal

Token Lifecycle

  1. Obtain tokens via Client Credentials
  2. Use access_token for API requests
  3. When access_token expires (check expires_in)
  4. Use refresh_token to obtain new access_token
  5. When refresh_token expires, re-authenticate

Best Practices

  1. Store credentials securely - Never expose client_secret in client-side code
  2. Use HTTPS - All API requests must use HTTPS
  3. Implement token refresh - Proactively refresh tokens before expiration
  4. Handle errors gracefully - Implement retry logic with exponential backoff

Errors and rate limits

Endpoints