payload - place order

mail@pastecode.io avatar
unknown
javascript
2 years ago
1.8 kB
18
Indexable
Never
{
    type: '', //for example digital_sample
    data: {
        message: "",
        shipping_price: "22.50",
        shipping_address: {
            firstName: "",
            lastName: "",
            email: "",  
            streetAddress: "",
            apt: null,
            city: "",
            region: "",
            country: "",
            postalCode: "",
            phoneNumber: "",
            phoneNumberExt: null,
            company: ""  
        },
        billing_address: {
            firstName: "",
            lastName: "",
            email: "",  
            streetAddress: "",
            apt: null,
            city: "",
            region: "",
            country: "",
            postalCode: "",
            phoneNumber: "",
            phoneNumberExt: null,
            company: "" 
        },
        payment: {
            //for bluesnap_cc guest
            method: "bluesnap_cc",
            bluesnap_token: "eyJhbGciOiJIUzI1NiJ9.eyJwYXlsb2FkIjprjCsdRYZpL5mghlqJ-MvZTk._"
            //for budgetentities
            budget_id: 4
            method: "budgetentities"
            //for purchaseorder
            method: "purchaseorder"
            po_number: "12345"
            //for bluesnap_cc loged in
            card_last_four_digits: "9903"
            card_type: "MASTERCARD"
            method: "bluesnap_cc",
            //for ach
            method: "bluesnap_ach"
            public_account_number: "44556"
            public_routing_number: "77665"
            type: "CONSUMER_CHECKING"
        },
        products: [{
                id: "6471",
                price: "134"
                qty: 1
                options: {}
            },
            {
                id: "6472",
                price: "34"
                qty: 3
                options: {}
            }
        ]
    }
}