Create distributor
documentedCreate a distributor.
POST /3dCartWebAPI/v1/DistributorsDistributorsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://apirest.3dcart.com/3dCartWebAPI/v2/Distributors" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "SecureURL: {{SHIFT4SHOP_SECURE_URL}}" \
-H "PrivateKey: {{SHIFT4SHOP_PRIVATE_KEY}}" \
-H "Token: {{SHIFT4SHOP_TOKEN}}" \
-d '{"DistributorID": -34424972, "CompanyName": "{{$company_name}}", "ContactName": "{{$contact_name}}", "Address": "{{$address}}", "Address2": "{{$address2}}", "City": "{{$city}}", "State": "{{$state}}", "Zip": "{{$zip}}", "Country": "{{$country}}", "Phone": "{{$phone}}", "Fax": "{{$fax}}", "Email": "{{$email}}", "Comments": "{{$comments}}", "NotifyOnNewOrder": {{$notify_on_new_order}}, "NotifyOnNewOrderEmailSubject": "{{$notify_subject}}", "NotifyOnNewOrderEmailMessage": "{{$notify_message}}", "UserID": "{{$user_id}}", "LastUpdate": "{{$last_update}}", "IsDropShipper": {{$is_drop_shipper}}, "NotifyOnCancelledOrder": {{$notify_on_cancelled_order}}, "NotifyOnCancelledOrderEmailSubject": "{{$cancel_subject}}", "NotifyOnCancelledOrderEmailMessage": "{{$cancel_message}}", "POStyle": {{$po_style}}, "POEmailNotification": {{$po_email_notification}}, "POShippingInfo": "{{$po_shipping_info}}", "POPaymentInfo": "{{$po_payment_info}}", "POAdditionalNotes": "{{$po_additional_notes}}", "POEmailSubject": "{{$po_email_subject}}"}'