Credits

List a reseller's package prices

GET/credits/accounts/{id}/prices/

read Read: looks, changes nothing. Scopes

Every package the reseller may sell, with their own price (if set) and what they pay for it.

Path parameters

  • idstring (uuid)required

Response

200 OK

  • packageobjectrequired
    • idstring (uuid)required
    • namestringrequired
    • credit_coststring (decimal)required

      The package's own price.

    • is_trialbooleanrequired
    • is_enabledbooleanrequired
    • durationstringrequired

      In words: "1 month", "7 days".

  • pricestring (decimal)requiredcan be null

    Their own price; null when none is set.

  • effective_pricestring (decimal)required

    What they pay for it.

  • sourcestringrequired

    Where effective_price comes from.

    • own - Their own price
    • parent - A price set by a reseller above them
    • list - The package's price

Errors

  • 401 No credential, or one that is wrong, expired or revoked.
  • 403 The account, or the key's or app's scopes, may not do this.
  • 404 Nothing with this id, or nothing the account can see.
  • 429 Slow down: wait the seconds in the Retry-After header, then try again.

What each error means