الانتقال إلى المحتوى الرئيسي
POST
Adds a location to a client.

التفويضات

X-API-Key
string
header
مطلوب

Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.

معلمات المسار

clientId
integer<int64>
مطلوب

Client to add the location to.

الجسم

Location details.

Request body for adding a location to a client. The client is taken from the route.

Name
string | null

Location display name. Required, cannot be blank. Maximum 150 characters.

مثال:

"Branch Office"

PhoneCountryCode
string | null

Phone ISO 3166-1 alpha-2 region code (e.g. NZ, US). Required when Phone is sent. Maximum 25 characters.

مثال:

"NZ"

Phone
string | null

Phone number, as dialled within its country, e.g. 09 123 4567 for NZ; an international +64 9 123 4567 is accepted too. A number sent without its leading 0 is stored with it. Maximum 15 characters.

مثال:

"09 123 4567"

PhoneExt
string | null

Phone extension. Maximum 5 characters.

Address1
string | null

Address line 1. Maximum 150 characters.

مثال:

"12 Queen Street"

Address2
string | null

Address line 2. Maximum 150 characters.

City
string | null

City. Maximum 100 characters.

مثال:

"Auckland"

State
string | null

State / province. Maximum 100 characters.

Country
string | null

Country. Maximum 100 characters.

مثال:

"New Zealand"

PostalCode
string | null

Postal / ZIP code. Maximum 10 characters.

مثال:

"1010"

TimeZone
string | null

IANA time zone identifier for the location (e.g. Pacific/Auckland). Maximum 200 characters.

مثال:

"Pacific/Auckland"

PrimaryContactId
integer<int64> | null

The location's primary contact: an active contact of this client (from GET /v1/contacts?clientIds=).

BillingContactIds
integer<int64>[] | null

The location's billing contacts: active contacts of this client. At most 100; a repeated id is stored once.

IsDefault
boolean | null

Make this the client's default location. The client's current default stops being the default. Defaults to false.

IsDefaultBilling
boolean | null

Make this the client's default billing location, whose address invoices and a linked accounting system use. The current default billing location stops being it. Defaults to false.

الاستجابة

OK

StatusCode
enum<integer>
الخيارات المتاحة:
100,
101,
102,
103,
200,
201,
202,
203,
204,
205,
206,
207,
208,
226,
300,
301,
302,
303,
304,
305,
306,
307,
308,
400,
401,
402,
403,
404,
405,
406,
407,
408,
409,
410,
411,
412,
413,
414,
415,
416,
417,
421,
422,
423,
424,
426,
428,
429,
431,
451,
500,
501,
502,
503,
504,
505,
506,
507,
508,
510,
511
IsSuccess
boolean
Data
object

A client location. Timestamps are UTC.

DataContext
object | null
مثال:

null

Notifications
object[]