Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.42 KB

update-webhook-subscription-signature-key-response.md

File metadata and controls

48 lines (38 loc) · 1.42 KB

Update Webhook Subscription Signature Key Response

Defines the fields that are included in the response body of a request to the UpdateWebhookSubscriptionSignatureKey endpoint.

Note: If there are errors processing the request, the Subscription is not present.

Structure

UpdateWebhookSubscriptionSignatureKeyResponse

Fields

Name Type Tags Description Getter
Errors List<Error> Optional Information on errors encountered during the request. List getErrors()
SignatureKey String Optional The new Square-generated signature key used to validate the origin of the webhook event. String getSignatureKey()

Example (as JSON)

{
  "signature_key": "1k9bIJKCeTmSQwyagtNRLg",
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    }
  ]
}