PUT /v1/payments/ {paymentId}/orderitems

Update cart to make changes to an existing paymentId such as adding or removing products in the cart or updating shipping cost.

Response Class (Status 204)

Parameters

{
  "amount": 0,
  "items": [
    {
      "reference": "string",
      "name": "string",
      "quantity": 0,
      "unit": "string",
      "unitPrice": 0,
      "taxRate": 0,
      "taxAmount": 0,
      "grossTotalAmount": 0,
      "netTotalAmount": 0
    },
  ],
  "shipping": {
    "costSpecified": true
  }
}
  • amount -

    Total amount including VAT

  • items
    • reference -
    • name -
    • quantity -
    • unit -
    • unitPrice -
    • taxRate -
    • taxAmount -
    • grossTotalAmount -
    • netTotalAmount -
  • shipping
    • costSpecified -

Response

HTTP Status Code Reason Response model
204 No content  
400 Bad request
{
  "errors": {}
}
401 Unauthorized  
405 Method not allowed  
500 Unexpected error
{
  "message": "string",
  "code": "string",
  "source": "string"
}

 

Do you have a question or need help?
Follow us
DIBS Payment Services
Stockholm +46 (0)8-527 525 00
Göteborg +46 031-600 800
København +45 7020 3077
Oslo +47 21 55 44 00
Close menu