Exemple de journal de débogage lié à cette erreur:
{"name":"INVALID_REQUEST","message":"Request is not well-formed, syntactically incorrect, or violates schema.","debug_id":"72cee11cd0415","details":[{"field":"/payer/address/country_code","value":"","location":"body","issue":"INVALID_STRING_LENGTH","description":"The value of a field is either too short or too long."},{"field":"/payer/address/country_code","value":"","location":"body","issue":"INVALID_PARAMETER_SYNTAX","description":"The value of a field does not conform to the expected format."}],"links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX","rel":"information_link","encType":"application/json"},{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH","rel":"information_link","encType":"application/json"}]}
Selon le 'Request' fourni, le champ 'country_code' est envoyé comme un champ vide ("country_code": "").
La documentation de l'API PayPal à l'adresse https://developer.paypal.com/docs/api/orders/v2/#definition-country_code indique qu'il s'agit d'un champ obligatoire.
Veuillez vous assurer qu'une adresse postale et un pays ont été saisis dans votre espace client afin que PayPal puisse vérifier correctement la demande.