Rivier/ Reference/ accounting

Accounting subscription detect

post/accounting/subscriptions/detect

Ask Skerry to find subscriptions in charges from the customer's activity, a statement or mail receipts.

Before you call

Credential
Authorization: Bearer $KEY
Scope
accounting:write
Graphql
Mutation.accountingDetectSubscriptions
Sdk
accounting.subscription.detect
Cli
accounting subscription detect

Request bodyapplication/json, required

  • chargeslist of objectrequired
    Charges from the customer's activity, a statement or mail receipts.
    • datestringrequired
      The day of the charge, YYYY-MM-DD. Pattern: ^\d{4}-\d{2}-\d{2}$.
    • amountMinorintegerrequired
      The charge in minor units. At least 0.
    • currencystringrequired
      The currency, three letters. At most 3 characters.
    • merchantstringrequired
      Who was paid. At most 200 characters.

Responses

  • 200application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown