POST
/
products
curl --request POST \
  --url https://api.mpesaflow.com/v1/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "active": true,
  "defaultPrice": "<string>",
  "images": [
    "<string>"
  ],
  "metadata": {},
  "url": "<string>"
}'
{
  "success": true,
  "data": {
    "active": true,
    "defaultPrice": "<string>",
    "name": "<string>",
    "description": "<string>",
    "images": "<string>",
    "metadata": "<string>",
    "livemode": true,
    "url": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required
Example:

"Bearer SECRET"

Body

application/json

The product to create

The body is of type object.

Response

200
application/json

Create a Product

The response is of type object.