---
updatedAt: 2026-03-24T12:23:00.000Z
agentTools:
  projectIndex: https://docs.clover.com/dev/llms.txt
---

# Create an order

Creates a new order object.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "installment_info": {
        "description": "Installment information for the transaction.",
        "properties": {
          "bill_pay_indicator": {
            "enum": [
              "Recurring",
              "Installment"
            ],
            "type": "string",
            "description": "Indicates whether the transaction is a recurring or installment payment. \n Values:\n  Installment\n  Recurring - For Canadian merchants, the value must be Recurring"
          },
          "invoice_number": {
            "type": "string",
            "description": "Invoice number of the installment or recurring transaction.\n Length: Max 12 characters"
          },
          "description": {
            "type": "string",
            "description": "Description of the `installment_info` object."
          },
          "total_count": {
            "type": "integer",
            "description": "Total count of the transaction installments as per the cardholder agreement with the merchant.\n All customer-initiated transactions require 3DS authentication. Additionally, `total_count` is required for the following cards and transactions:\n **Discover&reg; cards**, including JCB&reg; (US domestic) and Diners&reg; used for merchant-initiated installments and recurring transactions. Default: Not defined\n **India-issued Discover cards** used for merchant-initiated recurring transactions.\n **India-issued Visa&reg; cards** used for recurring transactions. Values: 1 to 99; Default: 99"
          },
          "total_amount": {
            "type": "integer",
            "description": "Total installment amount.\n Max 500,000 USD"
          },
          "sequence_number": {
            "type": "integer",
            "description": "Required for Discover card. Sequence of the transactions, displayed in ascending order, when multiple installment payments are submitted.\n Length: 2"
          },
          "amount_type": {
            "type": "string",
            "enum": [
              "Fixed",
              "Variable"
            ],
            "description": "Transaction account type applicable to Discover (including JCB and Diner) and Visa cards. \n All customer-initiated transactions require 3DS authentication. Additionally, `amount_type` is required for the following cards and transactions: \n **Discover cards**, including JCB (US domestic) and Diners are used for merchant-initiated installments and recurring transactions.\n **India-issued Discover cards** are used for merchant-initiated recurring transactions.\n **India-issued Visa cards** are used for recurring transactions.\n Default: Fixed"
          },
          "interval": {
            "type": "string",
            "enum": [
              "DAY",
              "WEEK",
              "MONTH",
              "YEAR",
              "SEMI_MONTH"
            ],
            "description": "Frequency of a recurring or installment or recurring payment.\n This field is required for:\n **Discover card** used for merchant-initiated installment or recurring transactions.\n **India-issued Visa cards** used for recurring transactions."
          },
          "interval_count": {
            "type": "integer",
            "description": "Frequency counts of a installment or recurring payment.\n This field is required for:\n **Discover card** used for merchant-initiated installment or recurring transactions.\n **India-issued Visa cards** used for recurring transactions."
          }
        }
      },
      "threeds_validation_result": {
        "description": "3DSecure validation result.",
        "properties": {
          "validation_result": {
            "enum": [
              "AUTHENTICATION_FAILED",
              "AUTHENTICATION_SUCCESSFUL",
              "ISSUER_DOES_NOT_PARTICIPATE",
              "ATTEMPTED_UNSUCCESSFULLY",
              "ATTEMPTED_SUCCESSFULLY",
              "NOT_POSSIBLE"
            ],
            "type": "string",
            "description": "Indicates validation result of 3DSecure transaction."
          },
          "source": {
            "type": "string",
            "description": "Source of the 3DSecure transaction. Example: `CLOVER` or `NON_CLOVER`"
          }
        }
      },
      "stored_credentials": {
        "description": "Stored credentials for a transaction. For initial and subsequent payments with a saved card, stored credentials are available only with multi-pay (mTokens) tokens. Please ensure the `sequence` field within this object is correctly set to `FIRST` for the initial transaction or `SUBSEQUENT` for all others. See [Save a card for future transactions](https://docs.clover.com/dev/docs/save-a-card-for-future-transactions) for more information.",
        "properties": {
          "sequence": {
            "enum": [
              "FIRST",
              "SUBSEQUENT"
            ],
            "type": "string",
            "description": "Indicates the sequence for an external multi-pay token.\nValues:\nFIRST - The initial transaction for a token, initiated by the CARDHOLDER.\nSUBSEQUENT - A SUBSEQUENT transaction using an existing token, can be initiated by the CARDHOLDER or the MERCHANT."
          },
          "is_scheduled": {
            "type": "boolean",
            "description": "Indicates whether the transaction is scheduled or part of an installment.\n Values:\n  True - Transaction is scheduled.\n  False - Transaction is part of an installment. Installments are only available in the US."
          },
          "initiator": {
            "enum": [
              "MERCHANT",
              "CARDHOLDER"
            ],
            "type": "string",
            "description": "Indicates with whose consent the transaction is initiated.\n  Values:\n  Cardholder\n  Merchant"
          },
          "installment_info": {
            "$ref": "#/components/schemas/installment_info"
          }
        }
      },
      "soft_descriptor": {
        "description": "Soft descriptor information for a transaction. This information displays on the customer's card statement in place of the merchant's business information on record.",
        "properties": {
          "dba_name": {
            "type": "string",
            "maxLength": 38,
            "description": "Merchant doing business as (DBA) name, product, or service.\n Length: Max 38 alphanumeric characters."
          },
          "street": {
            "type": "string",
            "description": "Merchant's street address."
          },
          "city": {
            "type": "string",
            "description": "Merchant's city."
          },
          "region": {
            "type": "string",
            "maxLength": 2,
            "description": "Merchant's state.\n Format: 2-character postal abbreviation (US only)."
          },
          "postal_code": {
            "type": "string",
            "description": "Merchant's postal code."
          },
          "country_code": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "description": "Merchant's country code. \n Format: 3-digit; see the [Country code reference](https://docs.clover.com/docs/country-code-reference)."
          },
          "merchant_contact_info": {
            "type": "string",
            "description": "Merchant's phone number or email address.\n Format: Max 13 characters for Discover&reg; and Visa&reg; transactions."
          }
        }
      },
      "purchase_card_level2": {
        "description": "Additional data for purchase card transactions (US only).",
        "properties": {
          "tax_amount": {
            "type": "integer",
            "format": "int64",
            "description": "Part of the transaction amount that indicates the sales tax. A `pc_order_number` is required when including a `tax_amount`."
          },
          "tax_indicator": {
            "type": "integer",
            "description": "Taxable status of the transaction.\n Values:\n 0 – No tax information provided.\n 1 – Tax amount is provided.\n 2 – Purchase item is tax exempt or non-taxable.",
            "enum": [
              0,
              1,
              2
            ]
          },
          "purchase_identifier": {
            "type": "string",
            "description": "Identifier, such as stock keeping unit (SKU), code or reference number that the merchant or customer uses to identify the purchase."
          },
          "pc_order_number": {
            "type": "string",
            "description": "Order number or customer reference number reported as part of the purchase card data."
          },
          "discount_amount": {
            "type": "integer",
            "format": "int64",
            "description": "Discount amount for the transaction.\n Format: Cents"
          },
          "freight_amount": {
            "type": "integer",
            "format": "int64",
            "description": "Freight amount included for the transaction.\n Format: Cents"
          },
          "duty_amount": {
            "type": "integer",
            "format": "int64",
            "description": "Duty amount included for the transaction.\n Format: Cents"
          },
          "destination_postal_code": {
            "type": "string",
            "description": "Postal or ZIP code of the delivery location."
          },
          "ship_from_postal_code": {
            "type": "string",
            "description": "Postal or ZIP code of the shipping location."
          },
          "destination_country_code": {
            "type": "integer",
            "description": "Delivery location country code.\n Format: 3-digit code; see the [Country code reference](https://docs.clover.com/docs/country-code-reference)."
          },
          "merchant_tax_id": {
            "type": "string",
            "description": "Only for Mastercard&reg;. Identifier (ID) for the tax the merchant collects for the transaction."
          },
          "product_description": {
            "type": "string",
            "description": "Description of the purchased item."
          }
        }
      },
      "purchase_card_level3": {
        "description": "Additional data for purchase card level3 transactions (US only). Supported for Mastercard&reg; and Visa&reg only. Purchase card level2 is mandatory for level3 transactions.",
        "properties": {
          "service_code": {
            "type": "string",
            "maxLength": 3,
            "description": "Required for all non-keyed transactions and swiped transactions. Service code extracted from the track data."
          },
          "magnetic_Stripe_Ind": {
            "type": "boolean",
            "description": "Indicates whether magnetic stripe card was used.\n Values:\n True - magnetic stripe swiped transaction\n False"
          },
          "level3_line_items": {
            "description": "List of level3 line items.",
            "items": {
              "$ref": "#/components/schemas/level3_line_item"
            },
            "type": "array"
          }
        }
      },
      "level3_line_item": {
        "description": "Level3 line item details.",
        "properties": {
          "item_description": {
            "type": "string",
            "maxLength": 35,
            "description": "Required for reduced interchange and for Mastercard&reg;. ItemMerchandise description.\n Format:\n  For Mastercard, level 3 must not be all 0s (zeros) or all high/low values.\n For Visa, level 3 must not be all spaces or all 0s (zeros).\n Length: Maximum 35 characters."
          },
          "product_code": {
            "type": "string",
            "maxLength": 12,
            "description": "Required for Mastercard and Visa. Product or Universal Product Code (UPC).\n Format: Must not be all spaces."
          },
          "unit_cost": {
            "type": "integer",
            "format": "int64",
            "maxLength": 13,
            "description": "Unit cost of level3 line item.\n Format: For Visa must not be all spaces or 0s (zeros)."
          },
          "quantity": {
            "type": "number",
            "format": "decimal",
            "description": "Item quantity information; required for reduced interchange.\n Format: Must not be all spaces or 0s (zeros); Last 4 digits are considered decimal places, example: 20.0000"
          },
          "discount_amount": {
            "type": "integer",
            "format": "int64",
            "maxLength": 13,
            "description": "Discount amount applied to the level3 line item.\n Format: For Visa level2 must not be all 0s (zeros), if a discount exists."
          },
          "unit_of_measure": {
            "type": "string",
            "maxLength": 12,
            "description": "Unit of measurement codes used for international trade. Required for reduced interchange for both Mastercard and Visa. See [Unit of Measurement codes](https://docs.clover.com/docs/units-of-measurement-codes)."
          },
          "commodity_code": {
            "type": "string",
            "maxLength": 12,
            "description": "Required for Visa. Indicates classification of purchased items."
          }
        },
        "required": [
          "item_description",
          "quantity",
          "unit_of_measure",
          "product_code",
          "unit_cost"
        ]
      },
      "error": {
        "description": "Error response from the API.",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/api_errors"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "api_errors": {
        "properties": {
          "charge": {
            "description": "Displays for card-related errors. Unique identifier (Id) of the failed charge.",
            "maxLength": 5000,
            "type": "string"
          },
          "code": {
            "description": "Error code. Additional information about the error to help users identify the issue.",
            "maxLength": 5000,
            "type": "string"
          },
          "decline_code": {
            "description": "Displays when a card issuer declines the transaction. This includes the reason for the decline, if specified by the card issuer.",
            "maxLength": 5000,
            "type": "string"
          },
          "doc_url": {
            "description": "URL (link) for more information about the reported error code.",
            "maxLength": 5000,
            "type": "string"
          },
          "message": {
            "description": "Detailed information about the error code. For card-related errors, this can provide more information to users.",
            "maxLength": 40000,
            "type": "string"
          },
          "param": {
            "description": "Displays card parameter errors. The error message can inform users entering card information of a specific problem with their entry.",
            "maxLength": 5000,
            "type": "string"
          },
          "type": {
            "description": "Returned error type.",
            "enum": [
              "api_connection_error",
              "api_error",
              "authentication_error",
              "card_error",
              "idempotency_error",
              "invalid_request_error",
              "rate_limit_error"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "title": "APIErrors",
        "type": "object",
        "x-expandableFields": [
          "payment_intent",
          "payment_method",
          "source"
        ]
      },
      "charge": {
        "properties": {
          "amount": {
            "description": "Charge amount in cents. If the charge request includes tax (`tax_rate_uuid` or `tax_amount`), this value must be the sum of any item prices and any tax or tip.\n For example, if the item cost = $10 and the tax is $1, the amount is 1100 cents ($11).\n Format: cents",
            "type": "integer",
            "format": "int64"
          },
          "tax_amount": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "description": "Amount paid in taxes. This value is not automatically added to the total amount. Your app must ensure the Amount property is the total final amount to charge the customer."
          },
          "tip_amount": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "description": "Amount paid in tips. This value is automatically added to the total amount when the transaction is finalized."
          },
          "additional_charges": {
            "$ref": "#/components/schemas/additional_charges"
          },
          "amount_refunded": {
            "description": "Amount refunded in cents. This value can be less than the amount property on the charge if a partial refund is issued.",
            "type": "integer",
            "format": "int64"
          },
          "partial_auth": {
            "description": "Indicates if the transaction was partially approved.",
            "type": "boolean"
          },
          "billing_details": {
            "$ref": "#/components/schemas/billing_details"
          },
          "captured": {
            "description": "Indicates whether to immediately capture the charge.\n Values:\n  True - Default.\n  False - Indicates the charge transaction type is AUTH (or PRE-AUTH), and the charge can be captured later using the [capture a charge](https://docs.clover.com/reference/capturecharge) endpoint.",
            "type": "boolean"
          },
          "created": {
            "description": "Charge creation time (Unix timestamp in milliseconds).",
            "format": "int64",
            "type": "integer"
          },
          "currency": {
            "description": "Three-letter [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).\n Format: Lower case\n Length: Maximum 3",
            "type": "string"
          },
          "customer": {
            "description": "Unique identifier of the customer associated with the charge.",
            "type": "string",
            "maxLength": 5000
          },
          "description": {
            "description": "Detail description of the charge.",
            "maxLength": 40000,
            "nullable": true,
            "type": "string"
          },
          "external_reference_id": {
            "type": "string",
            "description": "Unique identifier (ID), such as an invoice or purchase order (PO) number, that is sent to the merchant's gateway and displayed in settlement records. \n Format: Supported for US—alphanumeric characters with in-between spaces. \n Length: Maximum 12, including spaces and alphanumeric characters."
          },
          "external_customer_reference": {
            "type": "string",
            "description": "Customer reference number from the merchant's order management system."
          },
          "auth_code": {
            "description": "Authorization code of the charge, if available.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "ref_num": {
            "description": "Reference number returned from the payment gateway when the transaction is successful.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "failure_code": {
            "description": "Error code explaining the reason for the charge failure.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "failure_message": {
            "description": "Detailed information about the reason for the charge failure.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "warning_message": {
            "description": "Detailed warning information about the charge. Example: Missing original transaction identifer for c-token.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the charge.",
            "maxLength": 5000,
            "type": "string"
          },
          "livemode": {
            "description": "Indicates whether the token object is live in production.",
            "type": "boolean"
          },
          "metadata": {
            "description": "Set of key-value pairs that you can attach to the object. This parameter is useful for storing additional information about the object in a structured format.\n Length: Maximum 500 characters",
            "type": "string",
            "maxLength": 500
          },
          "object": {
            "description": "Object type.",
            "enum": [
              "charge"
            ],
            "type": "string"
          },
          "order": {
            "description": "Unique identifier of the order.",
            "maxLength": 5000,
            "type": "string"
          },
          "outcome": {
            "description": "Explanation of whether and why the payment was accepted.",
            "type": "object",
            "anyOf": [
              {
                "maxLength": 5000
              },
              {
                "$ref": "#/components/schemas/charge_outcome"
              }
            ]
          },
          "paid": {
            "description": "Indicates whether the charge was successful or authorized for capture.",
            "type": "boolean"
          },
          "payment_method_details": {
            "description": "Indicates the payment method used for the charge.",
            "type": "string",
            "enum": [
              "card",
              "ach",
              "paypal",
              "giftCard"
            ]
          },
          "on_behalf_of": {
            "description": "Indicates the transaction was made on someone's behalf.",
            "type": "boolean"
          },
          "debt_payment": {
            "description": "Indicates the status of the charge.",
            "type": "string",
            "enum": [
              "approved",
              "declined",
              "not_processed"
            ]
          },
          "receipt_email": {
            "description": "Email address to which the charge receipt is sent. Receipts are sent only after the charge is paid.\n  **Note:** Receipts are not sent in the sandbox environment.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "receipt_number": {
            "description": "Receipt number of the charge.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "receipt_url": {
            "description": "URL where the charge receipt is accessible. The receipt displays the latest state of the charge, including any refunds. If the charge is for an invoice, the receipt is displayed as an invoice.",
            "maxLength": 5000,
            "type": "string"
          },
          "site_url": {
            "type": "string",
            "minLength": 4,
            "maxLength": 13,
            "description": "URL of the site performing the e-commerce transaction.\n **Default:** `clover.com`\n **Constraints:**\n  Length: 4–13 characters.\n  Allowed characters: Alphanumeric, periods (`.`), and hyphens (`-`) only.\n  **Note:** Do not include protocol (for example, `https://`) or `www`."
          },
          "refunded": {
            "description": "Indicates whether the charge was fully refunded or partial refunded.\n Values:\n True - Full refunded\n False - Partially refunded",
            "type": "boolean"
          },
          "shipping": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/shipping"
              }
            ],
            "description": "Shipping information for the charge.",
            "nullable": true
          },
          "source": {
            "$ref": "#/components/schemas/source"
          },
          "status": {
            "description": "Payment status of the charge.",
            "enum": [
              "succeeded",
              "pending",
              "failed"
            ],
            "maxLength": 5000,
            "type": "string"
          },
          "stored_credentials": {
            "$ref": "#/components/schemas/stored_credentials"
          },
          "soft_descriptor": {
            "$ref": "#/components/schemas/soft_descriptor"
          },
          "threeds": {
            "$ref": "#/components/schemas/threeds_validation_result"
          },
          "gift_card": {
            "$ref": "#/components/schemas/ecomm_gift_card_response_extra"
          },
          "level2": {
            "$ref": "#/components/schemas/purchase_card_level2"
          },
          "level3": {
            "$ref": "#/components/schemas/purchase_card_level3"
          },
          "saved_credentials_on_file": {
            "$ref": "#/components/schemas/saved_credentials_on_file"
          },
          "ecomind": {
            "description": "Indicates the source of the card data.",
            "type": "string",
            "default": "ecom",
            "enum": [
              "ecom",
              "moto",
              "retail"
            ]
          },
          "amount_captured": {
            "type": "integer",
            "format": "int64",
            "description": "Total amount captured for pre-auth transactions."
          }
        },
        "required": [
          "amount",
          "amount_refunded",
          "billing_details",
          "captured",
          "created",
          "currency",
          "id",
          "livemode",
          "metadata",
          "object",
          "paid",
          "receipt_url",
          "refunded",
          "refunds",
          "status"
        ],
        "title": "Charge",
        "type": "object",
        "x-expandableFields": [
          "billing_details",
          "customer",
          "dispute",
          "order",
          "outcome",
          "refunds",
          "shipping",
          "source"
        ],
        "x-resourceId": "charge"
      },
      "charge_outcome": {
        "properties": {
          "network_status": {
            "description": "The status of the transaction with respect to the card network associated with the card.",
            "type": "string",
            "enum": [
              "approved_by_network",
              "declined_by_network",
              "not_sent_to_network",
              "reversed_after_approval"
            ]
          },
          "reason": {
            "description": "Detailed explanation of the charge outcome.",
            "type": "string",
            "nullable": true
          },
          "rule": {
            "description": "Unique identifier of the matching rule used to evaluate the payment.",
            "type": "string"
          },
          "seller_message": {
            "description": "Detailed description of the outcome type and reason (intended for the merchant, not the customer).",
            "type": "string"
          },
          "type": {
            "description": "Basic explanation of the charge's outcome.",
            "type": "string",
            "enum": [
              "authorized",
              "blocked",
              "invalid",
              "issuer_declined",
              "manual_review"
            ]
          }
        },
        "title": "ChargeOutcome",
        "type": "object"
      },
      "order": {
        "properties": {
          "amount": {
            "description": "Total order amount in the smallest monetary unit of the merchant's currency.",
            "type": "integer",
            "format": "int64"
          },
          "amount_paid": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "description": "Amount currently paid toward the order total."
          },
          "amount_due": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "description": "Amount still due toward the order total."
          },
          "tax_amount": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "description": "Merchant-defined flat tax amount for the order.\n Format: Cents"
          },
          "tax_amount_paid": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "description": "Amount currently paid toward the tax total."
          },
          "tip_amount": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "description": "Amount paid in tips. This value is automatically added to the total amount when the transaction is finalized."
          },
          "partial_auth": {
            "description": "Indicates if partial approval has occurred.",
            "type": "boolean"
          },
          "additional_charges": {
            "$ref": "#/components/schemas/additional_charges"
          },
          "threeds": {
            "$ref": "#/components/schemas/threeds_validation_result"
          },
          "gift_card": {
            "$ref": "#/components/schemas/ecomm_gift_card_response_extra"
          },
          "saved_credentials_on_file": {
            "$ref": "#/components/schemas/saved_credentials_on_file"
          },
          "amount_returned": {
            "nullable": true,
            "type": "integer",
            "format": "int64"
          },
          "charge": {
            "description": "Charge identifier. Returns the result when the order status is `paid`, `fulfilled`, or `refunded`.",
            "maxLength": 5000,
            "type": "string"
          },
          "auth_code": {
            "description": "Authorization code of the charge, if available.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "external_coupon_code": {
            "description": "External coupon code available for this order.",
            "type": "string"
          },
          "upstream_id": {
            "description": "Billing address country, if provided.",
            "type": "string"
          },
          "updated": {
            "format": "int64",
            "type": "integer",
            "description": "Time stamps when the order was last updated."
          },
          "first6": {
            "description": "First 6 numbers of the primary account number.",
            "type": "string"
          },
          "amount_preauthorized": {
            "description": "Displays the pre-authorized amount for the order. If any.",
            "type": "integer",
            "format": "int64"
          },
          "ref_num": {
            "description": "If available, the reference number returned from the payment gateway if the transaction is successful.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "warning_message": {
            "description": "Detailed warning information about the order or associated charge (for example, missing original transaction id for c-token).",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "ecomind": {
            "description": "Indicates who entered the card data used for a charge - customer (ecom) or merchant (moto).",
            "type": "string",
            "default": "ecom",
            "enum": [
              "ecom",
              "moto",
              "retail"
            ]
          },
          "created": {
            "description": "Displays results based on the object's created field.\n Values:\n String with a Unix timestamp (in milliseconds)\n or \n Dictionary of multiple options describing a time range.",
            "format": "int64",
            "type": "integer"
          },
          "currency": {
            "description": "Three-letter ISO 4217 currency code.",
            "type": "string"
          },
          "customer": {
            "description": "Customer identifier.",
            "type": "string"
          },
          "email": {
            "description": "Email address of the customer placing the order.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "external_reference_id": {
            "type": "string",
            "description": "An identifier such as an invoice or PO number, passed to the merchant's gateway and ultimately appears in settlement records.\n Note:\n Applicable for US customers, spaces are allowed in the reference number. \n Length: Max 12 (including alphanumeric characters)"
          },
          "external_customer_reference": {
            "type": "string",
            "description": "Customer reference number from the merchant's order management system."
          },
          "id": {
            "description": "Order identifier.",
            "maxLength": 5000,
            "type": "string"
          },
          "items": {
            "description": "Displays a list of items in an order.",
            "items": {
              "$ref": "#/components/schemas/order_item"
            },
            "type": "array"
          },
          "past_charges": {
            "description": "List of previous applicable charges on the order.",
            "items": {
              "$ref": "#/components/schemas/charge"
            },
            "type": "array"
          },
          "livemode": {
            "description": "Indicates whether the item is in production or sandbox.\n True - Item is in production\n False - Item is in sandbox",
            "type": "boolean"
          },
          "metadata": {
            "additionalProperties": {
              "maxLength": 500,
              "type": "string"
            },
            "description": "Set of key-value pairs that you can attach to the object. This parameter is useful for storing additional information about the object in a structured format.\n Length: Maximum 500 characters",
            "type": "object"
          },
          "object": {
            "description": "Object type. Objects with the same type have the same value.",
            "enum": [
              "order"
            ],
            "type": "string"
          },
          "returns": {
            "nullable": true,
            "properties": {
              "data": {
                "items": {
                  "$ref": "#/components/schemas/order_return"
                },
                "type": "array"
              },
              "has_more": {
                "description": "Set to `true` if there is another page of list items after the current page.",
                "type": "boolean"
              },
              "object": {
                "description": "Object type set to list. Objects with the same type have the same value.",
                "enum": [
                  "list"
                ],
                "type": "string"
              },
              "url": {
                "description": "URL of the list.",
                "maxLength": 5000,
                "type": "string"
              }
            },
            "required": [
              "data",
              "has_more",
              "object",
              "url"
            ],
            "title": "OrderReturnList",
            "type": "object",
            "x-expandableFields": [
              "data"
            ]
          },
          "selected_shipping_method": {
            "description": "Selected shipping method of the order. If present, the value is set from the `shipping_methods` list. For multiple shipping methods, the first method is automatically selected.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "shipping": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/shipping"
              }
            ],
            "description": "Shipping address of the order.",
            "nullable": true
          },
          "shipping_methods": {
            "description": "List of supported shipping methods for the order. The shipping method can be set when paying for the order and updated as needed before the order ships.",
            "items": {
              "$ref": "#/components/schemas/shipping_method"
            },
            "nullable": true,
            "type": "array"
          },
          "source": {
            "$ref": "#/components/schemas/source"
          },
          "status": {
            "description": "Current order status.",
            "enum": [
              "created",
              "paid",
              "canceled",
              "fulfilled",
              "returned",
              "partially_paid",
              "partially_refunded",
              "refunded"
            ],
            "maxLength": 5000,
            "type": "string"
          },
          "status_transitions": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/status_transitions"
              }
            ],
            "description": "Timestamps (in milliseconds) for all order status updates.",
            "nullable": true
          }
        },
        "required": [
          "amount",
          "created",
          "currency",
          "id",
          "items",
          "livemode",
          "metadata",
          "object",
          "status"
        ],
        "title": "Order",
        "type": "object",
        "x-expandableFields": [
          "charge",
          "customer",
          "items",
          "returns",
          "shipping",
          "shipping_methods",
          "status_transitions"
        ],
        "x-resourceId": "order"
      },
      "order_item": {
        "properties": {
          "amount": {
            "description": "Amount of an item in the order.",
            "type": "integer",
            "format": "int64"
          },
          "currency": {
            "description": "Three-letter ISO 4217 currency code.",
            "type": "string"
          },
          "description": {
            "description": "Description of the item.",
            "maxLength": 5000,
            "type": "string"
          },
          "inventory_id": {
            "anyOf": [
              {
                "maxLength": 5000,
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/sku"
              }
            ],
            "description": "UUID of the associated object for the line item. The value is expandable if it is not null.",
            "nullable": true,
            "x-expansionResources": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/sku"
                }
              ]
            }
          },
          "object": {
            "description": "Object type. Objects with the same type have the same value.",
            "enum": [
              "order_item"
            ],
            "type": "string"
          },
          "parent": {
            "anyOf": [
              {
                "maxLength": 5000,
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/sku"
              }
            ],
            "deprecated": true,
            "description": "DEPRECATED. UUID of the associated object for the line item. The value is expandable if it is not null.",
            "nullable": true,
            "x-expansionResources": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/sku"
                }
              ]
            }
          },
          "quantity": {
            "description": "If the `type` is `sku`, the number of instances of `parent` for the line item.",
            "nullable": true,
            "type": "integer",
            "format": "int64"
          },
          "tax_rates": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/tax_rates_rate"
                },
                {
                  "$ref": "#/components/schemas/tax_rates_amount"
                },
                {
                  "$ref": "#/components/schemas/tax_rates_uuid"
                }
              ]
            }
          },
          "type": {
            "description": "Line item type.",
            "enum": [
              "sku",
              "shipping"
            ],
            "maxLength": 5000,
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency",
          "description",
          "object",
          "type"
        ],
        "title": "OrderItem",
        "type": "object",
        "x-expandableFields": [
          "parent"
        ]
      },
      "sku": {
        "properties": {
          "active": {
            "description": "Indicates whether the item can be purchased.",
            "type": "boolean"
          },
          "attributes": {
            "additionalProperties": {
              "maxLength": 5000,
              "type": "string"
            },
            "description": "Set of product key-value pairs associated with and describing the item. This can be used for storing additional information about the item in a structured format. For example, for product attributes such as color and style, a SKU can have the following pairs: `{\"color\": \"fuschia\", \"style\": \"bootcut\"}`.",
            "type": "object"
          },
          "created": {
            "description": "Displays results based on the object's created field.\n Values:\n String with a Unix timestamp (in milliseconds).\n or\n Dictionary of multiple options describing a time range.",
            "format": "int64",
            "type": "integer"
          },
          "currency": {
            "description": "Three-letter ISO 4217 currency code.",
            "type": "string"
          },
          "id": {
            "description": "Inventory item identifier.",
            "maxLength": 5000,
            "type": "string"
          },
          "image": {
            "description": "URL of an image for the SKU.",
            "type": "string",
            "maxLength": 2048,
            "nullable": true
          },
          "livemode": {
            "description": "Indicates whether the item is in production or sandbox.\n True - Item is in production\n False - Item is in sandbox",
            "type": "boolean"
          },
          "metadata": {
            "additionalProperties": {
              "maxLength": 500,
              "type": "string"
            },
            "description": "Set of key-value pairs that you can attach to the object. This parameter is useful for storing additional information about the object in a structured format.\n Length: Maximum 500 characters",
            "type": "object"
          },
          "object": {
            "description": "Object type. Objects with the same type have the same value.",
            "enum": [
              "sku"
            ],
            "type": "string"
          },
          "updated": {
            "format": "int64",
            "type": "integer",
            "description": "Time when the inventory item was modified."
          }
        },
        "required": [
          "active",
          "attributes",
          "created",
          "currency",
          "id",
          "livemode",
          "metadata",
          "object",
          "price",
          "product",
          "updated"
        ],
        "title": "SKU",
        "type": "object",
        "x-resourceId": "sku"
      },
      "order_return": {
        "properties": {
          "amount": {
            "description": "Total amount for the return in the smallest monetary unit of the merchant's currency.",
            "type": "integer",
            "format": "int64"
          },
          "additional_charges": {
            "$ref": "#/components/schemas/additional_charges"
          },
          "created": {
            "description": "Creation time of the object (Unix timestamp in milliseconds).",
            "format": "int64",
            "type": "integer"
          },
          "currency": {
            "description": "Three-letter ISO 4217 currency code (in lowercase).",
            "type": "string"
          },
          "id": {
            "description": "Unique object identifier.",
            "maxLength": 5000,
            "type": "string"
          },
          "items": {
            "description": "The item or items being returned.",
            "items": {
              "$ref": "#/components/schemas/order_item"
            },
            "type": "array"
          },
          "livemode": {
            "description": "Set to `true` if the object is in production. Set to `false` if the object is in sandbox.",
            "type": "boolean"
          },
          "object": {
            "description": "Object type. Objects with the same type have the same value.",
            "enum": [
              "order_return"
            ],
            "type": "string"
          },
          "order": {
            "description": "Order identifier.",
            "type": "string"
          },
          "refund": {
            "description": "Refund identifier.",
            "items": {
              "$ref": "#/components/schemas/refund"
            },
            "type": "string"
          }
        },
        "required": [
          "amount",
          "created",
          "currency",
          "id",
          "items",
          "livemode",
          "object"
        ],
        "title": "OrderReturn",
        "type": "object",
        "x-expandableFields": [
          "items",
          "order",
          "refund"
        ],
        "x-resourceId": "order_return"
      },
      "refund": {
        "properties": {
          "id": {
            "description": "Refund identifier.",
            "maxLength": 5000,
            "type": "string"
          },
          "amount": {
            "description": "Refund amount from the balance of unrefunded amount of the charge.\n Format: Cents",
            "type": "integer",
            "format": "int64"
          },
          "additional_charges": {
            "$ref": "#/components/schemas/additional_charges"
          },
          "created": {
            "description": "Displays results based on the object's created field.\n Values:\n String with a Unix timestamp (in milliseconds).\n Dictionary of multiple options describing a time range.",
            "format": "int64",
            "type": "integer"
          },
          "currency": {
            "description": "Three-letter [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).",
            "type": "string"
          },
          "description": {
            "description": "Description about the refund.",
            "maxLength": 5000,
            "type": "string"
          },
          "external_reference_id": {
            "type": "string",
            "description": "Unique identifier (ID), such as an invoice or purchase order (PO) number, that is sent to the merchant's gateway and displayed in settlement records.\n Format: Supported for US—alphanumeric characters with in-between spaces.\n Length: Max 12, including spaces and alphanumeric characters."
          },
          "failure_reason": {
            "description": "Reason of the cancellation of the refund.",
            "enum": [
              "lost_or_stolen_card",
              "expired_or_canceled_card",
              "unknown"
            ],
            "maxLength": 5000,
            "type": "string"
          },
          "charge": {
            "description": "Charge identifier.",
            "maxLength": 5000,
            "type": "string"
          },
          "metadata": {
            "description": "Indicates whether a US merchant with the gateway group Ids 40001 or 10001, and merchant category codes (MCC) 6012 or 6051 can process Visa&reg; consumer debit transactions that have an existing debt.\n Values:\n True - Merchant can process transactions that have an existing debt.\n False - Default; Transactions do not have an existing debt.",
            "type": "object",
            "maxLength": 500
          },
          "object": {
            "description": "Object of the refund.",
            "enum": [
              "refund"
            ],
            "type": "string"
          },
          "reason": {
            "description": "Reason for the refund.",
            "enum": [
              "duplicate",
              "fraudulent",
              "requested_by_customer"
            ],
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "receipt_number": {
            "description": "Transaction receipt number that appears on the receipt emailed for this charge",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "status": {
            "description": "Status of the refund.\n Values:\n For credit cards - succeeded or failed\n For other methods - pending, succeeded, failed, or canceled",
            "enum": [
              "succeeded (card or non-card)",
              "failed (card or non-card)",
              "pending (non-card only)",
              "canceled (non-card only)"
            ],
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "amount",
          "created",
          "currency",
          "id",
          "metadata",
          "object",
          "charge",
          "status",
          "additional_charges"
        ],
        "title": "Refund",
        "type": "object",
        "x-expandableFields": [
          "charge"
        ],
        "x-resourceId": "refund"
      },
      "shipping": {
        "properties": {
          "address": {
            "$ref": "#/components/schemas/address"
          },
          "carrier": {
            "description": "Delivery service to ship the physical product. Example: DHL, Fedex, US Postal Service (USPS), and so on.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Recipient name for the shipped product.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "phone": {
            "description": "Phone number, including extension, of the recipient.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "tracking_number": {
            "description": "Shipment number provided by the carrier. Use a comma-separated list for multiple tracking numbers.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "address"
        ],
        "title": "Shipping",
        "type": "object",
        "x-expandableFields": [
          "address"
        ]
      },
      "shipping_method": {
        "properties": {
          "amount": {
            "description": "Total amount in the smallest monetary unit of the merchant's currency.",
            "type": "integer",
            "format": "int64"
          },
          "currency": {
            "description": "Three-letter ISO 4217 currency code (in lowercase).",
            "type": "string"
          },
          "description": {
            "description": "Container for user-facing information about the object.",
            "maxLength": 5000,
            "type": "string"
          },
          "id": {
            "description": "Unique object identifier.",
            "maxLength": 5000,
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency",
          "description",
          "id"
        ],
        "title": "ShippingMethod",
        "type": "object",
        "x-expandableFields": [
          "delivery_estimate"
        ]
      },
      "address": {
        "properties": {
          "city": {
            "description": "City of the customer's address. Can include district, suburb, town, or village.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "country": {
            "description": "Country code.\n Format: 2 characters",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "line1": {
            "description": "First line of the customer's address. Can include the street address, PO box, or company name.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "line2": {
            "description": "Second line of the customer's address. Can include the apartment, suite, unit, or building number.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "postal_code": {
            "description": "Postal or ZIP code of the customer's address.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "state": {
            "description": "State of the customer's address. Can include county, province, or region.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          }
        },
        "title": "Address",
        "type": "object",
        "x-expandableFields": []
      },
      "billing_details": {
        "properties": {
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/address"
              }
            ],
            "description": "Billing address.",
            "nullable": true
          },
          "email": {
            "description": "Email address of the customer.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "name": {
            "description": "Full name of the customer.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          },
          "phone": {
            "description": "Phone number (including extension) of the customer.",
            "maxLength": 5000,
            "nullable": true,
            "type": "string"
          }
        },
        "title": "billing_details",
        "type": "object",
        "x-expandableFields": [
          "address"
        ]
      },
      "status_transitions": {
        "properties": {
          "canceled": {
            "format": "int64",
            "nullable": true,
            "type": "integer",
            "description": "Time stamps when the order was cancelled."
          },
          "fulfilled": {
            "format": "int64",
            "nullable": true,
            "type": "integer",
            "description": "Time stamps when the order was fulfilled."
          },
          "paid": {
            "format": "int64",
            "nullable": true,
            "type": "integer",
            "description": "Time stamps when the order was paid."
          },
          "returned": {
            "format": "int64",
            "nullable": true,
            "type": "integer",
            "description": "Time stamps when the order was returned."
          }
        },
        "title": "StatusTransitions",
        "type": "object",
        "x-expandableFields": []
      },
      "tax_rates_rate": {
        "title": "Tax as percentage",
        "description": "Tax rate object defining an item-level tax as a percentage (%).",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 5000,
            "description": "Label for the tax rate."
          },
          "rate": {
            "type": "integer",
            "description": "Item-specific tax where a 10% rate is defined as `1000000`."
          }
        },
        "type": "object"
      },
      "tax_rates_amount": {
        "title": "Tax as amount",
        "description": "Tax rate object defining a flat item-level tax amount.",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 5000,
            "description": "Label for the tax rate."
          },
          "tax_amount": {
            "type": "integer",
            "description": "Merchant-defined flat tax amount in cents.\n Format: Cents."
          }
        },
        "type": "object"
      },
      "tax_rates_uuid": {
        "title": "Tax as UUID",
        "description": "Tax rate object defining an item-level tax with a unique identifier (ID).",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 5000,
            "description": "Label for the item-level tax UUID."
          },
          "tax_rate_uuid": {
            "type": "string",
            "description": "Item-level tax UUID."
          }
        },
        "type": "object"
      },
      "source": {
        "title": "Payment source (card)",
        "description": "Payment source of the charge. This can be a token or an alternate tender.",
        "nullable": true,
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 5000,
            "description": "Unique identifier (Clover token)."
          },
          "object": {
            "type": "string",
            "maxLength": 5000,
            "description": "Type of source. Example: Card or Bank account."
          },
          "address_city": {
            "type": "string",
            "nullable": true,
            "maxLength": 5000,
            "description": "City of the customer's address. Can include district, suburb, town, or village."
          },
          "address_country": {
            "type": "string",
            "nullable": true,
            "maxLength": 5000,
            "description": "Billing address country, if provided."
          },
          "address_line1": {
            "type": "string",
            "nullable": true,
            "maxLength": 5000,
            "description": "First line of the customer's address. Can include the street address, PO box, or company name."
          },
          "address_line1_check": {
            "type": "string",
            "nullable": true,
            "maxLength": 5000,
            "description": "Result of the verification check of the address.",
            "enum": [
              "pass",
              "failed",
              "unavailable",
              "unchecked"
            ]
          },
          "address_line2": {
            "type": "string",
            "nullable": true,
            "maxLength": 5000,
            "description": "Second line of the customer's address. Can include the apartment, suite, unit, or building number."
          },
          "address_state": {
            "type": "string",
            "nullable": true,
            "maxLength": 5000,
            "description": "State of the customer's address. Can include county, province, or region."
          },
          "address_zip": {
            "type": "string",
            "nullable": true,
            "maxLength": 5000,
            "description": "Postal or ZIP code of the customer's address."
          },
          "address_zip_check": {
            "type": "string",
            "nullable": true,
            "maxLength": 5000,
            "description": "Result of the verification check of the address postal code.",
            "enum": [
              "pass",
              "failed",
              "unavailable",
              "unchecked"
            ]
          },
          "brand": {
            "type": "string",
            "maxLength": 5000,
            "nullable": true,
            "description": "Card brand."
          },
          "country": {
            "type": "string",
            "maxLength": 5000,
            "nullable": true,
            "description": "2-character country code."
          },
          "cvc_check": {
            "type": "string",
            "nullable": true,
            "maxLength": 5000,
            "description": "Result of the verification check of the cvv code.",
            "enum": [
              "pass",
              "failed",
              "unavailable",
              "unchecked"
            ]
          },
          "exp_month": {
            "type": "string",
            "maxLength": 5000,
            "description": "Card expiration month in 2-digit format.\n Format: mm"
          },
          "exp_year": {
            "type": "string",
            "maxLength": 5000,
            "description": "Card expiration year in 2-or 4-digit format.\n Format: yy or yyyy"
          },
          "fingerprint": {
            "type": "string",
            "maxLength": 5000,
            "description": "Unique identifier for this source."
          },
          "first6": {
            "type": "string",
            "maxLength": 5000,
            "description": "First 6 numbers of the primary account number."
          },
          "funding": {
            "type": "string",
            "maxLength": 5000,
            "description": "Type of card used for the payment."
          },
          "last4": {
            "type": "string",
            "maxLength": 5000,
            "description": "Last 4 numbers of the primary account number."
          },
          "name": {
            "type": "string",
            "maxLength": 5000,
            "description": "Cardholder's full name on the card."
          }
        }
      },
      "additional_charges": {
        "description": "Additional surcharge or other fee applied on the transaction.",
        "type": "object",
        "properties": {
          "amount": {
            "description": "Amount of the additional charges applied on the transaction.\n Format: Cents",
            "type": "integer"
          },
          "id": {
            "description": "Unique identifier of the additional charge.",
            "type": "string",
            "minimum": 13,
            "maximum": 13
          },
          "rate": {
            "description": "Item-specific tax of an additonal charge where a 10% rate is defined as 1000000.",
            "type": "integer"
          },
          "type": {
            "description": "Type of the additional charge collected on the transaction.",
            "type": "string",
            "enum": [
              "CREDIT_SURCHARGE"
            ]
          }
        }
      },
      "saved_credentials_on_file": {
        "description": "Data about any surcharge or other fee applied to a transaction.",
        "type": "object",
        "properties": {
          "tokenType": {
            "description": "Multi-pay token type such as TransArmor.",
            "type": "string",
            "enum": [
              "TRANSARMOR"
            ]
          },
          "value": {
            "description": "The percentage of the total assessed as a surcharge or other fee. This value is set when a merchant is boarded to Clover Percentages are defined to four decimal places. For example, the value of a 3.5% surcharge is `35000` (3.5*10000).",
            "type": "integer"
          },
          "ref_num": {
            "description": "Identifier of additional charges.",
            "type": "string"
          }
        }
      },
      "ecomm_gift_card_response_extra": {
        "description": "Indicates meta data of the gift card.",
        "type": "object",
        "properties": {
          "previous_balance": {
            "description": "Indicates the previous balance before the transaction was initiated.",
            "type": "integer"
          },
          "new_balance": {
            "description": "Indicates the updated balance after the transaction is completed.",
            "type": "integer"
          },
          "lock_amount": {
            "description": "Indicates the value on the card that was locked due to a balance lock transaction.",
            "type": "integer"
          },
          "expiration_date": {
            "description": "Indicates the account expiration date.",
            "type": "string"
          },
          "lock_id": {
            "description": "Unique lock number identifier for each balance lock record. The `lock_id` helps capture the authorized amount and is applicable for pre-auth and capture flow.",
            "type": "integer"
          },
          "number": {
            "description": "Embossed card number on the gift card or the ift card number. Only applicable for virtual gift card activation.",
            "type": "string"
          },
          "security_card_value": {
            "description": "Gift card security code. Only applicable for virtual gift card activation.",
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://sandbox.dev.clover.com/oauth/authorize",
            "tokenUrl": "https://sandbox.dev.clover.com/oauth/token",
            "scopes": {}
          }
        }
      }
    },
    "parameters": {
      "UserAgentHeader": {
        "name": "User-Agent",
        "in": "header",
        "description": "Identifies the application, operating system, vendor, and/or version of the requesting user agent. Format: `<product> / <product-version> <comment>`",
        "required": true,
        "schema": {
          "type": "string"
        },
        "example": "PostmanRuntime/7.44.1"
      }
    }
  },
  "openapi": "3.0.0",
  "info": {
    "title": "Ecommerce Service API",
    "description": "REST API providing card-not-present transaction functions for Clover merchants and developers",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://scl-sandbox.dev.clover.com",
      "description": "SCL Sandbox API server (Default)"
    },
    {
      "url": "https://apisandbox.dev.clover.com",
      "description": "API Sandbox server (Use for Hosted Checkout)"
    }
  ],
  "security": [
    {
      "OAuth2": []
    }
  ],
  "paths": {
    "/v1/orders": {
      "post": {
        "tags": [
          "ORDERS"
        ],
        "summary": "Create an order",
        "description": "Creates a new order object.",
        "operationId": "PostOrders",
        "x-clover-handler": "com.clover.scl.handlers.orders.CreateOrderHandler",
        "x-clover-is-public": true,
        "requestBody": {
          "content": {
            "application/json": {
              "encoding": {
                "expand": {
                  "explode": true,
                  "style": "deepObject",
                  "contentType": "application/json"
                },
                "items": {
                  "explode": true,
                  "style": "deepObject",
                  "contentType": "application/json"
                },
                "metadata": {
                  "explode": true,
                  "style": "deepObject",
                  "contentType": "application/json"
                },
                "shipping": {
                  "explode": true,
                  "style": "deepObject",
                  "contentType": "application/json"
                }
              },
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "currency": {
                    "description": "Three-letter [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).\n Format: Lower case \n Length: Max 3",
                    "type": "string"
                  },
                  "customer": {
                    "description": "Displays order details for the customer placing the order.",
                    "maxLength": 5000,
                    "type": "string"
                  },
                  "email": {
                    "description": "Email address of the customer placing the order.",
                    "maxLength": 5000,
                    "type": "string"
                  },
                  "expand": {
                    "description": "Additional information is provided as an expanded response, for example, related objects nested within the parent. See [Use expandable fields](https://docs.clover.com/docs/expanding-fields).",
                    "items": {
                      "maxLength": 5000,
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "items": {
                    "description": "List of items in the order. An order can have 25 items.",
                    "items": {
                      "properties": {
                        "amount": {
                          "type": "integer",
                          "description": "Amount of an item in the inventory.",
                          "format": "int64"
                        },
                        "currency": {
                          "type": "string",
                          "description": "Currency of the item amount."
                        },
                        "description": {
                          "maxLength": 1000,
                          "description": "Description of the item.",
                          "type": "string"
                        },
                        "inventory_id": {
                          "description": "Universally unique identifier (UUID) of the associated object for the line item. The value is expandable if it is not null.",
                          "maxLength": 5000,
                          "type": "string"
                        },
                        "parent": {
                          "deprecated": true,
                          "description": "DEPRECATED. Use `inventory_id` instead of `parent`.",
                          "maxLength": 5000,
                          "type": "string"
                        },
                        "quantity": {
                          "type": "integer",
                          "description": "Unit quantity of an item.",
                          "format": "int64"
                        },
                        "tax_rates": {
                          "type": "array",
                          "description": "Tax rate applicable on an item.",
                          "items": {
                            "oneOf": [
                              {
                                "$ref": "#/components/schemas/tax_rates_rate"
                              },
                              {
                                "$ref": "#/components/schemas/tax_rates_amount"
                              },
                              {
                                "$ref": "#/components/schemas/tax_rates_uuid"
                              }
                            ]
                          }
                        },
                        "type": {
                          "enum": [
                            "shipping",
                            "sku"
                          ],
                          "maxLength": 5000,
                          "description": "Item type.\n Values:\n Shipping\n SKU",
                          "type": "string"
                        }
                      },
                      "required": [
                        "amount"
                      ],
                      "title": "order_item_specs",
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "metadata": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to the object. This parameter is useful for storing additional information about the object in a structured format.\n Length: Maximum 500 characters",
                    "type": "object"
                  },
                  "shipping": {
                    "description": "Shipping details for the order.",
                    "properties": {
                      "address": {
                        "description": "Shipping address for the order. Required, if the stock keeping unit (SKU) of an item in the order has a `shippable` value of **true**.",
                        "properties": {
                          "city": {
                            "maxLength": 5000,
                            "description": "City of the customer's address. Can include district, suburb, town, or village.",
                            "type": "string"
                          },
                          "country": {
                            "maxLength": 5000,
                            "description": "Country code.\n Format: 2 letters",
                            "type": "string"
                          },
                          "line1": {
                            "maxLength": 5000,
                            "description": "First line of the address. Can include the street address, PO box, or company name.",
                            "type": "string"
                          },
                          "line2": {
                            "maxLength": 5000,
                            "description": "Second line of the address. Can include the apartment, suite, unit, or building number.",
                            "type": "string"
                          },
                          "postal_code": {
                            "maxLength": 5000,
                            "description": "Postal or ZIP code of the customer's address.",
                            "type": "string"
                          },
                          "state": {
                            "maxLength": 5000,
                            "description": "State of the customer's address. Can include county, province, or region.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "line1",
                          "city",
                          "postal_code",
                          "state"
                        ],
                        "title": "address",
                        "type": "object"
                      },
                      "name": {
                        "maxLength": 5000,
                        "description": "Name of the customer.",
                        "type": "string"
                      },
                      "phone": {
                        "maxLength": 5000,
                        "description": "Phone number of the customer.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "address",
                      "name"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "currency",
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/order"
                }
              }
            },
            "description": "Successful response. An order created."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error"
                }
              }
            },
            "description": "Error response."
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/UserAgentHeader"
          }
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```