Webhooks - Create Quote v42 below

Webhooks - Create Quote v42 below


 

Introduction

A printIQ quote can be created, and accepted, using the web service calls in the table of contents above.

 

 

Full WSDL can be obtained from http://gpo.printiq.com/webservice/quoteprocess.svc?wsdl, though it is recommended that you generate WSDL from your own instance of printIQ, in case of version differences.

All objects referenced by the API can be found here.

 

Errors

All API return objects contain an IsError flag, and ErrorMessage string. Any errors generated from inside the printIQ application will respond with an HTTP 200 response.

 

HTTP/1.1 200 OK

Cache-Control: private

Content-Type: application/soap+xml; charset=utf-8

Server: Microsoft-IIS/10.0

X-AspNet-Version: 4.0.30319

Set-Cookie: ASP.NET_SessionId=eyv4dq4ap3nhhuevpni0soas; path=/; HttpOnly

X-Powered-By: ASP.NET

Access-Control-Allow-Origin: *

Access-Control-Allow-Methods: GET, PUT, POST, DELETE, HEAD, OPTIONS

Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept

Date: Fri, 07 Oct 2016 17:50:40 GMT

Content-Length: 624

 

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">

<s:Header>

<a:Action s:mustUnderstand="1">http://iq.co.nz/PrintIQ/QuoteProcess1/IQuoteProcess/GetPriceForProductResponse</a:Action>

</s:Header>

<s:Body>

<GetPriceForProductResponse xmlns="http://iq.co.nz/PrintIQ/QuoteProcess1">

<GetPriceForProductResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

<ErrorMessage>Invalid Product Code</ErrorMessage>

<IsError>true</IsError>

<QuoteAccepted>false</QuoteAccepted>

<QuoteDetails i:nil="true"/>

</GetPriceForProductResult>

</GetPriceForProductResponse>

</s:Body>

</s:Envelope>

 

 

 


GetLoginToken


The token received from the first call to GetLoginToken should be kept and re-used for the subsequent webservice calls. To call GetLoginToken, simply pass a printIQ username and password.

 

POST http://gpo.printiq.com/WebService/QuoteProcess.svc HTTP/1.1

Accept-Encoding: gzip,deflate

Content-Type: application/soap+xml;charset=UTF-8;action="http://iq.co.nz/PrintIQ/QuoteProcess1/IQuoteProcess/GetLogInToken"

Content-Length: 527

Host: gpo.printiq.com

Connection: Keep-Alive

User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_77)

 

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:quot="http://iq.co.nz/PrintIQ/QuoteProcess1">

<soap:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">

<wsa:Action>http://iq.co.nz/PrintIQ/QuoteProcess1/IQuoteProcess/GetLogInToken</wsa:Action>

<wsa:To>http://gpo.printiq.com/PrintIQ/QuoteProcess.svc</wsa:To>

</soap:Header>

<soap:Body>

<quot:GetLogInToken>

<quot:UserName>Test Sales</quot:UserName>

<quot:Password>k42jdk*8</quot:Password>

</quot:GetLogInToken>

</soap:Body>

</soap:Envelope>

HTTP/1.1 200 OK

Cache-Control: private

Content-Type: application/soap+xml; charset=utf-8

Server: Microsoft-IIS/10.0

Set-Cookie: ASP.NET_SessionId=mpuomkga0icltsx1t351xnz2; path=/; HttpOnly

X-AspNet-Version: 4.0.30319

X-Powered-By: ASP.NET

Access-Control-Allow-Origin: *

Access-Control-Allow-Methods: GET, PUT, POST, DELETE, HEAD, OPTIONS

Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept

Date: Fri, 07 Oct 2016 16:01:16 GMT

Content-Length: 2595

 

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">

<s:Header>

<a:Action s:mustUnderstand="1">http://iq.co.nz/PrintIQ/QuoteProcess1/IQuoteProcess/GetLogInTokenResponse</a:Action>

</s:Header>

<s:Body>

<GetLogInTokenResponse xmlns="http://iq.co.nz/PrintIQ/QuoteProcess1">

<GetLogInTokenResult>DCF776BFD40FF9496FC1024982B3C937B8003193FA613D269B6F0D6664A08569BBDF6D3B80CCF44F025655477DAF42312CEE1ED98379F5E67B2AAC218E2CE280729332995BCFD4EC3E8CBD70520F29D6FDA5A86DCC312766773A1CCE220B4D7343515D4E5781B262EA188E984B2FAFBDCF9E8B3645CE7D1EE05EBE51C5548A3BD3158B81F4E2CAD6A6B812110AFE802463D10EC6AC74B2C7AA205B6DD846DBF9A1C0DB79F129CAE4A77DDC85360D520E9EFA63B4F4ECA0E2FF54ED83F037D21DB91C6E4FC4BA053FF7C464C7E8315618838AC18822B9B2A346F0E003AA0FD1B52C4D4B9384A583F0130F763CB77394EE8772740170727CD77076E3C3A83C548E93099BC2F16F235169A3773371A99188FCE23EE5FAB1E77D2C6E2E2A85C67C9AAA521ED343E12F6203810FF3F7D4D9B36EAD97B86DD3295BBD4A6951A4223FA5C45B88C0FF55F1D6C56B8D7A953B10752E299F5770B295B85E69386F31B55D5C7438C832A677D9B678D05115A619D81B3B66862845AEC291A4BC7D22E685172F0CD6E8FA850BEC9F59D8CF242059F423A997BE1B89175E09013B799E5879E45FF258CBC0B031EBF18175AC3A43E1DB7654F9CC3B55B3E5D8BF453B3746F91A9DD1BEB1EE395F495CF0117F33AB41631C8458BEB21ABBD9D40DD9DB45F3164DBD8B206C901908A4D8843E707E97A88D616B52C894AEE5585448EB2E2FB4D5297CFDC5D8AF4AD491949D0ED88852034B96D33476884971EB8D2EF582A5FEC15FBB301A4896FC09EDDC61F981A154563AEB8EC98C337D184491AC62D0FF4083918705AF9609B739F6B7FA9208A1CCAB3542D64B1040A9902F2DF67BB1B553B681632BABE5906FF2112C99B7B16BED1A387CE8F5C6607959A159A0091F9FDD2523740A6F38D19A780B6659EF8F4289A6EFCF4D572658F029662A350D099E374572DB86E0E1F10D7F6F20675FCB3A6A124C63597EBCCF3CEFE2047C56E9D6E71DF07AEEABCB38B4A2826BD73B1892BC166B632D2B1C6B3AE98D4D2D8FD11512531BF634505D8CC32F456762D98ABA99D48522A08860BFAC8D5E419EF4ED3C506BC246FF9011E253E747E6C717424F35F82395FE56B4BF98BDCB9AF81013F5B57692BA236EC82068BCA4C613AAEED0BBF5C609B7117E2BB809E32460A2062BA5B29719B25A8C446CAFB14316898CF4B2F4F8B8C838ED58BBE85F70353620C7C3F628F1887C78F0A0C1698F305A4E1A5198F7B03F50390F01650F1544E7F5BB6C8E84F3D3B23BF64F460166B7018C54EAAF803F185D4DD12616F313A82296C5CA439B034079D58BEC64495F1A3F2C87EDE21C48F1D648F4B559FD03B043386DDCE8F59595179F312AD963C1ACAADE286E087299D3A5B05EC631C836E82E0E4E3003F44DC845E19CC987CB372C62AFB49FBC497D66A3B3ED84E603C5448E021DC4C48C395FE865C3D2781953C67A0322B8CE2DD24B1859119671E92861A4690B3581BBC146825F2D5F35A5D3C38114F2E43CFCA9F3B404FF93E5B5C48DDFE9F3E121FBD7D496F506</GetLogInTokenResult>

</GetLogInTokenResponse>

</s:Body>

</s:Envelope>

 

 


GetPriceForProduct

The GetPriceForProduct method should be called to add a product to a quote. The resulting GetPriceForProduct object will contain a QuoteNo. This quote number should be kept to be used in subsequent API calls.

 

To add multiple products to your quote, simply call the GetPriceForProduct again passing in the QuoteNo from the result of the first call.

 

GetPriceForProduct

Summary

Gets the Price for a product, adding it to either a new or existing quote

Parameters

  • LoginTokenLoginToken returned from GetLoginToken
  • inputGetPriceForProductInput Record

Returns

GetPriceForProductResult Record

 

GetPriceForProductInput

Attribute

Type

Required

Description

