Skip to navigation

Create a rate card

Draft scaffold — not implemented or available in the API.

Creates a rate card with no versions. Its prices go in a version, which you create as a draft and commit.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Headers

Paid-BetaenumRequired

This endpoint is in the rate_cards=v1 beta. Send this header to use it.

Allowed values:

Request

Body
keystringRequiredformat: "^[a-z0-9_]{1,64}$"

The rate card’s key: 1 to 64 lowercase letters, digits or underscores, unique in the account. It can’t change.

namestringRequired1-255 characters
The resource name.
pricedInobjectRequired
What the rate card prices in. It can't change.
productstringRequired
The ID of the product the rate card prices.

Response

201
idstring
The rate card's ID.
objectenum

The type of object. Always rateCard.

Allowed values:
createdAtdatetime
When the object was created.
archivedAtdatetime or null

When the rate card was archived, or null. An archived card can’t be put on new orders or gain versions.

keystringformat: "^[a-z0-9_]{1,64}$"

The rate card’s key: 1 to 64 lowercase letters, digits or underscores, unique in the account. It can’t change.

livemodeboolean

true for an object on a live account, false on a test account.

namestring>=1 character
The resource name.
pricedInobject
What the rate card prices in. It can't change.
productstring
The ID of the product the rate card prices.
updatedAtdatetime
When the object was last changed.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
501
Not Implemented Error