POST /vendors.json
Body Required
-
accountsEmail string | null
Accounts email
-
Automatically backorder
Values are
company_default
,backorder
, orignore
. Default value iscompany_default
. -
companyCode string | null
Company code
Maximum length is
30
. -
currencyId integer(int32) | null
Cost prices will be converted at this currency on purchase orders. You can either use fixed or automatic exchange rates. Currencies can be added under Setup > Currencies then assigned here.
-
Delivery days
Default value is
0
. -
Dropship processing
Values are
direct
ordropship_provider
. Default value isdropship_provider
. -
email string | null
Email
-
fax string | null
Fax
Maximum length is
30
. -
firstName string | null
First name
-
Fulfillment policy
Values are
manual
,dropship
,fulfill
,company_default
, orblended
. Default value iscompany_default
. -
lastName string | null
Last name
-
Name
-
No inventory policy
Values are
manual
,dropship
, orreplenish
. Default value ismanual
. -
notes string | null
Notes
-
orderEmail string | null
Order email
-
Payment days
Default value is
0
. -
phone string | null
Phone
Maximum length is
30
. -
returnsEmail string | null
Returns email
-
Source
Values are
channel
,manual
,dropshipProvider
, orinvenotryFeed
. Default value ischannel
. -
Specify dropship providers
Default value is
true
. -
taxNumber string | null
Tax number
Maximum length is
30
. -
warehouseId integer(int32) | null
Warehouse
-
Warehouse routing
Values are
select
orrouted
. Default value isselect
. -
xeroId string | null
Xero
curl \
-X POST http://api.example.com/v1/vendors.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"accountsEmail":"string","automaticallyBackorder":"company_default","companyCode":"string","currencyId":42,"deliveryDays":0,"dropshipProcessing":"dropship_provider","email":"string","fax":"string","firstName":"string","fulfillmentPolicy":"company_default","lastName":"string","name":"string","noInventoryPolicy":"manual","notes":"string","orderEmail":"string","paymentDays":0,"phone":"string","returnsEmail":"string","source":"channel","specifyDropshipProviders":true,"taxNumber":"string","warehouseId":42,"warehouseRouting":"select","xeroId":"string"}'
{
"accountsEmail": "string",
"automaticallyBackorder": "company_default",
"companyCode": "string",
"currencyId": 42,
"deliveryDays": 0,
"dropshipProcessing": "dropship_provider",
"email": "string",
"fax": "string",
"firstName": "string",
"fulfillmentPolicy": "company_default",
"lastName": "string",
"name": "string",
"noInventoryPolicy": "manual",
"notes": "string",
"orderEmail": "string",
"paymentDays": 0,
"phone": "string",
"returnsEmail": "string",
"source": "channel",
"specifyDropshipProviders": true,
"taxNumber": "string",
"warehouseId": 42,
"warehouseRouting": "select",
"xeroId": "string"
}
{
"accountsEmail": "string",
"automaticallyBackorder": "company_default",
"companyCode": "string",
"createdAt": "2024-05-04T09:42:00+00:00",
"currencyId": 42,
"deliveryDays": 0,
"dropshipProcessing": "dropship_provider",
"email": "string",
"fax": "string",
"firstName": "string",
"fulfillmentPolicy": "company_default",
"id": 42,
"lastName": "string",
"name": "string",
"noInventoryPolicy": "manual",
"notes": "string",
"orderEmail": "string",
"paymentDays": 0,
"phone": "string",
"returnsEmail": "string",
"source": "channel",
"specifyDropshipProviders": true,
"taxNumber": "string",
"updatedAt": "2024-05-04T09:42:00+00:00",
"warehouseId": 42,
"warehouseRouting": "select",
"xeroId": "string"
}