ProductCode

String

False

Code for the Product to Price

CustomWidth

Decimal

False

Custom Width for the Product to Price

CustomDepth

Decimal

False

Custom Depth for the Product to Price

ExternalProduct

ExternalProduct

False

Product from an external system for the Product to Quote. Will be mapped to a PrintIQ Product to order.

FilterProductToken

String

False

Code for the Product to Price

FilterInput

FilterInput

False

Input to the Filter System

ProductKey

Integer

False

ProductKey from a ProductDetails Record to add a Quantity to

Quantities

List of ProductQuantity

True

List of Quantity Records to Price, Max 4

QuantitiesToRemove

List of Integer

False

List of QQDKeys to remove before pricing our product

Extras

List of QuoteExtra

False

List of Extras to be added to the product

QuoteNo

String

False

Quote to add the Product to, Optional

QQDPToReplace

Integer

False

QQDPKey that is being replace, used to copy details from

QuoteSource

Integer

False

Where the quote was created from. 1=Standard, 2=Simplified, 3=Custom(Bespoke)

CustomerCode

String

True

Customer the Quote is for

QuoteSummaryOnly

Boolean

False

Return only a Quote Summary instead of full details

SingleProductDetails

Boolean

False

Return only a QuoteDetails for the Added Product

SkipTemporary

Boolean

False

Skip the Temporary flag for created products

AccountManagerID

Guid

False

Account Manager for the Quote

AccountManagerUsername

String

False

Account Manager username for the Quote. This will only be used if AccountManagerID is blank

ITTCode

String

False

Tax Code


GetPriceForProductResult

Attribute

Type

Description

QuoteDetails

QuoteDetails

QuoteDetails Record

QuoteAccepted

Boolean

QuoteAccepted

ErrorMessage

String

Details of any error that occurred

IsError

Boolean

Did an error occur

 

Example request:

POST http://gpo.printiq.com/WebService/QuoteProcess.svc HTTP/1.1

Accept-Encoding: gzip,deflate

Content-Type: application/soap+xml;charset=UTF-8;action="http://iq.co.nz/PrintIQ/QuoteProcess1/IQuoteProcess/GetPriceForProduct"

Content-Length: 4715

Host: gpo.printiq.com

Connection: Keep-Alive

User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_77)

 

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:quot="http://iq.co.nz/PrintIQ/QuoteProcess1" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">

   <soap:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:Action>http://iq.co.nz/PrintIQ/QuoteProcess1/IQuoteProcess/GetPriceForProduct</wsa:Action><wsa:To>http://gpo.printiq.com/WebService/QuoteProcess.svc</wsa:To></soap:Header>

   <soap:Body>

      <quot:GetPriceForProduct>

<quot:LoginToken>DCF776BFD40FF9496FC1024982B3C937B8003193FA613D269B6F0D6664A08569BBDF6D3B80CCF44F025655477DAF42312CEE1ED98379F5E67B2AAC218E2CE280729332995BCFD4EC3E8CBD70520F29D6FDA5A86DCC312766773A1CCE220B4D7343515D4E5781B262EA188E984B2FAFBDCF9E8B3645CE7D1EE05EBE51C5548A3BD3158B81F4E2CAD6A6B812110AFE802463D10EC6AC74B2C7AA205B6DD846DBF9A1C0DB79F129CAE4A77DDC85360D520E9EFA63B4F4ECA0E2FF54ED83F037D21DB91C6E4FC4BA053FF7C464C7E8315618838AC18822B9B2A346F0E003AA0FD1B52C4D4B9384A583F0130F763CB77394EE8772740170727CD77076E3C3A83C548E93099BC2F16F235169A3773371A99188FCE23EE5FAB1E77D2C6E2E2A85C67C9AAA521ED343E12F6203810FF3F7D4D9B36EAD97B86DD3295BBD4A6951A4223FA5C45B88C0FF55F1D6C56B8D7A953B10752E299F5770B295B85E69386F31B55D5C7438C832A677D9B678D05115A619D81B3B66862845AEC291A4BC7D22E685172F0CD6E8FA850BEC9F59D8CF242059F423A997BE1B89175E09013B799E5879E45FF258CBC0B031EBF18175AC3A43E1DB7654F9CC3B55B3E5D8BF453B3746F91A9DD1BEB1EE395F495CF0117F33AB41631C8458BEB21ABBD9D40DD9DB45F3164DBD8B206C901908A4D8843E707E97A88D616B52C894AEE5585448EB2E2FB4D5297CFDC5D8AF4AD491949D0ED88852034B96D33476884971EB8D2EF582A5FEC15FBB301A4896FC09EDDC61F981A154563AEB8EC98C337D184491AC62D0FF4083918705AF9609B739F6B7FA9208A1CCAB3542D64B1040A9902F2DF67BB1B553B681632BABE5906FF2112C99B7B16BED1A387CE8F5C6607959A159A0091F9FDD2523740A6F38D19A780B6659EF8F4289A6EFCF4D572658F029662A350D099E374572DB86E0E1F10D7F6F20675FCB3A6A124C63597EBCCF3CEFE2047C56E9D6E71DF07AEEABCB38B4A2826BD73B1892BC166B632D2B1C6B3AE98D4D2D8FD11512531BF634505D8CC32F456762D98ABA99D48522A08860BFAC8D5E419EF4ED3C506BC246FF9011E253E747E6C717424F35F82395FE56B4BF98BDCB9AF81013F5B57692BA236EC82068BCA4C613AAEED0BBF5C609B7117E2BB809E32460A2062BA5B29719B25A8C446CAFB14316898CF4B2F4F8B8C838ED58BBE85F70353620C7C3F628F1887C78F0A0C1698F305A4E1A5198F7B03F50390F01650F1544E7F5BB6C8E84F3D3B23BF64F460166B7018C54EAAF803F185D4DD12616F313A82296C5CA439B034079D58BEC64495F1A3F2C87EDE21C48F1D648F4B559FD03B043386DDCE8F59595179F312AD963C1ACAADE286E087299D3A5B05EC631C836E82E0E4E3003F44DC845E19CC987CB372C62AFB49FBC497D66A3B3ED84E603C5448E021DC4C48C395FE865C3D2781953C67A0322B8CE2DD24B1859119671E92861A4690B3581BBC146825F2D5F35A5D3C38114F2E43CFCA9F3B404FF93E5B5C48DDFE9F3E121FBD7D496F506</quot:LoginToken>

         <quot:input>

<quot:CustomerCode>TstCust</quot:CustomerCode>

            <quot:FilterProductToken xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

            <quot:ITTCode>GST</quot:ITTCode>

            <quot:ProductCode>IQ-LJHBC</quot:ProductCode>

            <quot:Quantities>

               <quot:ProductQuantity>

                  <quot:Kinds>1</quot:Kinds>

  <quot:Quantity>1000</quot:Quantity>

                  <quot:TargetRetailPrice xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

                  <quot:TargetWholesalePrice xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

               </quot:ProductQuantity>

            </quot:Quantities>

            <quot:QuoteNo xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

            <quot:QuoteSource>2</quot:QuoteSource>

<quot:QuoteSummaryOnly>false</quot:QuoteSummaryOnly>

            <quot:SingleProductDetails>false</quot:SingleProductDetails>

            <quot:SkipTemporary>false</quot:SkipTemporary>

         </quot:input>

      </quot:GetPriceForProduct>

   </soap:Body>

</soap:Envelope>

Example response:

HTTP/1.1 200 OK

Cache-Control: private

Content-Type: application/soap+xml; charset=utf-8

Server: Microsoft-IIS/10.0

Set-Cookie: ASP.NET_SessionId=qsvtzezzrkfrxslrx5pqalza; path=/; HttpOnly

X-AspNet-Version: 4.0.30319

X-Powered-By: ASP.NET

Access-Control-Allow-Origin: *

Access-Control-Allow-Methods: GET, PUT, POST, DELETE, HEAD, OPTIONS

Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept

Date: Fri, 07 Oct 2016 16:02:48 GMT

Content-Length: 6449

 

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">

<s:Header>

<a:Action s:mustUnderstand="1">http://iq.co.nz/PrintIQ/QuoteProcess1/IQuoteProcess/GetPriceForProductResponse</a:Action>

</s:Header>

<s:Body>

<GetPriceForProductResponse xmlns="http://iq.co.nz/PrintIQ/QuoteProcess1">

<GetPriceForProductResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

<ErrorMessage i:nil="true"/>

