Skip to content

Commit

Permalink
Add docs for billing API with organization_id
Browse files Browse the repository at this point in the history
Update information on billing API endpoints with the new `organization_id` parameter.
  • Loading branch information
msanroman committed Aug 24, 2018
1 parent 1ef8d58 commit f0e7e2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion billing/api-endpoints.md
Expand Up @@ -13,13 +13,14 @@ These endpoints allow you to handle Stripe subscriptions for Publish and Analyze
___

### GET /1/billing/retrieve-billing-data.json
Get basics billing data for the current user. (it has been poorly implemented for now to unblock the Analyze team, and should only be used by Analyze) `official client only`
Get basics billing data for the current user or for a given organization ID (as long as the current user is part of that organization). (it has been poorly implemented for now to unblock the Analyze team, and should only be used by Analyze) `official client only`

**Parameters**

| Name | Required | Type | Description |
| -------------:|:--------:|:-------:| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `product` | required | string | The product for which to perform the action. <br/><br/> Supported values: `publish` or `analyze`. |
| `organization_id` | optional | string | The organization ID for which to perform the action. <br/><br/> Default is `null`. <br/><br/> If passed, we will check if the user is part of that organization before returning any information. |

**Response**

Expand Down

0 comments on commit f0e7e2e

Please sign in to comment.