Skip to main content

Get Profile

GET 

/api/portal/auth/profile

Alias of Get Current Buyer — returns the authenticated buyer with company, accounts, and account.

Buyer portal token

Called by a B2B portal buyer with the bearer token POST /api/portal/auth/login returns (or the buyer's feed key) — not with a staff Personal Access Token.

view_as is null for the buyer's own session. During a merchant staff view it holds session_id, staff_user_id, staff_name, expires_at and can_view_margins (whether the staff user may see the staff-only margin overlay — a flag, never a cost) — the portal shows a read-only staff-view banner from it.

account.ship_to_policy says where the buyer may ship: saved_only (saved addresses only), may_add_saved (new addresses are added to the address book) or may_ship_anywhere (also one-time addresses that are not saved unless checkout sends save_address: true).

account.dropship describes the account's dropship program. When it is off this is just {"enabled": false}. When on it carries what an order needs: display_name (the retailer name parcels ship under), intake_channels (how orders may be sent: portal, csv, api, edi, rep), fee_per_order and fee_per_unit, the shipping charge (shipping_charge_mode none/flat/rate_table/actual, shipping_flat_amount, shipping_free_over), default_shipping_method_id and allowed_shipping_method_ids, the ship-by commitment (sla_business_days after the sla_cutoff_time local cut-off), exempt_minimums, allow_international, retailer_manages_branding (whether the account's company admins may edit Dropship Branding) and feed_safety_stock (units held back per product in the dropship inventory feed).

Request​

Responses​

OK

Response Headers
    Content-Type