<IsError>false</IsError>

<QuoteAccepted>false</QuoteAccepted>

<QuoteDetails>

<AcceptanceUrl>http://gpo.printiq.com/PrintIQ//AcceptQuote.aspx?QuoteNo=Q02649</AcceptanceUrl>

<CreatedBy>Test Sales</CreatedBy>

<CurCode>AUD</CurCode>

<Customer>

<CustomerCode>TstCust</CustomerCode>

<CustomerID>13926</CustomerID>

<CustomerName>Test Customer</CustomerName>

<CustomerSiteID>1</CustomerSiteID>

</Customer>

<CustomerReference/>

<DeliveryAddress i:nil="true"/>

<DeliveryContact i:nil="true"/>

<ExternalJobReference i:nil="true"/>

<IsSingleProduct>false</IsSingleProduct>

<IsSummary>false</IsSummary>

<IsUserVisible>true</IsUserVisible>

<JobTitle/>

<Notes/>

<Permissions>

<CanEdit>true</CanEdit>

<CanEditCostPrice>true</CanEditCostPrice>

<CanEditDescription>true</CanEditDescription>

<CanEditRetailPrice>true</CanEditRetailPrice>

<CanEditWholesalePrice>true</CanEditWholesalePrice>

<CanView>true</CanView>

<CanViewCostPrice>true</CanViewCostPrice>

<CanViewRetailPrice>true</CanViewRetailPrice>

<CanViewWholesalePrice>true</CanViewWholesalePrice>

</Permissions>

<Products>

<ProductDetails>

<ArtworkSections>

<ArtworkSection>

<QQDSKey>18322</QQDSKey>

<QQDSName/>

<QSTKey>1</QSTKey>

</ArtworkSection>

</ArtworkSections>

<AvailableQuantities>

<IsFixed>true</IsFixed>

<MaxQuantity>2000</MaxQuantity>

<MinQuantity i:nil="true"/>

<Quantities>

<AvailableQuantity>

<Kinds>

<Kind>1</Kind>

</Kinds>

<PriorityAvailable>false</PriorityAvailable>

<Quantity>250</Quantity>

</AvailableQuantity>

<AvailableQuantity>

<Kinds>

<Kind>1</Kind>

</Kinds>

<PriorityAvailable>false</PriorityAvailable>

<Quantity>500</Quantity>

</AvailableQuantity>

<AvailableQuantity>

<Kinds>

<Kind>1</Kind>

</Kinds>

<PriorityAvailable>false</PriorityAvailable>

<Quantity>1000</Quantity>

</AvailableQuantity>

<AvailableQuantity>

<Kinds>

<Kind>1</Kind>

</Kinds>

<PriorityAvailable>false</PriorityAvailable>

<Quantity>2000</Quantity>

</AvailableQuantity>

</Quantities>

</AvailableQuantities>

<BypassArtworkSubmission>true</BypassArtworkSubmission>

<CustomerRequiredDate i:nil="true"/>

<CustomerRequiredDateExpired>false</CustomerRequiredDateExpired>

<CustomerRequiredTime i:nil="true"/>

<Description>  Printed CMYK throughout   on 350gsm SatinLaminating Matt Celloglase 1 side only

 

Finish Size: 90x55 (55x90)</Description>

<HasHouseStock>false</HasHouseStock>

<InvoiceTypeDescription/>

<IsPriority>false</IsPriority>

<IsVariableDataProduct>false</IsVariableDataProduct>

<IsVariableDataSubmitted>false</IsVariableDataSubmitted>

<LastAcceptedQQADKey i:nil="true"/>

<LastAcceptedQuantity/>

<ProductCode>IQ-LJHBC</ProductCode>

<ProductImage>/PrintIQ/Thumbnail.aspx?QQDPKey=15072</ProductImage>

<ProductKey>15072</ProductKey>

<ProductNo>Product 1</ProductNo>

<ProductType>Business Card</ProductType>

<Quantities>

<ProductQuantityDetail>

<Adjustments>

<QuoteAdjustment>

<AdjustmentType>Retail</AdjustmentType>

<Amount>0.0000</Amount>

<CreatedBy>Test Sales</CreatedBy>

<CreatedDate>2016-10-07T09:02:47.163</CreatedDate>

<NewProperty>Customer discount</NewProperty>

</QuoteAdjustment>

</Adjustments>

<AvailableShifts>

<ShiftDetails>

<ArtworkCutoff>2016-10-07T15:00:00</ArtworkCutoff>

<CurrentTime>2016-10-07T09:02:48.6951098-07:00</CurrentTime>

<DispatchDate>2016-10-11T15:00:00</DispatchDate>

<ETADate>2016-10-11T15:00:00</ETADate>

<ScheduleName>Default Shift</ScheduleName>

<ShiftStartTime>2016-10-07T15:00:00</ShiftStartTime>

<TurnAroundDays>2</TurnAroundDays>

</ShiftDetails>

<ShiftDetails>

<ArtworkCutoff>2016-10-10T15:00:00</ArtworkCutoff>

<CurrentTime>2016-10-07T09:02:48.6951098-07:00</CurrentTime>

<DispatchDate>2016-10-13T15:00:00</DispatchDate>

<ETADate>2016-10-13T15:00:00</ETADate>

<ScheduleName>Default Shift</ScheduleName>

<ShiftStartTime>2016-10-10T15:00:00</ShiftStartTime>

<TurnAroundDays>2</TurnAroundDays>

</ShiftDetails>

</AvailableShifts>

<CostPrice>226.4286</CostPrice>

<CostPrice_ForeignAmount>226.4286</CostPrice_ForeignAmount>

<DeliveryDays>0</DeliveryDays>

<DeliveryType i:nil="true"/>

<Depth>90</Depth>

<DispatchDate>2016-10-13T15:00:00</DispatchDate>

<DisplayTurnaroundInDays>false</DisplayTurnaroundInDays>

<DisplayTurnaroundTooltip>false</DisplayTurnaroundTooltip>

<Extras/>

<ExtrasPrice>0</ExtrasPrice>

<ExtrasPrice_ForeignAmount>0</ExtrasPrice_ForeignAmount>

<FreightDetails>

<DeliveryRecords/>

<RemainingQuantity>1000</RemainingQuantity>

</FreightDetails>

<FreightIncluded>false</FreightIncluded>

<FreightPrice i:nil="true"/>

<FreightPrice_ForeignAmount>0.0000</FreightPrice_ForeignAmount>

<GST>19.20000000000</GST>

<GST_ForeignAmount>19.20000000000</GST_ForeignAmount>

<Height>0.3059999942779541</Height>

<IsSelected>false</IsSelected>

<Kinds>1</Kinds>

<Price>192.0000</Price>

<PriceIncGST>211.20000000000</PriceIncGST>

<PriceIncGST_ForeignAmount>211.20000000000</PriceIncGST_ForeignAmount>

<Price_ForeignAmount>192.0000</Price_ForeignAmount>

<PriorityAvailable>false</PriorityAvailable>

<PromoDiscount>0</PromoDiscount>

<PromoDiscount_ForeignAmount>0</PromoDiscount_ForeignAmount>

<Quantity>1000</Quantity>

<QuantityKey>17212</QuantityKey>

<RetailPrice>192.0000</RetailPrice>

<RetailPrice_ForeignAmount>192.0000</RetailPrice_ForeignAmount>

<TurnaroundDays>2</TurnaroundDays>

<Weight>1.7324999570846558</Weight>

<WeightDisplay i:nil="true"/>

<WholesalePrice>160.0000</WholesalePrice>

<WholesalePrice_ForeignAmount>160.0000</WholesalePrice_ForeignAmount>

<Width>55</Width>

</ProductQuantityDetail>

</Quantities>

<QuestionSections/>

<ReferenceFields/>

<ShowCustomerRequiredDate>true</ShowCustomerRequiredDate>

<ShowDeliveryDays>true</ShowDeliveryDays>

<Title i:nil="true"/>

<TreeProduct>false</TreeProduct>

</ProductDetails>

</Products>

<Promo i:nil="true"/>

<QuoteAcceptanceTerms>&lt;a href=" " target="_blank"&gt;Terms and Conditions of Supply &lt;/a&gt;</QuoteAcceptanceTerms>

<QuoteContact i:nil="true"/>

<QuoteKey>111481</QuoteKey>

<QuoteNo>Q02649</QuoteNo>

<QuotePDFThumbnailPath>/PrintIQ/Reports/GreenPrint/QuoteThumbnail.png</QuotePDFThumbnailPath>

