PeterLee.KR
Today
Literature
Dance
Public_Administration
Programming
programming
Easy Pay System
Paypal
Something else here
Carpentry
Chronology
Tanzmate
Cntanz
Search
Edit
Back to List
PaypalModel
ID
Date
Target
Title
Contents
https://developer.paypal.com/docs/api/orders/v2/#orders_patch Updates an order with a CREATED or APPROVED status. You cannot update an order with the COMPLETED status. To make an update, you must provide a reference_id. If you omit this value with an order that contains only one purchase unit, PayPal sets the value to default which enables you to use the path: "/purchase_units/@reference_id=='default'/{attribute-or-object}". Sample Request curl -v -X PATCH https://api-m.sandbox.paypal.com/v2/checkout/orders/5O190127TN364715T \ -H "Content-Type: application/json" \ -H "Authorization: Bearer Access-Token" \ -d '[ { "op": "replace", "path": "/purchase_units/@reference_id=='PUHF'/shipping/address", "value": { "address_line_1": "123 Townsend St", "address_line_2": "Floor 6", "admin_area_2": "San Francisco", "admin_area_1": "CA", "postal_code": "94107", "country_code": "US" } } ]' Sample Response 204 No Content
Back to List