pending until you approve it, then approved. Archived customers don’t appear.
Approving can also set the customer’s net terms and export the customer to Shopify, in one request.
Exporting to Shopify
Sendexport.shopify with as:
customercreates a Shopify customer, or links the one inshopify_customer_id.companyadds the applicant as a contact of a Shopify B2B company. The store needs B2B turned on.
as: company, the group and company are chosen like this:
A new company gets one location with the applicant’s addresses, tax exemption and net terms, and the applicant becomes its main contact. If the store has no matching payment terms, the company is created without terms and you get the
net_terms_unsupported_in_shopify warning.
Joining an existing company adds the applicant at one location and changes nothing else on the company. If the company has more than one location, send shopify_company_location_id.
Errors
If the approval succeeded but the export failed, the error includes"approved": true. Don’t approve again; retry the export as described below.
Retrying an export
Call approve again with the sameexport.shopify and no net_terms. Only the export runs, and it reuses the group and company from the first attempt, so it never creates duplicates.