discount_detail

Description

Discount details provide a summary of what portion of discounts (both category and product level) apply to a given item in the cart.

Actions

GET
View a discount_detail
HEAD
Get just the header response
OPTIONS
Get a response explaining which HTTP methods are supported

Properties

Property Description Type Constraints
id The ID of this discount detail. String Read only
name The name of the discount. String Read Only
amount_per The amount of discount applied to this item. Decimal Read only
date_created The date this resource was created. Date Read only
date_modified The date this resource was last modified. Date Read only

Example Representation

{
    "_links": {
        "curies": [
            {
                "name": "fx",
                "href": "https://api.foxycart.com/rels/{rel}",
                "templated": true
            }
        ],
        "self": {
            "href": "https://api-sandbox.foxycart.com/discount_details/27",
            "title": "This Discount"
        },
        "fx:store": {
            "href": "https://api-sandbox.foxycart.com/stores/75",
            "title": "This Store"
        },
        "fx:item": {
            "href": "https://api-sandbox.foxycart.com/items/5627292",
            "title": "This Discount Item"
        },
        "fx:transaction": {
            "href": "https://api-sandbox.foxycart.com/transactions/3852608",
            "title": "This Transaction"
        }
    },
    "id": 27,
    "name": "Product Level Discount",
    "amount_per": -0.3,
    "date_created": null,
    "date_modified": null
}
<?xml version="1.0" encoding="UTF-8"?>
<resource href="https://api-sandbox.foxycart.com/discount_details/27" rel="https://api.foxycart.com/rels/discount_detail">
    <link rel="self" href="https://api-sandbox.foxycart.com/discount_details/27" title="This Discount"/>
    <link rel="https://api.foxycart.com/rels/store" href="https://api-sandbox.foxycart.com/stores/75" title="This Store"/>
    <link rel="https://api.foxycart.com/rels/item" href="https://api-sandbox.foxycart.com/items/5627292" title="This Discount Item"/>
    <link rel="https://api.foxycart.com/rels/transaction" href="https://api-sandbox.foxycart.com/transactions/3852608" title="This Transaction"/>
    <id>27</id>
    <name>Product Level Discount</name>
    <amount_per>-0.3</amount_per>
    <date_created></date_created>
    <date_modified></date_modified>
</resource>
{
    "class": [
        "discount_detail"
    ],
    "rel": [
        "https://api.foxycart.com/rels/discount_detail"
    ],
    "properties": {
        "id": 27,
        "name": "Product Level Discount",
        "amount_per": -0.3,
        "date_created": null,
        "date_modified": null
    },
    "links": [
        {
            "rel": [
                "self"
            ],
            "href": "https://api-sandbox.foxycart.com/discount_details/27"
        },
        {
            "rel": [
                "https://api.foxycart.com/rels/store"
            ],
            "href": "https://api-sandbox.foxycart.com/stores/75"
        },
        {
            "rel": [
                "https://api.foxycart.com/rels/item"
            ],
            "href": "https://api-sandbox.foxycart.com/items/5627292"
        },
        {
            "rel": [
                "https://api.foxycart.com/rels/transaction"
            ],
            "href": "https://api-sandbox.foxycart.com/transactions/3852608"
        }
    ]
}

Zoomable Resources

This resource has no linked resources which can be "zoomed" in on, filtered and embedded within this resource.