Skip to main content

PayPal Community

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

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 ‎Aug-27-2020
devAcct
devAcct Contributor
Contributor
1
Post
0
Kudos
0
Solutions
The Return
Active
View all
Latest Contributions by devAcct
  • Topics devAcct has Participated In
  • Latest Contributions by devAcct

patch transaction amount error

by devAcct Contributor in REST APIs
‎Aug-27-2020 01:21 PM
‎Aug-27-2020 01:21 PM
I have a transaction, running through the javascript sdk, that authorizes the payment. That is all working find, and I'm getting an order id, and auth id etc. I need to update the /amount before doing a capture, this time using the back end (ColdFusion). I'm referencing the docs at https://developer.paypal.com/docs/checkout/integration-features/update-order-details/#2-patch-the-transaction but keep getting invalid request etc url: https://api.sandbox.paypal.com/v2/checkout/orders/[order id] auth: access token generation is successful, and allows a 'get' on the same url, returns the correct order details. body: {     op: 'replace',     path: '/purchase_units/@reference_id==\'default\'/amount',     value: {currency_code: 'USD', value: '500.00'} } I'm not using a reference id, but do see the 'default' in the listing. I'm guessing the issue is something in the formatting of the body. I'll get invalid request, with syntax or missing param issues. Am I missing something? ... View more
Labels:
  • Labels:
  • Payments REST APIs
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