Edit Suppliers
Production
https://{{subdomain}}.daftra.com/api2
Production
https://{{subdomain}}.daftra.com/api2
PUT
https://{{subdomain}}.daftra.com/api2
Suppliers
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'https://.daftra.com/api2/suppliers/' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"Supplier": {
"is_offline": true,
"supplier_number": 0,
"staff_id": 0,
"business_name": "string",
"first_name": "string",
"last_name": "string",
"email": "string",
"password": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"postal_code": "string",
"phone1": "string",
"phone2": "string",
"country_code": "str",
"notes": "string",
"active_secondary_address": true,
"secondary_name": "string",
"secondary_address1": "string",
"secondary_address2": "string",
"secondary_city": "string",
"secondary_state": "string",
"secondary_postal_code": "string",
"secondary_country_code": "string",
"language_code": "string",
"default_currency_code": "strin",
"follow_up_status": null,
"bn1": "string",
"bn1_label": "string",
"bn2_label": "string",
"bn2": "string"
}
}'
Response Response Example
200 - Example 1
{
"code": 200,
"result": "successful"
}
Request
Path Params
id
stringÂ
required
format
stringÂ
required
Header Params
Accept
stringÂ
optional
Default:
application/json
Content-Type
stringÂ
optional
Default:
application/json
Authorization
stringÂ
optional
Default:
Bearer {{access_token}}
apikey
stringÂ
deprecated
Default:
{{apikey}}
Body Params application/json