Liking cljdoc? Tell your friends :D

stream.clojure.stripe.api.subscriptions

Info: This ns is auto-generated from the Stripe OpenAPI spec.

Info: This ns is auto-generated from the Stripe OpenAPI spec.
raw docstring

createclj

(create {:keys [body]})

Create a subscription

HTTP Method: POST Endpoint: /v1/subscriptions

Example Usage: (create {})

Create a subscription

HTTP Method: POST
Endpoint: /v1/subscriptions

Example Usage:
  (create {})
sourceraw docstring

delete-subscription-exposed-idclj

(delete-subscription-exposed-id {:keys [subscription-id]})

Cancel a subscription

HTTP Method: DELETE Endpoint: /v1/subscriptions/{subscription-id}

Path Parameters:

  • subscription-id (String): The subscription-id parameter. (required)

Example Usage: (delete-subscription-exposed-id {:subscription-id example-subscription-id})

Cancel a subscription

HTTP Method: DELETE
Endpoint: /v1/subscriptions/{subscription-id}

Path Parameters:
  - subscription-id (String): The subscription-id parameter. (required)

Example Usage:
  (delete-subscription-exposed-id {:subscription-id example-subscription-id})
sourceraw docstring

delete-subscription-exposed-id-discountclj

(delete-subscription-exposed-id-discount {:keys [subscription-id]})

Delete a subscription discount

HTTP Method: DELETE Endpoint: /v1/subscriptions/{subscription-id}/discount

Path Parameters:

  • subscription-id (String): The subscription-id parameter. (required)

Example Usage: (delete-subscription-exposed-id-discount {:subscription-id example-subscription-id})

Delete a subscription discount

HTTP Method: DELETE
Endpoint: /v1/subscriptions/{subscription-id}/discount

Path Parameters:
  - subscription-id (String): The subscription-id parameter. (required)

Example Usage:
  (delete-subscription-exposed-id-discount {:subscription-id example-subscription-id})
sourceraw docstring

list-allclj

(list-all {:keys [query-params]})

List subscriptions

HTTP Method: GET Endpoint: /v1/subscriptions

Query Parameters:

  • automatic-tax (Object): Filter subscriptions by their automatic tax settings.
  • collection-method (String): The collection method of the subscriptions to retrieve. Either charge_automatically or send_invoice.
  • created (Unknown): Only return subscriptions that were created during the given date interval.
  • current-period-end (Unknown): Only return subscriptions whose minimum item current_period_end falls within the given date interval.
  • current-period-start (Unknown): Only return subscriptions whose maximum item current_period_start falls within the given date interval.
  • customer (String): The ID of the customer whose subscriptions you're retrieving.
  • customer-account (String): The ID of the account representing the customer whose subscriptions you're retrieving.
  • ending-before (String): A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list.
  • expand (Array): Specifies which fields in the response should be expanded.
  • limit (Integer): A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
  • price (String): Filter for subscriptions that contain this recurring price ID.
  • starting-after (String): A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list.
  • status (String): The status of the subscriptions to retrieve. Passing in a value of canceled will return all canceled subscriptions, including those belonging to deleted customers. Pass ended to find subscriptions that are canceled and subscriptions that are expired due to incomplete payment. Passing in a value of all will return subscriptions of all statuses. If no value is supplied, all subscriptions that have not been canceled are returned.
  • test-clock (String): Filter for subscriptions that are associated with the specified test clock. The response will not include subscriptions with test clocks if this and the customer parameter is not set.

Example Usage: (list-all {:query-params {:limit 10}})

List subscriptions

HTTP Method: GET
Endpoint: /v1/subscriptions

