Skip to main content
A pricing period is a settings record linked to a time period. You can list, create, read, update, enable or disable and delete pricing periods. This area has 5 endpoints, and all seven SDKs call every one.

At a glance

Before you call

Register your API credentials once when your app starts, as shown in Authentication. Every SDK sample on these pages then gets its client in one line. With cURL, send the access token in an Authorization header: Authorization: Bearer $ACCESS_TOKEN.

Things to know

  • Listings and single reads return time_period as null. This happens whatever the record holds; the create response does carry the time period.
  • A create links the time period by its tp_ id. Send it as time_period, with name and display_name, under pricing_period.
  • status takes active or inactive. Send it in an update to enable or disable a pricing period.
  • Listings page by cursor. Records sit under data; pass pagination.next_cursor as cursor to read the next page, and stop when pagination.has_more is false.
  • A delete returns 204 with no body. Reading the pricing period afterwards returns 404.