Getting Started

Generating API Keys

Calling API Functions

JSON or XML

API Call Rate Limits

Affiliate Accounts

Functions

Types

Merchant Accounts

Functions

Types

TransactionItemArray Type

Represents zero or more items that were purchased as part of a transaction.


Array Elements

Type Description
TransactionItem Represents a single item that was purchased as part of a transaction.

JSON XML

Example

[
    {
        "Sku": "P0001",
        "Quantity": 1,
        "ReportedSaleValue": 50.00,
        "SaleValue": 50.00,
        "Commission": 5.00,
        "Name": "Example Product 1",
        "Brand": "Example Brand 1",
        "Category": "Clothing"
    },
    {
        "Sku": "P0002",
        "Quantity": 1,
        "ReportedSaleValue": 25.00,
        "SaleValue": 25.00,
        "Commission": 2.50,
        "Name": "Example Product 2",
        "Brand": "Example Brand 1",
        "Category": "Shoes"
    },
    {
        "Sku": "P0003",
        "Quantity": 1,
        "ReportedSaleValue": 25.00,
        "SaleValue": 25.00,
        "Commission": 2.50,
        "Name": "Example Product 3",
        "Brand": "Example Brand 2",
        "Category": "Jewellery"
    }
]
<TransactionItemArray xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://api.commissionfactory.com/V1/Affiliate">
    <TransactionItem>
        <Sku>P0001<Sku>
        <Quantity>1<Quantity>
        <ReportedSaleValue>50.00<ReportedSaleValue>
        <SaleValue>50.00<SaleValue>
        <Commission>5.00<Commission>
        <Name>Example Product 1<Name>
        <Brand>Example Brand 1<Brand>
        <Category>Clothing<Category>
    </TransactionItem>
    <TransactionItem>
        <Sku>P0002<Sku>
        <Quantity>1<Quantity>
        <ReportedSaleValue>25.00<ReportedSaleValue>
        <SaleValue>25.00<SaleValue>
        <Commission>2.50<Commission>
        <Name>Example Product 2<Name>
        <Brand>Example Brand 1<Brand>
        <Category>Shoes<Category>
    </TransactionItem>
    <TransactionItem>
        <Sku>P0003<Sku>
        <Quantity>1<Quantity>
        <ReportedSaleValue>25.00<ReportedSaleValue>
        <SaleValue>25.00<SaleValue>
        <Commission>2.50<Commission>
        <Name>Example Product 3<Name>
        <Brand>Example Brand 2<Brand>
        <Category>Jewellery<Category>
    </TransactionItem>
</TransactionItemArray>

Related Links