Skip to content
Sign in Create account

POST pretokenized/mac

POST /api/v1/pretokenised/mac

Calculates a request MAC for an already-tokenized body.

Authenticate with an API key or a portal session token.

Request body

application/json any

Responses

200 Successful response.

application/json ReceiptsMac

  • mac string required
    Pattern: ^[a-f0-9]{64}$. Example: "9f2c4b8d6e1a3f50718293a4b5c6d7e8f90123456789abcdef0123456789abcd"

Generated sample

{
  "mac": "9f2c4b8d6e1a3f50718293a4b5c6d7e8f90123456789abcdef0123456789abcd"
}
401 A valid tenant credential is required.

application/json ReceiptsMacAuthError

  • error object required
    • code string required
    • type string required
403 The authenticated principal lacks the required permission.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

413 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

415 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

422 The request failed validation.

application/json ReceiptsMacAuthError

  • error object required
    • code string required
    • type string required
429 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string