Query Parameters:
  - automatic-tax (Object): Filter subscriptions by their automatic tax settings.
  - collection-method (String): The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.
  - created (Unknown): Only return subscriptions that were created during the given date interval.
  - current-period-end (Unknown): Only return subscriptions whose minimum item current_period_end falls within the given date interval.
  - current-period-start (Unknown): Only return subscriptions whose maximum item current_period_start falls within the given date interval.
  - customer (String): The ID of the customer whose subscriptions you're retrieving.
  - customer-account (String): The ID of the account representing the customer whose subscriptions you're retrieving.
  - ending-before (String): A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
  - expand (Array): Specifies which fields in the response should be expanded.
  - limit (Integer): A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
  - price (String): Filter for subscriptions that contain this recurring price ID.
  - starting-after (String): A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
  - status (String): The status of the subscriptions to retrieve. Passing in a value of `canceled` will return all canceled subscriptions, including those belonging to deleted customers. Pass `ended` to find subscriptions that are canceled and subscriptions that are expired due to [incomplete payment](https://docs.stripe.com/billing/subscriptions/overview#subscription-statuses). Passing in a value of `all` will return subscriptions of all statuses. If no value is supplied, all subscriptions that have not been canceled are returned.
  - test-clock (String): Filter for subscriptions that are associated with the specified test clock. The response will not include subscriptions with test clocks if this and the customer parameter is not set.

Example Usage:
  (list-all {:query-params {:limit 10}})
sourceraw docstring

(list-all-search {:keys [query-params]})

Search subscriptions

HTTP Method: GET Endpoint: /v1/subscriptions/search

Query Parameters:

  • expand (Array): Specifies which fields in the response should be expanded.
  • limit (Integer): A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
  • page (String): A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.
  • query (String): The search query string. See search query language and the list of supported query fields for subscriptions. (required)

Example Usage: (list-all-search {:query-params {:limit 10}})

Search subscriptions

HTTP Method: GET
Endpoint: /v1/subscriptions/search

Query Parameters:
  - expand (Array): Specifies which fields in the response should be expanded.
  - limit (Integer): A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
  - page (String): A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.
  - query (String): The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for subscriptions](https://docs.stripe.com/search#query-fields-for-subscriptions). (required)

Example Usage:
  (list-all-search {:query-params {:limit 10}})
sourceraw docstring

post-subscription-migrateclj

(post-subscription-migrate {:keys [subscription-id body]})

Migrate a subscription

HTTP Method: POST Endpoint: /v1/subscriptions/{subscription-id}/migrate

Path Parameters:

  • subscription-id (String): The subscription-id parameter. (required)

Example Usage: (post-subscription-migrate {:subscription-id example-subscription-id})

Migrate a subscription

HTTP Method: POST
Endpoint: /v1/subscriptions/{subscription-id}/migrate

Path Parameters:
  - subscription-id (String): The subscription-id parameter. (required)

Example Usage:
  (post-subscription-migrate {:subscription-id example-subscription-id})
sourceraw docstring

post-subscription-resumeclj

(post-subscription-resume {:keys [subscription-id body]})

Resume a subscription

HTTP Method: POST Endpoint: /v1/subscriptions/{subscription-id}/resume

Path Parameters:

  • subscription-id (String): The subscription-id parameter. (required)

Example Usage: (post-subscription-resume {:subscription-id example-subscription-id})

Resume a subscription

HTTP Method: POST
Endpoint: /v1/subscriptions/{subscription-id}/resume

Path Parameters:
  - subscription-id (String): The subscription-id parameter. (required)

Example Usage:
  (post-subscription-resume {:subscription-id example-subscription-id})
sourceraw docstring

retrieve-subscription-exposed-idclj

(retrieve-subscription-exposed-id {:keys [subscription-id query-params]})

Retrieve a subscription

HTTP Method: GET Endpoint: /v1/subscriptions/{subscription-id}

Path Parameters:

  • subscription-id (String): The subscription-id parameter. (required)

Query Parameters:

  • expand (Array): Specifies which fields in the response should be expanded.

Example Usage: (retrieve-subscription-exposed-id {:subscription-id example-subscription-id :query-params {:limit 10}})

Retrieve a subscription

HTTP Method: GET
Endpoint: /v1/subscriptions/{subscription-id}

Path Parameters:
  - subscription-id (String): The subscription-id parameter. (required)

Query Parameters:
  - expand (Array): Specifies which fields in the response should be expanded.

Example Usage:
  (retrieve-subscription-exposed-id {:subscription-id example-subscription-id :query-params {:limit 10}})
sourceraw docstring

update-subscription-exposed-idclj

(update-subscription-exposed-id {:keys [subscription-id body]})

Update a subscription

HTTP Method: POST Endpoint: /v1/subscriptions/{subscription-id}

Path Parameters:

  • subscription-id (String): The subscription-id parameter. (required)

Example Usage: (update-subscription-exposed-id {:subscription-id example-subscription-id})

Update a subscription

HTTP Method: POST
Endpoint: /v1/subscriptions/{subscription-id}

Path Parameters:
  - subscription-id (String): The subscription-id parameter. (required)

Example Usage:
  (update-subscription-exposed-id {:subscription-id example-subscription-id})
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close