Request a YBM Connect Connection

POST /connect/suppliers

Request a connection to a Supplier in the YBM Connect directory. This creates a pending Supplier record in your account; it does not immediately give you access to the Supplier's account-specific catalogue. The Supplier must accept the request first. To add a Supplier you manage yourself, use POST /suppliers instead.

Request properties

  • connect_account: The Supplier's YBM Connect account ID from the directory. (required)
  • customer_id: Your customer number with the Supplier. (optional)
  • message: A message for the Supplier with your request. (optional)

Response

The created record contains your numeric Supplier id, name, email, connect: true, and request_status: "PENDING". Use the numeric id for your Supplier record; it is different from connect_account. Once the connection is accepted, you can read the connected catalogue.

Status codes

  • 200 when the request is created.
  • 400 for invalid data or if a record for this YBM Connect account already exists.
  • 404 if the requested account does not accept connection requests.

Example request

{
  "connect_account": "con_example_supplier",
  "customer_id": "12345"
}

Example response

{
  "id": 1693919950079,
  "name": "Example Supplier",
  "email": "orders@example.com",
  "connect": true,
  "request_status": "PENDING"
}