is allowed
GET /api/v1/coupons/bulk_create_coupons.csv
Parameters
| Name |
Description |
|
id
|
coupon id
|
|
is_primary
|
primary coupon?
|
|
code
|
:text
|
|
currency
|
:string(255)
|
|
discount_amount
|
:integer
|
|
discount_in_months
|
:integer
|
|
discount_percent
|
:float
|
|
duration_kind
|
forever, once, or repeating
|
|
expiration_date
|
:date
|
|
is_published
|
:boolean
|
|
name
|
:text
|
|
number_available
|
:integer
|
|
number_of_uses
|
:integer
|
|
site_wide
|
site_wide boolean
|
|
number
|
number integer
|
|
product_id
|
product_id integer
|
Request
Headers
Route
GET /api/v1/coupons/bulk_create_coupons.csv?id=24&code=FOO&discount_percent=0.2&duration_kind=forever&expiration_date=2019-11-30&site_wide=false&number=2&product_id=20
Query Parameters
id: 24
code: FOO
discount_percent: 0.2
duration_kind: forever
expiration_date: 2019-11-30
site_wide: false
number: 2
product_id: 20
cURL
curl "http://localhost:3000/api/v1/coupons/bulk_create_coupons.csv?id=24&code=FOO&discount_percent=0.2&duration_kind=forever&expiration_date=2019-11-30&site_wide=false&number=2&product_id=20" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: kvxJRVPcE-LzUh_cP9zJA7yAmtJhds5n4A" \
-H "X-Api-Email: user-81@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
[binary data]