Edit in GitHubLog an issue
Adobe Commerce only. Learn more

Negotiable quote checkout

When the seller and buyer user agree on the quoted products and their prices, the negotiated quote is ready to be converted to an order.

During the standard checkout process, Adobe Commerce refreshes and recalculates all product and shipping prices as well as taxes. This process is different for the quote that has a negotiated price (discounted offer from the seller). The system keeps the quoted price, but checks the tax amounts. If the tax amounts are outdated, Commerce recalculates them and updates the quote totals. These tax adjustments can change the order grand total. The order and invoice are created with the recalculated taxes and new grand total. All other prices in the quote remain unchanged.

The same rule is applied when the quote has the proposed shipping price and the shipping taxes change on the checkout. The buyer pays the updated price, but this does not affect the other quote amounts.

The following diagram illustrates the workflow for B2B for Adobe Commerce negotiable quote checkouts:

Checkout process

Manage shipping addresses

A negotiated quote can be initiated without a shipping address. However, before the order can be placed, the shipping address must be provided.

REST Endpoints:

Copied to your clipboard
POST /V1/negotiable-carts/:cartId/estimate-shipping-methods
POST /V1/negotiable-carts/:cartId/estimate-shipping-methods-by-address-id
POST /V1/negotiable-carts/:cartId/shipping-information

Estimate shipping costs specifying an address

This call takes a full shipping address as input and estimates shipping fees. It returns a list of available shipping methods.

Service Name:

negotiableQuoteShipmentEstimationV1

Sample Usage:

POST <host>/rest/<store_code>/V1/negotiable-carts/86/estimate-shipping-methods

Copied to your clipboard
{
"address": {
"street": [
"100 Big Tree Avenue"
],
"city": "San Francisco",
"country_id": "US",
"region": "California",
"region_id": "12",
"postcode": "99999",
"telephone": "4155551212",
"firstname": "John",
"lastname": "Doe"
}
}

Estimate shipping costs specifying an address ID

This call takes an address ID as input and estimates shipping fees. It returns a list of available shipping methods.

Service Name:

negotiableQuoteShippingMethodManagementV1

Sample Usage:

POST <host>/rest/<store_code>/V1/negotiable-carts/86/estimate-shipping-methods-by-address-id

Copied to your clipboard
{
"addressId": 2
}

Set the shipping and billing information

In this call, you specify the shipping and billing addresses, as well as the selected shipping_carrier_code and shipping_method_code. Commerce returns a list of payment options and calculates the order totals.

Service Name:

negotiableQuoteShippingMethodManagementV1

Sample Usage:

POST <host>/rest/<store_code>/V1/negotiable-carts/86/shipping-information

Copied to your clipboard
{
"addressInformation": {
"shipping_address": {
"region": "California",
"region_id": 12,
"country_id": "US",
"street": [
"100 Big Tree Avenue"
],
"postcode": "99999",
"city": "San Francisco",
"telephone": "512-555-1111",
"firstname": "Jane",
"lastname": "Doe"
},
"billing_address": {
"region": "New York",
"region_id": 43,
"region_code": "NY",
"country_id": "US",
"street": [
"123 Oak Ave"
],
"postcode": "10577",
"city": "Purchase",
"firstname": "Jane",
"lastname": "Doe",
"email": "jdoe@example.com",
"telephone": "512-555-1111"
},
"shipping_carrier_code": "flatrate",
"shipping_method_code": "flatrate"
}
}

Manage billing addresses

If the billing address isn't provided through another call, use the POST /V1/negotiable-carts/:cartId/billing-address to specify it.

Service Name:

negotiableQuoteBillingAddressManagementV1

REST Endpoints:

Copied to your clipboard
POST /V1/negotiable-carts/:cartId/billing-address
GET /V1/negotiable-carts/:cartId/billing-address

Set the billing address

This call assigns a billing address to the specified negotiable quote.

Sample Usage:

POST <host>/rest/<store_code>/V1/negotiable-carts/86/billing-address

Copied to your clipboard
{ "address": {
"region": "New York",
"region_id": 43,
"region_code": "NY",
"country_id": "US",
"street": [
"123 Oak Ave"
],
"postcode": "10577",
"city": "Purchase",
"firstname": "Jane",
"lastname": "Doe",
"customer_id": 4,
"email": "jdoe@example.com",
"telephone": "(512) 555-1111",
"same_as_billing": 1
}
}

