Sign in

Create contact

documented

Create a new contact.

POST /contactsAccountingno implementation yet0 runs
No 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://api.accounting.sage.com/v3.1/contacts" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "ocp-apim-subscription-key: {{SAGE_API_KEY}}" \
  -H "X-Site: {{SAGE_SITE}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"contact": {"name": "{{$name}}", "reference": "{{$reference}}", "contact_type_ids": ["CUSTOMER"], "main_address": {"address_type_id": "ACCOUNTS", "address_line_1": "{{$address_line_1}}", "city": "{{$city}}", "region": "{{$region}}", "postal_code": "{{$postal_code}}", "country_group_id": "US"}}}}'
Create contact · Sage · OpenIntegrations