I am trying to purchase Square Gift cards and load amount to it during purchase. I have multiple locations configured and to call the Square Payment APIs I need to pass a location id. When I pass Location A’s location id to the Payment and Order APIs, I get the below error message and the Location B’s location id is returned in the response, which is configured as Main location in Square account. I do not send Location B’s location id in the API. Should the main location be used for all orders and payments? If so, would it be a problem if we try to redeem the gift card in any other location?
This is the same behavior for both Physical and Digital Gift cards.
“detail”: “The payment is for a different location than the order.”,