{"openapi":"3.0.4","info":{"title":"Norce Checkout - Paypal Adapter API","description":"Build 2026-10-20 07:08:35\n\nThe Paypal Adapter API is used to create and manage a Paypal Order.","version":"1.0.0"},"paths":{"/api/checkout/v1/callback/orders/{order_id}/payments/{payment_id}/shipping-address-change":{"post":{"tags":["Paypal 'Client-side events' Callbacks"],"summary":"Shipping address change. The Norce order will be updated with the latest selected shipping address from PayPal","description":"Shipping address change. The Norce order will be updated with the latest selected shipping address from PayPal.","operationId":"PaypalCheckoutOrderShippingAddressChange","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"merchant","in":"query","required":true,"schema":{"type":"string"}},{"name":"channel","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PaypalShippingAddressChangeRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaypalShippingAddressChangeResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{}}},"404":{"description":"Not Found","content":{"application/json":{}}}},"security":[{"Bearer":[]}]}},"/api/checkout/v1/callback/orders/{order_id}/payments/{payment_id}/shipping-options-change":{"post":{"tags":["Paypal 'Client-side events' Callbacks"],"summary":"Shipping options change. Updates order with the selected shipping option from PayPal","description":"Handles shipping option changes from PayPal. Updates the order with the selected shipping option and returns updated pricing information.","operationId":"PaypalCheckoutOrderShippingOptionsChange","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"merchant","in":"query","required":true,"schema":{"type":"string"}},{"name":"channel","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PaypalShippingOptionsChangeRequest"}]}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{}}},"404":{"description":"Not Found","content":{"application/json":{}}}},"security":[{"Bearer":[]}]}},"/api/checkout/v1/callback/orders/{order_id}/payments/{payment_id}/address-changed":{"post":{"tags":["Norce Callbacks"],"summary":"Address change hook","description":"Responds to address changes in norce orders and updates PayPal order accordingly.","operationId":"PaypalAddressChangedHook","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.","required":true,"schema":{"type":"string","example":"norce"},"example":"norce"},{"name":"x-channel","in":"header","description":"Channel identifier","required":true,"schema":{"type":"string","example":"1"},"example":"1"},{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/NorceOrder"}]}}}},"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":{}}}},"security":[{"Bearer":[]}]}},"/api/checkout/v1/callback/orders/{order_id}/payments/{payment_id}/state-changed":{"post":{"tags":["Norce Callbacks"],"summary":"State Changed hook","description":"Responds to state changes in norce orders.","operationId":"PaypalStateChangedHook","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.","required":true,"schema":{"type":"string","example":"norce"},"example":"norce"},{"name":"x-channel","in":"header","description":"Channel identifier","required":true,"schema":{"type":"string","example":"1"},"example":"1"},{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/NorceOrder"}]}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{}}},"404":{"description":"Not Found","content":{"application/json":{}}}},"security":[{"Bearer":[]}]}},"/api/checkout/v1/callback/orders/{order_id}/payments/{payment_id}/update-payment":{"post":{"tags":["Norce Callbacks"],"summary":"Update payment hook","description":"Responds to changes in norce orders and updates the amount in paypal.","operationId":"PaypalUpdatePaymentHook","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.","required":true,"schema":{"type":"string","example":"norce"},"example":"norce"},{"name":"x-channel","in":"header","description":"Channel identifier","required":true,"schema":{"type":"string","example":"1"},"example":"1"},{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/NorceOrder"}]}}}},"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":{}}}},"security":[{"Bearer":[]}]}},"/api/checkout/v1/callback/webhook":{"post":{"tags":["Paypal Webhook"],"summary":"Handles PayPal webhook events","description":"Consumes PayPal webhook events and updates the Norce order accordingly.","operationId":"PaypalWebhookHandler","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PaypalWebhook"}]}}}},"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":{}}},"500":{"description":"Internal Server Error"}}}},"/api/checkout/v1/callback/orders/{order_id}/redirect-return":{"get":{"tags":["Payments"],"summary":"Handle return from PayPal redirect payment flow","description":"Handles return from PayPal redirect payment flow and authorizes the order","operationId":"HandlePaypalReturnUrl","parameters":[{"name":"merchant","in":"query","description":"Merchant ID","required":true,"schema":{"type":"string"}},{"name":"channel","in":"query","description":"Channel ID","required":true,"schema":{"type":"string"}},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}}],"responses":{"303":{"description":"See Other"}}}},"/api/v1/orders/{order_id}/payments":{"post":{"tags":["Payments"],"summary":"Create a new Paypal order","description":"Requires an existing Norce order.","operationId":"CreatePaypalCheckoutOrderPayment","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.","required":true,"schema":{"type":"string","example":"norce"},"example":"norce"},{"name":"x-channel","in":"header","description":"Channel identifier","required":true,"schema":{"type":"string","example":"1"},"example":"1"},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaypalOrder"}}}},"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/v1/orders/{order_id}/payment-sdk-settings":{"get":{"tags":["Payments"],"summary":"Get SDK settings for rendering PayPal without creating an order","description":"Requires an existing Norce order. Returns SDK settings without PaymentId and Reference for frontend rendering.","operationId":"GetPaypalSdkSettings","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.","required":true,"schema":{"type":"string","example":"norce"},"example":"norce"},{"name":"x-channel","in":"header","description":"Channel identifier","required":true,"schema":{"type":"string","example":"1"},"example":"1"},{"name":"order_id","in":"path","description":"Order identifier","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaypalOrder"}}}},"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/v1/orders/{order_id}/payments/redirect":{"get":{"tags":["Payments"],"summary":"Create a new Paypal order and redirect to the payment page","description":"Requires an existing Norce order. This endpoint is idempotent","operationId":"CreatePaypalCheckoutOrderPaymentRedirect","parameters":[{"name":"merchant","in":"query","description":"Merchant","required":true,"schema":{"type":"string"}},{"name":"channel","in":"query","description":"Channel","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/PaypalOrder"}}}},"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"}}}}}}},"/api/v1/orders/{order_id}/payments/{payment_id}":{"get":{"tags":["Payments"],"summary":"Get a Paypal payment","description":"Requires an existing Norce order and payment.","operationId":"GetPaypalCheckoutOrderPayment","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.","required":true,"schema":{"type":"string","example":"norce"},"example":"norce"},{"name":"x-channel","in":"header","description":"Channel identifier","required":true,"schema":{"type":"string","example":"1"},"example":"1"},{"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/PaypalOrder"}}}},"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/v1/orders/{order_id}/payments/{payment_id}/remove":{"post":{"tags":["Payments"],"summary":"Remove a Paypal payment","description":"Requires an existing Norce order and payment.","operationId":"RemovePaypalCheckoutOrderPayment","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.","required":true,"schema":{"type":"string","example":"norce"},"example":"norce"},{"name":"x-channel","in":"header","description":"Channel identifier","required":true,"schema":{"type":"string","example":"1"},"example":"1"},{"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":{"204":{"description":"No Content"},"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/v1/orders/{order_id}/authorize":{"post":{"tags":["Authorize"],"description":"Requires an existing Norce order.","operationId":"AuthorizePaypalCheckoutOrder","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.","required":true,"schema":{"type":"string","example":"norce"},"example":"norce"},{"name":"x-channel","in":"header","description":"Channel identifier","required":true,"schema":{"type":"string","example":"1"},"example":"1"},{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"Bearer":[]}]}},"/api/v1/orders/{order_id}/capture":{"post":{"tags":["Capture"],"description":"Requires an existing Norce order.","operationId":"CapturePaypalCheckoutOrder","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.","required":true,"schema":{"type":"string","example":"norce"},"example":"norce"},{"name":"x-channel","in":"header","description":"Channel identifier","required":true,"schema":{"type":"string","example":"1"},"example":"1"},{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"Bearer":[]}]}},"/api/v1/orders/{order_id}/void":{"post":{"tags":["Void"],"description":"Requires an existing Norce order with authorized payment.","operationId":"VoidPaypalCheckoutOrder","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.","required":true,"schema":{"type":"string","example":"norce"},"example":"norce"},{"name":"x-channel","in":"header","description":"Channel identifier","required":true,"schema":{"type":"string","example":"1"},"example":"1"},{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"Bearer":[]}]}},"/api/v1/orders/{order_id}/refund":{"post":{"tags":["Refund"],"description":"Requires an existing Norce order with captured payment.","operationId":"RefundPaypalCheckoutOrder","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.","required":true,"schema":{"type":"string","example":"norce"},"example":"norce"},{"name":"x-channel","in":"header","description":"Channel identifier","required":true,"schema":{"type":"string","example":"1"},"example":"1"},{"name":"order_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"Bearer":[]}]}},"/api/v1/partner-referral":{"post":{"tags":["Referral"],"description":"Requires registered webhook(s), so that we can receive the referral confirmation from PayPal.","operationId":"CreatePartnerReferral","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.","required":true,"schema":{"type":"string","example":"norce"},"example":"norce"},{"name":"x-channel","in":"header","description":"Channel identifier","required":true,"schema":{"type":"string","example":"1"},"example":"1"}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/CreateReferralDto"}]}}}},"responses":{"303":{"description":"See Other"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"Bearer":[]}]},"get":{"tags":["Referral"],"description":"Get the onboarding status of a PayPal merchant.","operationId":"GetOnboardingStatus","parameters":[{"name":"x-merchant","in":"header","description":"Merchant identifier.","required":true,"schema":{"type":"string","example":"norce"},"example":"norce"},{"name":"x-channel","in":"header","description":"Channel identifier","required":true,"schema":{"type":"string","example":"1"},"example":"1"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MerchantOnboardingStatus"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"Bearer":[]}]}}},"components":{"schemas":{"Addon":{"type":"object","properties":{"reference":{"type":"string"},"price":{"type":"number","format":"double"}},"additionalProperties":false},"Address":{"type":"object","properties":{"type":{"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},"Amount":{"type":"object","properties":{"currencyCode":{"type":"string"},"value":{"type":"string"}},"additionalProperties":false},"Callback":{"type":"object","properties":{"id":{"type":"string"},"adapterId":{"type":"string"},"event":{"allOf":[{"$ref":"#/components/schemas/CallbackEvent"}]},"url":{"type":"string"}},"additionalProperties":false},"CallbackEvent":{"enum":["validate","accept","complete"],"type":"string"},"Capability":{"type":"object","properties":{"name":{"type":"string"},"status":{"type":"string"},"limits":{"type":"array","items":{"$ref":"#/components/schemas/Limit"}}},"additionalProperties":false},"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"}]},"attributes":{"type":"object","additionalProperties":{"nullable":true}}},"additionalProperties":false},"Consent":{"type":"object","properties":{"id":{"type":"string"},"checked":{"type":"boolean"},"text":{"type":"string"},"required":{"type":"boolean"}},"additionalProperties":false},"CreateReferralDto":{"type":"object","properties":{"email":{"type":"string"},"returnUrl":{"type":"string"}},"additionalProperties":false},"Customer":{"type":"object","properties":{"billing":{"allOf":[{"$ref":"#/components/schemas/Address"}]},"shipping":{"allOf":[{"$ref":"#/components/schemas/Address"}]},"type":{"allOf":[{"$ref":"#/components/schemas/CustomerType"}]},"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":{"enum":["internal-server-error","unauthorized","configuration-error","configuration-not-found","order-not-found","order-error","order-bad-request","order-conflict","order-validation","order-unknown-validation-error","shipping-not-found","shipping-error","payment-not-found","payment-error","payment-conflict","paypal-error","paypal-bad-request","paypal-validation","paypal-order-not-found","paypal-resource-not-found","paypal-invalid-resource-id","paypal-not-authorized","paypal-invalid-request","paypal-validation-error","paypal-order-not-approved","paypal-order-expired","paypal-rate-limit-reached","paypal-amount-not-positive","paypal-instrument-declined","paypal-transaction-refused","translation-not-found"],"type":"string","description":"Error code","example":"cart-not-found"},"message":{"type":"string","description":"Detailed error information","example":"Cart with id:{id} not found."}},"additionalProperties":false},"Hook":{"type":"object","properties":{"id":{"type":"string"},"adapterId":{"type":"string"},"subscribeTo":{"type":"string"},"target":{"type":"string"},"invoke":{"type":"string"}},"additionalProperties":false},"Intent":{"enum":["authorize","capture","subscription","tokenize"],"type":"string"},"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"}]},"attributes":{"type":"object","additionalProperties":{"nullable":true}}},"additionalProperties":false},"Limit":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false},"Link":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"method":{"type":"string"}},"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"}},"additionalProperties":false},"MerchantOnboardingStatus":{"type":"object","properties":{"merchantId":{"type":"string"},"trackingId":{"type":"string"},"products":{"type":"array","items":{"$ref":"#/components/schemas/PaypalProduct"}},"capabilities":{"type":"array","items":{"$ref":"#/components/schemas/Capability"}},"paymentsReceivable":{"type":"boolean"},"legalName":{"type":"string"},"primaryEmailConfirmed":{"type":"boolean"},"oauthIntegrations":{"type":"array","items":{"$ref":"#/components/schemas/OAuthIntegration"}},"primaryCurrency":{"type":"string"},"country":{"type":"string"}},"additionalProperties":false},"NorceOrder":{"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},"OAuthIntegration":{"type":"object","properties":{"integrationType":{"type":"string"},"integrationMethod":{"type":"string"},"oauthThirdParty":{"type":"array","items":{"$ref":"#/components/schemas/OAuthThirdParty"}}},"additionalProperties":false},"OAuthThirdParty":{"type":"object","properties":{"partnerClientId":{"type":"string"},"merchantClientId":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}}},"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"}},"recurring":{"allOf":[{"$ref":"#/components/schemas/Recurring"}]}},"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"},"PaypalOrder":{"type":"object","properties":{"paymentId":{"type":"string","description":"Norce Payment Id"},"reference":{"type":"string","description":"PayPal Payment Reference ID"},"sdkUrl":{"type":"string"},"partnerAttributionId":{"type":"string","description":"On the script tag, this value should go in the attribute `data-partner-attribution-id`."},"sdkSettings":{"allOf":[{"$ref":"#/components/schemas/PaypalSdkSettings"}],"description":"These properties should be added as query string parameters to the sdk url as kebab-case."}},"additionalProperties":false},"PaypalProduct":{"type":"object","properties":{"name":{"type":"string"},"vettingStatus":{"type":"string"},"status":{"type":"string"}},"additionalProperties":false},"PaypalSdkSettings":{"type":"object","properties":{"clientId":{"type":"string"},"merchantId":{"type":"string"},"currency":{"type":"string"},"locale":{"type":"string"},"buyerCountry":{"type":"string"},"disableFunding":{"type":"array","items":{"type":"string"}},"enableFunding":{"type":"array","items":{"type":"string"}},"commit":{"type":"boolean","description":"The commit status of the transaction. Determines whether to show a Pay Now or Continue button in the Checkout flow."},"vault":{"type":"boolean"},"integrationDate":{"type":"string","format":"date-time"},"intent":{"allOf":[{"$ref":"#/components/schemas/Intent"}]}},"additionalProperties":false},"PaypalShippingAddressChangeRequest":{"type":"object","properties":{"shippingAddress":{"allOf":[{"$ref":"#/components/schemas/ShippingAddress"}]}},"additionalProperties":false},"PaypalShippingAddressChangeResponse":{"type":"object","properties":{"success":{"type":"boolean"},"shippingAmount":{"type":"number","format":"double"},"taxAmount":{"type":"number","format":"double"},"totalAmount":{"type":"number","format":"double"}},"additionalProperties":false},"PaypalShippingOptionsChangeRequest":{"type":"object","properties":{"selectedShippingOption":{"allOf":[{"$ref":"#/components/schemas/ShippingOption"}]}},"additionalProperties":false},"PaypalWebhook":{"type":"object","properties":{"id":{"type":"string"},"create_time":{"type":"string"},"resource_type":{"type":"string"},"event_version":{"type":"string"},"event_type":{"type":"string"},"summary":{"type":"string"},"resource_version":{"type":"string"},"resource":{"type":"object","additionalProperties":{"nullable":true}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"additionalProperties":false},"PickupLocation":{"type":"object","properties":{"reference":{"type":"string"},"name":{"type":"string"},"address":{"allOf":[{"$ref":"#/components/schemas/PickupLocationAddress"}]}},"additionalProperties":false},"PickupLocationAddress":{"type":"object","properties":{"streetAddress":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string"}},"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},"Recurring":{"type":"object","properties":{"token":{"type":"string"},"description":{"type":"string"},"attributes":{"type":"object","additionalProperties":{"nullable":true}}},"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":{"recipientName":{"type":"string"},"line1":{"type":"string"},"line2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postalCode":{"type":"string"},"countryCode":{"type":"string"}},"additionalProperties":false},"ShippingOption":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"selected":{"type":"boolean"},"type":{"type":"string"},"amount":{"allOf":[{"$ref":"#/components/schemas/Amount"}]}},"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"}}},"additionalProperties":false},"Transition":{"type":"object","properties":{"status":{"allOf":[{"$ref":"#/components/schemas/OrderStatus"}]},"timeStamp":{"type":"string","format":"date-time"}},"additionalProperties":false}},"securitySchemes":{"Bearer":{"type":"apiKey","description":"Authorization header using the bearer scheme. Example: 'Bearer a3bcdABCaB12abc3AbCDAB5AbcABCaBcABC5ab3c5A0='","name":"Authorization","in":"header"}}}}