RFQ API

RFQ (Request for Quotation) lets your application submit structured sourcing requirements, answer clarification questions, and show customer-facing quotations.

Access and authentication

A HIOBuy administrator enables Supplier Inquiry and completes the HIOAsk V2 binding for your App. In the App’s Quota & Traffic Packs page, the administrator saves the required RFQ invitation permissions. rfq:read grants access to RFQs, quotations, and images. rfq:write grants access to submit or change RFQs and record quotation decisions.

The App’s current and future production API keys inherit these permissions. To revoke a permission, clear its checkbox and save. The HIOAsk administrator also enables RFQ under RFQ settings for the linked App. RFQ operations require a production key.

Use the Bearer key from your backend. HIOBuy identifies the App from the key. Keep the key on the server and verify that the signed-in customer owns each RFQ, linked conversation, quotation, and image before serving it.

Verify access

GET /v1/ask/identity
Host: api.hiobuy.com
Authorization: Bearer YOUR_HIOBUY_PRODUCTION_KEY

The identity response reports the effective permissions in data.rfq.read and data.rfq.write. data.rfq.enabled describes Gateway readiness and can be true with just one permission. With read access, use GET /v1/ask/rfqs?limit=1 to confirm HIOAsk is enabled. An empty list with HTTP 200 is a successful check.

Submit an RFQ

Send title, quantity, unit, and destination in requirement. Include specifications, an HTTPS reference URL, or an authorized attachment from a linked conversation. Use stable, opaque identifiers for external_ref and external_user_id.

POST /v1/ask/rfqs
Host: api.hiobuy.com
Authorization: Bearer YOUR_HIOBUY_PRODUCTION_KEY
Content-Type: application/json
Idempotency-Key: rfq-example-001-create
 
{
  "external_ref": "rfq-example-001",
  "external_user_id": "customer-example-42",
  "language": "en",
  "requirement": {
    "title": "Custom cotton tote bag",
    "quantity": 500,
    "unit": "pcs",
    "destination": "US",
    "specs": "Natural cotton canvas, two-color logo."
  }
}

A submission creates a conversation with context.type=rfq or links an existing open conversation owned by the same App. Optional BCP 47 language sets the new conversation’s language and target language and defaults to en. An existing conversation keeps its language settings. Batch requests support up to 100 items in one transaction, with a language per item.

Follow up and handle quotations

Use Idempotency-Key on every POST and PATCH. For an exact retry, reuse the same key and payload. Reusing a single RFQ’s external_ref with different content returns 409 RFQ_EXTERNAL_REF_CONFLICT.

Pass the latest RFQ version in mutations. For raw image uploads, send it as X-RFQ-Version. If you get 409 VERSION_CONFLICT, read the latest RFQ before preparing a new request. Pass question_id to answer a specific open question. Omitting it answers the earliest open question.

Quotation history contains versions already sent to the customer. Record a decision on the current sent version. The URL {version} is the quotation version and the body version is the RFQ version. For acceptance with several options, provide option_id. Acceptance records the customer’s decision. Use the order APIs separately for purchasing and payment. Cancelling the RFQ withdraws the current sent quotation.

When displaying an option image, find its image_id in the same quotation’s attachments and read the returned content_path from your backend with rfq:read.

API reference

OperationRequired permission
GET /v1/ask/identityValid API key
POST /v1/ask/rfqsrfq:write
GET /v1/ask/rfqsrfq:read
GET /v1/ask/rfqs/{id}rfq:read
PATCH /v1/ask/rfqs/{id}/requirementrfq:write
POST /v1/ask/rfqs/{id}/cancelrfq:write
POST /v1/ask/rfqs/{id}/answersrfq:write
POST /v1/ask/rfqs/{id}/attachmentsrfq:write
GET /v1/ask/rfqs/{id}/attachments/{attachmentId}/contentrfq:read
GET /v1/ask/rfqs/{id}/quotationsrfq:read
GET /v1/ask/rfqs/{id}/quotations/{version}rfq:read
POST /v1/ask/rfqs/{id}/quotations/{version}/decisionrfq:write
POST /v1/ask/rfq-batchesrfq:write
GET /v1/ask/rfq-batches/{id}rfq:read

OpenAPI 3.0.3 

Webhook notifications

Subscribe to all four events on your App’s HTTPS endpoint in the HIOBuy Developer Center. Follow the signature verification procedure using HioBuy-Signature and the exact raw request body. Include the four RFQ event types below in your verifier’s allowlist. Deduplicate by the outer envelope id, acknowledge with 2xx, and retrieve the latest RFQ. Events can arrive more than once or out of order.

  • ask.rfq.updated
  • ask.rfq.quotation.sent
  • ask.rfq.quotation.withdrawn
  • ask.rfq.closed

data.rfq.webhook_configured indicates at least one active RFQ subscription. Verify all four subscriptions and their delivery separately.

Access errors

HTTPMeaning and action
403 INSUFFICIENT_SCOPECheck the invitation permission for the requested operation.
403 APP_NOT_MAPPEDComplete the HIOAsk V2 binding for the App.
403 APP_DISABLEDCheck that the App and Supplier Inquiry are active.
403 RFQ_DISABLEDEnable RFQ for the linked App in HIOAsk.
403 RFQ_SANDBOX_UNAVAILABLEUse a production key.

Get Support

Need integration help? Contact Developer Support at support@hiobuy.com · Response within 1–2 business days

Email support