Saaslogic
  1. Vendors
Saaslogic
  • Introduction
  • Authentication
  • Enum Reference
  • Authentication
    • saaslogic token
      • Get the saaslogic access token
    • login Url
      • Gives the login URL
    • logout Url
      • Gives the logout URL
  • Countries
    • Get list of countries
  • Plans
    • List all plans for a product
  • Subscriptions
    • Create a product subscription
    • Retrieve a subscription
    • Create Customer and Subscription
    • Subscription with details permissions, menus and features
    • The Saaslogic URL for creating subscription
  • Usage Reporting
    • Report the resource usages in subscription for invoicing
    • Retrieves the resource usages of a subscription in the current billing cycle
  • Customers
    • addresses
      • Create an address
      • List all addresses
      • Update an address
      • Retrieve an address
      • Delete an address
    • contacts
      • Create a contact
      • List all contacts
      • Update a contact
      • Retrieve a contact
      • Delete a contact
    • Create a customer
    • List all customers
    • Update a customer
    • Retrieve a customer
    • Delete a customer
  • Vendors
    • vendor addresses
      • Create a vendor address.
      • List all vendor addresses.
      • Update a vendor address.
      • Retrieve a vendor address..
      • Delete a vendor address.
    • vendor contacts
      • Create a vendor contact.
      • List all vendor contacts.
      • Update a vendor contact.
      • Retrieve a vendor contact.
      • Delete a vendor contact.
    • vendor bills
      • Create a vendor bill
      • Cancel a vendor bill.
    • vendor bills payout
      • Update payment details to vendor bills.
    • Create a vendor
      POST
    • Update a vendor.
      PUT
    • Activate a vendor.
      PUT
    • Dectivate a vendor.
      PUT
  • Attributes
    • Create a organization attribute and set the value
    • Retrieve a organization attribute
    • Create a user attribute
    • Update a user attribute
    • Get a user attribute
  • Invoices
    • subscriptions
      • Get the invoices
      • Get the invoices by subscription
    • payments
      • Mark the invoice payment status
    • Get the invoice details .
    • cancel the invoices
    • Send invoice as pdf with payment link.
    • Create an on-demand invoice
  1. Vendors

Update a vendor.

PUT
/vendors/{vendorId}
To update the vendor.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api-sandbox.saaslogic.io/v1/vendors/9e3f7852-4039-4b8d-b4d6-2cc6d3f32667' \
--header 'Accept: application/json' \
--header 'Accept;' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "vendorName": "Global Supplies Inc.",
  "taxId": "TAX123456789",
  "contacts": [
    {
      "contactId": "12345abc-de67-890f-gh12-ijkl34567890",
      "firstName": "Sarah",
      "lastName": "Connor",
      "email": "sconnor@globalsupplies.com",
      "contactNumber": "9876543210",
      "countryCode": "USA",
      "isDefault": true
    },
    {
      "contactId": "67890def-gh12-3456-ijkl-mnop78901234",
      "firstName": "John",
      "lastName": "Doe",
      "email": "jdoe@globalsupplies.com",
      "contactNumber": "5555555555",
      "countryCode": "CAN",
      "isDefault": false
    }
  ],
  "addresses": [
    {
      "addressId": "bcdef123-4567-890a-bcde-fghij1234567",
      "addressName": "Global Supplies Main Office",
      "address": "123 Elm Street, Springfield, Illinois",
      "countryCode": "USA",
      "stateCode": "IL",
      "city": "Springfield",
      "zip": "62704",
      "isDefault": true
    },
    {
      "addressId": "mnop7890-1234-5678-qrst-uvwxy1234567",
      "addressName": "Global Supplies Canada Branch",
      "address": "456 Maple Avenue, Toronto, Ontario",
      "countryCode": "CAN",
      "stateCode": "ON",
      "city": "Toronto",
      "zip": "M5J 2N8",
      "isDefault": false
    }
  ]
}'
Response Response Example
{
  "message": "UN_AUTHORIZED"
}

Request

Path Params
vendorId
string 
required
(Required) The ID of the vendor.
Example:
9e3f7852-4039-4b8d-b4d6-2cc6d3f32667
Header Params
Content-Type
string 
required
Example:
application/json
Accept
string 
required
Example:
application/json
Authorization
string 
required
Saaslogic authorization token
Default:
Bearer {{bearerToken}}
Body Params application/json
vendorName
string 
required
taxId
string 
required
contacts
array [object {7}] 
required
contactId
string 
required
firstName
string 
required
lastName
string 
required
email
string 
required
contactNumber
string 
required
countryCode
string 
required
isDefault
boolean 
required
addresses
array [object {8}] 
required
addressId
string 
required
addressName
string 
required
address
string 
required
countryCode
string 
required
stateCode
string 
required
city
string 
required
zip
string 
required
isDefault
boolean 
required
Examples

Responses

🟢200Updated Succesfully!
text/plain
Body
object {0}
🔴500ErrorResponse
Previous
Create a vendor
Next
Activate a vendor.
Built with