Create customer
documentedCreate a new customer.
POST /v2.0/{environment}/api/v2.0/customersBusiness Centralno 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://api.businesscentral.dynamics.com/v2.0/{{$environment}}/api/v2.0/companies({{$company_id}})/customers" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "OData-Version: 4.0" \
-H "OData-MaxVersion: 4.0" \
-d '{"displayName": "{{$displayName}}", "type": "{{$type}}", "addressLine1": "{{$addressLine1}}", "addressLine2": "{{$addressLine2}}", "city": "{{$city}}", "state": "{{$state}}", "country": "{{$country}}", "postalCode": "{{$postalCode}}"}'