Recurring Payments and Subscriptions : - Paywhirl

API Reference (v1 Beta)

It's really easy to get started with the PayWhirl API. You can use the API to interact with PayWhirl data in real time. The API is always growing and getting better. If you need anything specific added or find a bug, please be sure to let us know at our Support Center. Below are references and examples to help you get started.

Authentication

To authenticate your call, pass your api_key and app_secret in the headers of each request. If you pass the key and secret in the body of the request, we will ignore them. Also, make sure to use the right request method when interacting with the API or we will return errors to you. GET /api/me HTTP/1.1 Host: www.paywhirl.com api_key: PW567AEFB14011CBA86C9086ADF3F2CF79 api_secret: PW567AEFB14011CBA86C9086ADF3F2CF79 Cache-Control: no-cache

Available Endpoints

GET /api/me

Get data about the currently authenticated user.

GET /api/subscribers

Get a list of your subscribers.

ParamDefaultDescription
orderingid descOrder of results returned
limit10Number of results returned (max 100)
before_idAll subscribers returned will have an id less than before_id
after_idAll subscribers returned will have an id greater than after_id

GET /api/subscriber

Get a single subscriber.

ParamDefaultDescription
idID of subscriber
emailEmail address of subscriber

POST /api/subscriber/create

Create a subscriber in the authenticated account.

ParamDefaultDescription
email*required*Email address
passwordauto-generatedPlain-text password
first_nameFirst Name
last_nameLast Name
phonePhone number
address_1Address 1
address_2Address 2
cityCity
countryISO country code
stateTwo letter state abbreviation (ex. CA)
zipValid zip code
profileJSON metadata of profile questions

POST /api/subscriber/update

Update a subscriber in the authenticated account.

ParamDefaultDescription
id*required*ID of subscriber
emailEmail address
passwordPlain-text password
first_nameFirst Name
last_nameLast Name
phonePhone number
address_1Address 1
address_2Address 2
cityCity
countryISO country code
stateTwo letter state abbreviation (ex. CA)
zipValid zip code
profileJSON metadata of profile questions

GET /api/plans

Get all plans in the authenticated account.

ParamDefaultDescription
enabled1Show enabled plans only (boolean)

GET /api/plan

Get a single plan for authenticated account.

ParamDefaultDescription
id*required*ID of the specified plan

POST /api/plan/update

Update data for a single plan for authenticated account.

ParamDefaultDescription
id*required*ID of the specified plan
nameName of plan
shippingyes/noWhether to require shipping
enabledyes/noWhether to plan is enabled
imageURL to plan image
feature_1, feature_2...feature_10Plan Features
setup_feeSetup fee for plan (ex. 10.95)
shopify_product_idProduct ID of Shopify product plan is associated with
shopify_variant_idVariant ID of Shopify product plan is associated with
shopify_fulfillmentFulfillment code of Shopify fulfillment provider
skuPlan SKU
orderingOrder in which plan is shown in relation to other plans
installmentsNumber of payments made by a single subscriber on this plan
billing_cycle_anchorDay of the month on which all new subscribers will be billed

POST /api/multiauth

Get a token (Good for 30 seconds) to use to automatically log a subscriber into Paywhirl.

ParamDefaultDescription
id*required if email not provided*ID of the user
email*required if id not provided*Email address of the user
Once you retrieve the token, you can pass it into any widget embed code src URL as the 'loginToken' parameter.









SOCIAL MEDIA

BLOG

Read about PayWhirl, Online Business, Recurring Payments, Ecommerce & much more on our blog.

9452 Telephone Rd #437,
Ventura, CA 93004
United States.
PayWhirl is a product of Yovigo, Inc.
Terms of UsePrivacy Policy