rtrim($ucrmUrl, '/') . '/api/v1.0/', 'verify' => false, 'headers' => [ 'X-Auth-App-Key' => $appKey ] ]); try { $response = $client->get('custom-attributes'); $attributes = json_decode($response->getBody(), true); foreach ($attributes as $attr) { if ($attr['key'] === 'tipoPagoStripe') { echo "FOUND: ID=" . $attr['id'] . " Name='" . $attr['name'] . "' Type=" . $attr['attributeType'] . "\n"; exit(0); } } echo "NOT FOUND: tipoPagoStripe\n"; } catch (\Exception $e) { echo "ERROR: " . $e->getMessage() . "\n"; }