Marketplace facilitator orders

If your organization is designated a marketplace facilitator by a taxation authority, then when you use the orders API to create orders, you can either:

  • Allow the Toast platform to calculate and populate the item prices and tax amounts based on the restaurant configuration.

  • Submit the item prices and tax amounts. You typically use this option if you have a tax partner that calculates the tax for you.

    The prices that you provide should match the menu prices from the restaurant configuration.

In both cases, you also indicate whether you collect and remit taxes on behalf of the Toast restaurant. Restaurant employees use Toast platform analytics and reports to get information about the tax amounts that a marketplace facilitator paid on their behalf.

For more information about marketplace facilitator orders in the Toast platform, see Marketplace facilitator tax payments.

Overview of the order creation process for a marketplace facilitator order

A marketplace facilitator uses the following process to create an order and remit tax payments.

  1. As a marketplace facilitator, your organization receives a guest order to be fulfilled at a Toast restaurant location.

  2. You use the orders API to get accurate price and tax amount information for the order. For more information, see Getting check prices before you submit an order.

  3. You receive payment for the order from the restaurant guest.

  4. You transmit the order information to the Toast platform for fulfillment at the restaurant location.

    When you create a Toast platform order as a marketplace facilitator, you can either:

    You also indicate whether you remit tax amounts on behalf of the restaurant. The MarketplaceFacilitatorTaxInfo object provides information about whether you remit taxes.

    If you specify the order prices and tax amounts, then MarketplaceFacilitatorTaxInfo also includes the order tax amounts.

  5. If you do remit taxes, then you remit the tax amounts to taxing authorities on behalf of the restaurant.

  6. You deliver order payment to the restaurant location.

Allowing the Toast platform to calculate the prices and tax amounts

When you create a marketplace facilitator order, you can have the Toast platform calculate and populate the prices and tax amounts when the order is created.

For marketplace facilitator orders where the Toast platform calculates the prices and tax amounts, you include a MarketplaceFacilitatorTaxInfo object that contains a single value, facilitatorCollectAndRemitTaxOrder.

  • If you remit taxes on behalf of the restaurant, set facilitatorCollectAndRemitTaxOrder to true.

  • If you do not remit taxes on behalf of the restaurant, set facilitatorCollectAndRemitTaxOrder to false.

The presence of the facilitatorCollectAndRemitTaxOrder value indicates that the Toast platform populates the prices and tax amounts. Do not provide an externalPriceAmount value for any of the menu item selections.

The Order object in the following example creates a marketplace facilitator order that where the Toast platform populates the price and tax amounts. In this example, the marketplace facilitator does not remit the taxes.

Marketplace facilitator order where the Toast platform populates the prices and tax amounts

{
  "entityType": "Order",

    [contents omitted]

  "marketplaceFacilitatorTaxInfo": {1
    "facilitatorCollectAndRemitTaxOrder": false2
  },
  "checks": [
    {
      "entityType": "Check",
      "selections": [
        {
          "entityType": "MenuItemSelection",3
          "itemGroup": {
            "guid": "881472e6-dd94-48c6-b5c6-25e51a864208",
            "entityType": "MenuGroup"
          },
          "item": {
            "entityType": "MenuItem",
            "guid": "9c59d4ab-8242-450f-8f36-b16e1b3ab802"
          },
          "quantity": 1,
          "modifiers": []
        }
      ],

    [contents omitted]

    }
  ]
}

1

Contains information about the taxes that a marketplace facilitator organization remits on behalf of a Toast restaurant.

2

Indicates whether the marketplace facilitator organization will pay the tax amounts for an order on behalf of the restaurant that fulfills the order. In this example, the marketplace facilitator will not pay the tax amounts.

3

If you include the facilitatorCollectAndRemitTaxOrder value, do not specify externalPriceAmount for menu item selections in the order.


Specifying prices and tax amounts

When you create a marketplace facilitator order, you can provide the prices and tax amounts for the order. You typically select this option when you have a tax partner that calculates the tax amounts for you.

When you choose this option, make sure that the prices that you provide are consistent with the restaurant menu prices. You can get the prices for the current order (see Getting check prices before you submit an order), or get the prices from the menu configuration (see Get menus).

In a marketplace facilitator order that specifies prices and tax amounts:

  • For each menu item selection, provide the item price as the value of externalPriceAmount.

    For menu items that use size pricing, specify the item price as the value of externalPriceAmount for the size-price modifier. For the parent item, set externalPriceAmount to 0.00. For more information, see Specifying size prices in marketplace facilitator orders.

  • In the MarketplaceFacilitatorTaxInfo object for the order, include a taxes array of AppliedTaxRate objects.

    You provide an AppliedTaxRate object for each type of tax that applies to the order. In each AppliedTaxRate object:

    • Set name to the name of the tax. This value is not used outside of the Toast API. It can be any value that is useful for you.

    • Set taxAmount to the total amount for the tax across all of the checks and menu item selections.

    • Use the facilitatorCollectAndRemitTax value to indicate whether you will remit the amount for that tax.

      If you will remit the tax amount, set facilitatorCollectAndRemitTax to true.

      If you will not remit the tax amount, set facilitatorCollectAndRemitTax to false.

