Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICheckoutOperationResult

Success and failures during the checkout process will be returned in this format Error codes are inspired by HTTP

100: continue (to payment) 200: success (checkout started) 201: created (new cart) 204: no content (no payment required) 208: already reported (order already paid) 400: bad request (place/ship not possible) 406: conflict (partial shipment does not match ship lines not possible) 409: conflict (order cannot complete due to invalid order requirements) 412: pre-requisite failed (invalid order requirements starting checkout) 417: expectation failed (invalid order requirements starting or finalizing checkout)

export
interface

ICheckoutOperationResult

Hierarchy

  • ICheckoutOperationResult

Index

Properties

code

code: 100 | 200 | 201 | 204 | 208 | 400 | 406 | 409 | 412 | 417 | 424

Optional error

error: undefined | string

Optional invalid

invalid: string[]

message

message: string

Optional type

type: "SUCCESS" | "ERROR"