Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/products/create-supplierProductsPermission: product.create

Create Supplier

Creates a new product supplier record in the active tenant.

Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).

Request

Provide the following fields in the request payload.

Body application/json
codestring | nulloptional

code parameter.

namestringrequired

name parameter.

firstNamestring | nulloptional

first Name parameter.

lastNamestring | nulloptional

last Name parameter.

emailstring (email) | enum('') | object | nulloptional

email parameter.

phonestring | nulloptional

phone parameter.

mobilestring | nulloptional

mobile parameter.

addressstring | nulloptional

address parameter.

citystring | nulloptional

city parameter.

statestring | nulloptional

state parameter.

zipCodestring | nulloptional

zip Code parameter.

countrystring | nulloptional

country parameter.

genderstring | nulloptional

gender parameter.

groupstring | nulloptional

group parameter.

imageUrlstring (uri) | enum('') | object | nulloptional

image Url parameter.

notesstring | nulloptional

notes parameter.

statusenum('Active' | 'Inactive' | 'Suspended')optionaldefault: Active

status parameter.

Responses

Select a status code to inspect schema.

Created — Supplier created.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/products/create-supplier
curl -X POST "https://api.invoger.com/api/products/create-supplier" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "name": "PT Kopi Nusantara", "code": "SUP-01", "email": "sales@kopinusantara.co.id", "status": "Active" }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Supplier created successfully",
  "data": {
    "id": "sup_1",
    "name": "PT Kopi Nusantara",
    "code": "SUP-01"
  }
}