NAME
Twilio::Rest::Trusthub::V1::ComplianceInquiries - The ComplianceInquiries resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $compliance_inquiries = $client->trusthub->v1->compliance_inquiries->create(\%options);
$client->trusthub->v1->compliance_inquiries($customer_id)->update($primary_profile_sid, \%options);
DESCRIPTION
This file holds ComplianceInquiriesList, ComplianceInquiriesContext and ComplianceInquiriesInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
ComplianceInquiriesList
Returned by $client->trusthub->v1->compliance_inquiries. See also Twilio::ListResource.
create
my $compliance_inquiries = $client->trusthub->v1->compliance_inquiries->create(\%options);
Create a new Compliance Inquiry for the authenticated account. This is necessary to start a new embedded session. Returns a ComplianceInquiriesInstance.
The options are:
notification_email-
The email address that approval status updates will be sent to. If not specified, the email address associated with your primary customer profile will be used.
primary_profile_sid-
The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
theme_set_id-
Theme id for styling the inquiry form.
get_context
my $context = $client->trusthub->v1->compliance_inquiries->get_context($customer_id);
Returns a ComplianceInquiriesContext, and makes no request.
ComplianceInquiriesContext
Returned by $client->trusthub->v1->compliance_inquiries($customer_id). It makes no request until one of these methods is called.
update
my $compliance_inquiries = $client->trusthub->v1->compliance_inquiries($customer_id)->update($primary_profile_sid, \%options);
Resume a specific Compliance Inquiry that has expired, or re-open a rejected Compliance Inquiry for editing. Returns a ComplianceInquiriesInstance.
The required values are:
$primary_profile_sid-
The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
The options are:
theme_set_id-
Theme id for styling the inquiry form.
ComplianceInquiriesInstance
See also Twilio::InstanceResource.
It has update, which work as they do on the context.
Its fields are:
- customer_id
-
The CustomerID matching the Customer Profile that should be resumed or resubmitted for editing.
- inquiry_id
-
The unique ID used to start an embedded compliance registration session.
- inquiry_session_token
-
The session token used to start an embedded compliance registration session.
- url
-
The URL of this resource.
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.