Product Builder Examples

Getting a Product Builder URL with one Library Item (using the item Guid)

Request:

POST https://api.staging.milkbooks.com/library/c087c127882249f09658414d9a3e2b4c/builder HTTP/1.1
Content-Type: application/json
Accept: application/json
X-MILK-API-Key: 12345678-1234-1234-1234-123456789012
Host: api.staging.milkbooks.com
Content-Length: 0

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/8.0
X-Powered-By: ServiceStack/3.956 Win32NT/.NET
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Mon, 16 Jun 2014 21:27:40 GMT
Content-Length: 131

{"ProductBuilderUrl":"https://checkout.staging.milkbooks.com/builder/start/d4cf0dda-1431-4cc5-b41a-c381d46c9455"}

Getting a Product Builder URL with multiple Library Items (using the item Guids)

Request:

POST https://api.staging.milkbooks.com/library/builder HTTP/1.1
Content-Type: application/json
Accept: application/json
X-MILK-API-Key: 12345678-1234-1234-1234-123456789012
Host: api.staging.milkbooks.com
Content-Length: 89
{"Guids":["61BE503C-D812-4F6D-A124-3697C087A562","99E0707E-2C9E-40B7-A87A-762366199759"]}

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/8.0
X-Powered-By: ServiceStack/3.956 Win32NT/.NET
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Mon, 16 Jun 2014 21:33:48 GMT
Content-Length: 131

{"ProductBuilderUrl":"https://checkout.staging.milkbooks.com/builder/start/f5519cff-c867-47ea-8049-0c087315c3bd"}