{ "merchant_info": { "email": "jaypatel512-facilitator@hotmail.com", "first_name": "Dennis", "last_name": "Doctor", "business_name": "Medical Professionals, LLC", "phone": { "country_code": "001", "national_number": "5032141716" }, "address": { "line1": "1234 Main St.", "city": "Portland", "state": "OR", "postal_code": "97217", "country_code": "US" } }, "billing_info": [ { "email": "example@example.com" } ], "note": "Medical Invoice 16 Jul, 2013 PST", "payment_term": { "term_type": "NET_45" }, "shipping_info": { "first_name": "Sally", "last_name": "Patient", "business_name": "Not applicable", "phone": { "country_code": "001", "national_number": "5039871234" }, "address": { "line1": "1234 Main St.", "city": "Portland", "state": "OR", "postal_code": "97217", "country_code": "US" } }, "items": [ { "name": "Sutures", "quantity": 100, "unit_price": { "currency": "USD", "value": "5" } }, { "name": "Injection", "quantity": 5, "unit_price": { "currency": "USD", "value": "5" } } ] }
Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/invoicing/invoices.
{ "name": "BUSINESS_ERROR", "message": "Number is too long.", "information_link": "https://developer.paypal.com/docs/api/invoicing/#errors", "debug_id": "dec4c49c5ba7a" }