• Resolved sonofkoji

    (@sonofkoji)


    Hello, we are using gift cards (Yith) on our WooCommerce website, and every so often, Square will completely reject an order using a gift card and gives the “value_too_low” status. Which I’d understand if the order value was less than the minimum $1, but it’s always the case that the final total is $3, $9 etc. and it will still reject it. On top of that, it seems to occur completely at random. 80% of the time, it will go through fine, but on occasion it gives us the value too low. Any insight into why this might be happening?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there @sonofkoji,

    Thanks for reaching out!

    To look into the issue further, could you please provide us with:

    – Square payment logs. To enable Square payment debug, please navigate to WooCommerce > Settings > Payments > Square > change Debug Mode to Save To Log: https://d.pr/i/QYoh7E

    If it was enabled before, please navigate to WooCommerce > Status > Logs > choose square_credit_card log file for the day when the issue happened, find logs for the affected order, and share it here: https://d.pr/i/tkTtEH

    If it wasn’t enabled, please activate it and wait for a real order to fail if it doesn’t happen every time.

    Please make sure to redact any personal information from the logs before sharing them anywhere publicly.

    Looking forward to hearing from you!

    Thread Starter sonofkoji

    (@sonofkoji)

    Hello, thanks so much for reaching out! We are in our busiest time of year, so your expediency is appreciated.

    I was able to replicate the behavior in our staging environment also. This uses sandbox credentials and credit card, but the same error is occurring. The orders using gift card that throw the value too low error – which again isn’t all of them – if I replicate them down to the last product in the cart, it will throw the error every time.

    I did notice if I switch to PayPal, Stripe, etc. as processor and test, it doesn’t produce the same errors and the order goes through fine.

    The “share it here” link above takes me to a photo, so here’s an excerpt from the log of one of the orders that returned the error:

     Array
    (
        [digital_wallet_type] => NONE
        [card_brand] => VISA
        [last_4] => 
        [exp_month] => 
        [exp_year] => 
        [billing_postal_code] => 
    )
    
    12-17-2020 @ 19:58:21 - Request
    method:
    uri: createOrderWithHttpInfo/WYKDE0ZAF9N42
    user-agent: WooCommerce-Square/2.2.5 (WooCommerce/3.9.2; WordPress/5.5.3)
    headers: Array
    (
    )
    body: {
        "order": {
            "reference_id": "6432",
            "customer_id": "5YAQ9NGD40YJH2XPWR4G0CKBAG",
            "line_items": [
                {
                    "name": "Caramel Peanut - Small Bag",
                    "quantity": "1",
                    "applied_taxes": [
                        {
                            "tax_uid": "5fdc0cbcc66e7"
                        },
                        {
                            "tax_uid": "5fdc0cbcc672f"
                        }
                    ],
                    "base_price_money": {
                        "amount": 995,
                        "currency": "USD"
                    }
                },
                {
                    "name": "Light Caramel - Medium Bag",
                    "quantity": "1",
                    "applied_taxes": [
                        {
                            "tax_uid": "5fdc0cbcc66e7"
                        },
                        {
                            "tax_uid": "5fdc0cbcc672f"
                        }
                    ],
                    "base_price_money": {
                        "amount": 1295,
                        "currency": "USD"
                    }
                },
                {
                    "name": "Toffee Almond - Junior Bag",
                    "quantity": "1",
                    "applied_taxes": [
                        {
                            "tax_uid": "5fdc0cbcc66e7"
                        },
                        {
                            "tax_uid": "5fdc0cbcc672f"
                        }
                    ],
                    "base_price_money": {
                        "amount": 695,
                        "currency": "USD"
                    }
                },
                {
                    "name": "Extra Butter - Small Bag",
                    "quantity": "1",
                    "applied_taxes": [
                        {
                            "tax_uid": "5fdc0cbcc66e7"
                        },
                        {
                            "tax_uid": "5fdc0cbcc672f"
                        }
                    ],
                    "base_price_money": {
                        "amount": 495,
                        "currency": "USD"
                    }
                },
                {
                    "name": "Local Pickup",
                    "quantity": "1",
                    "applied_taxes": [
                        {
                            "tax_uid": "5fdc0cbcc66e7"
                        },
                        {
                            "tax_uid": "5fdc0cbcc672f"
                        }
                    ],
                    "base_price_money": {
                        "amount": 0,
                        "currency": "USD"
                    }
                }
            ],
            "taxes": [
                {
                    "uid": "5fdc0cbcc66e7",
                    "name": "SALES TAX-1",
                    "type": "ADDITIVE",
                    "percentage": "63.33",
                    "scope": "LINE_ITEM"
                },
                {
                    "uid": "5fdc0cbcc672f",
                    "name": "FOOD TAX-2",
                    "type": "ADDITIVE",
                    "percentage": "14.58",
                    "scope": "LINE_ITEM"
                }
            ]
        },
        "idempotency_key": "21b7ec641a594e60ecd7fdbb1308c2eb:6432_0"
    }
    duration: 0.54009s
    
    12-17-2020 @ 19:58:21 - Response
    code: 200
    message:
    headers: Array
    (
        [0] => HTTP/2 200
        [date] => Fri, 18 Dec 2020 01:58:21 GMT
        [frame-options] => DENY
        [x-frame-options] => DENY
        [x-content-type-options] => nosniff
        [x-xss-protection] => 1; mode=block
        [content-type] => application/json;charset=utf-8
        [square-version] => 2019-08-14
        [vary] => Accept-Encoding, User-Agent
        [content-length] => 6136
        [strict-transport-security] => max-age=631152000; includeSubDomains; preload
    )
    body: {
        "order": {
            "id": "Rz4l4TP4AZon4oYvs5yWhwddlTOZY",
            "location_id": "WYKDE0ZAF9N42",
            "reference_id": "6432",
            "source": {
                "name": "Sandbox for sq0idp-ws4mDOkz4bllPfk2Z030rg"
            },
            "customer_id": "5YAQ9NGD40YJH2XPWR4G0CKBAG",
            "line_items": [
                {
                    "uid": "Yk4SuY8YUBOzCm5YExmgyB",
                    "name": "Caramel Peanut - Small Bag",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 145,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 630,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "cQyiWXfAUYr1bL6tO4FTSD",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 145,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "1LHXZDafknbNwkY9NFQKcC",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 630,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 995,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 995,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 995,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 775,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 1770,
                        "currency": "USD"
                    }
                },
                {
                    "uid": "MlEfhCha6jjow6vWPL5jRB",
                    "name": "Light Caramel - Medium Bag",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 189,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 820,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "PDz3fWKcsEXG0me6yFFdk",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 189,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "OM2y6Oi8BX1So6fok1XKl",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 820,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 1295,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 1295,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 1295,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 1009,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 2304,
                        "currency": "USD"
                    }
                },
                {
                    "uid": "25t4vwvNmMFrIi6MuHY8L",
                    "name": "Toffee Almond - Junior Bag",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 101,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 440,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "ZfNK9JARTvUtLf7FA3QBxC",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 101,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "IxYiSrQKEOeW5kELAZHnjC",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 440,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 695,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 695,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 695,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 541,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 1236,
                        "currency": "USD"
                    }
                },
                {
                    "uid": "lVthQI0KLw0SMdMXqN4TBC",
                    "name": "Extra Butter - Small Bag",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 72,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 314,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "fl8z1LNL9ppICOyA3jCHEB",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 72,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "JMyRWp0iy448oVgdEPI8o",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 314,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 495,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 495,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 495,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 386,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 881,
                        "currency": "USD"
                    }
                },
                {
                    "uid": "1ysl6R9CB40La2oGnPoQTD",
                    "name": "Local Pickup",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "HeK1FABc6BaXLoyilTFX4B",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "5AGgLHsZxkudiNzFhF5xs",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 0,
                        "currency": "USD"
                    }
                }
            ],
            "taxes": [
                {
                    "uid": "5fdc0cbcc66e7",
                    "name": "SALES TAX-1",
                    "type": "ADDITIVE",
                    "percentage": "63.33",
                    "applied_money": {
                        "amount": 2204,
                        "currency": "USD"
                    },
                    "scope": "LINE_ITEM"
                },
                {
                    "uid": "5fdc0cbcc672f",
                    "name": "FOOD TAX-2",
                    "type": "ADDITIVE",
                    "percentage": "14.58",
                    "applied_money": {
                        "amount": 507,
                        "currency": "USD"
                    },
                    "scope": "LINE_ITEM"
                }
            ],
            "net_amounts": {
                "total_money": {
                    "amount": 6191,
                    "currency": "USD"
                },
                "tax_money": {
                    "amount": 2711,
                    "currency": "USD"
                },
                "discount_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "tip_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "service_charge_money": {
                    "amount": 0,
                    "currency": "USD"
                }
            },
            "created_at": "2020-12-18T01:58:21.077Z",
            "updated_at": "2020-12-18T01:58:21.077Z",
            "state": "OPEN",
            "version": 1,
            "total_money": {
                "amount": 6191,
                "currency": "USD"
            },
            "total_tax_money": {
                "amount": 2711,
                "currency": "USD"
            },
            "total_discount_money": {
                "amount": 0,
                "currency": "USD"
            },
            "total_service_charge_money": {
                "amount": 0,
                "currency": "USD"
            }
        }
    }
    
    12-17-2020 @ 19:58:21 - Request
    method:
    uri: updateOrderWithHttpInfo/WYKDE0ZAF9N42/Rz4l4TP4AZon4oYvs5yWhwddlTOZY
    user-agent: WooCommerce-Square/2.2.5 (WooCommerce/3.9.2; WordPress/5.5.3)
    headers: Array
    (
    )
    body: {
        "order": {
            "discounts": [
                {
                    "name": "Adjustment",
                    "type": "FIXED_AMOUNT",
                    "amount_money": {
                        "amount": 5337,
                        "currency": "USD"
                    },
                    "scope": "ORDER"
                }
            ],
            "version": 1
        },
        "idempotency_key": "21b7ec641a594e60ecd7fdbb1308c2eb:6432_01"
    }
    duration: 0.37109s
    
    12-17-2020 @ 19:58:21 - Response
    code: 200
    message:
    headers: Array
    (
        [0] => HTTP/2 200
        [date] => Fri, 18 Dec 2020 01:58:21 GMT
        [frame-options] => DENY
        [x-frame-options] => DENY
        [x-content-type-options] => nosniff
        [x-xss-protection] => 1; mode=block
        [content-type] => application/json;charset=utf-8
        [square-version] => 2019-08-14
        [vary] => Accept-Encoding, User-Agent
        [content-length] => 8099
        [strict-transport-security] => max-age=631152000; includeSubDomains; preload
    )
    body: {
        "order": {
            "id": "Rz4l4TP4AZon4oYvs5yWhwddlTOZY",
            "location_id": "WYKDE0ZAF9N42",
            "reference_id": "6432",
            "source": {
                "name": "Sandbox for sq0idp-ws4mDOkz4bllPfk2Z030rg"
            },
            "customer_id": "5YAQ9NGD40YJH2XPWR4G0CKBAG",
            "line_items": [
                {
                    "uid": "Yk4SuY8YUBOzCm5YExmgyB",
                    "name": "Caramel Peanut - Small Bag",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "discounts": [
                        {
                            "uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "name": "Adjustment",
                            "type": "FIXED_AMOUNT",
                            "amount_money": {
                                "amount": 5337,
                                "currency": "USD"
                            },
                            "applied_money": {
                                "amount": 995,
                                "currency": "USD"
                            },
                            "scope": "ORDER"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "cQyiWXfAUYr1bL6tO4FTSD",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "1LHXZDafknbNwkY9NFQKcC",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        }
                    ],
                    "applied_discounts": [
                        {
                            "uid": "gCJDNaZqqbZdxXaw46pTmB",
                            "discount_uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "applied_money": {
                                "amount": 995,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 995,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 995,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 995,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 995,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 0,
                        "currency": "USD"
                    }
                },
                {
                    "uid": "MlEfhCha6jjow6vWPL5jRB",
                    "name": "Light Caramel - Medium Bag",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "discounts": [
                        {
                            "uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "name": "Adjustment",
                            "type": "FIXED_AMOUNT",
                            "amount_money": {
                                "amount": 5337,
                                "currency": "USD"
                            },
                            "applied_money": {
                                "amount": 1295,
                                "currency": "USD"
                            },
                            "scope": "ORDER"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "PDz3fWKcsEXG0me6yFFdk",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "OM2y6Oi8BX1So6fok1XKl",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        }
                    ],
                    "applied_discounts": [
                        {
                            "uid": "Qgn4waJ2aUYpZLq55CZnz",
                            "discount_uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "applied_money": {
                                "amount": 1295,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 1295,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 1295,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 1295,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 1295,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 0,
                        "currency": "USD"
                    }
                },
                {
                    "uid": "25t4vwvNmMFrIi6MuHY8L",
                    "name": "Toffee Almond - Junior Bag",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "discounts": [
                        {
                            "uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "name": "Adjustment",
                            "type": "FIXED_AMOUNT",
                            "amount_money": {
                                "amount": 5337,
                                "currency": "USD"
                            },
                            "applied_money": {
                                "amount": 695,
                                "currency": "USD"
                            },
                            "scope": "ORDER"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "ZfNK9JARTvUtLf7FA3QBxC",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "IxYiSrQKEOeW5kELAZHnjC",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        }
                    ],
                    "applied_discounts": [
                        {
                            "uid": "BSsBNLCPEYAIxbL2nPyiCB",
                            "discount_uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "applied_money": {
                                "amount": 695,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 695,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 695,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 695,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 695,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 0,
                        "currency": "USD"
                    }
                },
                {
                    "uid": "lVthQI0KLw0SMdMXqN4TBC",
                    "name": "Extra Butter - Small Bag",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "discounts": [
                        {
                            "uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "name": "Adjustment",
                            "type": "FIXED_AMOUNT",
                            "amount_money": {
                                "amount": 5337,
                                "currency": "USD"
                            },
                            "applied_money": {
                                "amount": 495,
                                "currency": "USD"
                            },
                            "scope": "ORDER"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "fl8z1LNL9ppICOyA3jCHEB",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "JMyRWp0iy448oVgdEPI8o",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        }
                    ],
                    "applied_discounts": [
                        {
                            "uid": "EIxDWxve41fBTYb7FlwuIC",
                            "discount_uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "applied_money": {
                                "amount": 495,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 495,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 495,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 495,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 495,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 0,
                        "currency": "USD"
                    }
                },
                {
                    "uid": "1ysl6R9CB40La2oGnPoQTD",
                    "name": "Local Pickup",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "discounts": [
                        {
                            "uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "name": "Adjustment",
                            "type": "FIXED_AMOUNT",
                            "amount_money": {
                                "amount": 5337,
                                "currency": "USD"
                            },
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "ORDER"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "HeK1FABc6BaXLoyilTFX4B",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "5AGgLHsZxkudiNzFhF5xs",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        }
                    ],
                    "applied_discounts": [
                        {
                            "uid": "oRnsqzMoKe1wRtiYMceUsC",
                            "discount_uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 0,
                        "currency": "USD"
                    }
                }
            ],
            "taxes": [
                {
                    "uid": "5fdc0cbcc66e7",
                    "name": "SALES TAX-1",
                    "type": "ADDITIVE",
                    "percentage": "63.33",
                    "applied_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "scope": "LINE_ITEM"
                },
                {
                    "uid": "5fdc0cbcc672f",
                    "name": "FOOD TAX-2",
                    "type": "ADDITIVE",
                    "percentage": "14.58",
                    "applied_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "scope": "LINE_ITEM"
                }
            ],
            "discounts": [
                {
                    "uid": "TBtSPxzd9eO2oRV6o8iC6C",
                    "name": "Adjustment",
                    "type": "FIXED_AMOUNT",
                    "amount_money": {
                        "amount": 5337,
                        "currency": "USD"
                    },
                    "applied_money": {
                        "amount": 3480,
                        "currency": "USD"
                    },
                    "scope": "ORDER"
                }
            ],
            "net_amounts": {
                "total_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "tax_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "discount_money": {
                    "amount": 3480,
                    "currency": "USD"
                },
                "tip_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "service_charge_money": {
                    "amount": 0,
                    "currency": "USD"
                }
            },
            "created_at": "2020-12-18T01:58:21.077Z",
            "updated_at": "2020-12-18T01:58:21.716Z",
            "state": "OPEN",
            "version": 2,
            "total_money": {
                "amount": 0,
                "currency": "USD"
            },
            "total_tax_money": {
                "amount": 0,
                "currency": "USD"
            },
            "total_discount_money": {
                "amount": 3480,
                "currency": "USD"
            },
            "total_service_charge_money": {
                "amount": 0,
                "currency": "USD"
            }
        }
    }
    
    12-17-2020 @ 19:58:22 - Request
    method:
    uri: updateOrderWithHttpInfo/WYKDE0ZAF9N42/Rz4l4TP4AZon4oYvs5yWhwddlTOZY
    user-agent: WooCommerce-Square/2.2.5 (WooCommerce/3.9.2; WordPress/5.5.3)
    headers: Array
    (
    )
    body: {
        "order": {
            "line_items": [
                {
                    "name": "Adjustment",
                    "quantity": "1",
                    "base_price_money": {
                        "amount": 854,
                        "currency": "USD"
                    }
                }
            ],
            "version": 2
        },
        "idempotency_key": "21b7ec641a594e60ecd7fdbb1308c2eb:6432_02"
    }
    duration: 0.3013s
    
    12-17-2020 @ 19:58:22 - Response
    code: 200
    message:
    headers: Array
    (
        [0] => HTTP/2 200
        [date] => Fri, 18 Dec 2020 01:58:22 GMT
        [frame-options] => DENY
        [x-frame-options] => DENY
        [x-content-type-options] => nosniff
        [x-xss-protection] => 1; mode=block
        [content-type] => application/json;charset=utf-8
        [square-version] => 2019-08-14
        [vary] => Accept-Encoding, User-Agent
        [content-length] => 8859
        [strict-transport-security] => max-age=631152000; includeSubDomains; preload
    )
    body: {
        "order": {
            "id": "Rz4l4TP4AZon4oYvs5yWhwddlTOZY",
            "location_id": "WYKDE0ZAF9N42",
            "reference_id": "6432",
            "source": {
                "name": "Sandbox for sq0idp-ws4mDOkz4bllPfk2Z030rg"
            },
            "customer_id": "5YAQ9NGD40YJH2XPWR4G0CKBAG",
            "line_items": [
                {
                    "uid": "Yk4SuY8YUBOzCm5YExmgyB",
                    "name": "Caramel Peanut - Small Bag",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "discounts": [
                        {
                            "uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "name": "Adjustment",
                            "type": "FIXED_AMOUNT",
                            "amount_money": {
                                "amount": 5337,
                                "currency": "USD"
                            },
                            "applied_money": {
                                "amount": 995,
                                "currency": "USD"
                            },
                            "scope": "ORDER"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "cQyiWXfAUYr1bL6tO4FTSD",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "1LHXZDafknbNwkY9NFQKcC",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        }
                    ],
                    "applied_discounts": [
                        {
                            "uid": "gCJDNaZqqbZdxXaw46pTmB",
                            "discount_uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "applied_money": {
                                "amount": 995,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 995,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 995,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 995,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 995,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 0,
                        "currency": "USD"
                    }
                },
                {
                    "uid": "MlEfhCha6jjow6vWPL5jRB",
                    "name": "Light Caramel - Medium Bag",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "discounts": [
                        {
                            "uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "name": "Adjustment",
                            "type": "FIXED_AMOUNT",
                            "amount_money": {
                                "amount": 5337,
                                "currency": "USD"
                            },
                            "applied_money": {
                                "amount": 1295,
                                "currency": "USD"
                            },
                            "scope": "ORDER"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "PDz3fWKcsEXG0me6yFFdk",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "OM2y6Oi8BX1So6fok1XKl",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        }
                    ],
                    "applied_discounts": [
                        {
                            "uid": "Qgn4waJ2aUYpZLq55CZnz",
                            "discount_uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "applied_money": {
                                "amount": 1295,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 1295,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 1295,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 1295,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 1295,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 0,
                        "currency": "USD"
                    }
                },
                {
                    "uid": "25t4vwvNmMFrIi6MuHY8L",
                    "name": "Toffee Almond - Junior Bag",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "discounts": [
                        {
                            "uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "name": "Adjustment",
                            "type": "FIXED_AMOUNT",
                            "amount_money": {
                                "amount": 5337,
                                "currency": "USD"
                            },
                            "applied_money": {
                                "amount": 695,
                                "currency": "USD"
                            },
                            "scope": "ORDER"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "ZfNK9JARTvUtLf7FA3QBxC",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "IxYiSrQKEOeW5kELAZHnjC",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        }
                    ],
                    "applied_discounts": [
                        {
                            "uid": "BSsBNLCPEYAIxbL2nPyiCB",
                            "discount_uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "applied_money": {
                                "amount": 695,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 695,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 695,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 695,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 695,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 0,
                        "currency": "USD"
                    }
                },
                {
                    "uid": "lVthQI0KLw0SMdMXqN4TBC",
                    "name": "Extra Butter - Small Bag",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "discounts": [
                        {
                            "uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "name": "Adjustment",
                            "type": "FIXED_AMOUNT",
                            "amount_money": {
                                "amount": 5337,
                                "currency": "USD"
                            },
                            "applied_money": {
                                "amount": 495,
                                "currency": "USD"
                            },
                            "scope": "ORDER"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "fl8z1LNL9ppICOyA3jCHEB",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "JMyRWp0iy448oVgdEPI8o",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        }
                    ],
                    "applied_discounts": [
                        {
                            "uid": "EIxDWxve41fBTYb7FlwuIC",
                            "discount_uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "applied_money": {
                                "amount": 495,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 495,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 495,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 495,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 495,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 0,
                        "currency": "USD"
                    }
                },
                {
                    "uid": "1ysl6R9CB40La2oGnPoQTD",
                    "name": "Local Pickup",
                    "quantity": "1",
                    "taxes": [
                        {
                            "uid": "5fdc0cbcc672f",
                            "name": "FOOD TAX-2",
                            "type": "ADDITIVE",
                            "percentage": "14.58",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        },
                        {
                            "uid": "5fdc0cbcc66e7",
                            "name": "SALES TAX-1",
                            "type": "ADDITIVE",
                            "percentage": "63.33",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "LINE_ITEM"
                        }
                    ],
                    "discounts": [
                        {
                            "uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "name": "Adjustment",
                            "type": "FIXED_AMOUNT",
                            "amount_money": {
                                "amount": 5337,
                                "currency": "USD"
                            },
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            },
                            "scope": "ORDER"
                        }
                    ],
                    "applied_taxes": [
                        {
                            "uid": "HeK1FABc6BaXLoyilTFX4B",
                            "tax_uid": "5fdc0cbcc672f",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        },
                        {
                            "uid": "5AGgLHsZxkudiNzFhF5xs",
                            "tax_uid": "5fdc0cbcc66e7",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        }
                    ],
                    "applied_discounts": [
                        {
                            "uid": "oRnsqzMoKe1wRtiYMceUsC",
                            "discount_uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "applied_money": {
                                "amount": 0,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 0,
                        "currency": "USD"
                    }
                },
                {
                    "uid": "fZikQS1NxbGBAtHcaaz6S",
                    "name": "Adjustment",
                    "quantity": "1",
                    "discounts": [
                        {
                            "uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "name": "Adjustment",
                            "type": "FIXED_AMOUNT",
                            "amount_money": {
                                "amount": 5337,
                                "currency": "USD"
                            },
                            "applied_money": {
                                "amount": 854,
                                "currency": "USD"
                            },
                            "scope": "ORDER"
                        }
                    ],
                    "applied_discounts": [
                        {
                            "uid": "3kawvyMFXLPQqmw3uowVY",
                            "discount_uid": "TBtSPxzd9eO2oRV6o8iC6C",
                            "applied_money": {
                                "amount": 854,
                                "currency": "USD"
                            }
                        }
                    ],
                    "base_price_money": {
                        "amount": 854,
                        "currency": "USD"
                    },
                    "variation_total_price_money": {
                        "amount": 854,
                        "currency": "USD"
                    },
                    "gross_sales_money": {
                        "amount": 854,
                        "currency": "USD"
                    },
                    "total_tax_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "total_discount_money": {
                        "amount": 854,
                        "currency": "USD"
                    },
                    "total_money": {
                        "amount": 0,
                        "currency": "USD"
                    }
                }
            ],
            "taxes": [
                {
                    "uid": "5fdc0cbcc66e7",
                    "name": "SALES TAX-1",
                    "type": "ADDITIVE",
                    "percentage": "63.33",
                    "applied_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "scope": "LINE_ITEM"
                },
                {
                    "uid": "5fdc0cbcc672f",
                    "name": "FOOD TAX-2",
                    "type": "ADDITIVE",
                    "percentage": "14.58",
                    "applied_money": {
                        "amount": 0,
                        "currency": "USD"
                    },
                    "scope": "LINE_ITEM"
                }
            ],
            "discounts": [
                {
                    "uid": "TBtSPxzd9eO2oRV6o8iC6C",
                    "name": "Adjustment",
                    "type": "FIXED_AMOUNT",
                    "amount_money": {
                        "amount": 5337,
                        "currency": "USD"
                    },
                    "applied_money": {
                        "amount": 4334,
                        "currency": "USD"
                    },
                    "scope": "ORDER"
                }
            ],
            "net_amounts": {
                "total_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "tax_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "discount_money": {
                    "amount": 4334,
                    "currency": "USD"
                },
                "tip_money": {
                    "amount": 0,
                    "currency": "USD"
                },
                "service_charge_money": {
                    "amount": 0,
                    "currency": "USD"
                }
            },
            "created_at": "2020-12-18T01:58:21.077Z",
            "updated_at": "2020-12-18T01:58:22.078Z",
            "state": "OPEN",
            "version": 3,
            "total_money": {
                "amount": 0,
                "currency": "USD"
            },
            "total_tax_money": {
                "amount": 0,
                "currency": "USD"
            },
            "total_discount_money": {
                "amount": 4334,
                "currency": "USD"
            },
            "total_service_charge_money": {
                "amount": 0,
                "currency": "USD"
            }
        }
    }
    
    12-17-2020 @ 19:58:22 - Request
    method:
    uri: createPaymentWithHttpInfo
    user-agent: WooCommerce-Square/2.2.5 (WooCommerce/3.9.2; WordPress/5.5.3)
    headers: Array
    (
    )
    body: {
        "source_id": "cnon:CBASEK-82amdDaISduVpAjuvUD8",
        "idempotency_key": "21b7ec641a594e60ecd7fdbb1308c2eb:6432_0",
        "amount_money": {
            "amount": 0,
            "currency": "USD"
        },
        "autocomplete": true,
        "order_id": "Rz4l4TP4AZon4oYvs5yWhwddlTOZY",
        "customer_id": "5YAQ9NGD40YJH2XPWR4G0CKBAG",
        "location_id": "WYKDE0ZAF9N42",
        "reference_id": "6432",
        "buyer_email_address": "",
        "billing_address": {
            "address_line_1": "",
            "address_line_2": "",
            "locality": "",
            "administrative_district_level_1": "",
            "postal_code": "",
            "country": "",
            "first_name": "",
            "last_name": "",
            "organization": ""
        },
        "shipping_address": {
            "address_line_1": "",
            "address_line_2": "",
            "locality": "",
            "administrative_district_level_1": "",
            "postal_code": "",
            "country": "",
            "first_name": "",
            "last_name": ""
        },
        "note": "Company Name - Order 6432"
    }
    duration: 0.31269s
    
    12-17-2020 @ 19:58:22 - Response
    code: 400
    message:
    headers: Array
    (
        [0] => HTTP/2 400
        [date] => Fri, 18 Dec 2020 01:58:22 GMT
        [frame-options] => DENY
        [x-frame-options] => DENY
        [x-content-type-options] => nosniff
        [x-xss-protection] => 1; mode=block
        [content-type] => application/json
        [square-version] => 2019-08-14
        [squareup--connect--v2--common--versionmetadata-bin] => CgoyMDE5LTA4LTE0
        [content-length] => 142
        [strict-transport-security] => max-age=631152000; includeSubDomains; preload
    )
    body: Array
    (
        [errors] => Array
            (
                [0] => stdClass Object
                    (
                        [code] => VALUE_TOO_LOW
                        [detail] => total requested amount 0 is below the minimum allowed
                        [category] => INVALID_REQUEST_ERROR
                    )
    
            )
    
    )
    
    12-17-2020 @ 19:58:24 - Status code VALUE_TOO_LOW: total requested amount 0 is below the minimum allowed
    • This reply was modified 4 years, 2 months ago by sonofkoji.
    Thread Starter sonofkoji

    (@sonofkoji)

    If even a quick fix is possible, some code I may be able to add or modify, that would be fantastic!

    Plugin Support Aashik P – a11n

    (@aashik)

    Hi there!

    Can you please confirm if you’re using YITH WooCommerce Gift Cards Premium: by YITH?

    I’m asking because I’m seeing a similar report from another user in our internal ticket queue (#3588322).

    Plugin Support Aashik P – a11n

    (@aashik)

    Hi there!

    Cross-checking the logs it seems the internal ticket is for the site in question here.

    I’ll mark this topic as solved for now, so that we can continue discussing it in one place.

    Please feel free to open a new topic if you have any other questions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Square rejecting orders with gift cards’ is closed to new replies.