The Order object in the following example creates a marketplace facilitator order that provides the prices and tax amounts for the order. The marketplace facilitator remits the tax amount for one of the taxes, but does not remit the tax amount for the other tax.

Marketplace facilitator order that specifies prices and tax amounts

{
  "entityType": "Order",

    [contents omitted]

  "marketplaceFacilitatorTaxInfo": {1
    "taxes": [2
      {
        "name": "SomeTax",
        "taxAmount": 3.21,3
        "facilitatorCollectAndRemitTax": true4
      },
      {
        "name": "SomeOtherTax",
        "taxAmount": 2.34,
        "facilitatorCollectAndRemitTax": false5
      }
    ]
  },
  "checks": [
    {
      "entityType": "Check",
      "selections": [
        {
          "entityType": "MenuItemSelection",
          "externalPriceAmount": 123.45,6
          "itemGroup": {
            "guid": "881472e6-dd94-48c6-b5c6-25e51a864208",
            "entityType": "MenuGroup"
          },
          "item": {
            "entityType": "MenuItem",
            "guid": "9c59d4ab-8242-450f-8f36-b16e1b3ab802"
          },
          "quantity": 1,
          "modifiers": []
        }
      ],

    [contents omitted]

    }
  ]
}

1

Contains information about the taxes that a marketplace facilitator organization remits on behalf of a Toast restaurant.

2

Include the taxes value if you specify prices and tax amounts for a marketplace facilitator order.

3

Specifies the total tax amount for this tax type across all of the checks and menu item selections in the order.

4

The value true indicates that the marketplace facilitator organization will pay this tax amount for the order on behalf of the restaurant that fulfills the order.

5

The value false indicates that the marketplace facilitator organization will not pay this tax amount for the order on behalf of the restaurant that fulfills the order.

6

Specifies the price for this menu item selection. To specify prices and tax amounts for a marketplace facilitator order, include the externalPriceAmount value for each menu item selection. The specified price should correspond to the price that is configured in the restaurant menu.


Specifying size prices in marketplace facilitator orders

Marketplace facilitator orders can include menu items that use size pricing. For information about menu items with size pricing, see Menu item with a size price.

When you create a marketplace facilitator order and specify prices, you include an externalPriceAmount for all of the menu item selections. For size-priced items:

  • Set the externalPriceAmount for the parent item to 0.0.

  • Include the actual price of the item in the externalPriceAmount value of the size modifier.

The Order object in the following example creates a marketplace facilitator order with a menu item selection that uses size pricing.

Marketplace facilitator order that specifies a size-based price for a menu item selection

{
  "entityType": "Order",

    [contents omitted]

  "marketplaceFacilitatorTaxInfo": {
    "taxes": [1
      {
        "name": "SomeTax",
        "taxAmount": 0.10,
        "facilitatorCollectAndRemitTax": true
      }
    ]
  },
  "checks": [
    {
      "entityType": "Check",
      "selections": [
        {
          "entityType": "MenuItemSelection",
          "externalPriceAmount": 0,2
          "itemGroup": {
            "guid": "881472e6-dd94-48c6-b5c6-25e51a864208",
            "entityType": "MenuGroup"
          },
          "item": {
            "entityType": "MenuItem",
            "guid": "9c59d4ab-8242-450f-8f36-b16e1b3ab802"3
          },
          "quantity": 1,
          "modifiers": [
            {
              "externalPriceAmount": 10.00,4
              "entityType": "MenuItemSelection",
              "optionGroup": {
                "guid": "f315fe4c-a74d-49c1-b117-fe4494bb456e"5
              },
              "item": {
                "entityType": "MenuItem",
                "guid": "4382f595-8f01-4d97-b3ec-8fe91da963a1"6
              },
              "quantity": 1
            }
          ]
        }
      ],

    [contents omitted]

    }
  ]
}

1

When you specify tax amounts for an order, you also specify the prices for items in the order. For more information, see Specifying prices and tax amounts.

2

For items that use size prices, set externalPriceAmount for the parent item to 0.00.

3

The Toast platform GUID of the size-priced parent item.

4

The price of the selected size modifier for the size-priced item.

5

The Toast platform GUID of the Size modifier group that is used for size pricing.

6

The Toast platform GUID of the selected modifier for the item that uses size pricing. Represents a value such as Small, Medium, or Large.