CreatePaymentModel

Payment information for creating an order. Contains credit/debit card details and payment terms. For Finco-shaped orders, card fields (Chaiz.API.Models.CreatePaymentModel.AccountNumber, Chaiz.API.Models.CreatePaymentModel.CreditCardExpirationDateString, Chaiz.API.Models.CreatePaymentModel.CVC, Chaiz.API.Models.CreatePaymentModel.MethodType) may be omitted — the embedded Shift widget collects them on the frontend and the backend never sees them. Chaiz.API.Models.CreatePaymentModel.PaymentOption stays required because it drives plan-side pricing on both paths. Whole-model validation is enforced by !:CreateNewOrderModel.Validate.

  • paymentOption
    Type: string · PaymentOptionenum
    required

    Payment option (installment plan). Required for both USAePay and Finco-shaped orders. Values: 0 = Monthly Payments, 2 = Pay in Full (one-time payment).

    Possible values: Default (0) - Default, Half (1) - Half, Full (2) - Full

    values
    • Default
    • Half
    • Full
  • accountNumber
    Type: string | null
    min length:  
    13
    max length:  
    16
    Format: credit-card

    Credit or debit card number (13-16 digits). Required for USAePay-shaped orders; omitted for Finco-shaped orders where the Shift widget collects card data on the FE. For testing, use 4111111111111111 (Visa test card).

  • creditCardExpirationDateString
    Type: string | null

    Card expiration date in MM/YYYY format. Required for USAePay-shaped orders; omitted for Finco-shaped orders. Must be a valid future date when supplied.

  • cvc
    Type: string | null
    min length:  
    3
    max length:  
    5
    Pattern: ^\d+$

    Card security code (CVV/CVC). 3-5 digits. Required for most USAePay transactions; omitted for Finco-shaped orders.

  • methodType
    Type: string · PaymentMethodTypeenum

    Possible values: None (0) - None, VISA (1) - Visa, MASTERCARD (2) - Master Card, AmericanExpress (3) - American Express, Discover (4) - Discover, ACHSavings (5) - ACH Savings, ACHChecking (6) - ACH Checking

    values
    • None
    • VISA
    • MASTERCARD
    • AmericanExpress
    • Discover
    • ACHSavings
    • ACHChecking