<QuoteStatus>

<Editable>false</Editable>

<StatusKey>1</StatusKey>

<StatusName>In Process</StatusName>

</QuoteStatus>

<SpecialInstructions/>

<ValidUntill>2017-01-06T16:02:39.653</ValidUntill>

</QuoteDetails>

</GetPriceForProductResult>

</GetPriceForProductResponse>

</s:Body>

</s:Envelope>

 

 

ConfirmFreightOnQuote

Once all products have been added, address information should be added to the quote.

 

Note: at this time it is not possible to order split deliveries through the API.

 

ConfirmFreightOnQuote

Summary

Confirms freight information for a quote, setting the Delivery Address, Delivery Contact and Freight Method.

Parameters

  • LoginTokenLoginToken returned from GetLoginToken
  • inputConfirmFreightOnQuoteInput Record

Returns

ConfirmFreightOnQuoteResult Record

 

ConfirmFreightOnQuoteInput

Attribute

Type

Required

Description

QuoteNo

String

True

Quote to Confirm Freight on

Method

FreightMethod

False

FreightMethod Record

Address

QuoteAddress

True

QuoteAddress Record

DeliveryNotes

String

True

Notes to attach to the delivery information on the quote

DeliveryContact

QuoteContact

True

QuoteContact Record

LocationID

Integer

False

Delivery from location ID

ConfirmFreightOnQuoteResult

Attribute

Type

Description

QuoteDetails

QuoteDetails

Details of the Quote

ErrorMessage

String

Details of any error that occurred

IsError

Boolean

Did an error occur

 

Example request:

POST http://gpo.printiq.com/WebService/QuoteProcess.svc HTTP/1.1

Accept-Encoding: gzip,deflate

Content-Type: application/soap+xml;charset=UTF-8;action="http://iq.co.nz/PrintIQ/QuoteProcess1/IQuoteProcess/ConfirmFreightOnQuote"

Content-Length: 5618

Host: gpo.printiq.com

Connection: Keep-Alive

User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_77)

 

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:quot="http://iq.co.nz/PrintIQ/QuoteProcess1">

   <soap:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:Action>http://iq.co.nz/PrintIQ/QuoteProcess1/IQuoteProcess/ConfirmFreightOnQuote</wsa:Action><wsa:To>http://gpo.printiq.com/WebService/QuoteProcess.svc</wsa:To></soap:Header>

   <soap:Body>

      <quot:ConfirmFreightOnQuote>

         <quot:LoginToken>DCF776BFD40FF9496FC1024982B3C937B8003193FA613D269B6F0D6664A08569BBDF6D3B80CCF44F025655477DAF42312CEE1ED98379F5E67B2AAC218E2CE280729332995BCFD4EC3E8CBD70520F29D6FDA5A86DCC312766773A1CCE220B4D7343515D4E5781B262EA188E984B2FAFBDCF9E8B3645CE7D1EE05EBE51C5548A3BD3158B81F4E2CAD6A6B812110AFE802463D10EC6AC74B2C7AA205B6DD846DBF9A1C0DB79F129CAE4A77DDC85360D520E9EFA63B4F4ECA0E2FF54ED83F037D21DB91C6E4FC4BA053FF7C464C7E8315618838AC18822B9B2A346F0E003AA0FD1B52C4D4B9384A583F0130F763CB77394EE8772740170727CD77076E3C3A83C548E93099BC2F16F235169A3773371A99188FCE23EE5FAB1E77D2C6E2E2A85C67C9AAA521ED343E12F6203810FF3F7D4D9B36EAD97B86DD3295BBD4A6951A4223FA5C45B88C0FF55F1D6C56B8D7A953B10752E299F5770B295B85E69386F31B55D5C7438C832A677D9B678D05115A619D81B3B66862845AEC291A4BC7D22E685172F0CD6E8FA850BEC9F59D8CF242059F423A997BE1B89175E09013B799E5879E45FF258CBC0B031EBF18175AC3A43E1DB7654F9CC3B55B3E5D8BF453B3746F91A9DD1BEB1EE395F495CF0117F33AB41631C8458BEB21ABBD9D40DD9DB45F3164DBD8B206C901908A4D8843E707E97A88D616B52C894AEE5585448EB2E2FB4D5297CFDC5D8AF4AD491949D0ED88852034B96D33476884971EB8D2EF582A5FEC15FBB301A4896FC09EDDC61F981A154563AEB8EC98C337D184491AC62D0FF4083918705AF9609B739F6B7FA9208A1CCAB3542D64B1040A9902F2DF67BB1B553B681632BABE5906FF2112C99B7B16BED1A387CE8F5C6607959A159A0091F9FDD2523740A6F38D19A780B6659EF8F4289A6EFCF4D572658F029662A350D099E374572DB86E0E1F10D7F6F20675FCB3A6A124C63597EBCCF3CEFE2047C56E9D6E71DF07AEEABCB38B4A2826BD73B1892BC166B632D2B1C6B3AE98D4D2D8FD11512531BF634505D8CC32F456762D98ABA99D48522A08860BFAC8D5E419EF4ED3C506BC246FF9011E253E747E6C717424F35F82395FE56B4BF98BDCB9AF81013F5B57692BA236EC82068BCA4C613AAEED0BBF5C609B7117E2BB809E32460A2062BA5B29719B25A8C446CAFB14316898CF4B2F4F8B8C838ED58BBE85F70353620C7C3F628F1887C78F0A0C1698F305A4E1A5198F7B03F50390F01650F1544E7F5BB6C8E84F3D3B23BF64F460166B7018C54EAAF803F185D4DD12616F313A82296C5CA439B034079D58BEC64495F1A3F2C87EDE21C48F1D648F4B559FD03B043386DDCE8F59595179F312AD963C1ACAADE286E087299D3A5B05EC631C836E82E0E4E3003F44DC845E19CC987CB372C62AFB49FBC497D66A3B3ED84E603C5448E021DC4C48C395FE865C3D2781953C67A0322B8CE2DD24B1859119671E92861A4690B3581BBC146825F2D5F35A5D3C38114F2E43CFCA9F3B404FF93E5B5C48DDFE9F3E121FBD7D496F506</quot:LoginToken>

         <quot:input>

               <quot:AddressLine1>354 Lambton Quay</quot:AddressLine1>

               <quot:AddressLine2 xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

               <quot:AddressLine3 xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

               <quot:City>Wellington</quot:City>

               <quot:Country>New Zealand</quot:Country>

               <quot:DisplayString xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

               <quot:Name xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

               <quot:PostCode>6002</quot:PostCode>

               <quot:State xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

            </quot:Address>

            <quot:DeliveryContact>

               <quot:DisplayString xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

               <quot:Email>support@iq.co.nz</quot:Email>

               <quot:Fax xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

               <quot:FirstName>Print</quot:FirstName>

               <quot:IntegrationID xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

               <quot:IsAddressSpecific>false</quot:IsAddressSpecific>

               <quot:Mobile xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

               <quot:Phone xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

               <quot:Surname>IQ</quot:Surname>

               <quot:Title>Mrs</quot:Title>

               <quot:Website xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

            </quot:DeliveryContact>

            <quot:DeliveryNotes xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

            <quot:QuoteNo>Q02649</quot:QuoteNo>

         </quot:input>

      </quot:ConfirmFreightOnQuote>

   </soap:Body>

</soap:Envelope>

Example response:

HTTP/1.1 200 OK

Cache-Control: private

Content-Type: application/soap+xml; charset=utf-8

Server: Microsoft-IIS/10.0

Set-Cookie: ASP.NET_SessionId=l00svbkvpw4ok1k515x2mox4; path=/; HttpOnly

X-AspNet-Version: 4.0.30319

X-Powered-By: ASP.NET

Access-Control-Allow-Origin: *

Access-Control-Allow-Methods: GET, PUT, POST, DELETE, HEAD, OPTIONS

Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept

Date: Fri, 07 Oct 2016 16:06:01 GMT

Content-Length: 8226

 

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">

<s:Header>

<a:Action s:mustUnderstand="1">http://iq.co.nz/PrintIQ/QuoteProcess1/IQuoteProcess/ConfirmFreightOnQuoteResponse</a:Action>

</s:Header>

<s:Body>

<ConfirmFreightOnQuoteResponse xmlns="http://iq.co.nz/PrintIQ/QuoteProcess1">

<ConfirmFreightOnQuoteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

<ErrorMessage i:nil="true"/>

