From f0e7e2ee76c2fe27fff7e1504d69b9c3c91980a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20San=20Rom=C3=A1n?= Date: Fri, 24 Aug 2018 10:58:05 +0200 Subject: [PATCH] Add docs for billing API with organization_id Update information on billing API endpoints with the new `organization_id` parameter. --- billing/api-endpoints.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/billing/api-endpoints.md b/billing/api-endpoints.md index 93f1755..e6fcf35 100644 --- a/billing/api-endpoints.md +++ b/billing/api-endpoints.md @@ -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.

Supported values: `publish` or `analyze`. | +| `organization_id` | optional | string | The organization ID for which to perform the action.

Default is `null`.

If passed, we will check if the user is part of that organization before returning any information. | **Response**