Skip to content

Commit

Permalink
add returnPath to loyalty docs
Browse files Browse the repository at this point in the history
  • Loading branch information
otothea committed May 23, 2022
1 parent bc2922b commit 98fc47d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/loyalty/documentation/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ interval string The billing interval. Should be ``month`` or ``year``
password string
tags number[] Array of Tag IDs
membership number Membership ID
returnPath [string] The URL path to return to after stripe checkout
=========== ======== ======================================================

.. code-block:: js
Expand All @@ -32,6 +33,7 @@ membership number Membership ID
dateOfBirth: '12/25/1990',
membership: 1,
tags: [1, 2, 3, 4],
returnPath: '/'
});
Response
Expand Down
13 changes: 10 additions & 3 deletions docs/loyalty/documentation/billing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ Field Type Description
=========== ======== =====================================================
interval string The billing interval. Should be ``month`` or ``year``
membership number Membership ID
returnPath [string] The URL path to return to after stripe checkout
=========== ======== =====================================================

.. code-block:: js
const response = await axios.get('https://botisimo.com/api/v1/loyalty/:team/billing/update', {
params: {
interval: 'month',
membership: 1
membership: 1,
returnPath: '/billing'
},
headers: {
'x-user-auth-token': 'xxxxxxx',
Expand Down Expand Up @@ -64,14 +66,16 @@ Field Type Description
=========== ======== =====================================================
interval string The billing interval. Should be ``month`` or ``year``
membership number Membership ID
returnPath [string] The URL path to return to after stripe checkout
=========== ======== =====================================================

.. code-block:: js
const response = await axios.get('https://botisimo.com/api/v1/loyalty/:team/billing/confirm', {
params: {
interval: 'month',
membership: 1
membership: 1,
returnPath: '/billing'
},
headers: {
'x-user-auth-token': 'xxxxxxx',
Expand All @@ -98,12 +102,15 @@ Request
=========== ======== ==========================================
Field Type Description
=========== ======== ==========================================
\- \- \-
returnPath [string] The URL path to return to after stripe checkout
=========== ======== ==========================================

.. code-block:: js
const response = await axios.get('https://botisimo.com/api/v1/loyalty/:team/billing/manage', {
params: {
returnPath: '/billing'
},
headers: {
'x-user-auth-token': 'xxxxxxx',
},
Expand Down

0 comments on commit 98fc47d

Please sign in to comment.