This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
curl --location -g --request POST '{{subdomain}}/api2/api2/clients.json' \
--header 'APIKEY: {{APIKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"Client": {
"is_offline": true,
"staff_id": 1,
"business_name": "Mock Business",
"first_name": "John",
"last_name": "Doe",
"email": "mock@example.com",
"password": "password123",
"address1": "123 Mock Street",
"address2": "Apt 456",
"city": "Mock City",
"state": "Mock State",
"postal_code": "12345",
"phone1": "123-456-7890",
"phone2": "098-765-4321",
"country_code": "US",
"notes": "These are mock notes.",
"active_secondary_address": true,
"secondary_name": "Jane Doe",
"secondary_address1": "456 Secondary St",
"secondary_address2": "Suite 789",
"secondary_city": "Secondary City",
"secondary_state": "Secondary State",
"secondary_postal_code": "67890",
"secondary_country_code": "US",
"default_currency_code": "USD",
"follow_up_status": null,
"category": "Mock Category",
"group_price_id": 2,
"timezone": -5,
"bn1": "Business Note 1",
"bn1_label": "Label 1",
"bn2_label": "Label 2",
"bn2": "Business Note 2",
"starting_balance": 1000.00,
"type": 2,
"birth_date": "1990-01-01",
"gender": 1,
"map_location": "40.712776,-74.005974,5",
"credit_limit": 5000.00,
"credit_period": 30
}
}'
{
"result": "successful",
"code": 202,
"id": "107",
"client_number": "104"
}