I'm trying to update arb subscriptions to point at new customer payment profiles. However, the API returns error E00013 with message "Phone is invalid. Phone can be one of following formats: 111- 111-1111 or (111) 111-1111."
I'm not even submitting the phone number with the request. Here's the code I'm using to construct the request (ruby SDK):
profile = CustomerProfileIdType.new(@info[:profile_id],@info[:payment_profile_id])
ARBUpdateSubscriptionRequest.new(
nil,
nil,
@subscription_id,
ARBSubscriptionType.new(nil,nil,nil,nil,nil,nil,nil,nil,nil,profile)
)
That code contructs a request that looks like this:
<arbupdatesubscriptionrequest>
<subscriptionId>395823xx</subscriptionId>
<subscription>
<profile>
<customerProfileId>19217479xx</customerProfileId>
<customerPaymentProfileId>19557806xx</customerPaymentProfileId>
</profile>
</subscription>
</arbupdatesubscriptionrequest>
Why should I get a phone number error in this case?
Maybe the phone number on the customer profile is invalid. But if that's the case, then why am I able to submit the create customer profile request and the create subscription request without error?