Skip to main content

Get coupon

GET 

/wc/coupons/check

Get detail coupon by code coupon

Request​

Query Parameters

    code stringrequired

    Coupon code

    fasilitator integer

    Input ID fasilitator

    idProduct integer

    Input ID of the product

Responses​

OK. Successful get detail coupon.

Schema

    success boolean

    data

    object[]

  • Array [

  • id integer
    code string
    amount integer
    date_created string
    Example: 2022-11-16T06:48:39.000000Z
    date_modified string
    Example: 2022-11-16T06:48:39.000000Z
    discount_type string
    description string
    date_expires string
    Example: null
    usage_count integer
    individual_use string
    Example: no
    product_ids string
    Example: null
    excluded_product_ids string
    Example: null
    usage_limit integer
    usage_limit_per_user string
    Example: null
    limit_usage_to_x_items integer
    free_shipping string
    Example: no
    product_ios string
    product_categories string
    Example: null
    excluded_product_categories string
    Example: null
    exclude_sale_items string
    Example: no
    minimum_amount integer
    maximum_amount integer
    email_restrictions string
    Example: null
    used_by string
    Example: null
  • ]