Create full application

Submit the customer's full application from your own checkout and get offers back.

POST https://api-staging.paytomorrow.com/api/ecommerce/application/create

Creates a PayTomorrow application with the customer's full details and runs PayTomorrow's underwriting. If the customer is approved, the response includes their offers. Send the customer to an offer's contractUrl, or select the offer first, to sign and make the down payment.

When the purchase amount is outside your approval range, applicationToken is null.

Headers

Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json

Get an access token with Authenticate.

Request body

{
  "orderId": "order_id_on_your_system",
  "notifyUrl": "https://your-store.com/paytomorrow/postback",
  "loanAmount": 1000,
  "shipping": 200,
  "taxes": 100,
  "discount": 0,
  "personalInfo": {
    "ssn": "123456789",
    "dob": "1970-12-30",
    "firstName": "David",
    "lastName": "Domingo",
    "homePhone": "9999999999",
    "cellPhone": "9999999999",
    "email": "david@email.com",
    "idNumber": "A12344555",
    "idState": "NC",
    "idIssueDate": "2016-12-30",
    "idExpirationDate": "2024-12-30"
  },
  "employmentInfo": {
    "employerName": "PayTomorrow",
    "employerPhoneNumber": "9999999999",
    "employerMonths": 10,
    "employerYears": 3,
    "selfEmployed": false,
    "occupation": "Software Developer",
    "monthlyIncome": 9999,
    "otherIncome": 0,
    "otherIncomeDesc": "",
    "payCycle": "BIWEEKLY",
    "nextPayDate": "2020-04-30"
  },
  "residenceInfo": {
    "rentOrOwn": "Rent",
    "residenceAmount": 2000,
    "residenceMonths": 1,
    "residenceYears": 2,
    "streetName": "123 Main St",
    "city": "Raleigh",
    "state": "NC",
    "zip": "27777"
  },
  "items": [
    {
      "description": "Rose Gold iPhone Xs 256GB",
      "quantity": 1,
      "price": 1000,
      "brand": "Apple",
      "model": "iPhone Xs Rose Gold",
      "sku": "Product_SKU1",
      "coupon": 10,
      "discount": 20,
      "sale_price": 1000,
      "extended_list_price": 1030,
      "extended_sale_price": 1000,
      "list_price": 1030
    }
  ]
}

Order

FieldRequiredDescription
orderIdYesYour order ID, for your reference.
notifyUrlYesWhere PayTomorrow sends postbacks. A valid http or https URL.
loanAmountThe total amount to finance.
shippingShipping cost.
taxesTaxes.
discountDiscount, if any.
itemsThe cart. Each item has description, quantity, and price, and can have brand, model, sku, coupon, discount, sale_price, list_price, extended_list_price, and extended_sale_price.

personalInfo

FieldRequiredDescription
ssnYesFull SSN.
dobYesDate of birth, YYYY-MM-DD.
firstNameYes
lastNameYes
cellPhoneYesA US number. Digits only, no country code.
emailYesA valid email address.
homePhone
idNumberDriver's license number.
idStateTwo-letter state that issued the license.
idIssueDateYYYY-MM-DD.
idExpirationDateYYYY-MM-DD.

employmentInfo

FieldRequiredDescription
payCycleYesWEEKLY, BIWEEKLY, TWICE_PER_MONTH, or MONTHLY.
nextPayDateYesYYYY-MM-DD.
previousPayDateWith TWICE_PER_MONTHYYYY-MM-DD.
monthlyIncomeA number only, with no commas, periods, or dollar signs.
employerName, employerPhoneNumber, employerMonths, employerYears, selfEmployed, occupation, otherIncome, otherIncomeDesc

residenceInfo

FieldRequiredDescription
streetNameYesStreet address.
cityYes
stateYesTwo-letter state code.
zipYesFive digits.
rentOrOwnRent, Own, or Other.
residenceAmountMonthly housing cost.
residenceMonths, residenceYearsTime at this address.

Response

{
  "applicationToken": "92fc72f8-673a-4a29-9559-4c82d5f7378f",
  "orderId": "order_id_on_your_system",
  "loanAmount": 1000,
  "status": "A",
  "offers": [
    {
      "id": 14,
      "overallTerm": 6,
      "leaseTerm": 2,
      "loanTerm": 4,
      "loanRate": 18.8282,
      "residualPercent": 75,
      "moneyFactor": 0.03626,
      "offerType": "LEASELOAN",
      "leasePayment": 188.45,
      "loanPayment": 188.28,
      "residualPayment": 750,
      "contractUrl": "https://api.paytomorrow.com/ecommerce/application/92fc72f8-673a-4a29-9559-4c82d5f7378f/offers/select/14/redirect"
    }
  ]
}
FieldDescription
applicationTokenSave this with your order. Every later call and postback refers to it.
statusThe application status.
offers[].idThe offer ID, for Select offer.
offers[].overallTermTotal term in months, split into leaseTerm and loanTerm.
offers[].leasePayment, offers[].loanPaymentMonthly payment for each part.
offers[].loanRate, offers[].moneyFactor, offers[].residualPercent, offers[].residualPaymentPricing for the offer.
offers[].contractUrlRedirect the customer here, or open it in an iframe, to sign the contract and make the down payment.

On this page