{"openapi":"3.0.4","info":{"title":"Norce Checkout - Walley Checkout Adapter API","description":"Build 2026-10-12 13:53:01\n\nThe Walley Checkout Adapter API is used to create and manage a Walley Checkout Order.","version":"0.0.1"},"servers":[{"url":"https://checkout-walley-adapter.norce.tech","description":"Production server"}],"paths":{"/api/checkout/v1/orders/{order_id}/payments":{"post":{"tags":["Payments"],"summary":"Initialize Payment","description":"Initialize a new Walley Checkout payment session for an existing Norce order.","operationId":"InitializePayment","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.\n<example>norce</example>","required":true,"schema":{"type":"string"}},{"name":"x-channel","in":"header","description":"Channel identifier.\n<example>1</example>","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalleyCheckoutOrder"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"Bearer":[]}]}},"/api/checkout/v1/orders/{order_id}/payments/{payment_id}":{"get":{"tags":["Payments"],"summary":"Get Payment","description":"Get an existing Walley Checkout payment session. May be used to get the Walley html snippet, for example after the Walley Checkout order has been confirmed.","operationId":"GetPayment","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.\n<example>norce</example>","required":true,"schema":{"type":"string"}},{"name":"x-channel","in":"header","description":"Channel identifier.\n<example>1</example>","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalleyCheckoutOrder"}}}},"404":{"description":"Not Found","content":{"application/json":{}}}},"security":[{"Bearer":[]}]}},"/api/checkout/v1/orders/{order_id}/payments/{payment_id}/remove":{"post":{"tags":["Payments"],"summary":"Remove a Walley Checkout payment","description":"Requires an existing Norce order. Will do soft delete on any payments or shippings by setting state to removed. Will delete any hooks added when creating a Walley Checkout payment.","operationId":"RemoveWalleyCheckoutOrder","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.\n<example>norce</example>","required":true,"schema":{"type":"string"}},{"name":"x-channel","in":"header","description":"Channel identifier.\n<example>1</example>","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{}}}},"security":[{"Bearer":[]}]}},"/api/checkout/v1/callback/orders/{order_id}/payments/{payment_id}/notification":{"get":{"tags":["Walley Checkout Callbacks"],"summary":"Notification","description":"Consumes notifications when a Walley Checkout order is completed or invoice status is updated.","operationId":"Notification","parameters":[{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}},{"name":"merchant","in":"query","description":"Merchant identifier","required":true,"schema":{"type":"string"}},{"name":"channel","in":"query","description":"Merchant channel","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/checkout/v1/callback/orders/{order_id}/payments/{payment_id}/validation":{"get":{"tags":["Walley Checkout Callbacks"],"summary":"Validation","description":"Validates Walley Checkout order against Norce order requirements such as currently in stock, correct pricing etc.","operationId":"Validation","parameters":[{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}},{"name":"merchant","in":"query","description":"Merchant identifier","required":true,"schema":{"type":"string"}},{"name":"channel","in":"query","description":"Merchant channel","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalleyCheckoutValidationSuccess"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalleyCheckoutValidationCustomError"}}}}}}},"/api/checkout/v1/callback/orders/{order_id}/payments/{payment_id}/customer-update":{"post":{"tags":["Walley 'Client-side events' Callbacks"],"summary":"Update Customer","description":"Updates customer information on Norce order with latest customer information from Walley.","operationId":"UpdateCustomer","parameters":[{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}},{"name":"merchant","in":"query","description":"Merchant identifier","required":true,"schema":{"type":"string"}},{"name":"channel","in":"query","description":"Merchant channel","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/checkout/v1/callback/orders/{order_id}/payments/{payment_id}/shipping-option-update":{"post":{"tags":["Walley 'Client-side events' Callbacks"],"summary":"Update Shipping Option","description":"Updates shipping option on Norce order with latest shipping information from Walley.","operationId":"ShippingOptionUpdate","parameters":[{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}},{"name":"merchant","in":"query","description":"Merchant identifier","required":true,"schema":{"type":"string"}},{"name":"channel","in":"query","description":"Merchant channel","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/checkout/v1/callback/orders/{order_id}/payments/{payment_id}/state-changed":{"post":{"tags":["Callbacks"],"summary":"State Changed","description":"Updates the Walley Checkout order when the Norce state changes, ex. transitioning back from processing to checkout.","operationId":"StateChanged","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.\n<example>norce</example>","required":true,"schema":{"type":"string"}},{"name":"x-channel","in":"header","description":"Channel identifier.\n<example>1</example>","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Updated order","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Order"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PatchOperation"}}}}},"404":{"description":"Not Found","content":{"application/json":{}}}},"security":[{"Bearer":[]}]}},"/api/checkout/v1/callback/orders/{order_id}/payments/{payment_id}/cart-changed":{"post":{"tags":["Callbacks"],"summary":"Cart Changed","description":"Updates the Walley Checkout order when the Norce cart changes, ex. if a new item is added to the cart or the amount changes.","operationId":"CartChanged","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.\n<example>norce</example>","required":true,"schema":{"type":"string"}},{"name":"x-channel","in":"header","description":"Channel identifier.\n<example>1</example>","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Updated order","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Order"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PatchOperation"}}}}},"202":{"description":"Accepted"},"404":{"description":"Not Found","content":{"application/json":{}}}},"deprecated":true,"security":[{"Bearer":[]}]}},"/api/checkout/v1/callback/orders/{order_id}/payments/{payment_id}/update-payment":{"post":{"tags":["Norce Callbacks"],"summary":"Handle order changes","description":"Responds with patch for updated payment given an updated order.","operationId":"UpdatePayment","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.\n<example>norce</example>","required":true,"schema":{"type":"string"}},{"name":"x-channel","in":"header","description":"Channel identifier.\n<example>1</example>","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Updated order","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Order"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PatchOperation"}}}}},"400":{"description":"Bad Request","content":{"application/json":{}}},"404":{"description":"Not Found","content":{"application/json":{}}},"423":{"description":"Locked","content":{"application/json":{}}}},"security":[{"Bearer":[]}]}},"/api/order/v1/orders/{order_id}/payments/{payment_id}/refresh":{"post":{"tags":["Order Management"],"summary":"Refresh the list of available PaymentActions for a Walley Checkout Order Payment","description":"Refreshes the list of available payment actions on the Walley Checkout payment, to reflect the current payment state","operationId":"Refresh","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.\n<example>norce</example>","required":true,"schema":{"type":"string"}},{"name":"x-channel","in":"header","description":"Channel identifier.\n<example>1</example>","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{}}},"404":{"description":"Not Found","content":{"application/json":{}}}},"security":[{"Bearer":[]}]}},"/api/order/v1/orders/{order_id}/payments/{payment_id}/cancel":{"post":{"tags":["Order Management"],"summary":"Cancel Walley Order","description":"Used to cancel a Walley order","operationId":"CancelWalleyOrder","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.\n<example>norce</example>","required":true,"schema":{"type":"string"}},{"name":"x-channel","in":"header","description":"Channel identifier.\n<example>1</example>","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalleyCheckoutOrder"}}}}},"security":[{"Bearer":[]}]}},"/api/order/v1/orders/{order_id}/payments/{payment_id}/capture":{"post":{"tags":["Order Management"],"summary":"Capture Walley order","description":"Used to capture a Walley order","operationId":"CaptureWalleyOrder","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.\n<example>norce</example>","required":true,"schema":{"type":"string"}},{"name":"x-channel","in":"header","description":"Channel identifier.\n<example>1</example>","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalleyCheckoutOrder"}}}}},"security":[{"Bearer":[]}]}},"/api/order/v1/orders/{order_id}/payments/{payment_id}/refund":{"post":{"tags":["Order Management"],"summary":"Refund Walley order","description":"Used to refund a Walley order","operationId":"RefundWalleyOrder","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.\n<example>norce</example>","required":true,"schema":{"type":"string"}},{"name":"x-channel","in":"header","description":"Channel identifier.\n<example>1</example>","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalleyCheckoutOrder"}}}}},"security":[{"Bearer":[]}]}},"/api/order/v1/orders/{order_id}/payments/{payment_id}/reauthorize":{"post":{"tags":["Order Management"],"summary":"Reauthorize Walley order (upsell)","description":"Used to reauthorize a Walley order for upsell. Only works for credit orders with status NotActivated or PartActivated.","operationId":"ReauthorizeWalleyOrder","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.\n<example>norce</example>","required":true,"schema":{"type":"string"}},{"name":"x-channel","in":"header","description":"Channel identifier.\n<example>1</example>","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Reauthorize request with amount and items","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ReauthorizeOrderRequest"}]}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReauthorizeOrderResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{}}}},"security":[{"Bearer":[]}]}},"/api/order/v1/orders/{order_id}/payments/{payment_id}/reauthorize/{reauthorize_id}":{"get":{"tags":["Order Management"],"summary":"Get reauthorize status for Walley order","description":"Used to poll the status of a reauthorize operation when HTTP 201 was returned.","operationId":"GetReauthorizeStatus","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.\n<example>norce</example>","required":true,"schema":{"type":"string"}},{"name":"x-channel","in":"header","description":"Channel identifier.\n<example>1</example>","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}},{"name":"reauthorize_id","in":"path","description":"Reauthorize operation identifier","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReauthorizeStatusResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{}}}},"security":[{"Bearer":[]}]}},"/api/order/v1/orders/{order_id}/payments/{payment_id}/upsell/complete":{"post":{"tags":["Order Management"],"summary":"Complete upsell window for Walley order","description":"Completes the upsell window for a Walley order. Called automatically by delayed notification or manually to close the upsell window early.","operationId":"CompleteUpsell","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.\n<example>norce</example>","required":true,"schema":{"type":"string"}},{"name":"x-channel","in":"header","description":"Channel identifier.\n<example>1</example>","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment identifier","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{}}}},"security":[{"Bearer":[]}]}}},"components":{"schemas":{"Addon":{"type":"object","properties":{"reference":{"type":"string"},"price":{"type":"number","format":"double"}},"additionalProperties":false},"Address":{"type":"object","properties":{"customerType":{"allOf":[{"$ref":"#/components/schemas/CustomerType"}]},"givenName":{"type":"string"},"familyName":{"type":"string"},"careOf":{"type":"string"},"reference":{"type":"string"},"organizationName":{"type":"string"},"streetAddress":{"type":"string"},"streetAddress2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"nationalIdentificationNumber":{"type":"string"},"organizationIdentificationNumber":{"type":"string"},"attributes":{"type":"object","additionalProperties":{"nullable":true}}},"additionalProperties":false},"Callback":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"adapterId":{"type":"string"},"event":{"allOf":[{"$ref":"#/components/schemas/CallbackEvent"}]},"url":{"type":"string"}},"additionalProperties":false},"CallbackEvent":{"enum":["validate","accept","complete"],"type":"string"},"Cart":{"type":"object","properties":{"reference":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/Discount"}},"total":{"allOf":[{"$ref":"#/components/schemas/Price"}]}},"additionalProperties":false},"Consent":{"type":"object","properties":{"id":{"type":"string"},"checked":{"type":"boolean"},"text":{"type":"string"},"required":{"type":"boolean"}},"additionalProperties":false},"Customer":{"required":["type"],"type":"object","properties":{"billing":{"allOf":[{"$ref":"#/components/schemas/Address"}]},"shipping":{"allOf":[{"$ref":"#/components/schemas/Address"}]},"type":{"allOf":[{"$ref":"#/components/schemas/CustomerType"}]},"loyalty":{"allOf":[{"$ref":"#/components/schemas/Loyalty"}]},"attributes":{"type":"object","additionalProperties":{"nullable":true}}},"additionalProperties":false},"CustomerType":{"enum":["person","organization"],"type":"string"},"DeliveryDetails":{"type":"object","properties":{"carrier":{"type":"string"},"class":{"type":"string"},"product":{"allOf":[{"$ref":"#/components/schemas/Product"}]},"pickupLocation":{"allOf":[{"$ref":"#/components/schemas/PickupLocation"}]}},"additionalProperties":false},"Discount":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/DiscountType"}]},"name":{"type":"string"},"code":{"type":"string"},"value":{"allOf":[{"$ref":"#/components/schemas/Price"}]},"attributes":{"type":"object","additionalProperties":{"nullable":true}}},"additionalProperties":false},"DiscountType":{"enum":["item","shipping"],"type":"string"},"Error":{"type":"object","properties":{"code":{"type":"string","description":"Error code","example":"cart-not-found"},"message":{"type":"string","description":"Detailed error information","example":"Cart with id:{id} not found."},"error_text":{"type":"string","readOnly":true}},"additionalProperties":false},"Hook":{"type":"object","properties":{"id":{"type":"string","readOnly":true},"adapterId":{"type":"string"},"subscribeTo":{"type":"string"},"target":{"type":"string"},"invoke":{"type":"string"}},"additionalProperties":false},"Item":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"sku":{"type":"string"},"url":{"type":"string"},"imageUrl":{"type":"string"},"quantity":{"type":"integer","format":"int32"},"unit":{"type":"string"},"price":{"allOf":[{"$ref":"#/components/schemas/Price"}]},"total":{"allOf":[{"$ref":"#/components/schemas/Price"}]},"originalTotal":{"allOf":[{"$ref":"#/components/schemas/Price"}]},"vatRate":{"type":"number","format":"double"},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/Discount"}},"logistics":{"allOf":[{"$ref":"#/components/schemas/Logistics"}]},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"attributes":{"type":"object","additionalProperties":{"nullable":true}},"upsell":{"type":"boolean"}},"additionalProperties":false},"Logistics":{"type":"object","properties":{"weight":{"type":"integer","format":"int32"},"height":{"type":"integer","format":"int32"},"width":{"type":"integer","format":"int32"},"length":{"type":"integer","format":"int32"},"tags":{"type":"array","items":{"type":"string"}},"shippingDate":{"type":"string","format":"date-time"}},"additionalProperties":false},"Loyalty":{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string"},"promotions":{"type":"array","items":{"$ref":"#/components/schemas/LoyaltyPromotion"}},"rewardVouchers":{"type":"array","items":{"$ref":"#/components/schemas/LoyaltyRewardVoucher"}},"attributes":{"type":"object","additionalProperties":{"nullable":true}}},"additionalProperties":false},"LoyaltyPromotion":{"type":"object","properties":{"id":{"type":"string"},"externalCode":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"LoyaltyRewardVoucher":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"voucherNumber":{"type":"string"},"externalCode":{"type":"string"}},"additionalProperties":false},"Order":{"type":"object","properties":{"id":{"type":"string"},"merchant":{"type":"string"},"channel":{"type":"string"},"reference":{"type":"string"},"created":{"type":"string","format":"date-time"},"lastModified":{"type":"string","format":"date-time"},"state":{"allOf":[{"$ref":"#/components/schemas/State"}]},"culture":{"type":"string"},"currency":{"type":"string"},"country":{"type":"string"},"cart":{"allOf":[{"$ref":"#/components/schemas/Cart"}]},"shippings":{"type":"array","items":{"$ref":"#/components/schemas/Shipping"}},"payments":{"type":"array","items":{"$ref":"#/components/schemas/Payment"}},"customer":{"allOf":[{"$ref":"#/components/schemas/Customer"}]},"consents":{"type":"array","items":{"$ref":"#/components/schemas/Consent"}},"validations":{"type":"array","items":{"$ref":"#/components/schemas/Callback"}},"hooks":{"type":"array","items":{"$ref":"#/components/schemas/Hook"}},"notifications":{"type":"array","items":{"$ref":"#/components/schemas/Callback"}},"total":{"allOf":[{"$ref":"#/components/schemas/Price"}]},"attributes":{"type":"object","additionalProperties":{"nullable":true}}},"additionalProperties":false},"OrderStatus":{"enum":["checkout","processing","accepted","completed","declined","removed"],"type":"string"},"PatchOperation":{"type":"object","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{}},"additionalProperties":false},"Payment":{"type":"object","properties":{"id":{"type":"string"},"adapterId":{"type":"string"},"name":{"type":"string"},"merchant":{"type":"string"},"channel":{"type":"string"},"currency":{"type":"string"},"type":{"allOf":[{"$ref":"#/components/schemas/PaymentType"}]},"orderId":{"type":"string"},"amount":{"type":"number","format":"double"},"upperLimitAmount":{"type":"number","format":"double"},"state":{"allOf":[{"$ref":"#/components/schemas/PaymentState"}]},"reference":{"type":"string"},"attributes":{"type":"object","additionalProperties":{"nullable":true}},"actions":{"type":"array","items":{"$ref":"#/components/schemas/PaymentAction"}},"upsell":{"allOf":[{"$ref":"#/components/schemas/Upsell"}]},"voucher":{"allOf":[{"$ref":"#/components/schemas/Voucher"}]}},"additionalProperties":false},"PaymentAction":{"type":"object","properties":{"id":{"type":"string"},"adapterId":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"}},"additionalProperties":false},"PaymentState":{"enum":["intent","removed","processing","failed","confirmed","pending","declined","reserved","credited","captured","cancelled","refunded"],"type":"string"},"PaymentType":{"enum":["default","prepaid","voucher"],"type":"string"},"PickupLocation":{"type":"object","properties":{"reference":{"type":"string"},"name":{"type":"string"},"address":{"allOf":[{"$ref":"#/components/schemas/ShippingAddress"}]}},"additionalProperties":false},"Price":{"type":"object","properties":{"includingVat":{"type":"number","format":"double"},"excludingVat":{"type":"number","format":"double"}},"additionalProperties":false},"ProblemDetails":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer","format":"int32"},"detail":{"type":"string"},"instance":{"type":"string"}},"additionalProperties":{}},"Product":{"type":"object","properties":{"reference":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"ReauthorizeOrderItem":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"},"unitPrice":{"type":"number","format":"double"},"quantity":{"type":"integer","format":"int32"},"vat":{"type":"number","format":"double"}},"additionalProperties":false},"ReauthorizeOrderRequest":{"type":"object","properties":{"amount":{"type":"number","format":"double"},"description":{"type":"string"},"actionReference":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ReauthorizeOrderItem"}},"idempotencyKey":{"type":"string"}},"additionalProperties":false},"ReauthorizeOrderResponse":{"type":"object","properties":{"statusCode":{"type":"integer","format":"int32"},"location":{"type":"string"},"reauthorizeId":{"type":"string"},"requiresPolling":{"type":"boolean"},"isCompleted":{"type":"boolean"}},"additionalProperties":false},"ReauthorizeStatusResponse":{"type":"object","properties":{"status":{"type":"string"},"orderId":{"type":"string"},"isCompleted":{"type":"boolean"},"isFailed":{"type":"boolean"}},"additionalProperties":false},"Shipping":{"type":"object","properties":{"id":{"type":"string"},"merchant":{"type":"string"},"channel":{"type":"string"},"state":{"allOf":[{"$ref":"#/components/schemas/ShippingState"}]},"reference":{"type":"string"},"tmsReference":{"type":"string"},"orderId":{"type":"string"},"adapterId":{"type":"string"},"name":{"type":"string"},"total":{"allOf":[{"$ref":"#/components/schemas/Price"}]},"vatRate":{"type":"number","format":"double"},"deliveryDetails":{"allOf":[{"$ref":"#/components/schemas/DeliveryDetails"}]},"addons":{"type":"array","items":{"$ref":"#/components/schemas/Addon"}},"attributes":{"type":"object","additionalProperties":{"nullable":true}}},"additionalProperties":false},"ShippingAddress":{"type":"object","properties":{"streetAddress":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string"}},"additionalProperties":false},"ShippingState":{"enum":["intent","removed","processing","failed","confirmed"],"type":"string"},"State":{"type":"object","properties":{"currentStatus":{"allOf":[{"$ref":"#/components/schemas/OrderStatus"}]},"transitions":{"type":"array","items":{"$ref":"#/components/schemas/Transition"},"readOnly":true}},"additionalProperties":false},"Transition":{"type":"object","properties":{"status":{"allOf":[{"$ref":"#/components/schemas/OrderStatus"}],"readOnly":true},"timeStamp":{"type":"string","format":"date-time","readOnly":true}},"additionalProperties":false},"Upsell":{"type":"object","properties":{"eligible":{"type":"boolean"},"expiration":{"type":"string","format":"date-time"},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/UpsellTransaction"}},"attributes":{"type":"object","additionalProperties":{"nullable":true}}},"additionalProperties":false},"UpsellState":{"enum":["created","actionRequired","completed","failed"],"type":"string"},"UpsellTransaction":{"type":"object","properties":{"id":{"type":"string"},"state":{"allOf":[{"$ref":"#/components/schemas/UpsellState"}]},"itemIds":{"type":"array","items":{"type":"string"}},"attributes":{"type":"object","additionalProperties":{"nullable":true}}},"additionalProperties":false},"Voucher":{"type":"object","properties":{"cardId":{"type":"string"}},"additionalProperties":false},"WalleyCheckoutOrder":{"type":"object","properties":{"paymentId":{"type":"string","description":"Payment Id"},"publicToken":{"type":"string","description":"The PublicToken is used to render the Checkout iframe. The public token has a limited lifetime of 168 hours (7\ndays).","example":"public-SE-20e84dd04dcc3da405696d6f15b5154a9572f64d2394f461"},"htmlSnippet":{"type":"string","description":"Place this script on the pages where you want the Checkout to appear.\nThe value provided in the data-token attribute corresponds to the public\ntoken received when initializing the Checkout session.\nWhen the script is executed, the Checkout iframe is dynamically fetched and rendered on the page.","example":"\n                <script src=\"https://checkout.uat.walleydev.com/walley-checkout-loader.js\"\n                data-token=\"public-SE-20e84dd04dcc3da405696d6f15b5154a9572f64d2394f461\" data-version=\"v2\"></script>\n            "}},"additionalProperties":false},"WalleyCheckoutValidationCustomError":{"type":"object","properties":{"title":{"type":"string","description":"The title of the validation failure displayed in the Checkout. Truncated to max 512 chars."},"message":{"type":"string","description":"The message with a more descriptive text why the validation failed, and how the customer should proceed. Truncated to max 512 chars."}},"additionalProperties":false},"WalleyCheckoutValidationSuccess":{"type":"object","properties":{"orderReference":{"type":"string","description":"Order reference to the order just created during the validate call. This can later be used to track the purchase\nwith merchant services. Max 50 chars."}},"additionalProperties":false}},"securitySchemes":{"Bearer":{"type":"apiKey","description":"Authorization header using the bearer scheme. Example: 'Bearer a3bcdABCaB12abc3AbCDAB5AbcABCaBcABC5ab3c5A0='","name":"Authorization","in":"header"}}}}