Create an order

POST /order

This endpoint allows 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"
}

Last updated