Get Branch Job Accounts

Changed on

Looks up, live from the supplier, the job accounts you can order against at one or more branches, so you can choose preferred_job_account_number before saving a branch with Create Supplier Branch. Pass branch_code (comma-separated for several branches) or, for SRS only, both ship_to_latitude and ship_to_longitude to find your SRS branches near a ship-to location; when SRS receives both coordinates they take precedence over branch_code. For SRS a job account is an SRS job account under your customer code, for ABC Supply it is a Ship-To account, and for QXO it is a job under the QXO account that owns the branch (each QXO entry also returns that account_id). ABC Supply and QXO ignore coordinates, so a coordinates-only request returns an empty list for them. The provider must exist and be CONNECTED; otherwise the request fails with 404 (unknown provider) or 403 (not connected or reconnect required).

get/supplier_provider/{supplier_provider_uid}/branch_job_accounts

Request

  • Base URL
    https://dc-region.zuperpro.com/api
  • URL
    https://dc-region.zuperpro.com/api/supplier_provider/{supplier_provider_uid}/branch_job_accounts
  • Auth
    API key in header x-api-key

Path parameters

supplier_provider_uidstring required

UID of the supplier provider (from Get Supplier Providers).

Query parameters

branch_codestring

Supplier branch code. Separate several with commas, e.g. 1042,1187. Required unless both coordinates are sent.

ship_to_latitudenumber

Ship-to latitude. Must be sent together with ship_to_longitude. Used by SRS only.

ship_to_longitudenumber

Ship-to longitude. Must be sent together with ship_to_latitude. Used by SRS only.

Response

200

type'success'
titlestring
messagestring

Changes