Products
Prepacks
POST /products/{product_id}/prepacks
Creates a prepack for a product.
post/products/{product_id}/prepacks
Request
- Base URLhttps://www.faire.com/external-api/v2
- AuthAPI key in header X-FAIRE-OAUTH-ACCESS-TOKEN and API key in header X-FAIRE-APP-CREDENTIALS
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
product_idstring required
Request body
Example request
{
"id": "pc_xyz789",
"idempotence_token": "prepack_abc123",
"created_at": "2019-03-14T00:09:15.000Z",
"updated_at": "2019-03-15T00:09:15.000Z",
"name": "Assorted Sizes Pack",
"description": "Pack includes 2 Small, 3 Medium, 2 Large",
"items": [
{
"id": "pci_abc456",
"created_at": "2019-03-14T00:09:15.000Z",
"updated_at": "2019-03-15T00:09:15.000Z",
"variant_id": "po_3745tjzrpc",
"quantity": 3
}
]
}Response
Successful response
Example response
{
"id": "pc_xyz789",
"idempotence_token": "prepack_abc123",
"created_at": "2019-03-14T00:09:15.000Z",
"updated_at": "2019-03-15T00:09:15.000Z",
"name": "Assorted Sizes Pack",
"description": "Pack includes 2 Small, 3 Medium, 2 Large",
"items": [
{
"id": "pci_abc456",
"created_at": "2019-03-14T00:09:15.000Z",
"updated_at": "2019-03-15T00:09:15.000Z",
"variant_id": "po_3745tjzrpc",
"quantity": 3
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.