UNPROCESSABLE_ENTITY -- CANNOT_BE_ZERO_OR_NEGATIVE

Merchant
من United States
عضو منذ مارس 2022

I'm unable to checkout with any total of goods. My subtotal for this order reads Subtotal: $6.60 and I receive the error message:

[quote]The requested action could not be performed, semantically incorrect, or failed business validation.[/quote]

Here's the paypal API log with some private information censored:

Connection: Close

{
    "intent": "CAPTURE",
    "purchase_units": [
        {
            "payee": {
                "email": "xxx@xxx"
            },
            "reference_id": 6,
            "description": "Order #6",
            "amount": {
                "currency_code": "USD",
                "value": 0,
                "breakdown": {
                    "item_total": {
                        "currency_code": "USD",
                        "value": "6.00"
                    },
                    "tax_total": {
                        "currency_code": "USD",
                        "value": "0.60"
                    }
                }
            },
            "shipping": {
                "name": {
                    "full_name": "xxx xxxx"
                },
                "address": {
                    "address_line_1": "xxxx",
                    "address_line_2": "",
                    "admin_area_2": "xxxx",
                    "postal_code": "xxxx",
                    "admin_area_1": "MO",
                    "country_code": "US"
                }
            },
            "items": [
                {
                    "name": "Tank Top",
                    "unit_amount": {
                        "currency_code": "USD",
                        "value": "3.00"
                    },
                    "tax": {
                        "currency_code": "USD",
                        "value": "0.30"
                    },
                    "quantity": "2",
                    "sku": "",
                    "category": "PHYSICAL_GOODS"
                }
            ]
        }
    ],

HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
Content-Length: 559
Connection: close
Date: Tue, 15 Mar 2022 00:49:48 GMT
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Strict-Transport-Security: max-age=31536000; includeSubDomains

{"name":"UNPROCESSABLE_ENTITY","details":[{"field":"/purchase_units/@reference_id=='6'/amount/value","value":"0","issue":"CANNOT_BE_ZERO_OR_NEGATIVE","description":"Must be greater than zero. If the currency supports decimals, only two decimal place precision is supported."}],"message":"The requested action could not be performed, semantically incorrect, or failed business validation.","debug_id":"7fb41e99f4493","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-CANNOT_BE_ZERO_OR_NEGATIVE","rel":"information_link","method":"GET"}]}

I'm confused as to why it thinks the order total amount seems to be zero? There are no discounts on the item.

"value": 0,

Please advise. Thanks!

tim
Founder
من Sweden
عضو منذ مايو 2013
tim

Confirmed, can you see if the updated release solves your problem?

Merchant
من United States
عضو منذ مارس 2022

Thank you Tim, the updated release fixed the problem!

أنت
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.