order created with SET_PROVIDED_ADDRESS canno't patch without a shipping

daviddk8
Contributor
Contributor

An order can be created with an initials items. When the order is created with  SET_PROVIDED_ADDRESS  option, then it canno't be patched without setting a valid shipping address first. If the customer change the items then a new order need to be created unless the customer write it's shipping address to an unfinished order.

 

Is that a features, a bug or something I misunderstand?

Login to Me Too
1 REPLY 1

MTS_Jennifer
Moderator
Moderator

Hi @daviddk8 ,

Thank you for posting to the PayPal Merchant Community. You are correct that SET_PROVIDED_ADDRESS will not allow you to patch without providing a shipping address. This is because that option requires that you supply the shipping address, rather than PayPal. There is another option  you can use GET_FROM_FILE, that option will get the shipping address from the PayPal Account. You would be able to submit a patch request without needing to add shipping. Of course if you do not need the shipping address the final option is NO_SHIPPING, which does not supply a shipping address and does not require one.

Here are the shipping_preference details:

https://developer.paypal.com/docs/api/orders/v2/#definition-experience_context_base

 

Thank you,

Jennifer

MTS

PayPal

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.