WePay

The /app API calls

The "app" object represents an app on WePay. The following calls let you view and modify app objects on WePay:

App States

The "app" object has the following states and the following possible state transitions:

active
The app is active.
disabled
The app was disabled by WePay, please contact api@wepay.com for more details and instructions for re-enabling your app.
deleted
The app was deleted by the user.

API App State Diagram

/app

This call allows you to lookup the details of your API application.

Arguments:

Parameter Required Type Description
client_id Yes Integer (64 bits) The integer client ID issued to the app, found on your application's dashboard.
client_secret Yes String (255 chars) The string client secret issued to the app, found on your application's dashboard.

Response:

Response Type Description
api_version String (255 chars) The API version of the application. See API Versioning for more details.
client_id Integer (64 bits) The integer client ID issued to the app, found on your application's dashboard.
state String (255 chars) The state of the API application - active, revoked, or deleted.
status String (255 chars) The approval status of the API application.
theme_object Theme Structure The theme structure (a JSON object, not a JSON serialized string) you want to be used for app's flows and emails
gaq_domains Array An array of Google Analytics domains associated with the app. See the analytics tutorial for more details.

/app/modify

This call lets you modify details of your API application (such as adding a theme for your app).

Arguments:

Parameter Required Type Description
client_id Yes Integer (64 bits) The integer client ID issued to the app, found on your application's dashboard.
client_secret Yes String (255 chars) The string client secret issued to the app, found on your application's dashboard.
theme_object No Theme Structure The theme structure (a JSON object, not a JSON serialized string) you want to be used for app's flows and emails
gaq_domains No Array An array of Google Analytics domains associated with the app. See the analytics tutorial for more details.

Response:

Response Type Description
client_id Integer (64 bits) The integer client ID issued to the app, found on your application's dashboard.
status String (255 chars) The approval status of the API application.
theme_object Theme Structure The theme structure (a JSON object, not a JSON serialized string) you want to be used for app's flows and emails
gaq_domains Array An array of Google Analytics domains associated with the app. See the analytics tutorial for more details.