<IsError>false</IsError>

<QuoteDetails>

<AcceptanceUrl>http://gpo.printiq.com/PrintIQ//AcceptQuote.aspx?QuoteNo=Q02649</AcceptanceUrl>

<CreatedBy>Test Sales</CreatedBy>

<CurCode>AUD</CurCode>

<Customer>

<CustomerCode>TstCust</CustomerCode>

<CustomerID>13926</CustomerID>

<CustomerName>Test Customer</CustomerName>

<CustomerSiteID>1</CustomerSiteID>

</Customer>

<CustomerReference/>

<DeliveryAddress>

<AddressKey>48908</AddressKey>

<AddressLine1>354 Lambton Quay</AddressLine1>

<AddressLine2/>

<AddressLine3/>

<City>Wellington</City>

<Country>New Zealand</Country>

<DisplayString>354 Lambton Quay, Wellington, 6002</DisplayString>

<Name/>

<PostCode>6002</PostCode>

<State/>

<StateID>1</StateID>

</DeliveryAddress>

<DeliveryContact>

<ContactKey>518</ContactKey>

<CustomerType>0</CustomerType>

<DisplayString>Print IQ</DisplayString>

<Email>support@iq.co.nz</Email>

<Fax/>

<FirstName>Print</FirstName>

<IntegrationID i:nil="true"/>

<IsAddressSpecific>true</IsAddressSpecific>

<Mobile/>

<Phone/>

<Surname>IQ</Surname>

<Title>Mrs</Title>

<Website i:nil="true"/>

</DeliveryContact>

<ExternalJobReference i:nil="true"/>

<IsSingleProduct>false</IsSingleProduct>

<IsSummary>false</IsSummary>

<IsUserVisible>true</IsUserVisible>

<JobTitle/>

<Notes/>

<Permissions>

<CanEdit>true</CanEdit>

<CanEditCostPrice>true</CanEditCostPrice>

<CanEditDescription>true</CanEditDescription>

<CanEditRetailPrice>true</CanEditRetailPrice>

<CanEditWholesalePrice>true</CanEditWholesalePrice>

<CanView>true</CanView>

<CanViewCostPrice>true</CanViewCostPrice>

<CanViewRetailPrice>true</CanViewRetailPrice>

<CanViewWholesalePrice>true</CanViewWholesalePrice>

</Permissions>

<Products>

<ProductDetails>

<ArtworkSections>

<ArtworkSection>

<QQDSKey>18322</QQDSKey>

<QQDSName/>

<QSTKey>1</QSTKey>

</ArtworkSection>

</ArtworkSections>

<AvailableQuantities>

<IsFixed>true</IsFixed>

<MaxQuantity>2000</MaxQuantity>

<MinQuantity i:nil="true"/>

<Quantities>

<AvailableQuantity>

<Kinds>

<Kind>1</Kind>

</Kinds>

<PriorityAvailable>false</PriorityAvailable>

<Quantity>250</Quantity>

</AvailableQuantity>

<AvailableQuantity>

<Kinds>

<Kind>1</Kind>

</Kinds>

<PriorityAvailable>false</PriorityAvailable>

<Quantity>500</Quantity>

</AvailableQuantity>

<AvailableQuantity>

<Kinds>

<Kind>1</Kind>

</Kinds>

<PriorityAvailable>false</PriorityAvailable>

<Quantity>1000</Quantity>

</AvailableQuantity>

<AvailableQuantity>

<Kinds>

<Kind>1</Kind>

</Kinds>

<PriorityAvailable>false</PriorityAvailable>

<Quantity>2000</Quantity>

</AvailableQuantity>

</Quantities>

</AvailableQuantities>

<BypassArtworkSubmission>true</BypassArtworkSubmission>

<CustomerRequiredDate i:nil="true"/>

<CustomerRequiredDateExpired>false</CustomerRequiredDateExpired>

<CustomerRequiredTime i:nil="true"/>

<Description>  Printed CMYK throughout   on 350gsm SatinLaminating Matt Celloglase 1 side only

 

Finish Size: 90x55 (55x90)</Description>

<HasHouseStock>false</HasHouseStock>

<InvoiceTypeDescription/>

<IsPriority>false</IsPriority>

<IsVariableDataProduct>false</IsVariableDataProduct>

<IsVariableDataSubmitted>false</IsVariableDataSubmitted>

<LastAcceptedQQADKey i:nil="true"/>

<LastAcceptedQuantity/>

<ProductCode>IQ-LJHBC</ProductCode>

<ProductImage>/PrintIQ/Thumbnail.aspx?QQDPKey=15072</ProductImage>

<ProductKey>15072</ProductKey>

<ProductNo>Product 1</ProductNo>

<ProductType>Business Card</ProductType>

<Quantities>

<ProductQuantityDetail>

<Adjustments>

<QuoteAdjustment>

<AdjustmentType>Retail</AdjustmentType>

<Amount>0.0000</Amount>

<CreatedBy>Test Sales</CreatedBy>

<CreatedDate>2016-10-07T09:06:00.93</CreatedDate>

<NewProperty>Customer discount</NewProperty>

</QuoteAdjustment>

</Adjustments>

<AvailableShifts>

<ShiftDetails>

<ArtworkCutoff>2016-10-07T15:00:00</ArtworkCutoff>

<CurrentTime>2016-10-07T09:06:01.0443802-07:00</CurrentTime>

<DispatchDate>2016-10-11T15:00:00</DispatchDate>

<ETADate>2016-10-14T15:00:00</ETADate>

<ScheduleName>Default Shift</ScheduleName>

<ShiftStartTime>2016-10-07T15:00:00</ShiftStartTime>

<TurnAroundDays>2</TurnAroundDays>

</ShiftDetails>

<ShiftDetails>

<ArtworkCutoff>2016-10-10T15:00:00</ArtworkCutoff>

<CurrentTime>2016-10-07T09:06:01.0443802-07:00</CurrentTime>

<DispatchDate>2016-10-13T15:00:00</DispatchDate>

<ETADate>2016-10-18T15:00:00</ETADate>

<ScheduleName>Default Shift</ScheduleName>

<ShiftStartTime>2016-10-10T15:00:00</ShiftStartTime>

<TurnAroundDays>2</TurnAroundDays>

</ShiftDetails>

</AvailableShifts>

<CostPrice>226.4286</CostPrice>

<CostPrice_ForeignAmount>226.4286</CostPrice_ForeignAmount>

<DeliveryDays>3</DeliveryDays>

<DeliveryType>Digital Delivery</DeliveryType>

<Depth>90</Depth>

<DispatchDate>2016-10-13T15:00:00</DispatchDate>

<DisplayTurnaroundInDays>false</DisplayTurnaroundInDays>

<DisplayTurnaroundTooltip>false</DisplayTurnaroundTooltip>

<Extras/>

<ExtrasPrice>0</ExtrasPrice>

<ExtrasPrice_ForeignAmount>0</ExtrasPrice_ForeignAmount>

<FreightDetails>

<DeliveryRecords>

<DeliveryRecord>

<Address>

<AddressKey>19405</AddressKey>

<AddressLine1>37 Connor Street</AddressLine1>

<AddressLine2 i:nil="true"/>

<AddressLine3 i:nil="true"/>

<City> Burleigh Heads</City>

<Country>Australia</Country>

<DisplayString>Green Print, 37 Connor Street,  Burleigh Heads, QLD, 4220</DisplayString>

<Name>Green Print</Name>

<PostCode>4220</PostCode>

<State>QLD</State>

<StateID>4</StateID>

</Address>

<DeliveryContact>

<ContactKey>518</ContactKey>

<CustomerType>0</CustomerType>

<DisplayString>Green Print, 37 Connor Street,  Burleigh Heads, QLD, 4220</DisplayString>

<Email>support@iq.co.nz</Email>

<Fax/>

<FirstName>Print</FirstName>

<IntegrationID i:nil="true"/>

<IsAddressSpecific>true</IsAddressSpecific>

<Mobile/>

<Phone/>

<Surname>IQ</Surname>

<Title>Mrs</Title>

<Website i:nil="true"/>

</DeliveryContact>

<DeliveryDays>3</DeliveryDays>

<DeliveryDetailKey>13520</DeliveryDetailKey>

<DeliveryMethod>

<IsAdmin>false</IsAdmin>

<MethodKey>32</MethodKey>

<MethodName>Digital Delivery</MethodName>

</DeliveryMethod>

<DeliveryNotes i:nil="true"/>

