Skip to main content
POST
/
{shopId}
/
orders
Create shop order (opt 2)
curl --request POST \
  --url http://staging.qshop.ng/apiv2/{shopId}/orders \
  --header 'Content-Type: application/json' \
  --data '
{
  "billingDetails": {
    "address": "5 East park avenue",
    "contact": {
      "email": "[email protected]",
      "telephone": "+23409034362570",
      "whatsApp": null
    },
    "fullName": "Adeyinka Gucciano",
    "geoLocation": {
      "addressProximity": "close",
      "coordinates": {
        "lat": 6.820255299999999,
        "lng": 3.4486531
      },
      "fullAddress": "Unity close, Off Redemption Way, 110113, Mowe, Nigeria",
      "geoNames": [
        {
          "adminName1": "",
          "fcl": "L",
          "fclName": "parks,area, ...",
          "fcode": "AREA",
          "fcodeName": "area",
          "geonameId": 6295630,
          "lat": "0",
          "lng": "0",
          "name": "Earth",
          "population": 6814400000,
          "toponymName": "Earth"
        },
        {
          "adminName1": "",
          "fcl": "L",
          "fclName": "parks,area, ...",
          "fcode": "CONT",
          "fcodeName": "continent",
          "geonameId": 6255146,
          "lat": "7.1881",
          "lng": "21.09375",
          "name": "Africa",
          "population": 1031833000,
          "toponymName": "Africa"
        },
        {
          "adminCode1": "00",
          "adminName1": "",
          "countryCode": "NG",
          "countryId": "2328926",
          "countryName": "Nigeria",
          "fcl": "A",
          "fclName": "country, state, region,...",
          "fcode": "PCLI",
          "fcodeName": "independent political entity",
          "geonameId": 2328926,
          "lat": "10",
          "lng": "8",
          "name": "Nigeria",
          "population": 195874740,
          "toponymName": "Federal Republic of Nigeria"
        },
        {
          "adminCode1": "16",
          "adminCodes1": {
            "ISO3166_2": "OG"
          },
          "adminName1": "Ogun",
          "countryCode": "NG",
          "countryId": "2328926",
          "countryName": "Nigeria",
          "fcl": "A",
          "fclName": "country, state, region,...",
          "fcode": "ADM1",
          "fcodeName": "first-order administrative division",
          "geonameId": 2327546,
          "lat": "7",
          "lng": "3.58333",
          "name": "Ogun State",
          "population": 4054272,
          "toponymName": "Ogun State"
        },
        {
          "adminCode1": "16",
          "adminCodes1": {
            "ISO3166_2": "OG"
          },
          "adminName1": "Ogun",
          "countryCode": "NG",
          "countryId": "2328926",
          "countryName": "Nigeria",
          "fcl": "A",
          "fclName": "country, state, region,...",
          "fcode": "ADM2",
          "fcodeName": "second-order administrative division",
          "geonameId": 7873905,
          "lat": "6.96907",
          "lng": "3.48404",
          "name": "Obafemi Owode",
          "population": 0,
          "toponymName": "Obafemi Owode"
        },
        {
          "adminCode1": "16",
          "adminCodes1": {
            "ISO3166_2": "OG"
          },
          "adminName1": "Ogun",
          "countryCode": "NG",
          "countryId": "2328926",
          "countryName": "Nigeria",
          "fcl": "P",
          "fclName": "city, village,...",
          "fcode": "PPL",
          "fcodeName": "populated place",
          "geonameId": 2331967,
          "lat": "6.82191",
          "lng": "3.45153",
          "name": "Loburo",
          "population": 0,
          "toponymName": "Loburo"
        }
      ],
      "google": {
        "address_components": [
          {
            "long_name": "Off",
            "short_name": "Off",
            "types": [
              "street_number"
            ]
          },
          {
            "long_name": "Redemption Way",
            "short_name": "Redemption Way",
            "types": [
              "route"
            ]
          },
          {
            "long_name": "Mowe",
            "short_name": "Mowe",
            "types": [
              "locality",
              "political"
            ]
          },
          {
            "long_name": "Obafemi Owode",
            "short_name": "Obafemi Owode",
            "types": [
              "administrative_area_level_2",
              "political"
            ]
          },
          {
            "long_name": "Ogun State",
            "short_name": "OG",
            "types": [
              "administrative_area_level_1",
              "political"
            ]
          },
          {
            "long_name": "Nigeria",
            "short_name": "NG",
            "types": [
              "country",
              "political"
            ]
          },
          {
            "long_name": "110113",
            "short_name": "110113",
            "types": [
              "postal_code"
            ]
          }
        ],
        "adr_address": "Unity close, <span class=\"street-address\">Off Redemption Way</span>, <span class=\"postal-code\">110113</span>, <span class=\"locality\">Mowe</span>, <span class=\"country-name\">Nigeria</span>",
        "formatted_address": "Unity close, Off Redemption Way, 110113, Mowe, Nigeria",
        "geometry": {
          "location": {
            "lat": 6.820255299999999,
            "lng": 3.4486531
          },
          "viewport": {
            "east": 3.449958680291502,
            "north": 6.821616580291503,
            "south": 6.818918619708499,
            "west": 3.447260719708498
          }
        },
        "html_attributions": [],
        "name": "Loburo",
        "types": [
          "school",
          "point_of_interest",
          "establishment"
        ],
        "utc_offset": 60,
        "utc_offset_minutes": 60
      },
      "zipCode": "110113"
    }
  },
  "cartId": "01H6A5A8XSWF28CWC73WQYPY1A",
  "currency": "NGN",
  "deliveryType": "delivery",
  "digital": false,
  "notes": "Quick delivery to me o",
  "paymentMethod": "direct-bank-transfer",
  "regionName": null,
  "returnUrl": "http://localhost:8000/admin/shop",
  "whatsApp": false
}
'

Body

application/json
billingDetails
object
cartId
string
Example:

"01H6A5A8XSWF28CWC73WQYPY1A"

currency
string
Example:

"NGN"

deliveryType
string
Example:

"delivery"

digital
boolean
Example:

false

notes
string
Example:

"Quick delivery to me o"

paymentMethod
string
Example:

"direct-bank-transfer"

regionName
unknown
returnUrl
string
Example:

"http://localhost:8000/admin/shop"

whatsApp
boolean
Example:

false

Response

200 - undefined