Create an order
POST /order
This endpoint lets you create a new order.
Headers
Header
Type
Description
Authorization
string
Bearer token.
Request body
{
    "encryptedPaymentInfo": "encrypted info",
    "shippingAddress": {
        "addressFirst": "",
        "city": "",
        "state": "",
        "country": "",
        "addressName": "",
        "zipCode": ""
    },
    "currentUser": {
        "firstname": "",
        "lastname": "",
        "email": "",
        "_id": "123"
    }
}Response
{
  "success": true,
  "order": "order._id"
}{
 "error": "Unable to charge payment id"
}Last updated
Was this helpful?