<DeliveryQuantity>1000</DeliveryQuantity>

<DeliveryWeight>1.7325</DeliveryWeight>

<QuantityKey>17212</QuantityKey>

</DeliveryRecord>

</DeliveryRecords>

<RemainingQuantity>0</RemainingQuantity>

</FreightDetails>

<FreightIncluded>false</FreightIncluded>

<FreightPrice>0.0001</FreightPrice>

<FreightPrice_ForeignAmount>0.0001</FreightPrice_ForeignAmount>

<GST>19.20001000000</GST>

<GST_ForeignAmount>19.20001000000</GST_ForeignAmount>

<Height>0.3059999942779541</Height>

<IsSelected>false</IsSelected>

<Kinds>1</Kinds>

<Price>192.0001</Price>

<PriceIncGST>211.20011000000</PriceIncGST>

<PriceIncGST_ForeignAmount>211.20011000000</PriceIncGST_ForeignAmount>

<Price_ForeignAmount>192.0001</Price_ForeignAmount>

<PriorityAvailable>false</PriorityAvailable>

<PromoDiscount>0</PromoDiscount>

<PromoDiscount_ForeignAmount>0</PromoDiscount_ForeignAmount>

<Quantity>1000</Quantity>

<QuantityKey>17212</QuantityKey>

<RetailPrice>192.0000</RetailPrice>

<RetailPrice_ForeignAmount>192.0000</RetailPrice_ForeignAmount>

<TurnaroundDays>2</TurnaroundDays>

<Weight>1.7324999570846558</Weight>

<WeightDisplay>1.73kg</WeightDisplay>

<WholesalePrice>160.0000</WholesalePrice>

<WholesalePrice_ForeignAmount>160.0000</WholesalePrice_ForeignAmount>

<Width>55</Width>

</ProductQuantityDetail>

</Quantities>

<QuestionSections/>

<ReferenceFields/>

<ShowCustomerRequiredDate>true</ShowCustomerRequiredDate>

<ShowDeliveryDays>true</ShowDeliveryDays>

<Title i:nil="true"/>

<TreeProduct>false</TreeProduct>

</ProductDetails>

</Products>

<Promo i:nil="true"/>

<QuoteAcceptanceTerms>&lt;a href=" " target="_blank"&gt;Terms and Conditions of Supply &lt;/a&gt;</QuoteAcceptanceTerms>

<QuoteContact i:nil="true"/>

<QuoteKey>111481</QuoteKey>

<QuoteNo>Q02649</QuoteNo>

<QuotePDFThumbnailPath>/PrintIQ/Reports/GreenPrint/QuoteThumbnail.png</QuotePDFThumbnailPath>

<QuoteStatus>

<Editable>false</Editable>

<StatusKey>1</StatusKey>

<StatusName>In Process</StatusName>

</QuoteStatus>

<SpecialInstructions/>

<ValidUntill>2017-01-06T16:02:39.653</ValidUntill>

</QuoteDetails>

</ConfirmFreightOnQuoteResult>

</ConfirmFreightOnQuoteResponse>

</s:Body>

</s:Envelope>

 

 

AcceptQuote

Once freight has been confirmed you can accept the quote. This is the process that will turn the quote into a job, or multiple jobs if you are accepting multiple products.

 

AcceptQuote

Summary

Accepts a Quote with the Supplied artwork

Parameters

  • LoginTokenLoginToken returned from GetLoginToken
  • inputAcceptQuoteInput Record

Returns

AcceptQuoteResult Record

 

AcceptQuoteInput

Attribute

Type

Required

Description

QuoteNo

String

True

Quote to Accept

QuoteFiles

List of QuoteFile

False

List of QuoteFile Records, the artwork and supporting files for the quote if it is to be accepted

AllArtworkSubmitted

Boolean

False

If true the quote will be considered to have all its artwork submitted and be ready for production

ProductKey

Integer

False

Holds the Product key of the product to update

QuantityToAccept

Nullable of Integer

False

The quantity to accept. If the quantity is incorrect or not set the first quantity on the quote will be accepted

KindsToAccept

Nullable of Integer

False

The kinds to accept. If the quantity/kinds is incorrect or not set the first quantity on the quote will be accepted

processArtwork

Boolean

False

Perform artwork tasks

AcceptQuoteResult

Attribute

Type

Description

QuoteDetails

QuoteDetails

Details of the Quote

AcceptanceDetails

AcceptanceDetails

Details of the Acceptance

ErrorMessage

String

Details of any error that occurred

IsError

Boolean

Did an error occur

 

Example request:

POST http://gpo.printiq.com/WebService/QuoteProcess.svc HTTP/1.1

Accept-Encoding: gzip,deflate

Content-Type: application/soap+xml;charset=UTF-8;action="http://iq.co.nz/PrintIQ/QuoteProcess1/IQuoteProcess/AcceptQuote"

Content-Length: 3369

Host: gpo.printiq.com

Connection: Keep-Alive

User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_77)

 

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:quot="http://iq.co.nz/PrintIQ/QuoteProcess1">

<soap:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">

<wsa:Action>http://iq.co.nz/PrintIQ/QuoteProcess1/IQuoteProcess/AcceptQuote</wsa:Action>

<wsa:To>http://gpo.printiq.com/WebService/QuoteProcess.svc</wsa:To>

</soap:Header>

<soap:Body>

<quot:AcceptQuote>

<quot:LoginToken>DCF776BFD40FF9496FC1024982B3C937B8003193FA613D269B6F0D6664A08569BBDF6D3B80CCF44F025655477DAF42312CEE1ED98379F5E67B2AAC218E2CE280729332995BCFD4EC3E8CBD70520F29D6FDA5A86DCC312766773A1CCE220B4D7343515D4E5781B262EA188E984B2FAFBDCF9E8B3645CE7D1EE05EBE51C5548A3BD3158B81F4E2CAD6A6B812110AFE802463D10EC6AC74B2C7AA205B6DD846DBF9A1C0DB79F129CAE4A77DDC85360D520E9EFA63B4F4ECA0E2FF54ED83F037D21DB91C6E4FC4BA053FF7C464C7E8315618838AC18822B9B2A346F0E003AA0FD1B52C4D4B9384A583F0130F763CB77394EE8772740170727CD77076E3C3A83C548E93099BC2F16F235169A3773371A99188FCE23EE5FAB1E77D2C6E2E2A85C67C9AAA521ED343E12F6203810FF3F7D4D9B36EAD97B86DD3295BBD4A6951A4223FA5C45B88C0FF55F1D6C56B8D7A953B10752E299F5770B295B85E69386F31B55D5C7438C832A677D9B678D05115A619D81B3B66862845AEC291A4BC7D22E685172F0CD6E8FA850BEC9F59D8CF242059F423A997BE1B89175E09013B799E5879E45FF258CBC0B031EBF18175AC3A43E1DB7654F9CC3B55B3E5D8BF453B3746F91A9DD1BEB1EE395F495CF0117F33AB41631C8458BEB21ABBD9D40DD9DB45F3164DBD8B206C901908A4D8843E707E97A88D616B52C894AEE5585448EB2E2FB4D5297CFDC5D8AF4AD491949D0ED88852034B96D33476884971EB8D2EF582A5FEC15FBB301A4896FC09EDDC61F981A154563AEB8EC98C337D184491AC62D0FF4083918705AF9609B739F6B7FA9208A1CCAB3542D64B1040A9902F2DF67BB1B553B681632BABE5906FF2112C99B7B16BED1A387CE8F5C6607959A159A0091F9FDD2523740A6F38D19A780B6659EF8F4289A6EFCF4D572658F029662A350D099E374572DB86E0E1F10D7F6F20675FCB3A6A124C63597EBCCF3CEFE2047C56E9D6E71DF07AEEABCB38B4A2826BD73B1892BC166B632D2B1C6B3AE98D4D2D8FD11512531BF634505D8CC32F456762D98ABA99D48522A08860BFAC8D5E419EF4ED3C506BC246FF9011E253E747E6C717424F35F82395FE56B4BF98BDCB9AF81013F5B57692BA236EC82068BCA4C613AAEED0BBF5C609B7117E2BB809E32460A2062BA5B29719B25A8C446CAFB14316898CF4B2F4F8B8C838ED58BBE85F70353620C7C3F628F1887C78F0A0C1698F305A4E1A5198F7B03F50390F01650F1544E7F5BB6C8E84F3D3B23BF64F460166B7018C54EAAF803F185D4DD12616F313A82296C5CA439B034079D58BEC64495F1A3F2C87EDE21C48F1D648F4B559FD03B043386DDCE8F59595179F312AD963C1ACAADE286E087299D3A5B05EC631C836E82E0E4E3003F44DC845E19CC987CB372C62AFB49FBC497D66A3B3ED84E603C5448E021DC4C48C395FE865C3D2781953C67A0322B8CE2DD24B1859119671E92861A4690B3581BBC146825F2D5F35A5D3C38114F2E43CFCA9F3B404FF93E5B5C48DDFE9F3E121FBD7D496F506</quot:LoginToken>

