Symptoms

API method UserForVendorValidate_API returns 0 instead of expected User ID. What are the possible reasons?

Cause

  1. The user does not belong to the specified vendor.
  2. The pair login/password is incorrect - it is impossible to login with the credentials specified. Note, the both login and password parameters are case-sensitive.
  3. An account to which the user belongs cannot place orders, it is in one of the statuses listed - "Cancelled", "Administrative Hold", "Credit+Administrative Hold".
  4. The user is a provider's staff member. There is a request #PBA-56571 ("UserForVendorValidate_API can not be used to validate provider's staff member") to have the method that works for such staff member.

Internal content

Link on internal Article