Sample POST request payload to /initiate for Testing

OneTime flow (PayAndShip)

{
  "merchantId": "A3LVSV45M75151",
  "placement": "Cart",
  "checkoutLanguage": "en_US",
  "ledgerCurrency": "USD",
  "productType": "PayAndShip",
  "environment": "LIVE",
  "msdk": "true",
  "checkoutSessionConfig": {
    "storeId": "amzn1.application-oa2-client.e091e1fe6fdc498886a1e654170c1af5",
    "webCheckoutDetails": {
      "checkoutResultReturnUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutCancelUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutErrorUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutMode": "ProcessOrder"
    },
    "channelType": "MOBILE_SDK",
    "scopes": ["name", "email", "phoneNumber", "billingAddress"],
    "paymentDetails": {
      "paymentIntent": "Authorize",
      "canHandlePendingAuthorization": false,
        "chargeAmount": {
        "amount": "56.00",
        "currencyCode": "USD"
      }
    },
    "addressDetails": {
      "name": "home",
      "addressLine1": "829 Stendhal Ln",
      "addressLine2": null,
      "addressLine3": null,
      "city": "Cupertino",
      "districtOrCounty": null,
      "stateOrRegion": "CA",
      "postalCode": "95014",
      "countryCode": "US",
      "phoneNumber": "211901222"
    }
  }
}

OneTime flow (PayOnly)

{
  "merchantId": "A3LVSV45M75151",
  "placement": "Cart",
  "checkoutLanguage": "en_US",
  "ledgerCurrency": "USD",
  "productType": "PayOnly",
  "environment": "LIVE",
  "msdk": "true",
  "checkoutSessionConfig": {
    "storeId": "amzn1.application-oa2-client.e091e1fe6fdc498886a1e654170c1af5",
    "webCheckoutDetails": {
      "checkoutResultReturnUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutCancelUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutErrorUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutMode": "ProcessOrder"
    },
    "channelType": "MOBILE_SDK",
    "scopes": ["name", "email", "phoneNumber", "billingAddress"],
    "paymentDetails": {
      "paymentIntent": "Authorize",
      "canHandlePendingAuthorization": false,
      "chargeAmount": {
        "amount": "56.00",
        "currencyCode": "USD"
      }
    },
    "addressDetails":null
  }
}

Saved Wallet Setup and Pay flow (PayAndShip)

{
  "merchantId": "A3LVSV45M75151",
  "placement": "Cart",
  "checkoutLanguage": "en_US",
  "ledgerCurrency": "USD",
  "productType": "PayAndShip",
  "environment": "LIVE",
  "msdk": "true",
  "checkoutSessionConfig": {
    "storeId": "amzn1.application-oa2-client.e091e1fe6fdc498886a1e654170c1af5",
    "webCheckoutDetails": {
      "checkoutResultReturnUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutCancelUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutErrorUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutMode": "ProcessOrder"
    },
    "channelType": "MOBILE_SDK",
    "scopes": ["name", "email", "phoneNumber", "billingAddress"],
    "paymentDetails": {
      "paymentIntent": "Authorize",
      "canHandlePendingAuthorization": false,
      "chargeAmount": {
        "amount": "56.00",
        "currencyCode": "USD"
      }
    },
    "chargePermissionType": "PaymentMethodOnFile",
    "paymentMethodOnFileMetadata": {
        "setupOnly": "false"
    },
    "addressDetails": {
      "name": "home",
      "addressLine1": "829 Stendhal Ln",
      "addressLine2": null,
      "addressLine3": null,
      "city": "Cupertino",
      "districtOrCounty": null,
      "stateOrRegion": "CA",
      "postalCode": "95014",
      "countryCode": "US",
      "phoneNumber": "211901222"
    }
  }
}

Saved Wallet Setup and Pay flow (PayOnly)

{
  "merchantId": "A3LVSV45M75151",
  "placement": "Cart",
  "checkoutLanguage": "en_US",
  "ledgerCurrency": "USD",
  "productType": "PayOnly",
  "environment": "LIVE",
  "msdk": "true",
  "checkoutSessionConfig": {
    "storeId": "amzn1.application-oa2-client.e091e1fe6fdc498886a1e654170c1af5",
    "webCheckoutDetails": {
      "checkoutResultReturnUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutCancelUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutErrorUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutMode": "ProcessOrder"
    },
    "channelType": "MOBILE_SDK",
    "scopes": ["name", "email", "phoneNumber", "billingAddress"],
    "paymentDetails": {
      "paymentIntent": "Authorize",
      "canHandlePendingAuthorization": false,
      "chargeAmount": {
        "amount": "56.00",
        "currencyCode": "USD"
      }
    },
    "chargePermissionType": "PaymentMethodOnFile",
    "paymentMethodOnFileMetadata": {
        "setupOnly": "false"
    },
    "addressDetails": null
  }
}

Saved Wallet Setup Only flow

{
  "merchantId": "A3LVSV45M75151",
  "placement": "Cart",
  "checkoutLanguage": "en_US",
  "ledgerCurrency": "USD",
  "productType": "PayOnly",
  "environment": "LIVE",
  "msdk": "true",
  "checkoutSessionConfig": {
    "storeId": "amzn1.application-oa2-client.e091e1fe6fdc498886a1e654170c1af5",
    "webCheckoutDetails": {
      "checkoutResultReturnUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutCancelUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutErrorUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutMode": null
    },
    "channelType": "MOBILE_SDK",
    "scopes": ["name", "email", "phoneNumber", "billingAddress"],
    "paymentDetails": {
      "paymentIntent": "Confirm",
      "canHandlePendingAuthorization": false,
      "chargeAmount": null
    },
    "chargePermissionType": "PaymentMethodOnFile",
    "paymentMethodOnFileMetadata": {
        "setupOnly": "true"
    },
    "addressDetails": null
  }
}

Saved Wallet Update Only flow

{
  "merchantId": "A3LVSV45M75151",
  "placement": "Cart",
  "checkoutLanguage": "en_US",
  "ledgerCurrency": "USD",
  "productType": "PayOnly",
  "environment": "LIVE",
  "msdk": "true",
  "checkoutSessionConfig": {
    "storeId": "amzn1.application-oa2-client.e091e1fe6fdc498886a1e654170c1af5",
    "webCheckoutDetails": {
      "checkoutResultReturnUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutCancelUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutErrorUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutMode": null
    },
    "channelType": "MOBILE_SDK",
    "paymentDetails": {
      "paymentIntent": "Confirm",
      "canHandlePendingAuthorization": false,
      "chargeAmount": null
    },
    "chargePermissionType": "PaymentMethodOnFile",
    "paymentMethodOnFileMetadata": {
        "setupOnly": "true"
    },
    "chargePermissionId": "B01-7604015-8134974"
    "addressDetails": null
  }
}

Sign In and Setup

{
  "merchantId": "A3LVSV45M75151",
  "placement": "Cart",
  "checkoutLanguage": "en_US",
  "ledgerCurrency": "USD",
  "productType": "SignInAndSetup",
  "environment": "LIVE",
  "msdk": "true",
  "checkoutSessionConfig": {
    "storeId": "amzn1.application-oa2-client.e091e1fe6fdc498886a1e654170c1af5",
    "webCheckoutDetails": {
      "signInReturnUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "signInCancelUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "signInErrorUrl": "https://rocket.integ.amazon.com/jsp/amazonPayV2.jsp",
      "checkoutMode": null
    },
    "channelType": "MOBILE_SDK",
    "signInScopes": ["name", "email", "postalCode", "phoneNumber", "billingAddress"],
    "paymentDetails": null,
    "addressDetails": null
  }
}