There are no LOCALE
options you can pass to the REST API, however, if you set the shipping address for the transaction it should update automatically. You can test with the call below.
curl -v https://api.sandbox.paypal.com/v1/payments/payment -H 'Content-Type: application/json' -H 'Authorization: Bearer {ACCESS_TOKEN}' \
-d '{
"intent":"sale",
"redirect_urls":{
"return_url":"http://localhost",
"cancel_url":"http://localhost"
},
"payer":{
"payment_method":"paypal"
},
"transactions":[
{
"amount":{
"total":"7.47",
"currency":"USD"
},
"item_list":{
"shipping_address":{
"recipient_name":"Test Test",
"type":"business",
"line1":"187 Alameda Santos",
"city":"Sao Paulo",
"country_code":"BR",
"postal_code":"01119",
"state":"Condominio Edificio Platinum"
}
},
"description":"This is the payment transaction description."
}
]
}'