Return the billing address

This call returns the billing address for the specified negotiable quote.

Sample Usage:

GET <host>/rest/<store_code>/V1/negotiable-carts/86/billing-address

Copied to your clipboard
// Not applicable

Manage cart coupons

B2B allows coupons to be used toward payment.

Service Name:

negotiableQuoteCouponManagementV1

REST Endpoints:

Copied to your clipboard
PUT /V1/negotiable-carts/:cartId/coupons/:couponCode
DELETE /V1/negotiable-carts/:cartId/coupons

Apply a coupon to a negotiable quote

If the initial quote applies a coupon to the totals, Commerce ignores the coupon when it converts the quote to a negotiable quote. However, you can apply a coupon at checkout.

Sample Usage:

PUT <host>/rest/<store_code>/V1/negotiable-carts/6/coupons/SAVE5

Copied to your clipboard
// Not applicable

Manage gift cards

B2B allows gift cards to be used as payment.

Service Name:

negotiableQuoteGiftCardAccountManagementV1

REST Endpoints:

Copied to your clipboard
POST /V1/negotiable-carts/:cartId/giftCards
DELETE /V1/negotiable-carts/:cartId/giftCards/:giftCardCode

Apply a gift card to a negotiable quote

If the initial quote applies a gift card to the totals, Commerce ignores the gift card when it converts the quote to a negotiable quote. However, you can apply a gift card at checkout.

Sample Usage:

POST <host>/rest/<store_code>/V1/negotiable-carts/6/giftCards

Copied to your clipboard
{
"giftCardAccountData": {
"gift_cards": [
"00HELHQED6RV"
]
}
}

Delete a gift card from at checkout

This call removes a gift card that has been applied to a negotiable quote.

Sample Usage:

DELETE <host>/rest/<store_code>/V1/negotiable-carts/6/giftCards/00HELHQED6RV

Copied to your clipboard
// Not applicable

Manage payment information

When you submit payment information, Commerce creates an order and sends an order confirmation to the buyer.

Service Name:

negotiableQuotePaymentInformationManagementV1

REST Endpoints:

Copied to your clipboard
POST /V1/negotiable-carts/:cartId/payment-information
GET /V1/negotiable-carts/:cartId/payment-information
POST /V1/negotiable-carts/:cartId/set-payment-information

Set payment information without placing the order

This call sets payment information and the billing address for the negotiable quote. However, Commerce does not create an order afterward.

Sample Usage:

POST <host>/rest/<store_code>/V1/negotiable-carts/86/set-payment-information

Copied to your clipboard
{ "paymentMethod": {
"po_number": "A123456",
"method": "checkmo"
},
"billing_address": {
"region": "New York",
"region_id": 43,
"region_code": "NY",
"country_id": "US",
"street": [
"123 Oak Ave"
],
"postcode": "10577",
"city": "Purchase",
"firstname": "Jane",
"lastname": "Doe",
"email": "jdoe@example.com",
"telephone": "512-555-1111"
}
}

Set payment information and place the order

This call sets payment information and the billing address for the negotiable quote, then creates an order.

Sample Usage:

POST <host>/rest/<store_code>/V1/negotiable-carts/86/payment-information

Copied to your clipboard
{ "paymentMethod": {
"po_number": "A123456",
"method": "checkmo"
},
"billing_address": {
"region": "New York",
"region_id": 43,
"region_code": "NY",
"country_id": "US",
"street": [
"123 Oak Ave"
],
"postcode": "10577",
"city": "Purchase",
"firstname": "Jane",
"lastname": "Doe",
"email": "jdoe@example.com",
"telephone": "512-555-1111"
}
}

Return payment information

This call payment information and all information from the totals object.

Sample Usage:

GET <host>/rest/<store_code>/V1/negotiable-carts/86/payment-information

Copied to your clipboard
// Not applicable

Review cart totals

This call is similar to GET /V1/negotiable-carts/:cartId/payment-information, except it does not return payment information.

Service Name:

negotiableQuoteCartTotalRepositoryV1

REST Endpoints:

Copied to your clipboard
GET /V1/negotiable-carts/:cartId/totals

Sample Usage:

GET <host>/rest/<store_code>/V1/negotiable-carts/86/totals

Copied to your clipboard
// Not applicable
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.