{
    "openapi": "3.0.1",
    "info": {
        "title": "The Selling Partner API for Finances",
        "description": "The Selling Partner API for Finances provides financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.",
        "contact": {
            "name": "Selling Partner API Developer Support",
            "url": "https://sellercentral.amazon.com/gp/mws/contactus.html"
        },
        "license": {
            "name": "Apache License 2.0",
            "url": "http://www.apache.org/licenses/LICENSE-2.0"
        },
        "version": "2024-06-19"
    },
    "servers": [
        {
            "url": "https://sellingpartnerapi-na.amazon.com/"
        }
    ],
    "paths": {
        "/finances/2024-06-19/transactions": {
            "get": {
                "description": "Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours.\n\n**Usage plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 0.5 | 10 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).",
                "operationId": "listTransactions",
                "parameters": [
                    {
                        "name": "postedAfter",
                        "in": "query",
                        "description": "The response includes financial events posted on or after this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be more than two minutes before the time of the request.\n\nThis field is required if you do not specify a related identifier.",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        },
                        "example": "2023-01-12"
                    },
                    {
                        "name": "postedBefore",
                        "in": "query",
                        "description": "The response includes financial events posted before (but not on) this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.\n\nThe date-time must be later than `PostedAfter` and more than two minutes before the request was submitted. If `PostedAfter` and `PostedBefore` are more than 180 days apart, the response is empty.\n\n**Default:** Two minutes before the time of the request.",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        },
                        "example": "2023-02-12"
                    },
                    {
                        "name": "marketplaceId",
                        "in": "query",
                        "description": "The identifier of the marketplace from which you want to retrieve transactions. The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).",
                        "schema": {
                            "type": "string"
                        },
                        "example": "ATIV93840DER"
                    },
                    {
                        "name": "transactionStatus",
                        "in": "query",
                        "description": "The status of the transaction.\n\n**Possible values:**\n\n* `DEFERRED`: the transaction is currently deferred.\n* `RELEASED`: the transaction is currently released.\n* `DEFERRED_RELEASED`: the transaction was deferred in the past, but is now released. The status of a deferred transaction is updated to `DEFERRED_RELEASED` when the transaction is released.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "RELEASED"
                    },
                    {
                        "name": "relatedIdentifierName",
                        "in": "query",
                        "description": "The name of the `relatedIdentifier`.\n\n**Possible values:**\n\n* `FINANCIAL_EVENT_GROUP_ID`: the financial event group ID associated with the transaction.\n\n* `ORDER_ID`: the order ID associated with the transaction.  \n\n**Note:**\n\n FINANCIAL_EVENT_GROUP_ID and ORDER_ID are the only `relatedIdentifier` with filtering capabilities at the moment. While other `relatedIdentifier` values will be included in the response when available, they cannot be used for filtering purposes.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "FINANCIAL_EVENT_GROUP_ID"
                    },
                    {
                        "name": "relatedIdentifierValue",
                        "in": "query",
                        "description": "The value of the `relatedIdentifier`.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "8129762527551"
                    },
                    {
                        "name": "nextToken",
                        "in": "query",
                        "description": "The response includes `nextToken` when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "jehgri34yo7jr9e8f984tr9i4o"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success.",
                        "headers": {
                            "x-amzn-RequestId": {
                                "description": "Unique request reference identifier.",
                                "schema": {
                                    "type": "string"
                                }
                            },
                            "x-amzn-RateLimit-Limit": {
                                "description": "Your rate limit (requests per second) for this operation.",
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ListTransactionsResponse"
                                }
                            }
                        },
                        "x-amzn-api-sandbox": {
                            "static": [
                                {
                                    "request": {
                                        "parameters": {
                                            "postedAfter": {
                                                "value": "2023-03-07"
                                            },
                                            "nextToken": {
                                                "value": "jehgri34yo7jr9e8f984tr9i4o"
                                            }
                                        }
                                    },
                                    "response": {
                                        "payload": {
                                            "nextToken": "Next token value",
                                            "transactions": [
                                                {
                                                    "sellingPartnerMetadata": {
                                                        "sellingPartnerId": "A3TH9S8BH6GOGM",
                                                        "accountType": "PAYABLE",
                                                        "marketplaceId": "ATIV93840DER"
                                                    },
                                                    "relatedIdentifiers": [
                                                        {
                                                            "relatedIdentifierName": "FINANCIAL_EVENT_GROUP_ID",
                                                            "relatedIdentifierValue": "4MVaHcsAfaYAlwlaPWrXJxrfUiKfYZ2ooWtY7528FUA"
                                                        },
                                                        {
                                                            "relatedIdentifierName": "ORDER_ID",
                                                            "relatedIdentifierValue": "8129762527551"
                                                        }
                                                    ],
                                                    "transactionType": "Shipment",
                                                    "postedDate": "2020-07-14T03:35:13.214Z",
                                                    "totalAmount": {
                                                        "currencyAmount": 10,
                                                        "currencyCode": "USD"
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            ]
                        }
                    },
                    "400": {
                        "description": "Request has missing or invalid parameters and cannot be parsed.",
                        "headers": {
                            "x-amzn-RequestId": {
                                "description": "Unique request reference identifier.",
                                "schema": {
                                    "type": "string"
                                }
                            },
                            "x-amzn-RateLimit-Limit": {
                                "description": "Your rate limit (requests per second) for this operation.",
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorList"
                                }
                            }
                        },
                        "x-amzn-api-sandbox": {
                            "static": [
                                {
                                    "request": {
                                        "parameters": {
                                            "postedBefore": {
                                                "value": "2022-03-07"
                                            }
                                        }
                                    },
                                    "response": {
                                        "errors": [
                                            {
                                                "code": "InvalidInput",
                                                "message": "Start date cannot be null",
                                                "details": "Start date cannot be null"
                                            }
                                        ]
                                    }
                                }
                            ]
                        }
                    },
                    "403": {
                        "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.",
                        "headers": {
                            "x-amzn-RequestId": {
                                "description": "Unique request reference identifier.",
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorList"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "The resource specified does not exist.",
                        "headers": {
                            "x-amzn-RequestId": {
                                "description": "Unique request reference identifier.",
                                "schema": {
                                    "type": "string"
                                }
                            },
                            "x-amzn-RateLimit-Limit": {
                                "description": "Your rate limit (requests per second) for this operation.",
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorList"
                                }
                            }
                        }
                    },
                    "415": {
                        "description": "The request payload is in an unsupported format.",
                        "headers": {
                            "x-amzn-RequestId": {
                                "description": "Unique request reference identifier.",
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorList"
                                }
                            }
                        }
                    },
                    "413": {
                        "description": "The request size exceeded the maximum accepted size.",
                        "headers": {
                            "x-amzn-RequestId": {
                                "description": "Unique request reference identifier.",
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorList"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "The frequency of requests was greater than allowed.",
                        "headers": {
                            "x-amzn-RequestId": {
                                "description": "Unique request reference identifier.",
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorList"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "An unexpected condition occurred that prevented the server from fulfilling the request.",
                        "headers": {
                            "x-amzn-RequestId": {
                                "description": "Unique request reference identifier.",
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorList"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Temporary overloading or maintenance of the server.",
                        "headers": {
                            "x-amzn-RequestId": {
                                "description": "Unique request reference identifier.",
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorList"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "ListTransactionsResponse": {
                "type": "object",
                "properties": {
                    "payload": {
                        "$ref": "#/components/schemas/TransactionsPayload"
                    }
                },
                "description": "The response schema for the `listTransactions` operation."
            },
            "TransactionsPayload": {
                "type": "object",
                "properties": {
                    "nextToken": {
                        "type": "string",
                        "description": "The response includes `nextToken` when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages."
                    },
                    "transactions": {
                        "$ref": "#/components/schemas/Transactions"
                    }
                },
                "description": "The payload for the `listTransactions` operation."
            },
            "Transactions": {
                "type": "array",
                "description": "A list of transactions within the specified time period.",
                "items": {
                    "$ref": "#/components/schemas/Transaction"
                }
            },
            "Transaction": {
                "type": "object",
                "properties": {
                    "sellingPartnerMetadata": {
                        "$ref": "#/components/schemas/SellingPartnerMetadata"
                    },
                    "relatedIdentifiers": {
                        "$ref": "#/components/schemas/RelatedIdentifiers"
                    },
                    "transactionType": {
                        "type": "string",
                        "description": "The type of transaction.\n\n**Possible value:** `Shipment`"
                    },
                    "transactionId": {
                        "type": "string",
                        "description": "The unique identifier of the transaction."
                    },
                    "transactionStatus": {
                        "type": "string",
                        "description": "The status of the transaction.\n\n**Possible values:**\n\n* `DEFERRED`: the transaction is currently deferred.\n* `RELEASED`: the transaction is currently released.\n* `DEFERRED_RELEASED`: the transaction was deferred in the past, but is now released. The status of a deferred transaction is updated to `DEFERRED_RELEASED` when the transaction is released."
                    },
                    "description": {
                        "type": "string",
                        "description": "Describes the reasons for the transaction.\n\n**Example:** 'Order Payment', 'Refund Order'"
                    },
                    "postedDate": {
                        "$ref": "#/components/schemas/Date"
                    },
                    "totalAmount": {
                        "$ref": "#/components/schemas/Currency"
                    },
                    "marketplaceDetails": {
                        "$ref": "#/components/schemas/MarketplaceDetails"
                    },
                    "items": {
                        "$ref": "#/components/schemas/Items"
                    },
                    "contexts": {
                        "$ref": "#/components/schemas/Contexts"
                    },
                    "breakdowns": {
                        "type": "array",
                        "description": "A list of breakdowns that detail how the total amount is calculated for the transaction.",
                        "items": {
                            "$ref": "#/components/schemas/Breakdown"
                        }
                    }
                },
                "description": "All the information related to a transaction.",
                "example": {
                    "sellingPartnerMetadata": {
                        "sellingPartnerId": "XXXXXXXXXXXXXX",
                        "accountType": "PAYABLE",
                        "marketplaceId": "ATVPDKIKX0DER"
                    },
                    "relatedIdentifiers": [
                        {
                            "relatedIdentifierName": "ORDER_ID",
                            "relatedIdentifierValue": "8129762527551"
                        }
                    ],
                    "transactionType": "Shipment",
                    "transactionId": "b1qD0oAliFkLiqRyGbmeT0DoS2Z2kHzi7TZ92z-vARI",
                    "transactionStatus": "Released",
                    "description": "Order Payment",
                    "postedDate": "2020-07-14T03:35:13.214Z",
                    "totalAmount": {
                        "currencyAmount": 10,
                        "currencyCode": "USD"
                    },
                    "marketplaceDetails": {
                        "marketplaceId": "ATVPDKIKX0DER",
                        "marketplaceName": "Amazon.com"
                    },
                    "items": [
                        {
                            "description": "Item title",
                            "totalAmount": {
                                "currencyAmount": 10,
                                "currencyCode": "USD"
                            },
                            "relatedIdentifiers": [
                                {
                                    "itemRelatedIdentifierName": "ORDER_ADJUSTMENT_ITEM_ID",
                                    "itemRelatedIdentifierValue": "81297625-121-27551"
                                }
                            ],
                            "breakdowns": [
                                {
                                    "breakdownType": "Product Charges",
                                    "breakdownAmount": {
                                        "currencyAmount": 10,
                                        "currencyCode": "USD"
                                    },
                                    "breakdowns": [
                                        {
                                            "breakdownType": "Principle",
                                            "breakdownAmount": {
                                                "currencyAmount": 10,
                                                "currencyCode": "USD"
                                            },
                                            "breakdowns": []
                                        }
                                    ]
                                }
                            ],
                            "contexts": [
                                {
                                    "contextType": "ProductContext",
                                    "asin": "B07FGXZQZ1",
                                    "sku": "sku-12",
                                    "quantityShipped": 1,
                                    "fulfillmentNetwork": "MFN"
                                }
                            ]
                        }
                    ],
                    "breakdowns": {
                        "breakdowns": [
                            {
                                "breakdownType": "Sales",
                                "breakdownAmount": {
                                    "currencyAmount": 10,
                                    "currencyCode": "USD"
                                },
                                "breakdowns": [
                                    {
                                        "breakdownType": "Product Charges",
                                        "breakdownAmount": {
                                            "currencyAmount": 10,
                                            "currencyCode": "USD"
                                        },
                                        "breakdowns": []
                                    }
                                ]
                            }
                        ]
                    },
                    "contexts": [
                        {
                            "contextType": "AmazonPayContext",
                            "storeName": "Store 1",
                            "orderType": "Order Type",
                            "channel": "MFN"
                        }
                    ]
                }
            },
            "BigDecimal": {
                "type": "number",
                "description": "A signed decimal number."
            },
            "Currency": {
                "type": "object",
                "properties": {
                    "currencyCode": {
                        "type": "string",
                        "description": "The three-digit currency code in ISO 4217 format."
                    },
                    "currencyAmount": {
                        "$ref": "#/components/schemas/BigDecimal"
                    }
                },
                "description": "A currency type and amount."
            },
            "SellingPartnerMetadata": {
                "type": "object",
                "properties": {
                    "sellingPartnerId": {
                        "type": "string",
                        "description": "A unique seller identifier."
                    },
                    "accountType": {
                        "type": "string",
                        "description": "The type of account in the transaction."
                    },
                    "marketplaceId": {
                        "type": "string",
                        "description": "The identifier of the marketplace where the transaction occurred. The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids)."
                    }
                },
                "description": "Metadata that describes the seller."
            },
            "RelatedIdentifier": {
                "type": "object",
                "properties": {
                    "relatedIdentifierName": {
                        "type": "string",
                        "description": "An enumerated set of related business identifier names.",
                        "enum": [
                            "ORDER_ID",
                            "SHIPMENT_ID",
                            "FINANCIAL_EVENT_GROUP_ID",
                            "REFUND_ID",
                            "INVOICE_ID",
                            "DISBURSEMENT_ID",
                            "TRANSFER_ID",
                            "DEFERRED_TRANSACTION_ID",
                            "RELEASE_TRANSACTION_ID",
                            "SETTLEMENT_ID"
                        ],
                        "x-docgen-enum-table-extension": [
                            {
                                "value": "ORDER_ID",
                                "description": "The `OrderId` that is associated with the transaction."
                            },
                            {
                                "value": "SHIPMENT_ID",
                                "description": "The `ShipmentId` that is associated with the transaction."
                            },
                            {
                                "value": "FINANCIAL_EVENT_GROUP_ID",
                                "description": "The identifier that is associated with the transaction's financial event group."
                            },
                            {
                                "value": "SETTLEMENT_ID",
                                "description": "The identifier that is associated with the transaction's settlement group."
                            },
                            {
                                "value": "REFUND_ID",
                                "description": "The `RefundId` that is associated with the transaction."
                            },
                            {
                                "value": "INVOICE_ID",
                                "description": "The `InvoiceId` that is associated with the transaction."
                            },
                            {
                                "value": "DISBURSEMENT_ID",
                                "description": "The disbursement ID for Amazon's bank transfer."
                            },
                            {
                                "value": "TRANSFER_ID",
                                "description": "The `TransferId` associated with the transaction."
                            },
                            {
                                "value": "DEFERRED_TRANSACTION_ID",
                                "description": "The transaction ID for the related deferred transaction"
                            },
                            {
                                "value": "RELEASE_TRANSACTION_ID",
                                "description": "The transaction ID for the related released transaction"
                            }
                        ]
                    },
                    "relatedIdentifierValue": {
                        "type": "string",
                        "description": "Corresponding value of `RelatedIdentifierName`."
                    }
                },
                "description": "Related business identifier of the transaction."
            },
            "RelatedIdentifiers": {
                "type": "array",
                "description": "Related business identifiers of the transaction.",
                "items": {
                    "$ref": "#/components/schemas/RelatedIdentifier"
                }
            },
            "Date": {
                "type": "string",
                "description": "A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.",
                "format": "date-time"
            },
            "MarketplaceDetails": {
                "type": "object",
                "properties": {
                    "marketplaceId": {
                        "type": "string",
                        "description": "The identifier of the marketplace where the transaction occurred. The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids)."
                    },
                    "marketplaceName": {
                        "type": "string",
                        "description": "The name of the marketplace where the transaction occurred. For example: `Amazon.com`,`Amazon.in`"
                    }
                },
                "description": "Information about the marketplace where the transaction occurred.",
                "example": {
                    "marketplaceId": "ATVPDKIKX0DER",
                    "marketplaceName": "Amazon.com"
                }
            },
            "Items": {
                "type": "array",
                "description": "A list of items in the transaction.",
                "items": {
                    "$ref": "#/components/schemas/Item"
                }
            },
            "Item": {
                "type": "object",
                "properties": {
                    "description": {
                        "type": "string",
                        "description": "A description of the items in a transaction."
                    },
                    "relatedIdentifiers": {
                        "$ref": "#/components/schemas/ItemRelatedIdentifiers"
                    },
                    "totalAmount": {
                        "$ref": "#/components/schemas/Currency"
                    },
                    "breakdowns": {
                        "type": "array",
                        "description": "A list of breakdowns that detail how the total amount is calculated for the transaction.",
                        "items": {
                            "$ref": "#/components/schemas/Breakdown"
                        }
                    },
                    "contexts": {
                        "$ref": "#/components/schemas/Contexts"
                    }
                },
                "description": "Additional information about the items in a transaction."
            },
            "ItemRelatedIdentifier": {
                "type": "object",
                "properties": {
                    "itemRelatedIdentifierName": {
                        "type": "string",
                        "description": "Enumerated set of related item identifier names for the item.",
                        "enum": [
                            "ORDER_ADJUSTMENT_ITEM_ID",
                            "COUPON_ID",
                            "REMOVAL_SHIPMENT_ITEM_ID",
                            "TRANSACTION_ID"
                        ],
                        "x-docgen-enum-table-extension": [
                            {
                                "value": "ORDER_ADJUSTMENT_ITEM_ID",
                                "description": "An Amazon-defined order adjustment identifier defined for refunds, guarantee claims, and chargeback events."
                            },
                            {
                                "value": "COUPON_ID",
                                "description": "An identifier for a coupon that is applied to a transaction."
                            },
                            {
                                "value": "REMOVAL_SHIPMENT_ITEM_ID",
                                "description": "An identifier for an item in a removal shipment."
                            },
                            {
                                "value": "TRANSACTION_ID",
                                "description": "The transaction ID of the item."
                            }
                        ]
                    },
                    "itemRelatedIdentifierValue": {
                        "type": "string",
                        "description": "Corresponding value to `ItemRelatedIdentifierName`."
                    }
                },
                "description": "Related business identifiers of the item.",
                "example": {
                    "itemRelatedIdentifierName": "ORDER_ADJUSTMENT_ITEM_ID",
                    "itemRelatedIdentifierValue": "OAI-123456789"
                }
            },
            "ItemRelatedIdentifiers": {
                "type": "array",
                "description": "Related business identifiers of the item in the transaction.",
                "items": {
                    "$ref": "#/components/schemas/ItemRelatedIdentifier"
                }
            },
            "Breakdowns": {
                "type": "array",
                "description": "A list of breakdowns that detail how the total amount is calculated for the transaction.",
                "example": [
                    {
                        "breakdownType": "Sales",
                        "breakdownAmount": {
                            "currencyAmount": 10,
                            "currencyCode": "USD"
                        },
                        "breakdowns": [
                            {
                                "breakdownType": "Product Charges",
                                "breakdownAmount": {
                                    "currencyAmount": 10,
                                    "currencyCode": "USD"
                                },
                                "breakdowns": []
                            }
                        ]
                    }
                ],
                "items": {
                    "$ref": "#/components/schemas/Breakdown"
                }
            },
            "Breakdown": {
                "type": "object",
                "properties": {
                    "breakdownType": {
                        "type": "string",
                        "description": "The type of charge."
                    },
                    "breakdownAmount": {
                        "$ref": "#/components/schemas/Currency"
                    },
                    "breakdowns": {
                        "type": "array",
                        "description": "A list of breakdowns that detail how the total amount is calculated for the transaction.",
                        "items": {
                            "$ref": "#/components/schemas/Breakdown"
                        }
                    }
                },
                "description": "Details about the movement of money in the financial transaction. Breakdowns are further categorized into breakdown types, breakdown amounts, and further breakdowns."
            },
            "Contexts": {
                "type": "array",
                "description": "A list of additional information about the item.",
                "items": {
                    "$ref": "#/components/schemas/Context"
                }
            },
            "Context": {
                "description": "Additional Information about the item.",
                "allOf": [
                    {
                        "required": [
                            "contextType"
                        ],
                        "type": "object",
                        "properties": {
                            "contextType": {
                                "type": "string"
                            }
                        }
                    },
                    {
                        "$ref": "#/components/schemas/AmazonPayContext"
                    },
                    {
                        "$ref": "#/components/schemas/ProductContext"
                    },
                    {
                        "$ref": "#/components/schemas/PaymentsContext"
                    },
                    {
                        "$ref": "#/components/schemas/DeferredContext"
                    },
                    {
                        "$ref": "#/components/schemas/BusinessContext"
                    },
                    {
                        "$ref": "#/components/schemas/TimeRangeContext"
                    }
                ]
            },
            "ProductContext": {
                "type": "object",
                "properties": {
                    "asin": {
                        "type": "string",
                        "description": "The Amazon Standard Identification Number (ASIN) of the item."
                    },
                    "sku": {
                        "type": "string",
                        "description": "The Stock Keeping Unit (SKU) of the item."
                    },
                    "quantityShipped": {
                        "type": "integer",
                        "description": "The quantity of the item shipped.",
                        "format": "int32"
                    },
                    "fulfillmentNetwork": {
                        "type": "string",
                        "description": "The fulfillment network of the item."
                    }
                },
                "description": "Additional information related to the product.",
                "example": {
                    "asin": "B07FGXZQZ1",
                    "sku": "sku-12",
                    "quantityShipped": 1,
                    "fulfillmentNetwork": "MFN"
                }
            },
            "AmazonPayContext": {
                "type": "object",
                "properties": {
                    "storeName": {
                        "type": "string",
                        "description": "The name of the store that is related to the transaction."
                    },
                    "orderType": {
                        "type": "string",
                        "description": "The transaction's order type."
                    },
                    "channel": {
                        "type": "string",
                        "description": "Channel details of related transaction."
                    }
                },
                "description": "Additional information related to Amazon Pay.",
                "example": {
                    "storeName": "Store 1",
                    "orderType": "Order Type",
                    "channel": "MFN"
                }
            },
            "PaymentsContext": {
                "type": "object",
                "properties": {
                    "paymentType": {
                        "type": "string",
                        "description": "The type of payment."
                    },
                    "paymentMethod": {
                        "type": "string",
                        "description": "The method of payment."
                    },
                    "paymentReference": {
                        "type": "string",
                        "description": "The reference number of the payment."
                    },
                    "paymentDate": {
                        "$ref": "#/components/schemas/Date"
                    }
                },
                "description": "Additional information related to payments-related transactions.",
                "example": {
                    "paymentType": "Debit Card",
                    "paymentMethod": "BANK",
                    "paymentReference": "XXXXX123",
                    "paymentDate": "2020-07-14T03:35:13.214Z"
                }
            },
            "DeferredContext": {
                "type": "object",
                "properties": {
                    "deferralReason": {
                        "type": "string",
                        "description": "The deferral policy applied to the transaction.\n\n**Examples:** `B2B` (invoiced orders), `DD7` (delivery date policy)"
                    },
                    "maturityDate": {
                        "$ref": "#/components/schemas/Date"
                    }
                },
                "description": "Additional information related to deferred transactions.",
                "example": {
                    "deferralReason": "B2B",
                    "maturityDate": "2024-07-14T00:00:00Z"
                }
            },
            "BusinessContext": {
                "type": "object",
                "properties": {
                    "storeName": {
                        "type": "string",
                        "description": "The store name associated with the transaction.",
                        "enum": [
                            "AMAZON_HAUL"
                        ]
                    }
                },
                "description": "Information about the line of business associated with a transaction.",
                "example": {
                    "storeName": "AMAZON_HAUL"
                }
            },
            "TimeRangeContext": {
                "type": "object",
                "properties": {
                    "startTime": {
                        "$ref": "#/components/schemas/Date"
                    },
                    "endTime": {
                        "$ref": "#/components/schemas/Date"
                    }
                },
                "description": "Additional information that is related to the time range of the transaction.",
                "example": {
                    "startTime": "2020-07-14T03:35:13.214Z",
                    "endTime": "2020-07-14T03:35:13.214Z"
                }
            },
            "ErrorList": {
                "required": [
                    "errors"
                ],
                "type": "object",
                "properties": {
                    "errors": {
                        "type": "array",
                        "description": "The error responses that are returned when the request is unsuccessful.",
                        "items": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                },
                "description": "A list of error responses returned when a request is unsuccessful."
            },
            "Error": {
                "required": [
                    "code",
                    "message"
                ],
                "type": "object",
                "properties": {
                    "code": {
                        "type": "string",
                        "description": "An error code that identifies the type of error that occurred."
                    },
                    "message": {
                        "type": "string",
                        "description": "A message that describes the error condition."
                    },
                    "details": {
                        "type": "string",
                        "description": "Additional details that can help the caller understand or fix the issue."
                    }
                },
                "description": "An error response returned when the request is unsuccessful."
            }
        }
    },
    "x-original-swagger-version": "2.0"
}