Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in

Le forum de Communauté ne sera plus disponible à partir du 30 Juin 2025. Le Forum de la communauté n’est pas disponible pour les nouveaux messages ou les réponses; les articles précédents restent disponibles pour vérification. Afin de connaître les options d’assistance complètes, rendez-vous sur PayPal.com/HelpCenter

Si vous souhaitez signaler du contenu illégal et contraire au Règlement sur les services numériques de l’Union Européenne (DSA), veuillez cliquer ici.

since ‎Oct-17-2019
Country: Germany
Type: Personal
DSchwarz
DSchwarz Contributor
Contributor
1
Post
0
Kudos
0
Solutions
Your PayPal Anniversary
Active
Ice Breaker
The Return
View all
Latest Contributions by DSchwarz
  • Topics DSchwarz has Participated In
  • Latest Contributions by DSchwarz

2 digits unitprice problem

by DSchwarz Contributor in REST APIs
‎Oct-17-2019 05:14 AM
‎Oct-17-2019 05:14 AM
Hello, i develop a PayPal Application for my company. I use the offical PayPal PHP SDK.   I have a big mathematical problem to send you a invoice that is equal to our system because i can only send you unitprices with 2 digits after the comma.   For example we need to make an invoice with a position of 15,00 EUR brutto for our customers.   If we calculate the netto price with a tax of 19% (15,00/1.19) we get 12.60504202 as the netto Price. Rounded for business is this 12.61.   But: 12.61 with 19% Tax (12.61*1.19 = 15.0059) = 15,01 EUR (12.60 with 19% Tax = 14,99 EUR)   I will never get 15,00 EUR in the invoice as the brutto price if i can only send 2 digits after the comma for a netto unit price.   What can i do to solve this problem?   This is the error nessage i've got after sending a unit price with 4 digits after the comma: "information_link":"https://developer.paypal.com/docs/api/invoicing/#errors", "details":[{"field":"items[0].unit_price.value", "issue":"can have non-negative value with maximum 6 digits upto 2 fractions."}, {"field":"items[2].unit_price.value","issue":"can have non-negative value with maximum 6 digits upto 2 fractions."},{"field":"items[1].unit_price.value","issue":"can have non-negative value with maximum 6 digits upto 2 fractions."}]} message => (string) Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/invoicing/invoices. ... View more
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros