Create vendor
documentedCreates a single Vendor object.
POST /v2/vendors/createVendorsno 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://connect.squareup.com/v2/vendors/create" \
-X POST \
-H "Square-Version: {{$square_version}}" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-d '{"idempotency_key": "{{$idempotency_key}}", "vendor": {"name": "{{$vendor_name}}", "address": {"address_line_1": "{{$vendor_address_line_1}}", "address_line_2": "{{$vendor_address_line_2}}", "locality": "{{$vendor_locality}}", "administrative_district_level_1": "{{$vendor_administrative_district_level_1}}", "postal_code": "{{$vendor_postal_code}}", "country": "{{$vendor_country}}"}, "contacts": [{"name": "{{$vendor_contact_name}}", "email_address": "{{$vendor_contact_email}}", "phone_number": "{{$vendor_contact_phone}}"}], "account_number": "{{$vendor_account_number}}", "note": "{{$vendor_note}}"}}'