Update a completed order
POST /order-management/v1/update-order
Update a completed order
- application/json
Request Body
Update an already completed order - Only available on certain payment methods
- sessionid string
- amount integer
The total amount of the updated order including VAT.
billingaddress Address
companyname stringfirstname stringlastname stringstreetaddress stringstreetaddress2 stringzip stringcity stringregion stringState / region. Example: "CA" for California in the US.
cellno stringemail stringshippingaddress Address
companyname stringfirstname stringlastname stringstreetaddress stringstreetaddress2 stringzip stringcity stringregion stringState / region. Example: "CA" for California in the US.
cellno stringemail stringcart object[]
The array of cart items of the updated order.
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
]purchasepaymentmethod object
Update data collected for a paymentmethod
reference stringgln stringemail stringordernumber string- pspflavorname string
Internal integration flavor to apply to the upcoming capture request.
- 200
- 400
Successfully updated order
- application/json
- Schema
- Example (from schema)
Schema
- currency Currency
- locale Locale
- country Country
- orgnr string
billingaddress Address
companyname stringfirstname stringlastname stringstreetaddress stringstreetaddress2 stringzip stringcity stringregion stringState / region. Example: "CA" for California in the US.
cellno stringemail stringshippingaddress Address
companyname stringfirstname stringlastname stringstreetaddress stringstreetaddress2 stringzip stringcity stringregion stringState / region. Example: "CA" for California in the US.
cellno stringemail stringreference object
reference1 stringreference2 stringcart object[]
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
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
The total amount of the order including VAT
- snippet string
tags object
Additional data regarding the purchase
prepaid_invoice booleanmanual_review boolean- sessionid GUID
The unique identifier for this specific session
- state SessionState
Possible values: [
sessioncreated
,purchasecomplete
,paymentprocessing
,purchaserejected
,clientread
,tokencreated
] - createddate date-time
ordernote object
Record of optional order notes that the user has inputed - Default behaviour includes a 'note' key/value
property name*
stringtermsCheckboxes object
Contains data for the checkboxes of the terms module.
property name* object
value booleanheader stringpurchasepaymentmethod object
Additional data regarding the purchase
reservationid stringsessionid stringpspid stringpspname stringThe internal PSPName used
name stringThe customer-facing PSPname
autocapture booleanWas this order alread captured?
invoicemarkdown stringAdditional data added to the invoice markdown field
reference stringAdditional reference added to the invoice
email stringCustomer added an specific email to receive the invoice
pspSupportedOrderOperations object
Possible order management operations that he underlying PSP supports.
updateOrderSupported booleanDefault value:
false
Is this order possible to update?
captureOrderSupported booleanDefault value:
true
Is this order possible to capture?
refundOrderSupported booleanDefault value:
true
Is this order possible to refund?
extraCompanyFields object
Record of custom parameters that Briqpay will share on completed sessions - Contact Briqpay for complete specifications
property name*
stringrulesresult object[]
Get detailed information on what rules triggered for this purchase
Array [pspname stringWhat PSP was triggered
rulesResult object[]
All rules that failed for this method
Array [outcome booleanfriendlyname string]]- token string
The Bearer token to use for all subsequent calls on this session - This is only return on Session Create Calls
{
"currency": "SEK",
"locale": "en-gb",
"country": "SE",
"orgnr": "559249-5336",
"billingaddress": {
"companyname": "Company AB",
"firstname": "Alan",
"lastname": "Smith",
"streetaddress": "Kingstreet 1 B",
"streetaddress2": "careof MrTest",
"zip": "24224",
"city": "Kingcity",
"region": "string",
"cellno": "+4670333444",
"email": "youremail@mail.com"
},
"shippingaddress": {
"companyname": "Company AB",
"firstname": "Alan",
"lastname": "Smith",
"streetaddress": "Kingstreet 1 B",
"streetaddress2": "careof MrTest",
"zip": "24224",
"city": "Kingcity",
"region": "string",
"cellno": "+4670333444",
"email": "youremail@mail.com"
},
"reference": {
"reference1": "string",
"reference2": "string"
},
"cart": [
{
"producttype": "physical",
"reference": "testproduct1",
"name": "Test product",
"quantity": 2,
"quantityunit": "pc",
"unitprice": 1200,
"taxrate": 2500,
"discount": 0
}
],
"merchanturls": {
"terms": "https://merchant.com/terms",
"notifications": "https://merchant.com/api/briqpaycallback",
"redirecturl": "https://merchant.com/thankyou"
},
"amount": 2400,
"snippet": "<div id=\"briqpay\">....</div>",
"tags": {
"prepaid_invoice": true,
"manual_review": true
},
"sessionid": "c22071e0-0a5b-11eb-a630-a9bb6e5bf7ef",
"state": "sessioncreated",
"createddate": "2024-11-01T08:56:17.567Z",
"ordernote": {
"note": "This is the orderNote"
},
"termsCheckboxes": {},
"purchasepaymentmethod": {
"reservationid": "string",
"sessionid": "string",
"pspid": "string",
"pspname": "string",
"name": "string",
"autocapture": true,
"invoicemarkdown": "string",
"reference": "string",
"email": "string",
"pspSupportedOrderOperations": {
"updateOrderSupported": false,
"captureOrderSupported": false,
"refundOrderSupported": false
}
},
"extraCompanyFields": {},
"rulesresult": [
{
"pspname": "string",
"rulesResult": [
{
"outcome": true,
"friendlyname": "string"
}
]
}
],
"token": "nadwa.85hsefapoapndwa"
}
Not possible to update order