Snooze a customer block review
/customer_block_reviews/{id}/snoozeSnoozes a customer block review. If snoozed_until is provided, the status is set to snoozed_temporary until that time; otherwise, it is set to snoozed. Use snoozed_by to record who performed the action.
Headers
AuthorizationstringRequiredidempotency-keystringA unique key, such as a UUID, that makes a POST or DELETE request safe to retry. Pay.com keeps each key for 24 hours, separately for each workspace.
- A retry with the same key, endpoint and body gets the first request's stored status and body, without running the request again.
- If the first request is still being processed, a retry gets 409
idempotency_error(request_in_progress). - The same key on another endpoint, or with another body, gets 400
idempotency_error(invalid_parameters). - GET, PUT and PATCH requests ignore the key.
The response repeats the key in its Idempotency-Key header.
Path parameters
idstringRequiredThe unique identifier of the customer block review.
Parameters
snoozed_untilstringTime until which the review is snoozed, in ISO 8601 format. If omitted, the review is snoozed indefinitely.
snoozed_bystringIdentifier of who snoozed the review, if applicable.
Returns
Returns the updated customer block review object.
idstringUnique identifier for the customer block review.
resourcestringString representing the object's type.
createdstringTime at which the object was created, in ISO 8601 format.
statusstringStatus of the customer block review. One of created, excluded, excluded_temporary, expired, snoozed_temporary, or snoozed.
customerstring or nullUnique identifier for the customer associated with this review, if applicable.
customer_reference_idstring or nullYour unique identifier for the customer.
customer_emailstring or nullThe customer's email address, if available.
customer_namestring or nullThe customer's full name, if available.
Show 16 more attributesShow fewer attributes
rulestringUnique identifier of the Rule that triggered this review.
rule_descriptionstringDescription of the rule that triggered this review.
payment_attemptstringUnique identifier of the Payment Attempt that triggered this review. Only present when the review was triggered by a Checkout payment.
payment_sessionstringUnique identifier of the Payment Session that triggered this review. Only present when the review was triggered by a Checkout payment.
payment_session_referencestring or nullYour reference for the Payment Session. Only present when the review was triggered by a Checkout payment and the session has a reference.
chargestringUnique identifier of the Charge that triggered this review. Only present for sale transactions.
charge_referencestring or nullYour reference for the Charge. Only present when charge is present and the charge has a reference.
holdstringUnique identifier of the Hold that triggered this review. Only present for authorization transactions.
hold_referencestring or nullYour reference for the Hold. Only present when hold is present and the hold has a reference.
payoutstringUnique identifier of the Payout that triggered this review. Only present for payout transactions.
payout_referencestring or nullYour reference for the Payout. Only present when payout is present and the payout has a reference.
excluded_untilstringTime until which the customer is excluded, in ISO 8601 format. Only present when status is excluded_temporary.
snoozed_untilstringTime until which the review is snoozed, in ISO 8601 format. Only present when status is snoozed_temporary.
excluded_bystringIdentifier of who excluded the customer. Only present when status is excluded or excluded_temporary.
snoozed_bystringIdentifier of who snoozed the review. Only present when status is snoozed or snoozed_temporary.
test_modebooleanWhether the review was created in the sandbox.
Errors
400401invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).403resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.404409idempotency-key is still being processed (request_in_progress). Wait, then retry with the same key.500503Retry-After, or after a few seconds when there's none.