Info: This ns is auto-generated from the Stripe OpenAPI spec.
Info: This ns is auto-generated from the Stripe OpenAPI spec.
(create {:keys [body]})Create a coupon
HTTP Method: POST Endpoint: /v1/coupons
Example Usage: (create {})
Create a coupon
HTTP Method: POST
Endpoint: /v1/coupons
Example Usage:
(create {})(delete-coupon {:keys [coupon-id]})Delete a coupon
HTTP Method: DELETE Endpoint: /v1/coupons/{coupon-id}
Path Parameters:
Example Usage: (delete-coupon {:coupon-id example-coupon-id})
Delete a coupon
HTTP Method: DELETE
Endpoint: /v1/coupons/{coupon-id}
Path Parameters:
- coupon-id (String): The coupon-id parameter. (required)
Example Usage:
(delete-coupon {:coupon-id example-coupon-id})(list-all {:keys [query-params]})List all coupons
HTTP Method: GET Endpoint: /v1/coupons
Query Parameters:
created field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.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.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.Example Usage: (list-all {:query-params {:limit 10}})
List all coupons
HTTP Method: GET
Endpoint: /v1/coupons
Query Parameters:
- created (Unknown): A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.
- 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.
- 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.
Example Usage:
(list-all {:query-params {:limit 10}})(retrieve-coupon {:keys [coupon-id query-params]})Retrieve a coupon
HTTP Method: GET Endpoint: /v1/coupons/{coupon-id}
Path Parameters:
Query Parameters:
Example Usage: (retrieve-coupon {:coupon-id example-coupon-id :query-params {:limit 10}})
Retrieve a coupon
HTTP Method: GET
Endpoint: /v1/coupons/{coupon-id}
Path Parameters:
- coupon-id (String): The coupon-id parameter. (required)
Query Parameters:
- expand (Array): Specifies which fields in the response should be expanded.
Example Usage:
(retrieve-coupon {:coupon-id example-coupon-id :query-params {:limit 10}})(update-coupon {:keys [coupon-id body]})Update a coupon
HTTP Method: POST Endpoint: /v1/coupons/{coupon-id}
Path Parameters:
Example Usage: (update-coupon {:coupon-id example-coupon-id})
Update a coupon
HTTP Method: POST
Endpoint: /v1/coupons/{coupon-id}
Path Parameters:
- coupon-id (String): The coupon-id parameter. (required)
Example Usage:
(update-coupon {:coupon-id example-coupon-id})cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |