﻿
Warning: Constant USE_TEST_DATA already defined in C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php on line 71
php : PHP Warning:  Constant USE_TEST_DATA already defined in 
C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php on line 71
Au caractère Ligne:1 : 1
+ php -r "define('USE_TEST_DATA', true); require 'api/user/user/POST_us ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (PHP Warning:  C....php on line 71:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 

Warning: http_response_code(): Cannot set response code - headers already sent (output started at C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php:71) in C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php on line 77
PHP Warning:  http_response_code(): Cannot set response code - headers already sent (output started at 
C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php:71) in 
C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php on line 77

Warning: Cannot modify header information - headers already sent by (output started at C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php:71) in C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php on line 78
{
    "error": "Error creating user",
    "status": 403,
    "message": "Forbidden",
    "lucca_response": {
        "type": "https:\/\/tools.ietf.org\/html\/rfc9110#section-15.5.4",
        "title": "Forbidden",
        "status": 403,
        "detail": "Exception of type 'Lucca.Core.Shared.Domain.Exceptions.ForbiddenException' was thrown.",
        "Message": "Exception of type 'Lucca.Core.Shared.Domain.Exceptions.ForbiddenException' was thrown.",
        "traceId": "00-c2278ed1e86d4003b501c7a3af0f6b48-b7e6053a2150965a-00"
    },
    "type": "Forbidden",
    "suggestion": "Your API token does not have permission to create users. Check API token permissions in Lucca settings.",
    "debug": {
        "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users",
        "total_time": 0.358808
    }
PHP Warning:  Cannot modify header information - headers already sent by (output started at 
C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php:71) in 
C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php on line 78
}
