coupon_item_category

Collection: coupon_item_categories

This resource represents a relationship between a coupon and an item_category for the purpose of limiting which categories the coupon applies to. To add an item category limitation to a coupon, you create a coupon item category resource by sending a POST to the coupon_item_categories link relationship of a coupon using the item_category uri from its self link relationship.

Required Scopes

Full store_full_access
Read coupons_read
Write coupons_write

Actions

GET View a coupon item category
PATCH Update a coupon item category (send only the properties you want to modify)
PUT Replace a coupon item category (send the entire representation)
DELETE Delete a coupon item category
HEAD Get just the header response
OPTIONS Get a response explaining which HTTP methods are supported

Properties (4)

coupon_uri String

The full API URI of the coupon associated with this coupon item category.

Obtained from the self link relation of a coupon.

item_category_uri String

The full API URI of the item category associated with this coupon item category.

Obtained from the self link relation of an item_category.

date_created String (nullable) · Read-only

The date this resource was created.

date_modified String (nullable) · Read-only

The date this resource was last modified.

Link Relations (4)

self Coupon Item Category Relationship
fx:store GET PATCH PUT DELETE This Store
fx:coupon GET PATCH PUT DELETE This Coupon
fx:item_category GET PATCH PUT DELETE This Item Category
https://api.foxycart.com/coupon_item_categories/{id}

Example Representation

{
  "_links": {
    "curies": [
      {
        "name": "fx",
        "href": "https://api.foxycart.com/rels/{rel}",
        "templated": true
      }
    ],
    "self": {
      "href": "https://api.foxycart.com/coupon_item_categories/123",
      "title": "Coupon Item Category Relationship"
    },
    "fx:store": {
      "href": "https://api.foxycart.com/stores/456",
      "title": "This Store"
    },
    "fx:coupon": {
      "href": "https://api.foxycart.com/coupons/999",
      "title": "This Coupon"
    },
    "fx:item_category": {
      "href": "https://api.foxycart.com/item_categories/999",
      "title": "This Item Category"
    }
  },
  "coupon_uri": "https://api-sandbox.foxycart.com/coupons/813",
  "item_category_uri": "https://api-sandbox.foxycart.com/item_categories/307",
  "date_created": "2015-05-27T12:38:46-0700",
  "date_modified": "2015-05-27T12:38:46-0700"
}