Skip to Content
Docs
Customer block reviews

Exclude a customer block review

POST/customer_block_reviews/{id}/exclude

Excludes the customer in a customer block review from the rule that blocked them. If excluded_until is provided, the status is set to excluded_temporary until that time; otherwise, it is set to excluded.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.
idempotency-keystring

A 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

idstringRequired

The unique identifier of the customer block review.

Parameters

excluded_untilstring

Time until which the customer is excluded, in ISO 8601 format. If omitted, the exclusion is permanent.

excluded_bystring

Identifier of who excluded the customer, if applicable.

Returns

Returns the updated customer block review object.

idstring

Unique identifier for the customer block review.

resourcestring

String representing the object's type.

createdstring

Time at which the object was created, in ISO 8601 format.

statusstring

Status of the customer block review. One of created, excluded, excluded_temporary, expired, snoozed_temporary, or snoozed.

One of created, excluded, excluded_temporary, expired, snoozed_temporary or snoozed.

customerstring or null

Unique identifier for the customer associated with this review, if applicable.

customer_reference_idstring or null

Your unique identifier for the customer.

customer_emailstring or null

The customer's email address, if available.

customer_namestring or null

The customer's full name, if available.

Show 16 more attributesShow fewer attributes
rulestring

Unique identifier of the Rule that triggered this review.

rule_descriptionstring

Description of the rule that triggered this review.

payment_attemptstring

Unique identifier of the Payment Attempt that triggered this review. Only present when the review was triggered by a Checkout payment.

payment_sessionstring

Unique identifier of the Payment Session that triggered this review. Only present when the review was triggered by a Checkout payment.

payment_session_referencestring or null

Your reference for the Payment Session. Only present when the review was triggered by a Checkout payment and the session has a reference.

chargestring

Unique identifier of the Charge that triggered this review. Only present for sale transactions.

charge_referencestring or null

Your reference for the Charge. Only present when charge is present and the charge has a reference.

holdstring

Unique identifier of the Hold that triggered this review. Only present for authorization transactions.

hold_referencestring or null

Your reference for the Hold. Only present when hold is present and the hold has a reference.

payoutstring

Unique identifier of the Payout that triggered this review. Only present for payout transactions.

payout_referencestring or null

Your reference for the Payout. Only present when payout is present and the payout has a reference.

excluded_untilstring

Time until which the customer is excluded, in ISO 8601 format. Only present when status is excluded_temporary.

snoozed_untilstring

Time until which the review is snoozed, in ISO 8601 format. Only present when status is snoozed_temporary.

excluded_bystring

Identifier of who excluded the customer. Only present when status is excluded or excluded_temporary.

snoozed_bystring

Identifier of who snoozed the review. Only present when status is snoozed or snoozed_temporary.

test_modeboolean

Whether the review was created in the sandbox.

Errors

400
Invalid request parameters.
401
The API key or access token is missing, unknown or no longer works (invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).
403
The request was refused: the API key may not make it (for example resource_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.
404
Customer block review not found.
409
Another request with the same idempotency-key is still being processed (request_in_progress). Wait, then retry with the same key.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?