Update a session
POST /checkout/v1/sessions/update
If you want to update an ongoing session you can post to the /update
endpoint using the correct Bearer Token for the session you wish to update
This is valuable if you offer the ability to change cart values of freight options on the checkout page.
All variables are required. If you want to remove values, you should send in empty strings. If there are values you do not want to update, you should send in its existing value
- application/json
Request Body
- currency Currency required
- locale Locale required
- country Country required
- sessionid string required
The sessionid to be updated
cart object[] required
Array [producttype ProductTypePossible values: [
physical
,digital
,discount
,shipping_fee
,sales_tax
,deposit
,surcharge
]The type of items being sold. When using 'discount', the unitPrice should be negative.
reference ProductReferenceThe SKU of the item
name stringquantity integerquantityunit stringunitprice integerUnit price excluding VAT in minor units
taxrate TaxRateThe applicable taxrate in minor units. Eg 25% = 2500
discount integerDiscount value in percentages. 10% = 1000
]merchanturls object required
terms string requiredLink to your terms that the client approves at the point of purchase
notifications string requiredEndpoint for Briqpay to notify you of a successful purchase - ensure to handle different values in session.state
redirecturl string requiredWhere should the customer be redirected after the purchase has been completed?
- amount integer required
The total amount of the order including VAT
reference object required
reference1 stringreference2 string
- 200
successfuly updated session