POST
/
api
/
v1
/
prices
curl --request POST \
  --url https://app.flowglad.com/api/v1/prices \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "price": {
    "intervalUnit": "day",
    "name": "<string>",
    "intervalCount": 123,
    "type": "subscription",
    "trialPeriodDays": 123,
    "setupFeeAmount": 123,
    "isDefault": true,
    "unitPrice": 123,
    "productId": "<string>",
    "active": true,
    "usageMeterId": "<string>"
  }
}'
{
  "price": {
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "createdByCommit": "<string>",
    "updatedByCommit": "<string>",
    "livemode": true,
    "intervalUnit": "day",
    "name": "<string>",
    "intervalCount": 123,
    "type": "subscription",
    "trialPeriodDays": 123,
    "setupFeeAmount": 123,
    "isDefault": true,
    "unitPrice": 123,
    "productId": "<string>",
    "active": true,
    "currency": "USD",
    "usageMeterId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Body

application/json

Response

200
application/json

Successful response

The response is of type object.