POST
/
v1
/
contract-pricing
/
products
/
get
Get a product
curl --request POST \
  --url https://api.metronome.com/v1/contract-pricing/products/get \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "d84e7f4e-7a70-4fe4-be02-7a5027beffcc"
}'
{
  "data": {
    "id": "9c9a4a71-171e-41f9-b8da-d982baf1a388",
    "type": "COMPOSITE",
    "initial": {
      "name": "My Composite Product",
      "starting_at": "2020-01-01T00:00:00.000Z",
      "composite_product_ids": [
        "e5e40bc7-ef69-42ec-a77e-cd696f6bfa3d"
      ],
      "created_at": "2019-12-30T04:24:55.123Z",
      "created_by": "Bob"
    },
    "current": {
      "name": "My Updated Composite Product Name",
      "starting_at": "2020-01-01T00:00:00.000Z",
      "composite_product_ids": [
        "e5e40bc7-ef69-42ec-a77e-cd696f6bfa3d"
      ],
      "created_at": "2019-12-30T04:24:55.123Z",
      "created_by": "Bob"
    },
    "updates": [
      {
        "name": "My Updated Composite Product Name",
        "starting_at": "2020-02-01T00:00:00.000Z",
        "created_at": "2019-12-30T09:24:55.123Z",
        "created_by": "Alice"
      }
    ],
    "custom_fields": {
      "x_account_id": "KyVnHhSBWl7eY2bl"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

The ID of the product to get

The body is of type object.

Response

Success

The response is of type object.