curl https://api.khaime.com/api/v1/partner/rfq/789 \
-H "X-API-Key: pk_sandbox_your_key"
{
"status": "success",
"data": {
"id": 789,
"order_number": "RFQ-2024-0001",
"status": "quoted",
"items": [
{
"product_id": 123,
"product_title": "Widget Pro",
"quantity": 100,
"notes": "Need in blue color"
}
],
"shipping_address": {
"address": "123 Business Park",
"city": "New York",
"state": "NY",
"country": "USA",
"postal_code": "10001"
},
"notes": "Need delivery within 2 weeks",
"requested_delivery_date": "2024-02-15T00:00:00Z",
"customer": {
"id": 456,
"name": "John Smith",
"email": "john@acme.com",
"company_name": "Acme Corporation"
},
"quotes": [
{
"id": 101,
"quote_number": "Q-2024-0001",
"status": "sent",
"total_amount": 225000,
"currency": "USD",
"valid_until": "2024-02-28T23:59:59Z"
}
],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-16T14:20:00Z"
}
}
Get RFQ
Get detailed information about a specific RFQ.
GET
/
rfq
/
{id}
curl https://api.khaime.com/api/v1/partner/rfq/789 \
-H "X-API-Key: pk_sandbox_your_key"
{
"status": "success",
"data": {
"id": 789,
"order_number": "RFQ-2024-0001",
"status": "quoted",
"items": [
{
"product_id": 123,
"product_title": "Widget Pro",
"quantity": 100,
"notes": "Need in blue color"
}
],
"shipping_address": {
"address": "123 Business Park",
"city": "New York",
"state": "NY",
"country": "USA",
"postal_code": "10001"
},
"notes": "Need delivery within 2 weeks",
"requested_delivery_date": "2024-02-15T00:00:00Z",
"customer": {
"id": 456,
"name": "John Smith",
"email": "john@acme.com",
"company_name": "Acme Corporation"
},
"quotes": [
{
"id": 101,
"quote_number": "Q-2024-0001",
"status": "sent",
"total_amount": 225000,
"currency": "USD",
"valid_until": "2024-02-28T23:59:59Z"
}
],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-16T14:20:00Z"
}
}
Get RFQ
Retrieves detailed information about a specific RFQ including all quotes created for it.Path Parameters
integer
required
The RFQ ID.
Response
string
success on successful retrieval.object
Show RFQ fields
Show RFQ fields
integer
RFQ ID.
string
Human-readable reference (e.g.,
RFQ-2024-0001).string
Current status:
pending, quoted, accepted, rejected, expired.array
Line items in the RFQ with product details.
object
Shipping address if provided.
string
General notes.
string
Requested delivery date.
object
Customer information including company name.
array
All quotes created for this RFQ.
object
Associated chat session if any.
string
ISO 8601 timestamp.
string
ISO 8601 timestamp.
Error Codes
| Status | Error | Fix |
|---|---|---|
401 | Invalid API key | Verify your X-API-Key header |
404 | RFQ not found | Check that the RFQ ID exists and belongs to your business |
curl https://api.khaime.com/api/v1/partner/rfq/789 \
-H "X-API-Key: pk_sandbox_your_key"
{
"status": "success",
"data": {
"id": 789,
"order_number": "RFQ-2024-0001",
"status": "quoted",
"items": [
{
"product_id": 123,
"product_title": "Widget Pro",
"quantity": 100,
"notes": "Need in blue color"
}
],
"shipping_address": {
"address": "123 Business Park",
"city": "New York",
"state": "NY",
"country": "USA",
"postal_code": "10001"
},
"notes": "Need delivery within 2 weeks",
"requested_delivery_date": "2024-02-15T00:00:00Z",
"customer": {
"id": 456,
"name": "John Smith",
"email": "john@acme.com",
"company_name": "Acme Corporation"
},
"quotes": [
{
"id": 101,
"quote_number": "Q-2024-0001",
"status": "sent",
"total_amount": 225000,
"currency": "USD",
"valid_until": "2024-02-28T23:59:59Z"
}
],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-16T14:20:00Z"
}
}
⌘I
