Skip to main content
POST
/
shop
/
products
/
v1
Create a product
curl --request POST \
  --url https://api.spacebring.com/shop/products/v1 \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "product": {
    "categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "options": [
      {
        "price": {
          "credits": {
            "amount": 0,
            "enabled": false
          },
          "money": {
            "amount": 0,
            "enabled": false
          }
        },
        "title": "<string>",
        "available": false,
        "customTax": {
          "enabled": false,
          "rate": 0
        },
        "description": "",
        "stock": {
          "enabled": false,
          "quantity": 0
        },
        "id": "<string>"
      }
    ],
    "title": "<string>",
    "description": "",
    "featured": false,
    "media": [
      {
        "key": "<string>"
      }
    ],
    "order": {
      "enabled": false
    },
    "refundPolicy": "noRefund",
    "visibility": "public"
  }
}
'
{
  "product": {
    "categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createDate": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "featured": true,
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "imageUrl": "<string>",
    "locale": "<string>",
    "locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "media": [
      {
        "key": "<string>",
        "url": "<string>"
      }
    ],
    "networkRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "options": [
      {
        "available": true,
        "createDate": "2023-11-07T05:31:56Z",
        "customTax": {
          "enabled": true,
          "rate": 123
        },
        "description": "<string>",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "price": {
          "credits": {
            "amount": 123,
            "enabled": true,
            "amountDiscounted": 123
          },
          "money": {
            "amount": 123,
            "currencyCode": "<string>",
            "enabled": true,
            "amountDiscounted": 123
          }
        },
        "stock": {
          "enabled": true,
          "quantity": 123
        },
        "title": "<string>"
      }
    ],
    "order": {
      "enabled": true
    },
    "title": "<string>",
    "updateDate": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

See our authentication documentation for how to authorize your requests

Body

application/json
product
object
required

Product to create.

Response

Created

product
object