POST
/
v1
/
contracts
/
getSubscriptionQuantityHistory
Get subscription quantity history
curl --request POST \
  --url https://api.metronome.com/v1/contracts/getSubscriptionQuantityHistory \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "13117714-3f05-48e5-a6e9-a66093f13b4d",
  "contract_id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc",
  "subscription_id": "1a824d53-bde6-4d82-96d7-6347ff227d5c"
}'
{
  "data": {
    "subscription_id": "1a824d53-bde6-4d82-96d7-6347ff227d5c",
    "fiat_credit_type_id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
    "history": [
      {
        "starting_at": "2020-01-01T00:00:00.000Z",
        "data": [
          {
            "quantity": 100,
            "unit_price": 1000,
            "total": 100000
          }
        ]
      },
      {
        "starting_at": "2020-02-01T00:00:00.000Z",
        "data": [
          {
            "quantity": 100,
            "unit_price": 1000,
            "total": 100000
          },
          {
            "quantity": 200,
            "unit_price": 2000,
            "total": 400000
          }
        ]
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

Success

The response is of type object.