Related Documents
Document Properties
Kbid27L760
Last Modified23-Jun-2020
Added to KB20-Jul-2016
Public AccessEveryone
StatusOnline
Doc TypeReferences
Product
  • ICM 7.7
  • ICM 7.8
  • ICM 7.9
  • ICM 7.10

REST API - Create a line item for quote request


Note

Starting with 7.10 our REST API is documented using Redoc accessible at docs.intershop.com.

URI

/customers/<customerID>/users/<userID>/quoterequests/<quoteRequestID>/items

Http Method

POST

Short Description

Creates a line item for the quote request with the given quoteRequestID

Query Parameters

None

Example Requests

/customers/AgroNet/users/fbirdo@test.intershop.de/quoterequests/MgkKDgAsrg0AAAFS7gJb2PSB/items

HTTP Status Codes

201 Created - if the quote line item was successfully created
400 Bad Request - If the quote line item can not be created (line item or sku missing)

Possible values for header value "error-key":

    • quoterequest.lineitem.missing.error
    • quoterequest.lineitem.missing-productsku.error
    • quoterequest.lineitem.creation.error

401 Unauthorized - If no authorization is provided or authorization is wrong
403 Forbidden - If the user is not allowed or quote request is not editable anymore

Possible values for header value "error-key":

    • quoterequest.not_editable.error

404 Not found - If customer for <customerID> or user for <userID> or the quote request for <quoteRequestID> is not found

Description

Creates quote line items for a given quote

Cartridge

app_sf_rest_b2b
Application

SMB Web Shop

Product Version

7.7

Product To Version

 
Status

final

JSON

Request data format

application/json

Request related java object

com.intershop.application.storefront.rest.b2b.capi.quote.resource.UserQuoteRequestsLineItemListResource
com.intershop.application.storefront.rest.b2b.capi.quote.resourceobject.QuoteLineItemRO

Request data example

{
    "productSKU": "9438012",
    "quantity": {
        "value": 2
    }
}

Response data format

application/json

Response related java object

com.intershop.application.storefront.rest.b2b.capi.quote.resource.UserQuoteRequestsLineItemListResource
com.intershop.application.storefront.rest.b2b.capi.quote.resourceobject.QuoteLineItemRO

Response data example

{
    "type": "Link",
    "uri": "inSPIRED-inTRONICS_Business-Site/-/customers/AgroNet/users/fbirdo@test.intershop.de/quotes/MgkKDgAsrg0AAAFS7gJb2PSB/items/VA4KDgAsL9AAAAFSy1Jb2PTj",
    "title": "VA4KDgAsL9AAAAFSy1Jb2PTj"
}

XML

Request data format

text/xml

Request related java object

com.intershop.application.storefront.rest.b2b.capi.quote.resource.UserQuoteRequestsLineItemListResource
com.intershop.application.storefront.rest.b2b.capi.quote.resourceobject.QuoteRequestLineItemRO

Request data example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<QuoteRequestLineItem type="QuoteRequestLineItem">
    <productSKU>9438012</productSKU>
    <quantity type="Quantity">
        <value>20</value>
        <unit>piece</unit>
    </quantity>
</QuoteRequestLineItem>

Response data format

text/xml

Response related java object

com.intershop.application.storefront.rest.b2b.capi.quote.resource.UserQuoteRequestsLineItemListResource
com.intershop.application.storefront.rest.b2b.capi.quote.resourceobject.QuoteRequestLineItemRO

Response data example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Link type="Link">
    <title>QYwKDgAVtKIAAAFTXea_cA3M</title>
    <uri>inSPIRED-inTRONICS_Business-Site/-/customers/AgroNet/users/fbirdo@test.intershop.de/quotes/.XYKDgAV2U8AAAFTliS_cA3K/items/QYwKDgAVtKIAAAFTXea_cA3M</uri>
</Link>

Disclaimer

The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

Customer Support
Knowledge Base
Product Resources
Support Tickets