The Redaction Job object ​
Attributes ​
id(string) Unique identifier for the object.object(string) String representing the object’s type. Objects of the same type share the same value.created(timestamp) Time at which the object was created. Measured in seconds since the Unix epoch.livemode(boolean) If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse.objects(object, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The objects to redact in this job.objects.charges(array of strings, nullable) Charge object identifiers usually starting withch_objects.checkout_sessions(array of strings, nullable) CheckoutSession object identifiers starting withcs_objects.customers(array of strings, nullable) Customer object identifiers starting withcus_objects.identity_verification_sessions(array of strings, nullable) Identity VerificationSessions object identifiers starting withvs_objects.invoices(array of strings, nullable) Invoice object identifiers starting within_objects.issuing_cardholders(array of strings, nullable) Issuing Cardholder object identifiers starting withich_objects.payment_intents(array of strings, nullable) PaymentIntent object identifiers starting withpi_objects.radar_value_list_items(array of strings, nullable) Fraud ValueListItem object identifiers starting withrsli_objects.setup_intents(array of strings, nullable) SetupIntent object identifiers starting withseti_
status(enum) The status of the job. Possible enum values:canceledThe job is canceled. No objects are redacted.cancelingThe job is canceling and no objects will be redacted.createdThis job is newly created and will begin validating shortly.failedThe job failed to validate. View the job’s validation errors for more information.readyThe job is ready to run or cancel.redactingThe job is running. It is redacting the job’s specified objects.succeededThe job is complete. The job’s objects are redacted.validatingThe job is checking if the objects are eligible for redaction.
validation_behavior(enum, nullable) Validation behavior determines how a job validates objects for redaction eligibility. Default iserror. Possible enum values:errorThe job will generate a validation error for every object that cannot be redacted. If there are any errors, all of them will need to be resolved before the job can run.fixThe job will attempt to fix validation errors whenever possible. Some objects cannot be automatically fixed and will need to be resolved before the job can run.
validation_errors(object, nullable) The first 10 validation errors for the current validation attempt. Use the validation errors list endpoint to paginate through the full list.validation_errors.object(string) String representing the object’s type. Objects of the same type share the same value. Always has the valuelist.validation_errors.has_more(boolean) True if this list has another page of items after this one that can be fetched.validation_errors.url(string) The URL where this list can be accessed.
The Redaction Job object ​
json
{
"id": "prj_123",
"object": "privacy.redaction_job",
"created": 1234567890,
"livemode": true,
"status": "validating",
"validation_behavior": "error"
}