Update payments
patch
/ccstore/v1/orders/current/payments
This API is used by the CX Commerce OSF Storefront. This API is currently not used by CX Commerce Classic Storefront but may be used in the future. It may be used in applications outside of CX Commerce Storefront.
Update Store Credit amount or Gift Card amount and/or billing address of one or more payments in the cart (current incomplete order). This will perform a balance enquiry and calculates the amount remaining to be applied. Plus retains the (yet to be authorised) payment in the cart for authorisation during submit.
This endpoint is part of a group of APIs used in conjunction with each other to perform granular actions on the cart (current incomplete order).
Request
Supported Media Types
- application/json
Header Parameters
-
X-CCOrganization: string
Current organization context of the logged in user
-
X-CCVisitorId: string
ID provided by the Oracle Commerce Visit Service to uniquely identify the current visitor. It is required for every request to enable full endpoint capabilities for all shopper types.
Root Schema : updatePayments_request
Type:
Show Source
object
-
items:
array items
Updates payments in the current order.
Nested Schema : items
Type:
Show Source
object
-
amount:
number
Amount to be authorized from the payment.
-
billingAddress:
object billingAddress
The billing address details. Payment type: physicalGiftCard, card, invoice, generic.
-
cardCVV:
string
Credit/Debit card secret pin. Payment type:card.
-
cardNumber:
string
Credit/Debit card number used for payment. Payment type:card.
-
cardType:
string
Credit/Debit card type. e.g. visa. Payment type:card.
-
customProperties:
object customProperties
Custom object with dynamic properties. This will be passed to the webhook request
-
endMonth:
string
Credit/Debit card expiry month. Payment type:card.
-
endYear:
string
Credit/Debit card expiry year. Payment type:card.
-
expiryMonth:
string
Credit/Debit card expiry month. Payment type:card.
-
expiryYear:
string
Credit/Debit card expiry year. Payment type:card.
-
nameOnCard:
string
Name on the credit/debit card. Payment type:card.
-
PONumber:
string
Purchase order number for invoice payment. Payment type:invoice
-
saveCard:
boolean
Property that determines whether to save this card or not.
-
savedCardId:
string
ID of the saved card
-
type:
string
Payment type: card | invoice | physicalGiftCard | cash | storeCredit | generic | inStorePayment | loyaltyPoints.
Nested Schema : billingAddress
Type:
object
The billing address details. Payment type: physicalGiftCard, card, invoice, generic.
Show Source
-
address1:
string
Address snippet.
-
address2:
string
Address snippet.
-
address3:
string
Address snippet.
-
alias:
string
Address alias.
-
city:
string
City.
-
companyName:
string
Company name.
-
country:
string
Country code.
-
county:
string
County.
-
email:
string
Email address.
-
faxNumber:
string
Fax number.
-
firstName:
string
First name.
-
jobTitle:
string
Job title.
-
lastName:
string
Last name.
-
middleName:
string
Middle name.
-
phoneNumber:
string
Phone number.
-
postalCode:
string
Postal code.
-
prefix:
string
Name prefix.
-
state:
string
State code.
-
suffix:
string
Name suffix.
Nested Schema : customProperties
Type:
object
Custom object with dynamic properties. This will be passed to the webhook request
Response
Supported Media Types
- application/json
200 Response
Returned when the operation succeeds.
Root Schema : updatePayments_response
Type:
Show Source
object
-
embedded:
object embedded
The embedded holder property for the current order representation.
-
items:
array items
The list of added payments after the update has been completed.
Nested Schema : embedded
Type:
object
The embedded holder property for the current order representation.
Show Source
Nested Schema : items
Type:
array
The list of added payments after the update has been completed.
Show Source
Nested Schema : model_order
Type:
Show Source
object
-
creationSiteId:
string
The ID of the site on which the order was created. This may differ to siteId value if the site is part of a cart sharing group.Example:
siteUS
-
dynamicProperties:
array dynamicProperties
Read-only list of dynamic properties for the order along with meta-data.
-
giftWithPurchaseInfo:
array giftWithPurchaseInfo
The gift information.
-
giftWithPurchaseOrderMarkers:
array giftWithPurchaseOrderMarkers
giftWithPurchaseOrderMarker information.
-
markers:
array markers
Order markers. Exposed for addCartItems API only.
-
orderAction:
string
The action performed on the order.Example:
order
-
orderId:
string
Order ID of the order.Example:
o10003
-
payments:
array payments
Payment details for the order, including additional properties specific to the payment type.
-
priceListGroup:
object priceListGroup
The price list group object.
-
shippingGroups:
object shippingGroups
The shipping groups in the order.
-
shippingMethod:
object shippingMethod
Shipping Method information of the order.
-
shoppingCart:
object shoppingCart
Shopping cart information.
-
siteId:
string
The ID of the site in which the order was createdExample:
siteUS
Nested Schema : dynamicProperties
Type:
array
Read-only list of dynamic properties for the order along with meta-data.
Show Source
Nested Schema : giftWithPurchaseOrderMarkers
Type:
array
giftWithPurchaseOrderMarker information.
Show Source
Nested Schema : payments
Type:
array
Payment details for the order, including additional properties specific to the payment type.
Show Source
Nested Schema : priceListGroup
Type:
object
The price list group object.
Show Source
-
active:
boolean
Active status of the price list group.Example:
true
-
currency:
object currency
The currency object.
-
deleted:
boolean
Property to determine existence of the price list group.Example:
false
-
displayName:
string
Display name of the price list group.Example:
Default Price Group
-
endDate:
string
end dateExample:
oracle.doceng.json.BetterJsonNull@25274cbf
-
isTaxIncluded:
boolean
Whether tax is included.Example:
false
-
locale:
string
Locale of the price list group.Example:
en_US
-
repositoryId:
string
Repository ID of the price list group.Example:
defaultPriceGroup
-
shippingSurchargePriceList:
object shippingSurchargePriceList
Shipping Surcharge PriceList object.
Nested Schema : shippingGroups
Type:
object
The shipping groups in the order.
Show Source
-
discountInfo:
object discountInfo
Discount Information
-
items:
array items
The array of products in the shipping group.
-
priceInfo:
object priceInfo
Price information of the order.
-
shippingAddress:
object shippingAddress
The shipping address details.
-
shippingGroupId:
string
The ID of the shipping group.Example:
sg10032
-
shippingMethod:
object shippingMethod
The shipping method details for the order.
-
type:
string
The type of shipping group e.g. hardgoodShippingGroup, inStorePickupShippingGroup, inStoreTakeWithShippingGroupExample:
hardgoodShippingGroup
Nested Schema : shippingMethod
Type:
object
Shipping Method information of the order.
Show Source
-
cost:
number
Cost of shipping method.Example:
6.5
-
shippingTax:
number
The shipping tax.Example:
0.46
-
value:
string
Shipping method value.Example:
ground
Nested Schema : shoppingCart
Type:
object
Shopping cart information.
Show Source
-
items:
array items
Items in the cart.
-
numberOfItems:
integer
Number of items in the cart.Example:
1
Nested Schema : items
Type:
Show Source
object
-
id:
string
The ID of the dynamic property.Example:
giftWrapMessage123
-
label:
string
The label of the dynamic property.Example:
Gift Wrap Message123
-
value:
string
The value of the dynamic property. The value type depends on how the dynamic property was defined and might be something other than string, such as boolean or number.Example:
newGSMessage45600
Nested Schema : items
Type:
Show Source
object
-
giftWithPurchaseDetail:
string
String identifying the free gift, usually the repository ID of the gift type.Example:
Product_6Dxyi
-
giftWithPurchaseIdentifier:
integer
An identifier used to track which gift selection in the promotion this is. It allows the commerce item marker to link to this one.Example:
-23234234355
-
giftWithPurchaseQuantityAvailableForSelection:
number
gift quantity available for selectionExample:
1
-
giftWithPurchaseType:
string
The type of the gift. (sku, product)Example:
1
-
promotionId:
string
The gift with purchase promotion IDExample:
promo40001
Nested Schema : items
Type:
Show Source
object
-
automaticQuantity:
number
The quantity of free sku for this gift selection that has already been auto added to the order.Example:
0
-
autoRemove:
boolean
Flag to indicate whether free gifts should be auto removed if the promotion no longer qualifies.Example:
true
-
data:
integer
Identifier to track which gift selection in the promotion this is. It allows the commerce item marker to link to this one.Example:
-24564678912
-
failedQuantity:
number
The amount of automatic free quantity that failed to be added to the cart due to some pricing error, e.g. invalid site.Example:
0
-
giftDetail:
string
String identifying the free gift, usually the repository ID of the gift type.Example:
Product_6Dxyi
-
giftType:
string
The type of the gift. (sku, product)Example:
product
-
key:
string
atg.gwpExample:
atg.gwp
-
quantity:
number
The total quantity of sku for this gift selection.Example:
1
-
removedQuantity:
number
The amount of free quantity that has since been manually removed by a Shopper.Example:
1
-
selectedQuantity:
integer
The quantity of free sku for this gift selection that has already been selected by the Shopper and added to the order.Example:
0
-
targetedQuantity:
number
The quantity of free sku for this gift selection that has already been targeted and made free by the calculator in the order.
-
value:
string
The gift with purchase promotion IDExample:
promo40001
Nested Schema : items
Type:
Show Source
object
-
key:
string
Order marker key. In a marketing campaign marker, a key signifies that it is a campaign marker. Also, it identifies the external marketing system that is the source of the campaign, e.g., campaign_eloquaExample:
campaign_eloqua
-
value:
string
Order marker value. In the case of a marketing campaign, it represents the actual unique campaign IDExample:
78900
Nested Schema : items
Type:
Show Source
object
-
amount:
number
Amount authorized from the payment group.Example:
170
-
balance:
number
Total available balance on the gift card.Example:
100
-
gatewayName:
string
Payment gateway name. e.g. chaseCreditCard.Example:
chaseGiftCard
-
giftCardNumber:
string
Gift card number.Example:
6048347834734734300
-
isAmountRemaining:
boolean
A boolean to decide if more payment can be made from this payment group.Example:
true
-
maskedCardNumber:
string
Masked gift card number.Example:
xxxxxxxxxxxxxxxxxx1234
-
paymentGroupId:
string
Payment group ID.Example:
pg70048
-
paymentMethod:
string
Payment method. e.g. physicalGiftCard/ creditCard.Example:
creditCard
-
paymentState:
string
The state of the payment group. e.g. AUTHORIZED.Example:
INITIAL
-
savedCardId:
string
ID of the saved card associated with the payment group.Example:
sc1234
-
uiIntervention:
string
This decides whether the client has to do some intervention for payment. e.g. SOP.Example:
oracle.doceng.json.BetterJsonNull@6ed0c6ca
Nested Schema : currency
Type:
object
The currency object.
Show Source
-
currencyCode:
string
The currency code.Example:
USD
-
displayName:
string
Display name of the currency.Example:
US Dollar
-
fractionalDigits:
integer
Number of fractional digits for the currency.Example:
2
-
numericCode:
string
Numeric code of the currency.Example:
840
-
repositoryId:
string
Repository ID of the currency.Example:
currency
-
symbol:
string
The currency symbol.Example:
$
Nested Schema : shippingSurchargePriceList
Type:
object
Shipping Surcharge PriceList object.
Show Source
-
repositoryId:
string
Repository ID of the shipping surcharge price list.Example:
shippingSurchargePrices
Nested Schema : discountInfo
Type:
object
Discount Information
Show Source
-
discountDescList:
array discountDescList
The list of all the order discounts.
-
orderDiscount:
number
Order DiscountExample:
0
-
orderImplicitDiscountList:
array orderImplicitDiscountList
Implicit Promotions for the order
-
shippingDiscount:
number
Shipping DiscountExample:
0
Nested Schema : priceInfo
Type:
object
Price information of the order.
Show Source
-
amount:
number
Amount of order.Example:
179
-
currencyCode:
string
Currency code for currency being used.Example:
USD
-
primaryCurrencyTotal:
number
The current total in loyalty points in case of multi currencyExample:
204.06
-
shipping:
number
Shipping price of order.Example:
6.5
-
shippingSurchargeValue:
number
Extra handling costs for shipping the products.Example:
0
-
subTotal:
number
Sub total.Example:
179
-
tax:
number
Tax.Example:
18.56
-
total:
number
Total amount of order.Example:
204.06
-
totalWithoutTax:
string
The total without including tax.Example:
185.5
Nested Schema : shippingAddress
Type:
object
The shipping address details.
Show Source
-
address1:
string
Address snippet.Example:
76 Palm Drive
-
address2:
string
Address snippet.Example:
Florida
-
address3:
string
Address snippet.Example:
Florida
-
alias:
string
Address alias.Example:
Address03#
-
city:
string
City.Example:
Orlando
-
companyName:
string
Company name.Example:
Doctor's Place
-
country:
string
Country.Example:
US
-
county:
string
County.Example:
Florida
-
email:
string
Email address.Example:
john@email.com
-
faxNumber:
string
Fax number.Example:
330193316
-
firstName:
string
First name.Example:
John
-
jobTitle:
string
Job title.Example:
Doctor
-
lastName:
string
Last name.Example:
Smith
-
middleName:
string
Middle name.Example:
Joe
-
phoneNumber:
string
Phone number.Example:
09345456345
-
postalCode:
string
Postal code.Example:
32002
-
prefix:
string
Name prefix.Example:
Mr
-
selectedCountry:
string
Country code.Example:
US
-
state:
string
State.Example:
FL
-
suffix:
string
Name suffix.Example:
John Smith
Nested Schema : shippingMethod
Type:
object
The shipping method details for the order.
Show Source
-
cost:
number
The total cost of shipping.Example:
6.5
-
externalId:
string
External Id.Example:
EXTERNAL1
-
shippingMethodDescription:
string
The description of the shipping method.Example:
Ground
-
shippingTax:
number
The shipping tax.Example:
0.46
-
taxCode:
string
Tax Code.Example:
PC00300
-
taxIncluded:
boolean
Whether tax is includedExample:
true
-
value:
string
The shipping method applied to the order.Example:
ground
Nested Schema : items
Type:
Show Source
object
-
coupon:
string
The coupon code.Example:
FREETATTOO
-
external:
boolean
States whether this promotion was applied by an external system (only present on external promotions).Example:
false
-
promotionDesc:
string
Description of the promotion. Retained for backward compatibility.Example:
Explicit Item Discount - FREETATTOO
-
promotionId:
string
The promotion ID.Example:
explicitItemFreeDiscount
-
promotionLevel:
string
The promotion level.Example:
item
-
promotionName:
string
The display name of the promotion.Example:
Free Tattoo
Nested Schema : items
Type:
Show Source
object
-
external:
boolean
States whether this promotion was applied by an external system (only present on external promotions).Example:
false
-
promotionDesc:
string
Description of the promotion. Retained for backward compatibility.Example:
Implicit Item Discount - 3PercentOff
-
promotionId:
string
The Id of the promotion.Example:
implicitItemPercentDiscount
-
promotionLevel:
string
The promotion level.Example:
item
Nested Schema : items
Type:
Show Source
object
-
asset:
boolean
The flag that determines if the current item is an asset or not.Example:
false
-
availabilityDate:
string
The availability date of commerce Item.Example:
2020-06-30
-
availablePickupDate:
string
The available date (in ISO format) for collection of items to be picked up in store (if shipping group type is inStorePickupShippingGroup).Example:
2020-06-30
-
backOrderQuantity:
number
Back Order Quantity of the Items.Example:
0
-
catRefId:
string
The product variant ID.Example:
Sku_18Cxi
-
commerceItemId:
string
The ID of the commerce item.Example:
ci3000411
-
discountAmount:
number
The value of the discount.Example:
0
-
dynamicProperties:
array dynamicProperties
Array of custom properties at order line item level.
-
inventoryLocationId:
string
Defines the inventory location that services the referenced commerce item.Example:
SiteUS-GlenAllen187
-
onSale:
boolean
Whether the item is on sale or not.Example:
false
-
pointOfNoRevision:
boolean
The boolean that indicates if the item has passed pointOfNoRevision.Example:
false
-
preferredPickupDate:
string
The preferred date (in ISO format) for the items to be picked up in store (if shipping group type is inStorePickupShippingGroup).Example:
2020-06-30
-
preOrderQuantity:
number
The pre order quantity of the items.Example:
0
-
productId:
string
ID of the product in the cart.Example:
Product_18Cxi
-
quantity:
integer
The quantity of the product in this shipping group.Example:
5
-
rawTotalPrice:
number
The raw price of the product.Example:
29.99
-
relationshipType:
string
The type of this relationship. SHIPPINGQUANITY or SHIPPINGQUANTITYREMAINING.
-
returnedQuantity:
integer
Number of referenced items that were returned.Example:
0
-
salePrice:
string
Sale Price.Example:
0
-
shippingSurchargeValue:
number
Extra handling costs for shipping the products.Example:
0
-
siteId:
string
The ID of the site on which the item was added.Example:
siteUS
-
skuProperties:
array skuProperties
Sku properties Information
-
state:
string
state of the commerce ItemExample:
SUBMITTED
-
unitPrice:
number
The price of the item.Example:
29.99
-
variant:
array variant
List of variants for the product.
Nested Schema : dynamicProperties
Type:
array
Array of custom properties at order line item level.
Show Source
Nested Schema : items
Type:
Show Source
object
-
id:
string
The ID of the dynamic property.Example:
dynamicPropertyMode
-
label:
string
The label of the dynamic property.Example:
Mode
-
value:
string
The value of the dynamic property.Example:
pickup
Nested Schema : items
Type:
Show Source
object
-
id:
string
ID of the Dynamic SKU Property.Example:
upcCode
-
name:
string
Name of the Dynamic SKU Property.Example:
UPC Code
-
propertyType:
string
Type that indicates whether it is a base or a custom SKU property,Example:
sku-base
-
value:
string
Value of the Dynamic SKU Property.Example:
12345
Nested Schema : items
Type:
Show Source
object
-
optionName:
string
The variant option name.Example:
color
-
optionValue:
string
The variant option value.Example:
red
Nested Schema : items
Type:
Show Source
object
-
actionCode:
string
The action code that has been set on the item by the configurator system.Example:
Add
-
asset:
boolean
The flag that determines if the current item is an asset or not.Example:
false
-
catRefId:
string
Sku reference ID.Example:
Sku_18Cxi
-
childSkus:
array childSkus
An array with single primary image url for this item's sku, or its default image.
-
commerceItemId:
string
For stateless cart, can be used as a unique line item ID distinguisher.Example:
ci3000411
-
discountAmount:
number
The discount amount.Example:
0
-
displayName:
string
Display Name.Example:
Dora The Explorer
-
dynamicProperties:
array dynamicProperties
Array of custom properties at order line item level.
-
externalData:
array externalData
External data to be associated with a commerce item, provided by a configurator system.
-
giftWithPurchaseCommerceItemMarkers:
array giftWithPurchaseCommerceItemMarkers
giftWithPurchaseCommerceItemMarker information.
-
id:
string
Unique identifier for the line item.Example:
ci3000415
-
isItemValid:
boolean
Whether item is valid or not.Example:
true
-
itemDiscountInfos:
array itemDiscountInfos
Item discount infos
-
originalCommerceItemId:
string
The Commerce Item ID associated with the original item from which item in cancel order is created.Example:
ci3000411
-
pointOfNoRevision:
boolean
The boolean that indicates if the item has passed pointOfNoRevision.
-
price:
number
Price of the items.Example:
21.99
-
primaryImageAltText:
string
The product's primary image alternative text.
-
primaryImageTitle:
string
The product's primary image title.Example:
Samsung - F90BN HD Flash Memory Camcorder
-
primaryThumbImageURL:
string
Product's Primary Thumb Image URL.Example:
ccstore/v1/images/?source=/file/v7023553219093550939/products/Book.jpg&height=100&width=100
-
productId:
string
ID of the product in the cart.Example:
Product_18Cxi
-
quantity:
integer
Quantity of the items.Example:
5
-
rawTotalPrice:
string
Raw Total Price.Example:
179
-
route:
string
The UI route to display the product.
-
shippingSurchargeValue:
number
shipping surcharge value.Example:
0
-
shopperInput:
object shopperInput
Additional Properties Allowed: additionalPropertiesMap of shopper input keys to values
-
siteId:
string
The ID of the site on which the item was added.
-
skuProperties:
array skuProperties
Sku properties Information
-
state:
string
state of the commerce ItemExample:
SUBMITTED
-
variant:
array variant
List of variants for the product.
Nested Schema : childSkus
Type:
array
An array with single primary image url for this item's sku, or its default image.
Show Source
Nested Schema : dynamicProperties
Type:
array
Array of custom properties at order line item level.
Show Source
Nested Schema : externalData
Type:
array
External data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : giftWithPurchaseCommerceItemMarkers
Type:
array
giftWithPurchaseCommerceItemMarker information.
Show Source
Nested Schema : shopperInput
Type:
object
Additional Properties Allowed
Show Source
Map of shopper input keys to values
Nested Schema : items
Type:
Show Source
object
-
id:
string
The ID of the dynamic property.Example:
giftWrapMessage123
-
label:
string
The label of the dynamic property.Example:
Gift Wrap Message123
-
value:
string
The value of the dynamic property. The value type depends on how the dynamic property was defined and might be something other than string, such as boolean or number.Example:
newGSMessage45600
Nested Schema : items
Type:
Show Source
object
-
actionCode:
string
The action code that has been set on the externalData item by the configurator system.
-
name:
string
The name to be associated with the externalData item.
-
values:
object values
The array of values associated with an externalData item.
Nested Schema : values
Type:
object
The array of values associated with an externalData item.
Show Source
-
dynamic_property_key:
string
This property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
Show Source
object
-
automaticQuantity:
number
The quantity of the free gift that this commerce item is making free and was auto added by pricing.Example:
0
-
data:
integer
The gift hash code for this gift with purchase promotion.Example:
-123345466
-
key:
string
atg.gwpExample:
atg.gwp
-
remainingQuantity:
number
The quantity of the commerce item that is not affected by gift with purchase.Example:
0
-
selectedQuantity:
number
The quantity of the free gift that this commerce item is making free and was selected by the shopper.Example:
0
-
targetedQuantity:
number
The quantity of the free gift that this commerce item is making free and was targeted by pricing.Example:
0
-
value:
string
The gift with purchase promotion ID.Example:
promo10002
Nested Schema : items
Type:
Show Source
object
-
amount:
number
Discount amount for itemExample:
10
-
couponCodes:
array couponCodes
Coupon codes applied to the items
-
promotionId:
string
ID of the promotionExample:
promo1111
Nested Schema : couponCodes
Type:
array
Coupon codes applied to the items
Show Source
-
Array of:
string
Example:
TestCouponCode
Nested Schema : items
Type:
Show Source
object
-
id:
string
ID of the Dynamic SKU Property.Example:
displayName
-
name:
string
Name of the Dynamic SKU Property.Example:
name
-
propertyType:
string
Type that indicates whether it is a base or a custom SKU property,Example:
sku-base
-
value:
string
Value of the Dynamic SKU Property.Example:
Sku_18Cxi
Nested Schema : items
Type:
Show Source
object
-
optionName:
string
The variant option name.Example:
color
-
optionValue:
string
The variant option value.Example:
red
Nested Schema : items
Type:
Show Source
object
-
amount:
number
Amount to be authorized from the gift card.
-
balance:
number
Total available balance on the gift card or store credit.
-
cardType:
string
Credit/Debit card type. e.g. visa. Payment type:card.
-
currencyCode:
string
The currency code.
-
customProperties:
object customProperties
Custom object with dynamic properties. This will be passed to the webhook request
-
expiryMonth:
string
Credit/Debit card expiry month. Payment type:card.
-
expiryYear:
string
Credit/Debit card expiry year. Payment type:card.
-
gatewayName:
string
Payment gateway name. e.g. chaseGiftCard.
-
giftCardNumber:
string
Gift card number used for payment. Payment type:physicalGiftCard.
-
giftCardPin:
string
Gift card pin. Payment type:physicalGiftCard.
-
IIN:
string
The issuer identification number (first 6 digits) of the IIN payment type card, e.g. credit card. This is normally used to allow any credit card type based promotions to be applied prior to final checkout. (iinPaymentType only)
-
isAmountRemaining:
boolean
A boolean to decide if more payment can be made from this payment.
-
nameOnCard:
string
Name on the credit/debit card. Payment type:card.
-
paymentExpired:
boolean
True if cached payment details have expried.
-
paymentGroupId:
string
The ID of the Payment Group.
-
paymentMethod:
string
Payment method. e.g. physicalGiftCard/ store credit.
-
paymentState:
string
The state of the payment group. e.g. INITIAL.
-
PONumber:
string
Purchase order number for invoice payment. Payment type:invoice
-
savedCardId:
string
ID of the saved card associated with the payment group.
-
storeCreditNumber:
string
Store credit number used for payment. Payment type:storeCredit.
-
type:
string
Payment type: physicalGiftCard, storeCredit, card, invoice, generic, inStorePayment, cash, loyaltyPoints.
Nested Schema : customProperties
Type:
object
Custom object with dynamic properties. This will be passed to the webhook request
Example Response (application/json)
{
"totalResults":"3",
"offset":"0",
"hasMore":"false",
"limit":"250",
"links":[
{
"method":"PATCH",
"rel":"/rels/updatePayments",
"href":"http://localhost:8080/ccstoreui/v1/orders/current/payments"
},
{
"method":"GET",
"rel":"last",
"href":"http://localhost:8080/ccstoreui/v1/orders/current/payments?offset=0&limit=3"
},
{
"method":"POST",
"rel":"/rels/addPayments",
"href":"http://localhost:8080/ccstoreui/v1/orders/current/payments/add"
},
{
"method":"GET",
"rel":"self",
"href":"http://localhost:8080/ccstoreui/v1/orders/current/payments"
},
{
"method":"GET",
"rel":"canonical",
"href":"http://localhost:8080/ccstoreui/v1/orders/current/payments"
},
{
"method":"GET",
"rel":"first",
"href":"http://localhost:8080/ccstoreui/v1/orders/current/payments?offset=0&limit=250"
}
],
"items":[
{
"paymentGroupId":"pg230431",
"amount":"5",
"customPaymentProperties":{
},
"balance":"9.11",
"gatewayName":"demoGenericGiftCardGateway",
"giftCardNumber":"6035718888920014103",
"paymentMethod":"physicalGiftCard",
"isAmountRemaining":false,
"paymentState":"INITIAL",
"maskedCardNumber":"xxxxxxxxxxxxxxx4103"
},
{
"paymentGroupId":"pg230433",
"amount":"5.88",
"customPaymentProperties":{
},
"balance":"28.61",
"gatewayName":"demoGenericGiftCardGateway",
"giftCardNumber":"987655432",
"paymentMethod":"physicalGiftCard",
"isAmountRemaining":false,
"paymentState":"INITIAL",
"maskedCardNumber":"xxxxx5432"
},
{
"paymentGroupId":"pg230434",
"amount":"4.11",
"customPaymentProperties":{
},
"default_initial":"true",
"paymentMethod":"tokenizedCreditCard",
"isAmountRemaining":true,
"type":"CyberSource",
"paymentState":"INITIAL"
}
],
"embedded":{
"order":{
"shippingGroups":[
{
"taxPriceInfo":{
"cityTax":"0",
"secondaryCurrencyTaxAmount":"0",
"amount":"3.76",
"valueAddedTax":"0",
"countyTax":"1.88",
"isTaxIncluded":false,
"miscTax":"0",
"districtTax":"0",
"stateTax":"1.88",
"countryTax":"0"
},
"priceInfo":{
"amount":"21.99",
"total":"50.75",
"lkpValExcludingFreeShip":null,
"shipping":"25",
"shippingSurchargeValue":"0",
"tax":"3.76",
"subTotal":"21.99",
"currencyCode":"USD",
"totalWithoutTax":"46.99"
},
"discountInfo":{
"orderDiscount":"0",
"shippingDiscount":"0",
"discountDescList":[
]
},
"shippingMethod":{
"secondaryCurrencyTaxAmount":"0",
"shippingTax":"2",
"cost":"25",
"taxIncluded":true,
"externalId":null,
"taxCode":"",
"value":"standardShippingMethod",
"shippingMethodDescription":"Standard"
},
"shippingGroupId":"sg40413",
"shippingAddress":{
"lastName":"Anderson",
"country":"US",
"address3":null,
"address2":null,
"city":"Syracuse",
"prefix":null,
"address1":"21 Cedar Ave",
"postalCode":"13202",
"companyName":null,
"jobTitle":null,
"county":null,
"suffix":null,
"firstName":"Kim",
"phoneNumber":"212-555-1977",
"faxNumber":null,
"alias":"Home",
"middleName":null,
"state":"NY",
"email":null
},
"type":"hardgoodShippingGroup",
"items":[
{
"rawTotalPrice":"21.99",
"returnedQuantity":"0",
"dynamicProperties":[
],
"shippingSurchargeValue":"0",
"availabilityDate":null,
"externalData":[
],
"discountAmount":"0",
"preOrderQuantity":"0",
"commerceItemId":"ci3000422",
"price":"21.99",
"onSale":false,
"stateDetailsAsUser":"The item has been initialized within the shipping group",
"commerceId":"ci3000422",
"unitPrice":"21.99",
"amount":"21.99",
"quantity":"1",
"pointOfNoRevision":false,
"relationshipType":"SHIPPINGQUANTITYREMAINING",
"productId":"Product_36Exy",
"salePrice":"0",
"detailedItemPriceInfo":[
{
"discounted":false,
"secondaryCurrencyTaxAmount":"0",
"amount":"21.99",
"quantity":"1",
"configurationDiscountShare":"0",
"tax":"1.76",
"orderDiscountShare":"0",
"detailedUnitPrice":"21.99",
"currencyCode":"USD"
}
],
"catRefId":"Sku_36Fxy",
"discountInfo":[
],
"siteId":"siteUS",
"shopperInput":{
},
"asset":false,
"backOrderQuantity":"0",
"listPrice":"21.99",
"status":"INITIAL"
}
]
}
],
"creationSiteId":"siteUS",
"orderId":"o30413",
"allowAlternateCurrency":false,
"dynamicProperties":[
],
"payments":[
{
"amount":"50.75",
"gatewayName":"CS-A",
"cardType":null,
"type":"CyberSource",
"IIN":"411111",
"paymentGroupId":"pg30411",
"customPaymentProperties":{
},
"uiIntervention":null,
"paymentMethod":"tokenizedCreditCard",
"isAmountRemaining":true,
"paymentState":"INITIAL",
"currencyCode":"USD",
"cardNumber":null
}
],
"priceListGroup":{
"isTaxIncluded":false,
"endDate":null,
"displayName":"Default Price Group",
"listPriceList":{
"repositoryId":"listPrices"
},
"active":true,
"isPointsBased":false,
"locale":"en_US",
"shippingSurchargePriceList":{
"repositoryId":"shippingSurchargePrices"
},
"deleted":false,
"taxCalculationType":null,
"repositoryId":"defaultPriceGroup",
"salePriceList":{
"repositoryId":"salePrices"
},
"currency":{
"currencyType":null,
"symbol":"$",
"deleted":false,
"displayName":"US Dollar",
"repositoryId":"en_US",
"fractionalDigits":"2",
"currencyCode":"USD",
"numericCode":"840"
},
"id":"defaultPriceGroup",
"includeAllProducts":true,
"startDate":null
},
"orderAction":"order",
"priceInfo":{
"amount":"21.99",
"total":"50.75",
"shipping":"25",
"shippingSurchargeValue":"0",
"tax":"3.76",
"subTotal":"21.99",
"currencyCode":"USD",
"totalWithoutTax":"46.99"
},
"discountInfo":{
"unclaimedCouponMultiPromotions":{
},
"orderCouponsMap":{
},
"orderDiscount":"0",
"shippingDiscount":"0",
"orderImplicitDiscountList":[
],
"unclaimedCouponsMap":{
},
"claimedCouponMultiPromotions":{
}
},
"shoppingCart":{
"numberOfItems":"1",
"items":[
{
"primaryThumbImageURL":"/ccstore/v1/images/?source=/file/v3838394227481959246/products/girldragontattoo_LARGE.jpg&height=100&width=100",
"rawTotalPrice":"21.99",
"displayName":"The Girl with the Dragon Tattoo",
"dynamicProperties":[
],
"shippingSurchargeValue":"0",
"discountAmount":"0",
"externalData":[
],
"description":"A really great movie that you should not miss.",
"isItemValid":true,
"itemDiscountInfos":[
],
"commerceItemId":"ci3000422",
"price":"21.99",
"variant":[
],
"primaryImageAltText":"The Girl with the Dragon Tattoo",
"onSale":false,
"id":"ci3000422",
"state":"Added to order",
"stateKey":"INITIAL",
"unitPrice":"21.99",
"primaryImageTitle":"The Girl with the Dragon Tattoo",
"childSKUs":[
{
"primaryThumbImageURL":null
}
],
"amount":"21.99",
"quantity":"1",
"productId":"Product_36Exy",
"pointOfNoRevision":false,
"salePrice":"0",
"orderDiscountInfos":[
],
"detailedItemPriceInfo":[
{
"discounted":false,
"secondaryCurrencyTaxAmount":"0",
"amount":"21.99",
"quantity":"1",
"configurationDiscountShare":"0",
"tax":"1.76",
"orderDiscountShare":"0",
"detailedUnitPrice":"21.99",
"currencyCode":"USD"
}
],
"giftWithPurchaseCommerceItemMarkers":[
],
"originalCommerceItemId":null,
"taxCode":null,
"catRefId":"Sku_36Fxy",
"skuProperties":[
{
"propertyType":"sku-base",
"name":"listingSKUId",
"id":"listingSKUId",
"value":null
},
{
"propertyType":"sku-base",
"name":"Not Returnable",
"id":"nonreturnable",
"value":false
},
{
"propertyType":"sku-base",
"name":"Name",
"id":"displayName",
"value":null
},
{
"propertyType":"sku-base",
"name":"Active",
"id":"active",
"value":true
},
{
"propertyType":"sku-base",
"name":"Id",
"id":"id",
"value":"Sku_36Fxy"
},
{
"propertyType":"sku-base",
"name":"Discountable",
"id":"discountable",
"value":true
}
],
"route":"/the-girl-with-the-dragon-tattoo/product/Product_36Exy",
"discountInfo":[
],
"siteId":"siteUS",
"shopperInput":{
},
"asset":false,
"listPrice":"21.99"
}
]
},
"giftWithPurchaseInfo":[
],
"siteId":"siteUS",
"markers":[
{
"repositoryId":"mark100005",
"value":"78900",
"key":"campaign_eloqua"
}
],
"giftWithPurchaseOrderMarkers":[
]
}
}
}
400 Response
The error response (which alternates to the default response depending on error reason).
Root Schema : errorModelSingleError
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
Default Response
The error response.
Root Schema : errorModelMultiErrors
Type:
Show Source
object
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
status:
string
The HTTP status code
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code