MENU
      Create shopping intent

        Create shopping intent


        Article summary

        Available in VPC

        Create a profile of a shopping intent.

        When you request to create a profile, the creation process will proceed according to the following sequence.

        OrderCreation statusDescription
        Step 1registered: registeredStatus where the creation job is registered in the NCLUE system
        • It is the status before the start of the job, and you can Delete profile to cancel the job
        Step 2pending: pendingStatus where the creation job is queued in the system
        Step 3in_progress: creatingStatus where the creation job is running on the server
        Step 4
        • complete: available
        • failed: failure
        Status where the creation task has been completed
        • If the creation is successful, the status will be complete, and it can be used normally
        • If the creation fails due to an error that occurred during the operation, the status will be failed and it can't be used
        Note

        The duration of each job when creating a profile depends on the amount of data and service's available resources. To check the progress of the creation, call the Get shopping intent API and check the status field in the response body.

        Request

        This section describes the request format. The method and URI are as follows:

        MethodURI
        POST/profile/shopping-intents

        Request headers

        For information about the headers common to all NCLUE APIs, see NCLUE request headers.

        Request body

        You can include the following data in the body of your request:

        FieldTypeRequiredDescription
        nameStringRequiredProfile name
        • 1-100 characters
        task_idStringRequiredTask ID to apply for profiling

        Request example

        The request example is as follows:

        curl --location --request POST 'https://nclue.apigw.ntruss.com/api/v1/profile/shopping-intents' \
        --header 'X-NCP-APIGW-TIMESTAMP: {Timestamp}' \
        --header 'X-NCP-IAM-ACCESS-KEY: {Access Key}' \
        --header 'X-NCP-APIGW-SIGNATURE-V2: {API Gateway Signature}' \
        --data '{
            "name": "YOUR_PROFILE_NAME",
            "task_id": "3179664c-****-****-****-af6354344018"
        }'
        Shell

        Response

        This section describes the response format.

        Response body

        The response body includes the following data:

        FieldTypeRequiredDescription
        profile_idString-Profile ID
        profile_nameString-Profile name
        task_idString-Task ID to apply for profiling
        task_nameString-Task name to apply for profiling
        created_atString-Profile creation request date and time (ISO 8601 format)

        Response status codes

        For response status codes common to NCLUE, see NCLUE response status codes.

        Response example

        The response example is as follows:

        {
            "profile_id": "da523192-****-****-****-01fce3b4f90d",
            "profile_name": "YOUR_PROFILE_NAME",
            "task_id": "3179664c-****-****-****-af6354344018",
            "task_name": "YOUR_TASK_NAME",
            "created_at": "2024-11-26T16:47:27+09:00"
        }
        JSON

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.