Type of object is always consentRequest.
consentRequest Unique identifier for the consent request.
"crq_0SNlurA049MEWV2jN9EvAfKMf7VU"The timestamp at which the consent request was created.
"2024-01-09T15:00:51Z"The method by which the consent request is delivered to the user.
"emailLink"emailLink sms smsLink smsOTP The timestamp at which the consent request expired.
"2024-01-09T15:00:51Z"The operation being requested.
"exchange.sim"change.phoneNumber change.provider exchange.sim issue.portOutCredentials portin.subscription The status of the consent request.
"pending"approved bypassed canceled expired pending The ID of resource being affected by the operation. It can be for example a port out ID, if the operation is issue.portOutCredentials.
"pto_0SNlurA049MEWV4DWEaT4SaeDI8s"Unique identifier for the subscription inferred from the resource associated with this consent request, e.g. a port-out, porting, or subscription change.
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"{
"object": "consentRequest",
"id": "crq_0SNlurA049MEWV2jN9EvAfKMf7VU",
"createdAt": "2024-01-09T15:01:51.0Z",
"deliveryMethod": "emailLink",
"expiredAt": "2024-01-09T15:00:51Z",
"operation": "exchange.sim",
"status": "pending",
"subject": "pto_0SNlurA049MEWV4DWEaT4SaeDI8s",
"subscription": "sub_0SNlurA049MEWV2gSfSxi00xlPIi"
}
Retrieves a consent request by the given id.
The unique identifier of the consent request.
"crq_0SNlurA049MEWV2jN9EvAfKMf7VU"Returns the consent request if it exists.
Type of object is always consentRequest.
consentRequest Unique identifier for the consent request.
"crq_0SNlurA049MEWV2jN9EvAfKMf7VU"The timestamp at which the consent request was created.
"2024-01-09T15:00:51Z"The method by which the consent request is delivered to the user.
"emailLink"emailLink sms smsLink smsOTP The timestamp at which the consent request expired.
"2024-01-09T15:00:51Z"The operation being requested.
"exchange.sim"change.phoneNumber change.provider exchange.sim issue.portOutCredentials portin.subscription The status of the consent request.
"pending"approved bypassed canceled expired pending The ID of resource being affected by the operation. It can be for example a port out ID, if the operation is issue.portOutCredentials.
"pto_0SNlurA049MEWV4DWEaT4SaeDI8s"Unique identifier for the subscription inferred from the resource associated with this consent request, e.g. a port-out, porting, or subscription change.
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"curl https://api.gigs.com/projects/${GIGS_PROJECT}/consentRequests/{consentRequest} \
-X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${GIGS_TOKEN}" \
-H "Accept: application/json"
{
"object": "consentRequest",
"id": "crq_0SNlurA049MEWV2jN9EvAfKMf7VU",
"createdAt": "2024-01-09T15:00:51Z",
"deliveryMethod": "emailLink",
"expiredAt": "2024-01-09T15:00:51Z",
"operation": "exchange.sim",
"status": "pending",
"subject": "pto_0SNlurA049MEWV4DWEaT4SaeDI8s",
"subscription": "sub_0SNlurA049MEWV2gSfSxi00xlPIi"
}
Grants consent for the given request. This will trigger the consent request to be processed and the request to transition to the approved status. The consent request must be in the pending status in order to be approved.
The OTP associated with the consent request, used to validate the given consent.
"123456"The unique identifier of the consent request.
"crq_0SNlurA049MEWV2jN9EvAfKMf7VU"Returns the consent request.
Type of object is always consentRequest.
consentRequest Unique identifier for the consent request.
"crq_0SNlurA049MEWV2jN9EvAfKMf7VU"The timestamp at which the consent request was created.
"2024-01-09T15:00:51Z"The method by which the consent request is delivered to the user.
"emailLink"emailLink sms smsLink smsOTP The timestamp at which the consent request expired.
"2024-01-09T15:00:51Z"The operation being requested.
"exchange.sim"change.phoneNumber change.provider exchange.sim issue.portOutCredentials portin.subscription The status of the consent request.
"pending"approved bypassed canceled expired pending The ID of resource being affected by the operation. It can be for example a port out ID, if the operation is issue.portOutCredentials.
"pto_0SNlurA049MEWV4DWEaT4SaeDI8s"Unique identifier for the subscription inferred from the resource associated with this consent request, e.g. a port-out, porting, or subscription change.
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"curl https://api.gigs.com/projects/${GIGS_PROJECT}/consentRequests/{consentRequest}/approve \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${GIGS_TOKEN}" \
-H "Accept: application/json" \
-d '{
"code": "123456"
}'
{
"object": "consentRequest",
"id": "crq_0SNlurA049MEWV2jN9EvAfKMf7VU",
"createdAt": "2024-01-09T15:00:51Z",
"deliveryMethod": "emailLink",
"expiredAt": "2024-01-09T15:00:51Z",
"operation": "exchange.sim",
"status": "pending",
"subject": "pto_0SNlurA049MEWV4DWEaT4SaeDI8s",
"subscription": "sub_0SNlurA049MEWV2gSfSxi00xlPIi"
}