<quot:input>

<quot:AllArtworkSubmitted>false</quot:AllArtworkSubmitted>

<quot:KindsToAccept xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

<quot:QuantityToAccept xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

<quot:QuoteNo>Q02649</quot:QuoteNo>

<quot:processArtwork>false</quot:processArtwork>

</quot:input>

</quot:AcceptQuote>

</soap:Body>

</soap:Envelope>

Example response:

HTTP/1.1 200 OK

Cache-Control: private

Content-Type: application/soap+xml; charset=utf-8

Server: Microsoft-IIS/10.0

Set-Cookie: ASP.NET_SessionId=zs5i3mpmd5jgk5b44ihms5pb; path=/; HttpOnly

X-AspNet-Version: 4.0.30319

X-Powered-By: ASP.NET

Access-Control-Allow-Origin: *

Access-Control-Allow-Methods: GET, PUT, POST, DELETE, HEAD, OPTIONS

Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept

Date: Fri, 07 Oct 2016 16:08:07 GMT

Content-Length: 8684

 

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">

<s:Header>

<a:Action s:mustUnderstand="1">http://iq.co.nz/PrintIQ/QuoteProcess1/IQuoteProcess/AcceptQuoteResponse</a:Action>

</s:Header>

<s:Body>

<AcceptQuoteResponse xmlns="http://iq.co.nz/PrintIQ/QuoteProcess1">

<AcceptQuoteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

<ErrorMessage i:nil="true"/>

<IsError>false</IsError>

<AcceptanceDetails>

<AcceptanceKey>4317</AcceptanceKey>

<CurCode>AUD</CurCode>

<CurDate>2016-10-07T09:08:04.527</CurDate>

<CurForeignFixed>false</CurForeignFixed>

<CurRate>1.0000000000</CurRate>

<CustomerCode>TstCust</CustomerCode>

<DateAccepted>2016-10-07T09:08:03.223</DateAccepted>

<JobReference>J01337</JobReference>

<Products>

<AcceptanceProductDetails>

<AcceptanceProductKey>3417</AcceptanceProductKey>

<Description>  Printed CMYK throughout   on 350gsm SatinLaminating Matt Celloglase 1 side only

 

Finish Size: 90x55 (55x90)</Description>

<DispatchCompleteETADate>2016-10-15T02:00:00-07:00</DispatchCompleteETADate>

<DispatchedDate>2016-10-12T02:00:00-07:00</DispatchedDate>

<Invoiced>false</Invoiced>

<JobNo>J01337</JobNo>

<Kinds>1</Kinds>

<MISJobReference i:nil="true"/>

<Price>192.0001</Price>

<Price_ForeignAmount>192.0001</Price_ForeignAmount>

<ProductCode>IQ-LJHBC</ProductCode>

<ProductKey>15072</ProductKey>

<Quantity>1000</Quantity>

</AcceptanceProductDetails>

</Products>

<QuoteNo>Q02649</QuoteNo>

<TotalPrice>192.0001</TotalPrice>

<TotalPrice_ForeignAmount>192.00010000000000</TotalPrice_ForeignAmount>

</AcceptanceDetails>

<QuoteDetails>

<AcceptanceUrl>http://gpo.printiq.com//AcceptQuote.aspx?QuoteNo=Q02649</AcceptanceUrl>

<CreatedBy>Test Sales</CreatedBy>

<CurCode>AUD</CurCode>

<Customer>

<CustomerCode>TstCust</CustomerCode>

<CustomerID>13926</CustomerID>

<CustomerName>Test Customer</CustomerName>

<CustomerSiteID>1</CustomerSiteID>

</Customer>

<CustomerReference/>

<DeliveryAddress i:nil="true"/>

<DeliveryContact i:nil="true"/>

<ExternalJobReference i:nil="true"/>

<IsSingleProduct>false</IsSingleProduct>

<IsSummary>false</IsSummary>

<IsUserVisible>true</IsUserVisible>

<JobTitle/>

<Notes/>

<Permissions>

<CanEdit>true</CanEdit>

<CanEditCostPrice>true</CanEditCostPrice>

<CanEditDescription>true</CanEditDescription>

<CanEditRetailPrice>true</CanEditRetailPrice>

<CanEditWholesalePrice>true</CanEditWholesalePrice>

<CanView>true</CanView>

<CanViewCostPrice>true</CanViewCostPrice>

<CanViewRetailPrice>true</CanViewRetailPrice>

<CanViewWholesalePrice>true</CanViewWholesalePrice>

</Permissions>

<Products>

<ProductDetails>

<ArtworkSections>

<ArtworkSection>

<QQDSKey>18322</QQDSKey>

<QQDSName/>

<QSTKey>1</QSTKey>

</ArtworkSection>

</ArtworkSections>

<AvailableQuantities>

<IsFixed>true</IsFixed>

<MaxQuantity>2000</MaxQuantity>

<MinQuantity i:nil="true"/>

<Quantities>

<AvailableQuantity>

<Kinds>

<Kind>1</Kind>

</Kinds>

<PriorityAvailable>false</PriorityAvailable>

<Quantity>250</Quantity>

</AvailableQuantity>

<AvailableQuantity>

<Kinds>

<Kind>1</Kind>

</Kinds>

<PriorityAvailable>false</PriorityAvailable>

<Quantity>500</Quantity>

</AvailableQuantity>

<AvailableQuantity>

<Kinds>

<Kind>1</Kind>

</Kinds>

<PriorityAvailable>false</PriorityAvailable>

<Quantity>1000</Quantity>

</AvailableQuantity>

<AvailableQuantity>

<Kinds>

<Kind>1</Kind>

</Kinds>

<PriorityAvailable>false</PriorityAvailable>

<Quantity>2000</Quantity>

</AvailableQuantity>

</Quantities>

</AvailableQuantities>

<BypassArtworkSubmission>true</BypassArtworkSubmission>

<CustomerRequiredDate i:nil="true"/>

<CustomerRequiredDateExpired>false</CustomerRequiredDateExpired>

<CustomerRequiredTime i:nil="true"/>

<Description>  Printed CMYK throughout   on 350gsm SatinLaminating Matt Celloglase 1 side only

 

Finish Size: 90x55 (55x90)</Description>

<HasHouseStock>false</HasHouseStock>

<InvoiceTypeDescription/>

<IsPriority>false</IsPriority>

<IsVariableDataProduct>false</IsVariableDataProduct>

<IsVariableDataSubmitted>false</IsVariableDataSubmitted>

<LastAcceptedQQADKey i:nil="true"/>

<LastAcceptedQuantity/>

<ProductCode>IQ-LJHBC</ProductCode>

<ProductImage>/PrintIQ/Thumbnail.aspx?QQDPKey=15072</ProductImage>

<ProductKey>15072</ProductKey>

<ProductNo>Product 1</ProductNo>

<ProductType>Business Card</ProductType>

<Quantities>

<ProductQuantityDetail>

<Adjustments>

<QuoteAdjustment>

<AdjustmentType>Retail</AdjustmentType>

<Amount>0.0000</Amount>

<CreatedBy>Test Sales</CreatedBy>

<CreatedDate>2016-10-07T09:06:00.93</CreatedDate>

<NewProperty>Customer discount</NewProperty>

</QuoteAdjustment>

</Adjustments>

<AvailableShifts>

<ShiftDetails>

<ArtworkCutoff>2016-10-07T15:00:00</ArtworkCutoff>

<CurrentTime>2016-10-07T09:08:02.9265164-07:00</CurrentTime>

<DispatchDate>2016-10-11T15:00:00</DispatchDate>

<ETADate>2016-10-14T15:00:00</ETADate>

<ScheduleName>Default Shift</ScheduleName>

<ShiftStartTime>2016-10-07T15:00:00</ShiftStartTime>

<TurnAroundDays>2</TurnAroundDays>

</ShiftDetails>

<ShiftDetails>

