Mutation
mutation vendor_create(
$data: CreateVendorInput!
) {
vendor_create(
data: $data
) {
request_id
complexity
vendor {
...VendorFragment
id
legacy_id
name
email
account_number
account_id
address {
...AddressFragment
name
address1
address2
city
state
country
zip
phone
}
currency
internal_note
default_po_note
logo
partner_vendor_id
created_at
}
}
}
Variables
{
"data": {
"customer_account_id": "QWNjb3VudDoxMjM0",
"name": "Acme Supplies",
"email": "customer@example.com",
"account_number": "2",
"address": {address1: "123 Fulfillment Ave", city: "New York", country: "US"},
"currency": "19.99",
"internal_note": "Customer requested expedited handling.",
"default_po_note": "Customer requested expedited handling.",
"logo": "https://example.com/images/blue-tee.jpg",
"partner_vendor_id": 1234
}
}
Response
{
"data": {
"vendor_create": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"vendor": {id: "VmVuZG9yOjEyMzQ=", name: "Acme Supplies"}
}
}
}