Back

    Buyamia Directory API

    v1.0

    Create RFQ (Inbound)

    POST
    /v1/rfq/inbound

    Create a new RFQ from the procurement system. This is the primary integration endpoint.

    rfq.write

    Request Body

    FieldTypeRequiredDescription
    external_rfq_idstringYesUnique ID from your procurement system
    titlestringYesRFQ title/description
    buyer_namestringYesContact name
    buyer_companystringNoCompany name
    buyer_emailstringYesContact email
    buyer_phonestringNoContact phone
    delivery_locationstringNoDelivery destination
    delivery_datestring (ISO)NoRequired delivery date
    prioritystringNoPriority level: low, normal, high, urgent
    notesstringNoAdditional notes
    itemsarrayYesList of items (see below)

    Item Fields

    FieldTypeRequiredDescription
    namestringYesItem name
    quantitynumberYesRequired quantity
    unit_of_measurestringYesUnit (piece, kg, meter, etc.)
    descriptionstringNoDetailed specifications
    target_pricenumberNoTarget unit price
    target_currencystringNoCurrency code (default: IDR)
    category_slugstringNoAuto-resolves to category_id

    Example Request

    POST /v1/rfq/inboundjson
    {
      "external_rfq_id": "PROC-2026-0042",
      "title": "Office Furniture Q3",
      "buyer_name": "John Doe",
      "buyer_company": "Acme Corp",
      "buyer_email": "john@acme.com",
      "buyer_phone": "+628123456",
      "delivery_location": "Jakarta",
      "delivery_date": "2026-04-15",
      "priority": "high",
      "items": [
        {
          "name": "Executive Desk",
          "quantity": 50,
          "unit_of_measure": "piece",
          "description": "Mahogany, 180x80cm",
          "target_price": 5000000,
          "target_currency": "IDR",
          "category_slug": "office-furniture"
        }
      ]
    }

    Response

    {
      "data": {
        "id": "uuid",
        "rfq_number": "RFQ-2026-0042",
        "external_rfq_id": "PROC-2026-0042",
        "status": "pending",
        "title": "Office Furniture Q3",
        "items_count": 1,
        "created_at": "2026-03-01T08:00:00Z"
      }
    }

    Behavior

    • Creates a quote_requests record with the provided data
    • Creates quote_request_items for each item
    • Auto-resolves category_slug to category_id if provided
    • Creates or matches a procurement_buyers record by email
    • Generates an auto-incrementing rfq_number
    • Returns the created RFQ with its new UUID and status
    Last updated on February 23, 2026