<ArtworkCutoff>2016-10-10T15:00:00</ArtworkCutoff>

<CurrentTime>2016-10-07T09:08:02.9265164-07:00</CurrentTime>

<DispatchDate>2016-10-13T15:00:00</DispatchDate>

<ETADate>2016-10-18T15:00:00</ETADate>

<ScheduleName>Default Shift</ScheduleName>

<ShiftStartTime>2016-10-10T15:00:00</ShiftStartTime>

<TurnAroundDays>2</TurnAroundDays>

</ShiftDetails>

</AvailableShifts>

<CostPrice>226.4286</CostPrice>

<CostPrice_ForeignAmount>226.4286</CostPrice_ForeignAmount>

<DeliveryDays>3</DeliveryDays>

<DeliveryType>Digital Delivery</DeliveryType>

<Depth>90</Depth>

<DispatchDate>2016-10-13T15:00:00</DispatchDate>

<DisplayTurnaroundInDays>false</DisplayTurnaroundInDays>

<DisplayTurnaroundTooltip>false</DisplayTurnaroundTooltip>

<Extras/>

<ExtrasPrice>0</ExtrasPrice>

<ExtrasPrice_ForeignAmount>0</ExtrasPrice_ForeignAmount>

<FreightDetails>

<DeliveryRecords>

<DeliveryRecord>

<Address>

<AddressKey>19405</AddressKey>

<AddressLine1>37 Connor Street</AddressLine1>

<AddressLine2 i:nil="true"/>

<AddressLine3 i:nil="true"/>

<City> Burleigh Heads</City>

<Country>Australia</Country>

<DisplayString>Green Print, 37 Connor Street,  Burleigh Heads, QLD, 4220</DisplayString>

<Name>Green Print</Name>

<PostCode>4220</PostCode>

<State>QLD</State>

<StateID>4</StateID>

</Address>

<DeliveryContact>

<ContactKey>518</ContactKey>

<CustomerType>0</CustomerType>

<DisplayString>Green Print, 37 Connor Street,  Burleigh Heads, QLD, 4220</DisplayString>

<Email>support@iq.co.nz</Email>

<Fax/>

<FirstName>Print</FirstName>

<IntegrationID i:nil="true"/>

<IsAddressSpecific>true</IsAddressSpecific>

<Mobile/>

<Phone/>

<Surname>IQ</Surname>

<Title>Mrs</Title>

<Website i:nil="true"/>

</DeliveryContact>

<DeliveryDays>3</DeliveryDays>

<DeliveryDetailKey>13520</DeliveryDetailKey>

<DeliveryMethod>

<IsAdmin>false</IsAdmin>

<MethodKey>32</MethodKey>

<MethodName>Digital Delivery</MethodName>

</DeliveryMethod>

<DeliveryNotes i:nil="true"/>

<DeliveryQuantity>1000</DeliveryQuantity>

<DeliveryWeight>1.7325</DeliveryWeight>

<QuantityKey>17212</QuantityKey>

</DeliveryRecord>

</DeliveryRecords>

<RemainingQuantity>0</RemainingQuantity>

</FreightDetails>

<FreightIncluded>false</FreightIncluded>

<FreightPrice>0.0001</FreightPrice>

<FreightPrice_ForeignAmount>0.0001</FreightPrice_ForeignAmount>

<GST>19.20001000000</GST>

<GST_ForeignAmount>19.20001000000</GST_ForeignAmount>

<Height>0.3059999942779541</Height>

<IsSelected>false</IsSelected>

<Kinds>1</Kinds>

<Price>192.0001</Price>

<PriceIncGST>211.20011000000</PriceIncGST>

<PriceIncGST_ForeignAmount>211.20011000000</PriceIncGST_ForeignAmount>

<Price_ForeignAmount>192.0001</Price_ForeignAmount>

<PriorityAvailable>false</PriorityAvailable>

<PromoDiscount>0</PromoDiscount>

<PromoDiscount_ForeignAmount>0</PromoDiscount_ForeignAmount>

<Quantity>1000</Quantity>

<QuantityKey>17212</QuantityKey>

<RetailPrice>192.0000</RetailPrice>

<RetailPrice_ForeignAmount>192.0000</RetailPrice_ForeignAmount>

<TurnaroundDays>2</TurnaroundDays>

<Weight>1.7324999570846558</Weight>

<WeightDisplay>1.73kg</WeightDisplay>

<WholesalePrice>160.0000</WholesalePrice>

<WholesalePrice_ForeignAmount>160.0000</WholesalePrice_ForeignAmount>

<Width>55</Width>

</ProductQuantityDetail>

</Quantities>

<QuestionSections/>

<ReferenceFields/>

<ShowCustomerRequiredDate>true</ShowCustomerRequiredDate>

<ShowDeliveryDays>true</ShowDeliveryDays>

<Title i:nil="true"/>

<TreeProduct>false</TreeProduct>

</ProductDetails>

</Products>

<Promo i:nil="true"/>

<QuoteAcceptanceTerms>&lt;a href=" " target="_blank"&gt;Terms and Conditions of Supply &lt;/a&gt;</QuoteAcceptanceTerms>

<QuoteContact i:nil="true"/>

<QuoteKey>111481</QuoteKey>

<QuoteNo>Q02649</QuoteNo>

<QuotePDFThumbnailPath>/PrintIQ/Reports/GreenPrint/QuoteThumbnail.png</QuotePDFThumbnailPath>

<QuoteStatus>

<Editable>false</Editable>

<StatusKey>1</StatusKey>

<StatusName>In Process</StatusName>

</QuoteStatus>

<SpecialInstructions/>

<ValidUntill>2017-01-06T16:02:39.653</ValidUntill>

</QuoteDetails>

</AcceptQuoteResult>

</AcceptQuoteResponse>

</s:Body>

</s:Envelope>

 

 

UploadArtworkURL

To reduce load on the webserver, artwork is not uploaded directly via the API, but instead downloaded in the background by the printIQ fileserver. An unauthenticated URL to each individual artwork file must be provided.



The QSTKey tells printIQ which section type you are uploading artwork against. The QSTKey for a job can be found in the QuoteDetails object from the AcceptQuote response.


The possible values for this field differ across installations, but the sections mostly refer to 'text', 'cover', etc.

<QuoteDetails>

<Products>

<ProductDetails>

<ArtworkSections>

<ArtworkSection>

<QQDSKey>18322</QQDSKey>

<QQDSName/>

<QSTKey>1</QSTKey>

</ArtworkSection>

</ArtworkSections>

</ProductDetails>

</Products>

</QuoteDetails>

 

UploadArtworkUrl

Summary

Submit artwork for the given input and return result

Parameters

  • LoginTokenLoginToken returned from GetLoginToken
  • inputUploadArtworkUrlInput Record

Returns

UploadArtworkUrlResult Record

 

UploadArtworkUrlInput

Attribute

Type

Required

Description

JobNo

String

True

Job No

ArtworkUrl

String

True

Artwork Url

QSTKey

Integer

True

Section Type Reference for the upload

IsSupportingDocument

Boolean

True

Is Supporting Document

OverrideFileName

String

True

Overriding file name, if this is empty, printIQ will create a default file name

UploadArtworkUrlResult

Attribute

Type

Description

ErrorMessage

String

Details of any error that occurred

IsError

Boolean

Did an error occur

 

 


    • Related Articles

    • Webhooks - Managing Customer Job References

      Managing Customer Job References Programatically printIQ customer and job references can be read and updated programatically, using the QuoteProcess web service calls in the table of contents above.     Full WSDL can be obtained from ...
    • API – QuoteProcess Creating a Basic Quote

      Basic API calls to create a quote/job Each printiq instance site has access to the Swagger API doco https://{instancedetail}/swagger/ui/index To build a basic quote – in order the calls would be : ...
    • printIQ Integration toolbox

      Integration Toolbox Getting started with integration and API overview Access printable attachment at the top or bottom of this article depending on your browser. Introduction  When it comes to workflow and integration, everyone’s requirements are ...
    • API – Single Sign On

      INTRODUCTION The printIQ Single Sign On (SSO) API can be called to obtain a URL with a token that has been pre-authenticated to log a user in, and begin a customer quote. The API calls are restricted by IP address, which must be configured manually ...
    • API – New Quote Process Method Update Job Status

      New Quote Process Method: Update Job Status   This method is used to update the status for a given job   A list of valid statuses can be found via the Admin >Configure Factory Menu. The statuses are listed in the General section under Terminology.   ...