Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save deniszgonjanin/d90ec7af345af9a92bae15e9768dc879 to your computer and use it in GitHub Desktop.
Save deniszgonjanin/d90ec7af345af9a92bae15e9768dc879 to your computer and use it in GitHub Desktop.
Paypal Multicurrency Failure - Fixed Selling Plans. Return payload
{
"data": {
"submitForCompletion": {
"buyerProposal": {
"merchandiseDiscount": {
"__typename": "FilledDiscountTerms",
"acceptUnexpectedDiscounts": true,
"lines": []
},
"deliveryDiscount": {
"__typename": "FilledDiscountTerms",
"acceptUnexpectedDiscounts": true,
"lines": []
},
"delivery": {
"__typename": "FilledDeliveryTerms",
"intermediateRates": false,
"progressiveRatesEstimatedTimeUntilCompletion": 0,
"shippingRatesStatusToken": "",
"deliveryLines": [
{
"destinationAddress": {
"name": "John",
"firstName": "John",
"lastName": "Snow",
"company": null,
"address1": "123 Main Street",
"address2": null,
"city": "Ottawa",
"countryCode": "CA",
"zoneCode": "ON",
"postalCode": "K1N 9N7",
"coordinates": null,
"phone": "16135431234",
"__typename": "StreetAddress"
},
"targetMerchandise": {
"linesV2": [
{
"stableId": "0591b52c-e47b-4c95-8dbd-ba5e686fe46f",
"quantity": {
"items": {
"value": 1,
"__typename": "IntValueConstraint"
},
"__typename": "ProposalMerchandiseQuantityByItem"
},
"merchandise": {
"__typename": "ProductVariantMerchandise",
"requiresShipping": true
},
"totalAmount": {
"value": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"__typename": "MerchandiseLine"
}
],
"__typename": "FilledMerchandiseLineTargetCollection"
},
"groupType": "ONE_TIME_PURCHASE",
"selectedDeliveryStrategy": {
"handle": "136ec8bdb9ad3fbae0343de6f3918c36-a26d9681a432b5348d660ec1b8b77ad9",
"__typename": "DeliveryStrategyReference"
},
"availableDeliveryStrategies": [],
"__typename": "DeliveryLine"
}
]
},
"merchandise": {
"taxesIncluded": true,
"merchandiseLines": [
{
"stableId": "0591b52c-e47b-4c95-8dbd-ba5e686fe46f",
"merchandise": {
"__typename": "ProductVariantMerchandise",
"id": "gid://shopify/ProductVariantMerchandise/40136735621278",
"digest": "4528d44a623003cc5021ff5f768d062c",
"variantId": "gid://shopify/ProductVariant/40136735621278",
"title": "Custom Pet Portrait",
"untranslatedTitle": "Custom Pet Portrait",
"subtitle": "Watercolor / 8×10 / Poster Only",
"untranslatedSubtitle": "Watercolor / 8×10 / Poster Only",
"product": {
"id": "gid://shopify/Product/6714998718622",
"vendor": "Welham & Co",
"productType": "Posters, Prints, & Visual Artwork",
"__typename": "Product"
},
"productUrl": "/products/custom-pet-portrait",
"image": {
"altText": null,
"one": "https://cdn.shopify.com/s/files/1/0422/0194/0126/products/PP-Poster-1-min_64x64.jpg?v=1703666419",
"two": "https://cdn.shopify.com/s/files/1/0422/0194/0126/products/PP-Poster-1-min_128x128.jpg?v=1703666419",
"four": "https://cdn.shopify.com/s/files/1/0422/0194/0126/products/PP-Poster-1-min_256x256.jpg?v=1703666419",
"__typename": "Image"
},
"properties": [
{
"name": "Font",
"value": {
"string": "Original",
"__typename": "MerchandisePropertyValueString"
},
"visible": true,
"__typename": "MerchandiseProperty"
},
{
"name": "Pet's Name",
"value": {
"string": "test puppy",
"__typename": "MerchandisePropertyValueString"
},
"visible": true,
"__typename": "MerchandiseProperty"
},
{
"name": "_gc_ext_personalized_order",
"value": {
"string": "1",
"__typename": "MerchandisePropertyValueString"
},
"visible": false,
"__typename": "MerchandiseProperty"
}
],
"requiresShipping": true,
"options": [
{
"name": "Style",
"value": "Watercolor",
"__typename": "ProductVariantOption"
},
{
"name": "Size",
"value": "8×10",
"__typename": "ProductVariantOption"
},
{
"name": "Frame",
"value": "Poster Only",
"__typename": "ProductVariantOption"
}
],
"sellingPlan": {
"id": "gid://shopify/SellingPlan/5008916717",
"subscriptionDetails": null,
"__typename": "SellingPlan"
},
"giftCard": false
},
"quantity": {
"items": {
"value": 1,
"__typename": "IntValueConstraint"
},
"__typename": "ProposalMerchandiseQuantityByItem"
},
"totalAmount": {
"value": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"recurringTotal": null,
"lineAllocations": [],
"lineComponentsSource": null,
"lineComponents": [],
"__typename": "MerchandiseLine"
}
],
"__typename": "FilledMerchandiseTerms"
},
"runningTotal": {
"value": {
"amount": "99.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"total": {
"value": {
"amount": "99.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"checkoutTotalBeforeTaxesAndShipping": {
"value": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"checkoutTotalTaxes": {
"value": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"checkoutTotal": {
"value": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"deferredTotal": {
"amount": {
"value": {
"amount": "99.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"subtotalAmount": {
"value": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"taxes": {
"value": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"dueAt": "2024-07-25T11:54:45Z",
"__typename": "DeferredTotal"
},
"hasOnlyDeferredShipping": true,
"subtotalBeforeTaxesAndShipping": {
"value": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"legacySubtotalBeforeTaxesShippingAndFees": {
"value": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"legacyAggregatedMerchandiseTermsAsFees": [],
"attribution": {
"attributions": [],
"__typename": "Attribution"
},
"saleAttributions": {
"attributions": [],
"__typename": "SaleAttributions"
},
"__typename": "Proposal"
},
"sellerProposal": {
"merchandiseDiscount": {
"__typename": "FilledDiscountTerms",
"acceptUnexpectedDiscounts": true,
"lines": []
},
"deliveryDiscount": {
"__typename": "FilledDiscountTerms",
"acceptUnexpectedDiscounts": true,
"lines": []
},
"deliveryExpectations": {
"__typename": "UnavailableTerms"
},
"availableRedeemables": {
"availableRedeemables": [],
"__typename": "AvailableRedeemables"
},
"delivery": {
"intermediateRates": false,
"progressiveRatesEstimatedTimeUntilCompletion": 0,
"shippingRatesStatusToken": "",
"deliveryLines": [
{
"id": "gid://shopify/DeliveryLine/269ea2856c41d63937d1ba5212c29713",
"availableOn": null,
"destinationAddress": {
"name": "John",
"firstName": "John",
"lastName": "Snow",
"company": null,
"address1": "123 Main Street",
"address2": null,
"city": "Ottawa",
"countryCode": "CA",
"zoneCode": "ON",
"postalCode": "K1N 9N7",
"coordinates": null,
"phone": "16135431234",
"__typename": "StreetAddress"
},
"targetMerchandise": {
"linesV2": [
{
"stableId": "0591b52c-e47b-4c95-8dbd-ba5e686fe46f",
"quantity": {
"items": {
"value": 1,
"__typename": "IntValueConstraint"
},
"__typename": "ProposalMerchandiseQuantityByItem"
},
"merchandise": {
"__typename": "ContextualizedProductVariantMerchandise",
"requiresShipping": true,
"sellingPlan": {
"id": "gid://shopify/SellingPlan/5008916717",
"digest": "866ae66ceec8865e8bfaf554c419a1a3",
"name": "Your card will not be charged",
"prepaid": false,
"deliveriesPerBillingCycle": 1,
"subscriptionDetails": null,
"__typename": "SellingPlan"
}
},
"totalAmount": {
"value": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"__typename": "MerchandiseLine"
}
],
"__typename": "FilledMerchandiseLineTargetCollection"
},
"groupType": "ONE_TIME_PURCHASE",
"selectedDeliveryStrategy": {
"handle": "136ec8bdb9ad3fbae0343de6f3918c36-a26d9681a432b5348d660ec1b8b77ad9",
"__typename": "CompleteDeliveryStrategy"
},
"availableDeliveryStrategies": [
{
"originLocation": {
"id": "gid://shopify/Location/49652269214",
"__typename": "Location"
},
"title": "Standard Shipping (7-10 Business Days)",
"handle": "136ec8bdb9ad3fbae0343de6f3918c36-a26d9681a432b5348d660ec1b8b77ad9",
"custom": false,
"description": "",
"code": "Standard Shipping (7-10 Business Days)",
"acceptsInstructions": false,
"phoneRequired": false,
"methodType": "SHIPPING",
"carrierName": "",
"incoterms": null,
"brandedPromise": null,
"deliveryStrategyBreakdown": null,
"minDeliveryDateTime": null,
"maxDeliveryDateTime": null,
"deliveryPromiseProviderApiClientId": null,
"deliveryPromisePresentmentTitle": {
"short": "",
"long": "",
"__typename": "DeliveryPromisePresentmentTitle"
},
"displayCheckoutRedesign": false,
"estimatedTimeInTransit": {
"__typename": "AnyConstraint"
},
"amount": {
"value": {
"amount": "20.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"amountAfterDiscounts": {
"value": {
"amount": "20.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"pickupLocation": null,
"__typename": "CompleteDeliveryStrategy"
}
],
"__typename": "DeliveryLine"
}
],
"deliveryMacros": [
{
"amount": {
"value": {
"amount": "20.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"amountAfterDiscounts": {
"value": {
"amount": "20.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"deliveryPromisePresentmentTitle": {
"short": "",
"long": "",
"__typename": "DeliveryPromisePresentmentTitle"
},
"deliveryStrategyHandles": [
"136ec8bdb9ad3fbae0343de6f3918c36-a26d9681a432b5348d660ec1b8b77ad9"
],
"id": "524dd15d0b57da9c7b5009ecb5ecb9ee",
"title": "Lowest price",
"__typename": "DeliveryMacro"
}
],
"simpleDeliveryLine": {
"availableDeliveryStrategies": [
{
"title": "Standard Shipping (7-10 Business Days)",
"amountAfterDiscounts": {
"value": {
"amount": "20.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"deliveryPromisePresentmentTitle": {
"short": "",
"long": "",
"__typename": "DeliveryPromisePresentmentTitle"
},
"__typename": "SimpleDeliveryStrategy"
}
],
"__typename": "SimpleDeliveryLine"
},
"__typename": "FilledDeliveryTerms"
},
"payment": {
"availablePayments": [
{
"paymentMethod": {
"__typename": "AnyGiftCardPaymentMethod"
},
"__typename": "PaymentLine"
},
{
"paymentMethod": {
"__typename": "AnyDirectPaymentMethod",
"availablePaymentProviders": [
{
"paymentMethodIdentifier": "12312312321321",
"name": "shopify_payments",
"brands": [
"VISA",
"MASTERCARD",
"AMEX",
"UNIONPAY",
"JCB"
],
"orderingIndex": 2,
"displayName": null,
"extensibilityDisplayName": "Shopify Payments",
"availablePresentmentCurrencies": [
"USD",
"CAD"
],
"paymentMethodUiExtension": null,
"checkoutHostedFields": null,
"alternative": false,
"__typename": "PaymentProvider"
}
]
},
"__typename": "PaymentLine"
},
{
"paymentMethod": {
"availableWalletPaymentConfigs": [
{
"__typename": "PaypalWalletConfig",
"name": "PAYPAL_EXPRESS",
"clientId": null,
"merchantId": "24324324",
"venmoEnabled": false,
"payflow": false,
"paymentIntent": "AUTHORIZE",
"paymentMethodIdentifier": "1231241231231",
"orderingIndex": 3
}
],
"__typename": "AnyWalletPaymentMethod"
},
"__typename": "PaymentLine"
}
],
"paymentLines": [
{
"stableId": "2563cf6a3fbf15bb9a000fec696439e8",
"specialInstructions": null,
"amount": {
"value": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"dueAt": null,
"paymentMethod": {
"name": "PAYPAL_EXPRESS",
"walletContent": {
"paypalBillingAddress": null,
"email": "deniszgonjanin@gmail.com",
"payerId": "VATKL8UHTAZJS",
"token": "EC-3WW669537A148944P",
"paymentMethodIdentifier": "2352345245",
"acceptedSubscriptionTerms": true,
"expiresAt": null,
"__typename": "PaypalWalletContent"
},
"__typename": "WalletPaymentMethod"
},
"__typename": "PaymentLine"
},
{
"stableId": "523cb2e0dcad66cdd72b88012a6ef818",
"specialInstructions": null,
"amount": {
"value": {
"amount": "99.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"dueAt": "2024-07-25T11:51:44Z",
"paymentMethod": {
"name": "PAYPAL_EXPRESS",
"walletContent": {
"paypalBillingAddress": null,
"email": "deniszgonjanin@gmail.com",
"payerId": "23423523",
"token": "EC-235235235",
"paymentMethodIdentifier": "234234235",
"acceptedSubscriptionTerms": true,
"expiresAt": null,
"__typename": "PaypalWalletContent"
},
"__typename": "WalletPaymentMethod"
},
"__typename": "PaymentLine"
},
{
"stableId": "00bb163798c7cf484dbc5b65a7a02e4a",
"specialInstructions": null,
"amount": {
"value": {
"amount": "99.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"dueAt": "2024-07-25T11:51:44Z",
"paymentMethod": {
"name": "PAYPAL_EXPRESS",
"walletContent": {
"paypalBillingAddress": null,
"email": "deniszgonjanin@gmail.com",
"payerId": "234234",
"token": "EC-23423423",
"paymentMethodIdentifier": "23423423",
"acceptedSubscriptionTerms": true,
"expiresAt": null,
"__typename": "PaypalWalletContent"
},
"__typename": "WalletPaymentMethod"
},
"__typename": "PaymentLine"
},
{
"stableId": "15e6abcfeb0fda4d1ad33917f9ed7c1f",
"specialInstructions": null,
"amount": {
"value": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"dueAt": null,
"paymentMethod": {
"name": "PAYPAL_EXPRESS",
"walletContent": {
"paypalBillingAddress": null,
"email": "deniszgonjanin@gmail.com",
"payerId": "VATKL8UHTAZJS",
"token": "EC-3WW669537A148944P",
"paymentMethodIdentifier": "234234234",
"acceptedSubscriptionTerms": true,
"expiresAt": null,
"__typename": "PaypalWalletContent"
},
"__typename": "WalletPaymentMethod"
},
"__typename": "PaymentLine"
}
],
"billingAddress": {
"firstName": "John",
"lastName": "Snow",
"company": null,
"address1": "123 Main Street",
"address2": null,
"city": "Ottawa",
"countryCode": "CA",
"zoneCode": "ON",
"postalCode": "K1N 9N7",
"phone": "16135431234",
"__typename": "StreetAddress"
},
"paymentFlexibilityPaymentTermsTemplate": null,
"__typename": "FilledPaymentTerms"
},
"poNumber": null,
"merchandise": {
"taxesIncluded": true,
"merchandiseLines": [
{
"stableId": "0591b52c-e47b-4c95-8dbd-ba5e686fe46f",
"merchandise": {
"__typename": "ContextualizedProductVariantMerchandise",
"id": "gid://shopify/ProductVariantMerchandise/40136735621278",
"digest": "4528d44a623003cc5021ff5f768d062c",
"variantId": "gid://shopify/ProductVariant/40136735621278",
"title": "Custom Pet Portrait",
"untranslatedTitle": "Custom Pet Portrait",
"subtitle": "Watercolor / 8×10 / Poster Only",
"untranslatedSubtitle": "Watercolor / 8×10 / Poster Only",
"sku": "pp_poster_8x10",
"price": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"product": {
"id": "gid://shopify/Product/6714998718622",
"vendor": "Welham & Co",
"productType": "Posters, Prints, & Visual Artwork",
"__typename": "Product"
},
"productUrl": "/products/custom-pet-portrait",
"image": {
"altText": null,
"one": "https://cdn.shopify.com/s/files/1/0422/0194/0126/products/PP-Poster-1-min_64x64.jpg?v=1703666419",
"two": "https://cdn.shopify.com/s/files/1/0422/0194/0126/products/PP-Poster-1-min_128x128.jpg?v=1703666419",
"four": "https://cdn.shopify.com/s/files/1/0422/0194/0126/products/PP-Poster-1-min_256x256.jpg?v=1703666419",
"__typename": "Image"
},
"properties": [
{
"name": "Font",
"value": {
"string": "Original",
"__typename": "MerchandisePropertyValueString"
},
"visible": true,
"__typename": "MerchandiseProperty"
},
{
"name": "Pet's Name",
"value": {
"string": "test puppy",
"__typename": "MerchandisePropertyValueString"
},
"visible": true,
"__typename": "MerchandiseProperty"
},
{
"name": "_gc_ext_personalized_order",
"value": {
"string": "1",
"__typename": "MerchandisePropertyValueString"
},
"visible": false,
"__typename": "MerchandiseProperty"
}
],
"requiresShipping": true,
"options": [
{
"name": "Style",
"value": "Watercolor",
"__typename": "ProductVariantOption"
},
{
"name": "Size",
"value": "8×10",
"__typename": "ProductVariantOption"
},
{
"name": "Frame",
"value": "Poster Only",
"__typename": "ProductVariantOption"
}
],
"sellingPlan": {
"name": "Your card will not be charged",
"id": "gid://shopify/SellingPlan/5008916717",
"digest": "866ae66ceec8865e8bfaf554c419a1a3",
"deliveriesPerBillingCycle": 1,
"prepaid": false,
"subscriptionDetails": null,
"__typename": "SellingPlan"
},
"giftCard": false,
"deferredAmount": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
}
},
"quantity": {
"items": {
"value": 1,
"__typename": "IntValueConstraint"
},
"__typename": "ProposalMerchandiseQuantityByItem"
},
"totalAmount": {
"value": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"recurringTotal": null,
"lineAllocations": [
{
"stableId": "d347af4d3193b715af9cd35e84a57f21",
"quantity": 1,
"totalAmountBeforeReductions": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"totalAmountAfterDiscounts": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"totalAmountAfterLineDiscounts": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"checkoutPriceAfterDiscounts": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"checkoutPriceAfterLineDiscounts": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"checkoutPriceBeforeReductions": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"unitPrice": null,
"allocations": [
{
"__typename": "LineComponentTaxAllocation"
}
],
"__typename": "LineAllocation"
}
],
"lineComponentsSource": null,
"lineComponents": [],
"__typename": "MerchandiseLine"
}
],
"__typename": "FilledMerchandiseTerms"
},
"note": {
"customAttributes": [
{
"key": "candyrack_token",
"value": "42dcb17f3ceaee5c385374634d3d4ae7",
"__typename": "NoteAttribute"
}
],
"message": "This is a test order. Please do not action on it",
"__typename": "Note"
},
"scriptFingerprint": {
"signature": null,
"signatureUuid": null,
"lineItemScriptChanges": [],
"paymentScriptChanges": [],
"shippingScriptChanges": [],
"__typename": "ScriptFingerprint"
},
"transformerFingerprintV2": null,
"buyerIdentity": {
"customer": {
"presentmentCurrency": "CAD",
"countryCode": "CA",
"market": {
"id": "gid://shopify/Market/33063149",
"handle": "ca",
"__typename": "Market"
},
"shippingAddresses": [],
"__typename": "GuestProfile"
},
"purchasingCompany": null,
"contactInfoV2": {
"email": "deniszgonjanin@gmail.com",
"__typename": "EmailFormContents"
},
"marketingConsent": [
{
"value": "deniszgonjanin@gmail.com",
"__typename": "EmailMarketingConsent"
}
],
"shopPayOptInPhone": "+16135431234",
"__typename": "FilledBuyerIdentityTerms"
},
"checkoutCompletionTarget": "ORDER",
"recurringTotals": [],
"subtotalBeforeTaxesAndShipping": {
"value": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"legacySubtotalBeforeTaxesShippingAndFees": {
"value": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"legacyAggregatedMerchandiseTermsAsFees": [],
"totalSavings": {
"value": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"runningTotal": {
"value": {
"amount": "99.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"total": {
"value": {
"amount": "99.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"checkoutTotalBeforeTaxesAndShipping": {
"value": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"checkoutTotalTaxes": {
"value": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"checkoutTotal": {
"value": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"deferredTotal": {
"amount": {
"value": {
"amount": "99.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"subtotalAmount": {
"value": {
"amount": "79.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"taxes": {
"value": {
"amount": "0.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"dueAt": "2024-07-25T11:54:45Z",
"__typename": "DeferredTotal"
},
"hasOnlyDeferredShipping": true,
"subtotalBeforeReductions": {
"value": {
"amount": "99.0",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"duty": {
"totalDutyAmount": null,
"totalTaxAndDutyAmount": null,
"totalAdditionalFeesAmount": null,
"__typename": "FilledDutyTerms"
},
"tax": {
"totalTaxAmount": null,
"totalTaxAndDutyAmount": null,
"totalAmountIncludedInTarget": {
"value": {
"amount": "11.39",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
},
"exemptions": [],
"__typename": "FilledTaxTerms"
},
"tip": {
"tipSuggestions": [
{
"__typename": "TipSuggestion",
"percentage": 0.1,
"amount": {
"value": {
"amount": "7.9",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
}
},
{
"__typename": "TipSuggestion",
"percentage": 0.15,
"amount": {
"value": {
"amount": "11.85",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
}
},
{
"__typename": "TipSuggestion",
"percentage": 0.2,
"amount": {
"value": {
"amount": "15.8",
"currencyCode": "CAD",
"__typename": "Money"
},
"__typename": "MoneyValueConstraint"
}
}
],
"terms": {
"tipLines": [],
"__typename": "FilledTipTerms"
},
"__typename": "TipWrapper"
},
"localizationExtension": {
"fields": [],
"__typename": "LocalizationExtension"
},
"landedCostDetails": {
"incotermInformation": null,
"__typename": "LandedCostDetails"
},
"dutiesIncluded": false,
"nonNegotiableTerms": null,
"optionalDuties": {
"buyerRefusesDuties": false,
"refuseDutiesPermitted": false,
"__typename": "OptionalDuties"
},
"attribution": {
"attributions": [],
"__typename": "Attribution"
},
"saleAttributions": {
"attributions": [],
"__typename": "SaleAttributions"
},
"managedByMarketsPro": false,
"captcha": null,
"cartCheckoutValidation": null,
"alternativePaymentCurrency": null,
"__typename": "Proposal"
},
"errors": [
{
"code": "PAYMENTS_UNACCEPTABLE_PAYMENT_AMOUNT",
"localizedMessage": "Your payment couldn’t be processed because your order total has changed. Check your order total and try again.",
"nonLocalizedMessage": "The sum of proposed payments cannot cover the total amount to be paid.",
"localizedMessageHtml": "Your payment couldn’t be processed because your order total has changed. Check your order total and try again.",
"message": {
"code": "PAYMENTS_UNACCEPTABLE_PAYMENT_AMOUNT",
"localizedDescription": "Your payment couldn’t be processed because your order total has changed. Check your order total and try again.",
"__typename": "ViolationErrorMessage"
},
"target": "$.payment",
"__typename": "UnprocessableTermViolation"
},
{
"code": "PAYMENTS_UNACCEPTABLE_DEFERRED_PAYMENT_AMOUNT",
"localizedMessage": "Your payment couldn't be processed because the deferred payment amount has changed. Please check your order and try again.",
"nonLocalizedMessage": "The deferred payment amount does not match the expected amount.",
"localizedMessageHtml": "Your payment couldn't be processed because the deferred payment amount has changed. Please check your order and try again.",
"message": {
"code": "PAYMENTS_UNACCEPTABLE_DEFERRED_PAYMENT_AMOUNT",
"localizedDescription": "Your payment couldn't be processed because the deferred payment amount has changed. Please check your order and try again.",
"__typename": "ViolationErrorMessage"
},
"target": "$.payment",
"__typename": "UnprocessableTermViolation"
}
],
"__typename": "SubmitRejected"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment