Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Identity__create Vendor

Creates a new vendor/supplier for the tenant. Optionally set a password for vendor portal access. Requires a signed-in staff user. Needs the `identity__Vendor` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONidentity__createVendor(body: CreateVendorInput!): CommonMutationResponse!

Creates a new vendor/supplier for the tenant. Optionally set a password for vendor portal access. Requires a signed-in staff user. Needs the identity__Vendor create permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

body*

Returns

  1. identity__createVendor
_id*ID!
Example Request
mutation Identity__createVendor($body: CreateVendorInput!) {  identity__createVendor(body: $body) {    _id  }}
Variables
{  "body": {    "name": "string"  }}
Example Response
{  "data": {    "identity__createVendor": {      "_id": "1"    }  }}