Quote Ready Notification

If a quote was generated with an http-based notification subscription to the quote ready event, the API will post the following informattion to that URL when the quote has been priced and is ready for payment.

Request Body

The response body contains information about the newly created merchant.

Parameter Type Comment
QuoteID
Integer

onDemand ID for this

quote.

Status
String

Status of the quote.

 Authorized means that

the projects have been

paid for and the

project can start.

 Pending means that the

merchant must execute a

transaction to pay for

the project.  Look for

a PaymentURL for the

merchant to click

through.

AuthorizeURL
String

See

Authorize Quote

RejectURL
String

See

Reject Quote

Currency
String

Currency that the price

is in. See glossary

for list of valid

currencies.

TotalCost
Decimal

Total amount that needs

to be paid. Exclude

translation credit.

PrepaidCredit
Decimal

If a merchant has a

positive credit balance

with onDemand, it will

be reported here.

AmountDue
Decimal

TotalCost -

Prepaid Credit

Projects
Container

A list of projects that

have been generated by

this transaction.

Projects

.Project

.ProjectID

Integer

onDemand Project ID for

the project.

Projects

.Project

.ProjectURL

String

A URL that can be

checked for the status

of the project.

Projects

.Project

.ProjectDueDate

String

String representing the

date/time (ISO 8601)

that the project will

be completed by.

Projects

.Project

.Products

Container

List of products

included in the

product.

Projects

.Project

.Products

.Product

.SKUs

Container

List of SKUs under

product

Projects

.Project

.Products

.Product

.SKUs

.SKU

Container Contains a SKU

Projects

.Project

.Products

.Product

.SKUs

.SKU

.SKUNumber

String

Client supplied SKU

Number

Projects

.Project

.Products

.Product

.AssetID

Integer

Internal onDemand ID

for this product.

Files

.File

.AssetID

Integer Asset ID of the file.

Files

.File

.FileName

String

Original name of the

file.

Files

.File

.Status

String

See List Files

for a list of file

statuses.

Product-Based Quote Request Example

<Quote>
     <QuoteID>132</QuoteID>
     <Status>Pending</Status>
     <TotalCost>10.00</TotalCost>
     <AuthorizeURL>https://…</AuthorizeURL>
     <RejectURL>https://…</RejectURL>
     <TotalCost>10.00</TotalCost>
     <PrepaidCredit>5.00</PrepaidCredit>
     <AmountDue>5.00</AmountDue>
     <Currency>EUR</Currency>
     <Projects>
         <Project>
             <ProjectID>123</ProjectID>
             <ProjectURL>https://</ProjectURL>
             <ProjectDueDate>2014-02-11T10:22:46Z</ProjectDueDate>
             <Products>
                 <Product>
                     <AssetID>999</AssetID>
                     <SKUs>
                         <SKU>
                             <SKUNumber>123</SKUNumber>
                         </SKU>
                     </SKUs>
                 </Product>
             </Products>
         </Project>
     </Projects>
 </Quote>

File-Based Quote Request Example

<Quote>
     <QuoteID>132</QuoteID>
     <Status>Pending</Status>
     <TotalCost>10.00</TotalCost>
     <AuthorizeURL>https://…</AuthorizeURL>
     <RejectURL>https://…</RejectURL>
     <TotalCost>10.00</TotalCost>
     <PrepaidCredit>5.00</PrepaidCredit>
     <AmountDue>5.00</AmountDue>
     <Currency>EUR</Currency>
     <Projects>
         <Project>
             <ProjectID>123</ProjectID>
             <ProjectName>Name of project</ProjectName>
             <ProjectURL>https://</ProjectURL>
             <ProjectDueDate>2014-02-11T10:22:46Z</ProjectDueDate>
             <Files>
                 <File>
                     <Status>Analyzed</Status>
                     <AssetID>999</AssetID>
                     <FileName>example.txt</FileName>
                 </File>
             </Files>
         </Project>
     </Projects>
 </Quote>