PChome Offers API lists variant offers for one product. Each offer has the original price, sale price and lowest price as TWD numbers, the stock, availability and sale state.
Costs 1 credit per successful request. Empty results and failed requests are free.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
1 required parameter needed before sending a request.
string
Required
Product id from search, for example DYAJ2X-1900J84C5.
1234567890
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"offers": [
{
"price": 32900,
"stock": 0,
"currency": "TWD",
"offer_id": "DYAJ2X-1900J84C5-000",
"button_type": "OrderRefill",
"availability": "out_of_stock",
"lowest_price": 31400,
"original_price": 32900,
"discount_percent": null
}
],
"currency": "TWD",
"product_id": "DYAJ2X-1900J84C5"
},
"meta": {
"credits": 1,
"billable": true,
"endpoint_family": "offers"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A required parameter or a value is invalid. This response is not billable.
{
"errors": {
"query": [
"A search text is required."
]
},
"message": "The request validation failed"
}Upstream Unavailable
The source could not be reached. This response is not billable. Retry shortly.
{
"meta": {
"credits": 0,
"billable": false,
"retryable": true,
"endpoint_family": "offers"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The source could not be reached."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.